﻿  :root {
    --silver: #C0C0C0;
    --silver-light: #E8E8E8;
    --silver-dark: #C8C8C8;
    --gold: #9A7A00;
    --gold-light: #B8960C;
    --gold-bright: #C8A000;
    --ink: #0D0D0D;
    --ink-soft: #1A1A2E;
    --cream: #F5F0E8;
    --ivory: #FAF7F0;
    --deep-navy: #0A0E1A;
    --mid-navy: #111827;
    --accent-blue: #1E3A5F;
    --nav-link-color: #C0C0C0;
    --nav-bg: #0A0E1A;
    --text-primary: #F5F0E8;
    --btn-primary-bg: #9A7A00;
    --btn-primary-text: #0D0D0D;
    /* Theme-adaptive: text shadows (dark for dark themes, transparent for light themes) */
    --hero-text-shadow: rgba(0,0,0,0.9);
  }

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

  html { scroll-behavior: smooth; scroll-padding-top: 56px; overflow-x: hidden; max-width: 100%; }

  body {
    background: var(--deep-navy);
    color: var(--cream);
    font-family: 'Cormorant Garamond', serif;
    overflow-x: hidden;
    max-width: 100%;
    cursor: default;
  }

  /* ── GRAIN OVERLAY ── */
  body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.035'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1000;
    opacity: 0.4;
  }

  /* ── NAV ── */
  nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: clamp(0.3rem, 0.8vw, 0.6rem);
    padding: 0.4rem clamp(0.6rem, 2vw, 1.5rem);
    background: var(--nav-bg);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(128,128,128,0.18);
    overflow: visible;
    min-width: 0;
  }

  .nav-left {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.55rem;
    flex-shrink: 1;
    min-width: 0;
  }

  .nav-college-logo {
    width: 30px;
    height: 30px;
    object-fit: contain;
    border-radius: 50%;
    flex-shrink: 0;
    filter: drop-shadow(0 0 6px rgba(184,150,12,0.3));
  }

  .nav-text {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
  }

  .nav-batch {
    font-family: 'Cinzel', serif;
    font-size: 0.68rem;
    letter-spacing: 0.25em;
    color: brown;
    font-weight: 900;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(212,160,23,0.45);
  }

  .nav-logo {
    font-family: 'Cinzel', serif;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    color: brown;
    text-transform: uppercase;
    white-space: nowrap;
  }

  .nav-links {
    display: flex;
    gap: clamp(0.45rem, 1.4vw, 2rem);
    list-style: none;
    flex-wrap: nowrap;
    align-items: center;
    flex: 1;
    min-width: 0;
    justify-content: center;
    overflow: visible;
  }

  .nav-links a {
    font-family: 'Cinzel', serif;
    font-size: 0.71rem;
    letter-spacing: 0.2em;
    color: var(--nav-link-color);
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.3s;
    white-space: nowrap;
    padding: 0.25rem 0;
  }

  /* On hover, brighten */
  .nav-links a:hover { color: var(--nav-link-color); opacity: 1; filter: brightness(1.2); }

  /* ── HERO SPLIT BAR ── */
  .hero-split {
    position: relative;
    height: 540px;
    overflow: hidden;
    margin-top: 0;
    background: var(--deep-navy);
    width: 100%;
  }

  /* Right side: photo constrained to right panel only */
  .hero-split-right {
    position: absolute;
    top: 0;
    right: 0;
    width: 58%;
    height: 100%;
    z-index: 1;
  }

  .hero-split-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 90% 20%;
    display: block;
  }

  .hero-split-right-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to left, rgba(180,160,100,0.08) 0%, transparent 60%);
  }

  /* Left side: dark panel with diagonal clip */
  .hero-split-left {
    position: absolute;
    inset: 0;
    width: 54%;
    height: 100%;
    background: var(--deep-navy);
    clip-path: polygon(0 0, 100% 0, 81.5% 100%, 0 100%);
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 1rem 10% 2rem 5%;
    z-index: 2;
  }

  .hero-split-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 380px;
    text-align: center;
    padding-top: 2rem;
  }

  /* Shimmering diagonal edge line — sits above both panels */
  .hero-split-diagonal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    clip-path: polygon(53.8% 0, 54.2% 0, 44.1% 100%, 43.7% 100%);
    background: linear-gradient(180deg, var(--silver-light), var(--gold-bright), var(--gold-light), var(--silver-light), var(--gold-light));
    z-index: 4;
    opacity: 0.6;
    pointer-events: none;
  }

  /* tribute-row mobile handled in the main tribute block (flex + scroll snap) */

  @media (max-width: 768px) {
    /* Hero handled comprehensively at 900px — only fine-tune here */
    .hero-split { height: auto; }
    .hero-split-left {
      clip-path: none;
      position: relative;
      width: 100%;
      padding: 3rem 1.5rem 2.5rem;
      inset: auto;
    }
    .hero-split-right { position: relative; width: 100%; height: 200px; top: auto; right: auto; }
    .hero-split-diagonal { display: none; }
  }

  .hero-cta-bar {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    padding: 1.2rem 2rem;
    background: var(--deep-navy);
    border-bottom: 1px solid rgba(212,175,55,0.2);
  }

  /* ── HERO ── */
  .hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 3.5rem 2rem 4rem;
  }

  .hero-bg {
    position: absolute;
    inset: 0;
    background:
      radial-gradient(ellipse 80% 60% at 50% 30%, rgba(184,150,12,0.08) 0%, transparent 70%),
      radial-gradient(ellipse 60% 80% at 20% 80%, rgba(30,58,95,0.3) 0%, transparent 60%),
      radial-gradient(ellipse 40% 40% at 80% 20%, rgba(192,192,192,0.05) 0%, transparent 50%);
  
    background-size: cover;
    background-position: center 40%;
    background-repeat: no-repeat;
  }

  /* Decorative rings */
  .hero-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(184,150,12,0.15);
    animation: pulse-ring 6s ease-in-out infinite;
  }
  .hero-ring:nth-child(1) { width: 600px; height: 600px; top: 50%; left: 50%; transform: translate(-50%,-50%); }
  .hero-ring:nth-child(2) { width: 850px; height: 850px; top: 50%; left: 50%; transform: translate(-50%,-50%); animation-delay: 1s; opacity: 0.6; }
  .hero-ring:nth-child(3) { width: 1100px; height: 1100px; top: 50%; left: 50%; transform: translate(-50%,-50%); animation-delay: 2s; opacity: 0.3; }

  @keyframes pulse-ring {
    0%, 100% { opacity: 0.15; transform: translate(-50%,-50%) scale(1); }
    50% { opacity: 0.35; transform: translate(-50%,-50%) scale(1.02); }
  }

  /* Stars */
  .stars {
    position: absolute;
    inset: 0;
    overflow: hidden;
  }

  .star {
    position: absolute;
    width: 2px; height: 2px;
    background: var(--silver-light);
    border-radius: 50%;
    animation: twinkle var(--dur, 3s) ease-in-out infinite;
    animation-delay: var(--delay, 0s);
    opacity: var(--op, 0.5);
  }

  @keyframes twinkle {
    0%, 100% { opacity: var(--op, 0.5); transform: scale(1); }
    50% { opacity: 0.1; transform: scale(0.5); }
  }

  .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
  }

  .hero-eyebrow {
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    letter-spacing: 0.5em;
    color: var(--gold-light);
    text-transform: uppercase;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fade-up 1s 0.3s forwards;
    text-shadow: 0 2px 12px var(--hero-text-shadow), 0 0 40px var(--hero-text-shadow);
  }

  .hero-badge {
    width: 80px; height: 80px;
    margin: 0 auto 0.3rem;
    position: relative;
    opacity: 0;
    animation: fade-up 1.2s 0.1s forwards;
    filter: drop-shadow(0 2px 12px rgba(0,0,0,0.8));
  }

  .hero-badge svg { width: 100%; height: 100%; }

  /* Star badge — silver, matching backup */
  .hero-badge polygon { stroke: #C0C0C0; }
  .hero-badge text { fill: #C0C0C0; }

  .hero-25 {
    font-family: 'Cinzel', serif;
    font-size: clamp(2.2rem, 4vw, 3.6rem);
    font-weight: 700;
    line-height: 0.85;
    background: linear-gradient(135deg, var(--silver-light) 0%, var(--gold-light) 40%, var(--silver) 60%, var(--gold-bright) 80%, var(--silver-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: shimmer 4s linear infinite, fade-up 1.2s 0.5s both;
    display: block;
    margin-bottom: 0.3rem;
    filter: drop-shadow(0 3px 16px rgba(0,0,0,0.95));
  }
  .hero-25 .h-small {
    font-size: 0.72em;
    vertical-align: baseline;
  }

  @keyframes shimmer {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
  }

  .hero-years {
    font-family: 'Cinzel', serif;
    font-size: clamp(0.7rem, 1.4vw, 0.9rem);
    letter-spacing: 0.25em;
    color: var(--silver-dark);
    margin-bottom: 0.4rem;
    opacity: 0;
    animation: fade-up 1s 0.8s forwards;
    font-weight: 600;
    /* Gradient text — uses CSS vars so light themes produce dark visible tones */
    background: linear-gradient(135deg, var(--silver-light) 0%, var(--silver) 30%, var(--silver-light) 60%, var(--silver-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  .hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 3.2vw, 2.8rem);
    font-weight: 400;
    font-style: italic;
    color: var(--cream);
    line-height: 1.2;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fade-up 1s 1s forwards;
    text-shadow: 0 2px 20px var(--hero-text-shadow), 0 4px 40px var(--hero-text-shadow);
  }

  .hero-subtitle {
    font-family: 'Cinzel', serif;
    font-size: clamp(0.55rem, 1.2vw, 0.75rem);
    font-weight: 400;
    color: var(--silver-dark);
    letter-spacing: 0.35em;
    text-transform: uppercase;
    margin-bottom: 0.3rem;
    opacity: 0;
    animation: fade-up 1s 1.2s forwards;
    text-shadow: 0 2px 12px var(--hero-text-shadow);
  }

  .hero-divider {
    width: 260px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gold-light), transparent);
    margin: 0 auto 1rem;
    opacity: 0;
    animation: fade-up 1s 1.4s forwards;
  }

  .hero-date {
    font-family: 'Cinzel', serif;
    font-size: 0.95rem;
    letter-spacing: 0.25em;
    color: var(--gold-light);
    text-transform: uppercase;
    opacity: 0;
    animation: fade-up 1s 1.6s forwards;
  }

  .hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 1.2rem;
    opacity: 0;
    animation: fade-up 1s 1.8s forwards;
    flex-wrap: wrap;
  }

  .btn-primary {
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    padding: 1rem 2.5rem;
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: filter 0.25s, transform 0.2s, box-shadow 0.3s;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  }

  .btn-primary:hover {
    filter: brightness(1.15);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
  }

  .btn-secondary {
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    padding: 1rem 2.5rem;
    background: rgba(128,128,128,0.08);
    color: var(--text-primary);
    border: 2px solid var(--text-primary);
    cursor: pointer;
    text-decoration: none;
    transition: border-color 0.3s, color 0.3s, background 0.3s;
    opacity: 1;
  }

  .btn-secondary:hover {
    border-color: var(--gold-light);
    color: var(--gold-light);
    background: rgba(184,150,12,0.1);
    opacity: 1;
  }

  @keyframes fade-up {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
  }

  /* ── REM BOOK WIDGET (fixed right, below countdown) ── */
  .rembook-widget {
    position: fixed;
    top: 21rem;
    right: 1.5rem;
    z-index: 850;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
    background: rgba(10,14,26,0.96);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(184,150,12,0.4);
    padding: 0.75rem 1rem;
    box-shadow: 0 6px 32px rgba(0,0,0,0.6), 0 0 0 1px rgba(184,150,12,0.08);
    cursor: pointer;
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.2s;
    width: 130px;
    white-space: nowrap;
  }

  .rembook-widget:hover {
    border-color: rgba(184,150,12,0.8);
    box-shadow: 0 8px 40px rgba(184,150,12,0.25);
    transform: translateY(-2px);
  }

  /* ── INSTAGRAM WIDGET ── */
  .insta-widget {
    position: fixed;
    top: 25.5rem;
    right: 1.5rem;
    z-index: 850;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
    background: rgba(10,14,26,0.96);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(238,42,123,0.35);
    padding: 0.75rem 1rem;
    box-shadow: 0 6px 32px rgba(0,0,0,0.6), 0 0 0 1px rgba(238,42,123,0.06);
    cursor: pointer;
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.2s;
    width: 130px;
    text-decoration: none;
  }

  .insta-widget:hover {
    border-color: rgba(238,42,123,0.8);
    box-shadow: 0 8px 40px rgba(238,42,123,0.25);
    transform: translateY(-2px);
  }

  .insta-icon { opacity: 0.9; }

  .insta-title {
    font-family: 'Cinzel', serif;
    font-size: 0.64rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: #D8D0C0;
    text-transform: none;
    white-space: nowrap;
  }

  @media (max-width: 768px) { .insta-widget { display: none; } }

  /* ── YOUTUBE WIDGET ── */
  .yt-widget {
    position: fixed;
    top: 32rem;
    right: 1.5rem;
    z-index: 850;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
    background: rgba(10,14,26,0.96);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,0,0,0.35);
    padding: 0.75rem 1rem;
    box-shadow: 0 6px 32px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,0,0,0.06);
    cursor: pointer;
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.2s;
    width: 130px;
    text-decoration: none;
  }
  .yt-widget:hover {
    border-color: rgba(255,0,0,0.85);
    box-shadow: 0 8px 40px rgba(255,0,0,0.25);
    transform: translateY(-2px);
  }
  .yt-title {
    font-family: 'Cinzel', serif;
    font-size: 0.64rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: #D8D0C0;
    text-transform: none;
    white-space: nowrap;
  }
  .yt-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 10000;
    align-items: center;
    justify-content: center;
  }
  .yt-lightbox.open { display: flex; }
  .yt-lightbox-inner {
    position: relative;
    width: min(860px, 90vw);
    aspect-ratio: 16/9;
    background: #000;
    box-shadow: 0 0 80px rgba(255,0,0,0.3);
    border: 1px solid rgba(255,0,0,0.3);
  }
  .yt-lightbox-inner iframe,
  .yt-lightbox-inner video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    background: #000;
  }
  .yt-close {
    position: absolute;
    top: -2.6rem;
    right: 0;
    font-size: 2.2rem;
    color: #ccc;
    cursor: pointer;
    line-height: 1;
    background: none;
    border: none;
    padding: 0;
  }
  .yt-close:hover { color: #fff; }
  @media (max-width: 768px) { .yt-widget { display: none; } }

  .rembook-icon { opacity: 0.9; }

  .rembook-title {
    font-family: 'Cinzel', serif;
    font-size: 0.64rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: #D8D0C0;
    white-space: nowrap;
    text-align: center;
  }

  .rembook-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(10,14,26,0.96);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    padding: 2rem;
  }

  .rembook-modal.open { display: flex; }

  .rembook-modal-box {
    background: var(--deep-navy);
    border: 1px solid rgba(184,150,12,0.35);
    width: 100%;
    max-width: 860px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 80px rgba(0,0,0,0.8);
    animation: modal-in 0.3s ease;
  }

  @keyframes modal-in {
    from { opacity: 0; transform: scale(0.96) translateY(20px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
  }

  .rembook-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(139,69,19,0.35);
    background: rgba(139,69,19,0.08);
    flex-shrink: 0;
  }

  .rembook-modal-title {
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    letter-spacing: 0.3em;
    color: #8B4513;
    text-transform: uppercase;
  }

  .rembook-modal-close {
    background: none;
    border: 2px solid #8B4513;
    color: #8B4513;
    font-size: 1.4rem;
    font-weight: bold;
    width: 32px; height: 32px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
    line-height: 1;
    border-radius: 4px;
  }

  .rembook-modal-close:hover { background: #8B4513; color: #fff; border-color: #8B4513; }

  .rembook-modal-body {
    flex: 1;
    overflow: auto;
    min-height: 500px;
  }

  .rembook-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 500px;
    gap: 1.2rem;
    padding: 3rem;
  }

  .rembook-placeholder-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-style: italic;
    color: var(--cream);
  }

  .rembook-placeholder-sub {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    color: var(--silver-dark);
    text-align: center;
    line-height: 1.8;
  }

  .rembook-placeholder-sub code {
    font-family: monospace;
    font-size: 0.91rem;
    color: var(--gold-light);
    background: rgba(184,150,12,0.1);
    padding: 0.1rem 0.4rem;
  }

  @media (max-width: 768px) {
    /* ── Countdown: compact 2×2 pill at bottom-right ── */
    .countdown-widget {
      display: flex !important;
      top: auto !important;
      bottom: 0.5rem !important;
      right: 0.5rem !important;
      width: 110px !important;
      max-width: 110px !important;
      padding: 0.5rem 0.5rem !important;
      flex-direction: column !important;
      align-items: center !important;
      gap: 0.1rem !important;
      border-radius: 14px !important;
      overflow: hidden !important;
    }
    .cw-label {
      font-size: 0.31rem !important;
      letter-spacing: 0.07em !important;
      margin-bottom: 0.06rem !important;
      white-space: nowrap;
      overflow: hidden;
      max-width: 100%;
      text-overflow: ellipsis;
    }
    .cw-grid  {
      display: grid !important;
      grid-template-columns: 1fr 1fr !important;
      gap: 0.12rem 0.08rem !important;
      width: 100% !important;
    }
    .cw-sep   { display: none !important; }
    .cw-unit  { min-width: unset !important; width: auto !important; align-items: center !important; }
    .cw-num   { font-size: 1rem !important; line-height: 1.1 !important; }
    .cw-lbl   { font-size: 0.44rem !important; letter-spacing: 0.1em !important; margin-top: 0.05rem !important; }

    /* ── YouTube Teaser: icon button ── */
    .yt-widget {
      display: flex !important;
      position: fixed;
      top: auto !important;
      bottom: 6rem;
      right: 0.5rem;
      width: 44px;
      height: 44px;
      padding: 0.55rem;
      border-radius: 50%;
      gap: 0;
    }
    .yt-title { display: none; }

    /* ── REM Book: icon button ── */
    .rembook-widget {
      display: flex !important;
      position: fixed;
      top: auto !important;
      bottom: 10.5rem;
      right: 0.5rem;
      width: 44px;
      height: 44px;
      padding: 0.45rem;
      border-radius: 50%;
      gap: 0;
    }
    .rembook-title { display: none; }
    .rembook-widget svg { width: 22px; height: 27px; }
  }

  /* ── Desktop widget toggle button (sits below navbar, above widgets) ── */
  .desktop-widget-toggle {
    position: fixed;
    top: 4.5rem;
    right: 1.5rem;
    z-index: 9991;
    background: rgba(139,94,0,0.88);
    border: 1px solid rgba(184,150,12,0.6);
    border-radius: 4px;
    padding: 0.4rem 0.6rem;
    font-size: 0.63rem;
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    cursor: pointer;
    font-family: 'Cinzel', serif;
    letter-spacing: 0.1em;
    white-space: nowrap;
    user-select: none;
    font-weight: 700;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
    transition: background 0.2s, border-color 0.2s;
  }
  .desktop-widget-toggle:hover { background: rgba(184,150,12,0.8); border-color: #C89800; }

  /* Hide all fixed widgets when desktop toggle is closed */
  body.widgets-hidden .countdown-widget,
  body.widgets-hidden .rembook-widget,
  body.widgets-hidden .insta-widget,
  body.widgets-hidden .yt-widget { display: none !important; }

  /* ── COUNTDOWN WIDGET (fixed top-right) ── */
  .countdown-widget {
    position: fixed;
    top: 9rem;
    right: 1.5rem;
    z-index: 850;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    background: rgba(10,14,26,0.96);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(184,150,12,0.4);
    padding: 0.9rem 1.4rem 1rem;
    box-shadow: 0 6px 32px rgba(0,0,0,0.6), 0 0 0 1px rgba(184,150,12,0.08);
    cursor: pointer;
    transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.25s ease;
    transform-origin: top right;
  }

  /* Zoomed state — click to expand, click outside to collapse */
  .countdown-widget.cw-zoomed {
    transform: scale(2.3) !important;
    transform-origin: top right;
    z-index: 15000 !important;
    box-shadow: 0 16px 60px rgba(0,0,0,0.85), 0 0 0 2px rgba(184,150,12,0.5) !important;
  }

  .cw-label {
    font-family: 'Cinzel', serif;
    font-size: 0.74rem;
    letter-spacing: 0.3em;
    color: #D4AF37;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
    white-space: nowrap;
  }

  .cw-grid {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .cw-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 42px;
  }

  .cw-num {
    font-family: 'Playfair Display', serif;
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1;
    background: linear-gradient(180deg, #E8E8E8, #C0C0C0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  .cw-lbl {
    font-family: 'Cinzel', serif;
    font-size: 0.64rem;
    letter-spacing: 0.2em;
    color: #B8B8B8;
    text-transform: uppercase;
    margin-top: 0.25rem;
  }

  .cw-sep {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: rgba(184,150,12,0.6);
    line-height: 1;
    margin-bottom: 0.8rem;
  }

  /* countdown shown as compact icon on mobile — see 768px block above */

  .section-label {
    font-family: 'Cinzel', serif;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.4em;
    color: var(--gold-light);
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    justify-content: center;
  }

  .section-label::before, .section-label::after {
    content: '';
    width: 60px; height: 1px;
    background: linear-gradient(to right, transparent, var(--gold-light));
  }

  .section-label::after {
    background: linear-gradient(to left, transparent, var(--gold-light));
  }


  /* ── SECTIONS SHARED ── */
  section {
    padding: 4rem 4rem;
  }

  .section-heading {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 400;
    font-style: italic;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 1rem;
  }

  .section-sub {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--text-primary);
    opacity: 0.75;
    text-align: center;
    margin-bottom: 4rem;
  }

  /* ── ABOUT ── */
  .about-section {
    background: var(--mid-navy);
    position: relative;
    overflow: hidden;
  }

  .about-section::after {
    content: '25';
    position: absolute;
    font-family: 'Cinzel', serif;
    font-size: 30vw;
    font-weight: 700;
    color: rgba(192,192,192,0.02);
    right: 0;           /* was -5% — caused horizontal overflow on mobile */
    bottom: -5%;
    line-height: 1;
    pointer-events: none;
    max-width: 100%;    /* prevent pseudo-element from extending beyond section */
  }

  .about-grid {
    display: grid;
    grid-template-columns: 1fr 1px 1fr;
    gap: 0;
    max-width: 1000px;
    margin: 0 auto;
    align-items: stretch;
  }

  .about-divider {
    background: linear-gradient(to bottom, transparent, var(--gold-light), transparent);
    align-self: stretch;
    margin: 0 4rem;
  }

  .about-block h3 {
    font-family: 'Cinzel', serif;
    font-size: 0.95rem;
    letter-spacing: 0.25em;
    color: var(--gold-light);
    text-transform: uppercase;
    margin-bottom: 1.5rem;
  }

  .about-block p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--silver);
    line-height: 1.9;
  }

  .about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
  }

  .stat-box {
    padding: 1.5rem;
    border: 1px solid rgba(192,192,192,0.1);
    background: rgba(0,0,0,0.04);
    text-align: center;
    transition: border-color 0.3s, background 0.3s;
  }

  .stat-box:hover {
    border-color: rgba(184,150,12,0.4);
    background: rgba(184,150,12,0.03);
  }

  .stat-num {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--gold-light);
    display: block;
  }

  .stat-desc {
    font-family: 'Cinzel', serif;
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--silver-dark);
    text-transform: uppercase;
    margin-top: 0.3rem;
  }

  /* ── SCHEDULE ── */
  /* ── SCHEDULE ── */
  .schedule-section {
    background: var(--mid-navy);
    position: relative;
  }

  .schedule-section::before {
    content: '';
    position: absolute;
    top: 0; left: 10%; right: 10%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(192,192,192,0.2), transparent);
  }

  /* ── SCHEDULE 3-DAY LAYOUT ── */
  /* Day 1 centred · Day 2 left · Day 3 right                     */
  /* Design sourced from reconnect-light-theme reference           */

  .sched-outer {
    max-width: 960px;
    margin: 0 auto;
  }

  /* ── Day 1 — full-width centred ── */
  .sched-day1 {
    max-width: 460px;
    margin: 0 auto 2.5rem;
  }
  /* Day 1 card has no time column — display as simple centred block */
  .sched-day1 .sched-item {
    display: block;
    text-align: center;
    border-left: 0.5px solid rgba(200,152,0,0.30);
  }

  /* ── Day 2 & 3 — side-by-side with spine ── */
  .sched-days23 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: start;
    position: relative;
  }
  /* Central spine line between Day 2 and Day 3 */
  .sched-days23::before {
    content: '';
    position: absolute;
    left: 50%; top: 0; bottom: 0; width: 2px;
    transform: translateX(-50%);
    background: linear-gradient(to bottom, #3B4A2F, rgba(200,152,0,0.55), #3B4A2F);
    pointer-events: none;
    z-index: 0;
  }

  /* ── Day header — dark green pill (reference: #3B4A2F) ── */
  .sched-day-hdr {
    background: #3B4A2F;
    border: 1px solid rgba(92,114,74,0.6);
    border-radius: 6px;
    padding: 0.65rem 1.4rem;
    text-align: center;
    margin-bottom: 0.75rem;
  }
  .sched-day-num {
    font-family: 'Cinzel', serif; font-size: 1.05rem; font-weight: 700;
    color: #FFFFFF; letter-spacing: 0.08em;
    display: block; line-height: 1;
  }
  .sched-day-date {
    font-family: 'Cinzel', serif; font-size: 0.78rem; font-weight: 600;
    color: rgba(255,255,255,0.92); letter-spacing: 0.05em;
    display: block; margin-top: 0.2rem;
  }

  /* ── Schedule item list ── */
  .sched-items {
    display: flex;
    flex-direction: column;
    gap: 7px;
  }

  /* ── Individual card — time col | content col ── */
  .sched-item {
    background: #E8E8E8;
    border: 0.5px solid rgba(0,0,0,0.14);
    border-left: 3px solid #AAAAAA;
    border-radius: 5px;
    padding: 9px 11px;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    gap: 0 10px;
    align-items: start;
    transition: background 0.2s, border-left-color 0.2s;
    cursor: default;
  }
  .sched-item:hover { background: #DCDCDC; border-left-color: #888888; }

  /* Gold / highlighted card */
  .sched-item.gold {
    background: rgba(200,152,0,0.10);
    border: 0.5px solid rgba(200,152,0,0.30);
    border-left: 3px solid #C89800;
    border-radius: 5px;
  }
  .sched-item.gold:hover { background: rgba(200,152,0,0.16); }

  /* ── Card text atoms ── */
  /* Time — left column, spans both rows */
  .tl-time {
    font-family: 'Cinzel', serif; font-size: 0.74rem; font-weight: 700;
    color: #555555; white-space: nowrap; letter-spacing: 0.06em;
    text-transform: uppercase; padding-top: 2px;
    grid-column: 1; grid-row: 1 / 3; align-self: start;
  }
  .sched-item.gold .tl-time { color: #7a5200; }

  /* Title — right column, first row */
  .tl-title {
    font-family: 'Playfair Display', serif; font-size: 0.85rem;
    font-weight: 700; color: #111111; line-height: 1.3;
    display: block; grid-column: 2; grid-row: 1;
  }
  .sched-item.gold .tl-title { color: #3a2800; }

  /* Subtitle — right column, second row */
  .tl-sub {
    font-family: 'Cormorant Garamond', serif; font-size: 0.9rem;
    font-weight: 600; color: #444444; font-style: normal;
    display: block; margin-top: 2px; line-height: 1.4;
    grid-column: 2; grid-row: 2;
  }

  /* ── Mobile — stack Day 1, Day 2, Day 3 vertically ── */
  @media (max-width: 768px) {
    .sched-day1 { max-width: 100%; margin-bottom: 1.5rem; }
    .sched-days23 { grid-template-columns: 1fr; gap: 1.5rem; }
    .sched-days23::before { display: none; } /* hide spine on mobile */
    .tl-title { font-weight: 700; }
    .tl-sub { font-weight: 600; }
  }

  /* ── MEMORIES ── */
  .memories-section {
    background: var(--mid-navy);
    overflow: hidden;
  }

  .memories-marquee-wrap {
    overflow: hidden;
    margin-bottom: 2rem;
    width: 100%;
    min-height: 160px;
    position: relative;
    /* Safari: force GPU layer on container to prevent blank compositing */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
  }

  .memories-marquee {
    display: flex;
    gap: 1.5rem;
    width: -webkit-max-content;
    width: max-content;
    -webkit-animation: marquee 30s linear infinite;
    animation: marquee 30s linear infinite;
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }

  .memories-marquee:hover {
    -webkit-animation-play-state: paused;
    animation-play-state: paused;
  }

  @-webkit-keyframes marquee {
    from { -webkit-transform: translateX(0);    transform: translateX(0); }
    to   { -webkit-transform: translateX(-50%); transform: translateX(-50%); }
  }
  @keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
  }
  @-webkit-keyframes marquee-reverse {
    from { -webkit-transform: translateX(-50%); transform: translateX(-50%); }
    to   { -webkit-transform: translateX(0);    transform: translateX(0); }
  }
  @keyframes marquee-reverse {
    from { transform: translateX(-50%); }
    to   { transform: translateX(0); }
  }

  .memory-card {
    width: 220px;
    height: 160px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(192,192,192,0.1);
    cursor: pointer;
    transition: transform 0.3s;
  }

  .memory-card:hover { transform: scale(1.03); }

  .memory-card-inner {
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 0.9rem;
    color: var(--silver);
    text-align: center;
    padding: 1rem;
  }

  .memory-card:nth-child(7n+1) .memory-card-inner { background: linear-gradient(135deg, #0f1a2e, #1a2a40); }
  .memory-card:nth-child(7n+2) .memory-card-inner { background: linear-gradient(135deg, #1a1a0e, #2a2814); }
  .memory-card:nth-child(7n+3) .memory-card-inner { background: linear-gradient(135deg, #0e1a1a, #142828); }
  .memory-card:nth-child(7n+4) .memory-card-inner { background: linear-gradient(135deg, #1a0e1a, #281428); }
  .memory-card:nth-child(7n+5) .memory-card-inner { background: linear-gradient(135deg, #1a1414, #281a1a); }
  .memory-card:nth-child(7n+6) .memory-card-inner { background: linear-gradient(135deg, #0e0e1a, #14142a); }
  .memory-card:nth-child(7n+0) .memory-card-inner { background: linear-gradient(135deg, #0e1a14, #142a1a); }

  .memory-overlay {
    position: absolute;
    inset: 0;
    background: rgba(184,150,12,0.0);
    transition: background 0.3s;
    display: flex; align-items: center; justify-content: center;
  }

  .memory-card:hover .memory-overlay {
    background: rgba(184,150,12,0.08);
  }

  /* ── REGISTER ── */
  .register-section {
    background: var(--mid-navy);
    position: relative;
  }

  .register-inner {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
  }

  .register-form {
    margin-top: 3rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .form-group.full { grid-column: 1 / -1; }

  .form-group label {
    font-family: 'Cinzel', serif;
    font-size: 0.71rem;
    letter-spacing: 0.25em;
    color: var(--text-primary);
    opacity: 0.75;
    text-transform: uppercase;
    text-align: left;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    background: rgba(128,128,128,0.1);
    border: 1px solid rgba(128,128,128,0.35);
    color: var(--text-primary);
    padding: 0.85rem 1rem;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s, background 0.3s;
    -webkit-appearance: none;
  }
  .form-group input::placeholder,
  .form-group textarea::placeholder {
    color: var(--text-primary);
    opacity: 0.45;
  }

  .form-group input:focus,
  .form-group select:focus,
  .form-group textarea:focus {
    border-color: var(--gold-light);
    background: rgba(184,150,12,0.04);
  }

  .form-group select option { background: var(--deep-navy); }

  .form-group textarea { resize: vertical; min-height: 100px; }

  .form-submit {
    grid-column: 1 / -1;
    margin-top: 1rem;
  }

  .form-submit .btn-primary {
    width: 100%;
    font-size: 0.86rem;
    padding: 1.2rem;
    border: none;
    cursor: pointer;
  }

  /* ── COMMITTEE ── */
  .committee-section { background: var(--mid-navy); }

  .mini-vol-wrap {
    max-width: 1100px;
    margin: 2.5rem auto 0;
    width: 100%;
  }

  .mini-vol-list {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0;
    border: 1px solid rgba(184,150,12,0.18);
    border-radius: 10px;
    overflow: visible;   /* must be visible so hover vol-bubble can escape the container */
    width: 100%;
  }

  .mini-vol-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.85rem;
    border-bottom: 1px solid rgba(192,192,192,0.07);
    gap: 0.5rem;
    min-width: 0;
    position: relative;  /* needed so absolutely-positioned .vol-bubble anchors to this row */
    /* overflow intentionally NOT set here — .mini-vol-name handles its own overflow;
       overflow:hidden on the row would clip the vol-bubble tooltip above it */
  }

  .mini-vol-row:nth-last-child(-n+3) { border-bottom: none; }

  .mini-vol-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.92rem;
    color: var(--silver);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
  }

  .mvbadge {
    font-family: 'Cinzel', serif;
    font-size: 0.67rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.2rem 0.55rem;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .mvbadge-vol {
    background: rgba(192,192,192,0.07);
    color: var(--silver-dark);
    border: 1px solid rgba(192,192,192,0.15);
  }

  .mvbadge-dept {
    background: rgba(192,192,192,0.07);
    color: var(--silver-dark);
    border: 1px solid rgba(192,192,192,0.15);
  }

  .mini-vol-section-header {
    font-family: 'Cinzel', serif;
    font-size: 0.71rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold-light);
    background: rgba(184,150,12,0.07);
    padding: 0.45rem 1rem;
    border-bottom: 1px solid rgba(184,150,12,0.18);
    border-top: 1px solid rgba(184,150,12,0.18);
    text-align: center;
  }

  .mini-vol-list .mini-vol-section-header:first-child {
    border-top: none;
  }

  @media (max-width: 768px) {
    /* Committee grid: stack cards vertically on mobile */
    .committee-section { overflow-x: visible; }
    .committee-compact {
      grid-template-columns: 1fr !important;
      min-width: unset !important;
      max-width: 100% !important;
    }
    .committee-convenors {
      grid-column: 1 / -1 !important;
      grid-template-columns: 1fr !important;
    }
    .mini-vol-list { grid-template-columns: 1fr; }
    .mini-vol-row:nth-last-child(-n+2) { border-bottom: 1px solid rgba(192,192,192,0.07); }
    .mini-vol-row:last-child { border-bottom: none; }
  }

  @media (max-width: 480px) {
    /* Committee: single column at small phones */
    .committee-compact { grid-template-columns: 1fr; min-width: unset; }
  }

  .committee-compact {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
  }

  /* Convenors row: full width, 2 cards */
  .committee-convenors {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
  }

  .committee-convenors .committee-row {
    border-color: rgba(184,150,12,0.2);
    background: rgba(184,150,12,0.04);
  }

  .committee-convenors .cm-avatar {
    width: 92px; height: 92px;
    font-size: 0.9rem;
  }

  .committee-convenors .cm-name {
    font-size: 1rem;
  }

  .committee-row {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(192,192,192,0.07);
    background: rgba(0,0,0,0.04);
    transition: border-color 0.2s, background 0.2s;
  }

  .committee-row:hover {
    border-color: rgba(184,150,12,0.3);
    background: rgba(184,150,12,0.03);
  }

  .cm-avatar {
    width: 80px; height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-blue), var(--mid-navy));
    border: 1px solid rgba(184,150,12,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    color: var(--gold-light);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
  }

  .cm-photo {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: top;
    border-radius: 50%;
  }

  .cm-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
  }

  .cm-name {
    font-family: 'Playfair Display', serif;
    font-size: 0.95rem;
    color: var(--cream);
    font-weight: 600;
  }

  .cm-meta {
    font-family: 'Cinzel', serif;
    font-size: 0.67rem;
    letter-spacing: 0.15em;
    color: var(--gold-light);
    text-transform: uppercase;
    opacity: 0.8;
  }
  


  /* ── COMMITTEE PHOTO LIGHTBOX ── */
  .cm-avatar.has-photo { cursor: zoom-in; }

  .cm-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
  }
  .cm-lightbox.open { display: flex; }

  .cm-lightbox-img {
    max-width: min(420px, 90vw);
    max-height: 80vh;
    border-radius: 12px;
    border: 2px solid rgba(184,150,12,0.4);
    box-shadow: 0 20px 60px rgba(0,0,0,0.7);
    object-fit: cover;
    animation: lbIn 0.2s ease;
  }

  .cm-lightbox-name {
    position: absolute;
    bottom: calc(50% - min(210px, 45vh) - 2.5rem);
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Cinzel', serif;
    font-size: 0.86rem;
    letter-spacing: 0.2em;
    color: var(--gold-light);
    text-transform: uppercase;
    white-space: nowrap;
  }

  .cm-lightbox-close {
    position: absolute;
    top: 1.2rem; right: 1.5rem;
    font-size: 1.8rem;
    color: var(--silver);
    cursor: pointer;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.2s;
  }
  .cm-lightbox-close:hover { opacity: 1; }

  @keyframes lbIn {
    from { transform: scale(0.85); opacity: 0; }
    to   { transform: scale(1);    opacity: 1; }
  }

  /* ── VENUE ── */
  .venue-section {
    background: var(--deep-navy);
  }

  .venue-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
    align-items: center;
  }

  .venue-visual {
    aspect-ratio: 4/3;
    background: 
      linear-gradient(135deg, rgba(30,58,95,0.8), rgba(10,14,26,0.9)),
      repeating-linear-gradient(0deg, transparent, transparent 40px, rgba(184,150,12,0.03) 40px, rgba(184,150,12,0.03) 41px),
      repeating-linear-gradient(90deg, transparent, transparent 40px, rgba(184,150,12,0.03) 40px, rgba(184,150,12,0.03) 41px);
    border: 1px solid rgba(192,192,192,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
  }

  .venue-visual-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-style: italic;
    color: var(--silver-dark);
    text-align: center;
    padding: 2rem;
    z-index: 1;
  }

  .venue-visual::before {
    content: '';
    position: absolute;
    inset: 20px;
    border: 1px solid rgba(184,150,12,0.2);
    pointer-events: none;
  }

  .venue-details h3 {
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    letter-spacing: 0.3em;
    color: var(--gold-light);
    text-transform: uppercase;
    margin-bottom: 1rem;
  }

  .venue-name {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 400;
    color: var(--cream);
    margin-bottom: 0.5rem;
    line-height: 1.2;
  }

  .venue-address {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    color: var(--silver-dark);
    margin-bottom: 2rem;
    line-height: 1.7;
  }

  .venue-info-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .venue-info-list li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
  }

  .vi-icon {
    color: var(--gold-light);
    font-size: 1rem;
    margin-top: 0.1rem;
    flex-shrink: 0;
  }

  .vi-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.05rem;
    color: var(--silver);
  }

  /* ── FOOTER ── */
  footer {
    background: #060810;
    padding: 2rem;
    text-align: center;
    position: relative;
  }

  footer::before {
    content: '';
    position: absolute;
    top: 0; left: 10%; right: 10%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gold-light), transparent);
  }

  .footer-logo {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    letter-spacing: 0.08em;
    color: var(--gold-light);
    margin-bottom: 0.5rem;
  }
  .footer-logo .fl-small {
    font-size: 0.78em;
    vertical-align: baseline;
  }

  .footer-sub {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    color: var(--silver-dark);
    margin-bottom: 0.5rem;
    font-style: italic;
  }

  .footer-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    list-style: none;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
  }

  .footer-links a {
    font-family: 'Cinzel', serif;
    font-size: 0.71rem;
    letter-spacing: 0.2em;
    color: var(--silver-dark);
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.3s;
  }

  .footer-links a:hover { color: var(--gold-light); }

  .footer-copy {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.9rem;
    color: rgba(192,192,192,0.3);
  }

  /* ── RESPONSIVE ── */
  @media (max-width: 768px) {
    nav { padding: 0.4rem 1rem; }
    .nav-links { display: none; }
    section { padding: 3rem 1.5rem; }
    .about-grid { grid-template-columns: 1fr; }
    .about-divider { display: none; }
    .about-block:last-child { margin-top: 2.5rem; }
    .timeline::before { left: 20px; }
    .timeline-item { grid-template-columns: 40px 1fr; }
    .timeline-item:nth-child(odd) .tl-content,
    .timeline-item:nth-child(even) .tl-content { grid-column: 2; text-align: left; }
    .tl-dot { grid-column: 1; }
    .tl-empty { display: none; }
    .venue-grid { grid-template-columns: 1fr; }
    .register-form { grid-template-columns: 1fr; }
    .form-group.full { grid-column: 1; }
    footer { padding: 2rem 1.5rem; }
  }

  /* ── ROLL OF HONOR ── */
  .honor-section {
    background: var(--mid-navy);
    position: relative;
  }

  .honor-section::before {
    content: '';
    position: absolute;
    top: 0; left: 10%; right: 10%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(192,192,192,0.2), transparent);
  }

  .honor-wrap {
    max-width: 1100px;
    margin: 0 auto;
  }

  /* Stats row */
  .honor-stats-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3.5rem;
    flex-wrap: wrap;
  }

  .honor-stat-item { text-align: center; }

  .honor-big-num {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--silver-light), var(--gold-light), var(--silver));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    line-height: 1;
  }

  .honor-big-label {
    font-family: 'Cinzel', serif;
    font-size: 0.71rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    color: var(--silver-dark);
    text-transform: uppercase;
    margin-top: 0.4rem;
  }

  .honor-stat-sep {
    width: 1px; height: 60px;
    background: linear-gradient(to bottom, transparent, var(--gold-light), transparent);
  }

  /* Search & filter bar */
  .honor-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    align-items: stretch;
  }

  .honor-search-wrap {
    flex: 1;
    min-width: 200px;
    position: relative;
  }

  .honor-search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--silver-dark);
    font-size: 0.91rem;
    pointer-events: none;
  }

  .honor-search {
    width: 100%;
    background: rgba(0,0,0,0.05);
    border: 1px solid var(--silver-dark);
    color: var(--cream);
    padding: 0.8rem 1rem 0.8rem 2.5rem;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
    -webkit-appearance: none;
    appearance: none;
  }
  /* Suppress browser-injected cancel (×) button for type=search */
  .honor-search::-webkit-search-cancel-button,
  .honor-search::-webkit-search-decoration { -webkit-appearance: none; display: none; }

  .honor-search::placeholder { color: var(--silver-dark); }
  .honor-search:focus { border-color: var(--gold-light); }

  .honor-dept-filters {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    align-items: center;
  }

  .dept-chip {
    font-family: 'Cinzel', serif;
    font-size: 0.64rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    padding: 0.45rem 0.85rem;
    border: 1px solid var(--silver-dark);
    background: transparent;
    color: var(--silver-dark);
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.2s;
    white-space: nowrap;
  }

  .dept-chip:hover {
    border-color: var(--gold-light);
    color: var(--gold-light);
  }

  .dept-chip.active {
    background: rgba(184,150,12,0.15);
    border-color: var(--gold-light);
    color: var(--gold-bright);
  }

  /* Table */
  .honor-table-wrap {
    overflow-x: auto;
    border: 1px solid rgba(128,128,128,0.2);
    margin-bottom: 1rem;
  }

  .honor-table {
    width: 100%;
    border-collapse: collapse;
  }

  .honor-table thead tr {
    background: rgba(184,150,12,0.07);
    border-bottom: 1px solid rgba(184,150,12,0.25);
  }

  .honor-table th {
    font-family: 'Cinzel', serif;
    font-size: 0.68rem;
    letter-spacing: 0.2em;
    color: var(--gold-light);
    text-transform: uppercase;
    padding: 0.9rem 1.2rem;
    text-align: left;
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
    position: relative;
    transition: color 0.2s;
  }

  .honor-table th:hover { color: var(--gold-bright); }

  .honor-table th .sort-icon {
    display: inline-block;
    margin-left: 0.4rem;
    opacity: 0.35;
    font-size: 0.66rem;
    transition: opacity 0.2s;
  }

  .honor-table th.sort-asc .sort-icon,
  .honor-table th.sort-desc .sort-icon { opacity: 1; color: var(--gold-bright); }

  .honor-table tbody tr {
    border-bottom: 1px solid rgba(192,192,192,0.05);
    transition: background 0.2s;
  }

  .honor-table tbody tr:hover { background: rgba(184,150,12,0.04); }

  .honor-table tbody tr:last-child { border-bottom: none; }

  .honor-table td {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    color: var(--cream);
    padding: 0.85rem 1.2rem;
    white-space: nowrap;
  }

  .td-reg {
    font-family: 'Cinzel', serif;
    font-size: 0.71rem;
    color: var(--silver-dark);
    letter-spacing: 0.1em;
  }

  .td-dept {
    display: inline-block;
    font-family: 'Cinzel', serif;
    font-size: 0.66rem;
    letter-spacing: 0.15em;
    padding: 0.2rem 0.6rem;
    border: 1px solid rgba(184,150,12,0.3);
    color: var(--gold-light);
    background: rgba(184,150,12,0.06);
    text-transform: uppercase;
  }

  .td-roll {
    font-family: 'Cinzel', serif;
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    color: var(--silver);
  }

  .td-name { font-weight: 600; font-size: 1.05rem; }

  .honor-table-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .honor-result-info {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--silver-dark);
    font-style: italic;
  }

  .honor-pagination {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .honor-page-btn {
    font-family: 'Cinzel', serif;
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.5rem 1.1rem;
    background: transparent;
    color: var(--silver);
    border: 1px solid rgba(192,192,192,0.2);
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
  }

  .honor-page-btn:hover:not(:disabled) { border-color: var(--gold-light); color: var(--gold-light); }
  .honor-page-btn:disabled { opacity: 0.3; cursor: default; }

  .honor-page-num {
    font-family: 'Cinzel', serif;
    font-size: 0.71rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--silver-dark);
    padding: 0 0.5rem;
  }

  .honor-no-results {
    text-align: center;
    padding: 3rem;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: var(--silver-dark);
    font-size: 1.1rem;
  }

  .honor-top3 {
    display: flex;
    gap: 1px;
    background: rgba(192,192,192,0.06);
    border: 1px solid rgba(192,192,192,0.08);
    margin-top: 2rem;
    overflow: hidden;
  }

  .top3-item {
    flex: 1;
    padding: 1.4rem 1.5rem;
    background: var(--deep-navy);
    display: flex;
    align-items: center;
    gap: 1.2rem;
    transition: background 0.3s;
  }

  .top3-item:hover { background: rgba(184,150,12,0.04); }

  .top3-medal {
    font-size: 1.8rem;
    flex-shrink: 0;
    line-height: 1;
  }

  .top3-info { flex: 1; min-width: 0; }

  .top3-dept {
    font-family: 'Cinzel', serif;
    font-size: 0.71rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 0.2rem;
  }

  .top3-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--cream);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .top3-count {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    flex-shrink: 0;
    line-height: 1;
  }

  .top3-item:nth-child(1) .top3-count { color: var(--gold-bright); }
  .top3-item:nth-child(2) .top3-count { color: var(--silver-light); }
  .top3-item:nth-child(3) .top3-count { color: #cd7f32; }

  @media (max-width: 600px) {
    .honor-top3 { flex-direction: column; }
  }

  /* ── LEADERBOARD ── */
  .leaderboard-section {
    background: var(--deep-navy);
    position: relative;
  }

  .leaderboard-section::before {
    content: '';
    position: absolute;
    top: 0; left: 10%; right: 10%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(184,150,12,0.3), transparent);
  }

  .leaderboard-wrap {
    max-width: 800px;
    margin: 0 auto;
  }

  .leaderboard-podium {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
  }

  .podium-item {
    text-align: center;
    flex: 1;
    max-width: 200px;
  }

  .podium-label {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.95rem;
    color: var(--silver);
    margin-bottom: 0.5rem;
    font-weight: 600;
  }

  .podium-count {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    display: block;
    margin-bottom: 0.3rem;
  }

  .podium-dept {
    font-family: 'Cinzel', serif;
    font-size: 0.66rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 0;
  }

  .podium-bar {
    margin-top: 0.8rem;
    border-top: 3px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 0.8rem;
  }

  .podium-rank {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    font-weight: 700;
  }

  .podium-item.rank-1 .podium-count { color: var(--gold-bright); }
  .podium-item.rank-1 .podium-bar { border-color: var(--gold-bright); }
  .podium-item.rank-1 .podium-rank { color: var(--gold-bright); }
  .podium-item.rank-1 .podium-label { font-size: 1.05rem; }

  .podium-item.rank-2 .podium-count { color: var(--silver-light); }
  .podium-item.rank-2 .podium-bar { border-color: var(--silver); }
  .podium-item.rank-2 .podium-rank { color: var(--silver); }

  .podium-item.rank-3 .podium-count { color: #cd7f32; }
  .podium-item.rank-3 .podium-bar { border-color: #cd7f32; }
  .podium-item.rank-3 .podium-rank { color: #cd7f32; }

  .leaderboard-bars {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .lb-row {
    display: grid;
    grid-template-columns: 2rem 1fr auto;
    align-items: center;
    gap: 1rem;
  }

  .lb-rank {
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    color: var(--silver-dark);
    text-align: center;
  }

  .lb-bar-wrap { position: relative; }

  .lb-dept-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--cream);
    margin-bottom: 0.3rem;
  }

  .lb-bar-track {
    height: 6px;
    background: rgba(0,0,0,0.07);
    border-radius: 3px;
    overflow: hidden;
  }

  .lb-bar-fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(to right, var(--accent-blue), var(--gold-light));
    width: 0%;
    transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .lb-row.rank-1 .lb-bar-fill { background: linear-gradient(to right, #7a6000, var(--gold-bright)); }
  .lb-row.rank-2 .lb-bar-fill { background: linear-gradient(to right, #555, var(--silver-light)); }
  .lb-row.rank-3 .lb-bar-fill { background: linear-gradient(to right, #7a4000, #cd7f32); }

  .lb-count {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gold-light);
    min-width: 40px;
    text-align: right;
  }

  /* ── SCROLL REVEAL ── */
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
  }
  .reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }
  /* ── NAV DROPDOWNS ── */
  .nav-dropdown-wrap { position: relative; }

  /* Invisible hover-bridge below the trigger — keeps dropdown open when
     the cursor travels downward from the trigger into the panel, without
     adding layout height (which was causing vertical mis-alignment). */
  .nav-dropdown-wrap::after {
    content: '';
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    height: 0.8rem;
  }

  .nav-dropdown-trigger { cursor: pointer; }

  .nav-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--nav-bg);
    border: 1px solid rgba(184,150,12,0.3);
    backdrop-filter: blur(12px);
    min-width: 200px;
    z-index: 1100;
    padding: 0.5rem 0;
    box-shadow: 0 8px 32px rgba(0,0,0,0.8);
    list-style: none;
    margin: 0;
  }

  .nav-dropdown-wrap:hover .nav-dropdown,
  .nav-dropdown.open { display: block; }

  .nav-dropdown li a {
    display: block;
    padding: 0.75rem 1.4rem;
    font-family: 'Cinzel', serif;
    font-size: 0.66rem;
    letter-spacing: 0.2em;
    /* nav-link-color is always light on nav-bg (always dark) */
    color: var(--nav-link-color) !important;
    text-transform: uppercase;
    white-space: nowrap;
    transition: color 0.2s, background 0.2s;
    text-decoration: none;
    cursor: pointer;
  }

  .nav-dropdown li a:hover {
    color: var(--nav-link-color) !important;
    background: rgba(255,255,255,0.08);
    opacity: 1;
  }

  /* ── NAV AUTH ── */
  .nav-auth {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
    flex-shrink: 0;
  }

  .nav-login-btn {
    font-family: 'Cinzel', serif;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.35rem 1rem;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%);
    background-size: 200% auto;
    color: var(--ink);
    border: none;
    cursor: pointer;
    transition: background-position 0.4s, transform 0.2s, box-shadow 0.3s;
    box-shadow: 0 4px 16px rgba(184,150,12,0.35);
  }

  .nav-login-btn:hover {
    background-position: right center;
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(184,150,12,0.5);
  }

  .nav-user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.15rem;
  }

  .nav-user-name {
    display: inline-block !important;
    font-family: 'Cinzel', serif;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    color: #FFD966;
    -webkit-text-fill-color: #FFD966;
    white-space: nowrap;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1;
    margin-top: 0.25rem;
  }

  .nav-logout-btn {
    font-family: 'Cinzel', serif;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.35rem 1rem;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%);
    background-size: 200% auto;
    color: var(--ink);
    border: none;
    cursor: pointer;
    transition: background-position 0.4s, transform 0.2s, box-shadow 0.3s;
    box-shadow: 0 4px 16px rgba(184,150,12,0.35);
    flex-shrink: 0;
  }

  .nav-logout-btn:hover {
    background-position: right center;
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(184,150,12,0.5);
  }

  .nav-reset-btn {
    font-family: 'Cinzel', serif;
    font-size: 0.64rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.45rem 1rem;
    background: transparent;
    color: var(--nav-link-color);
    border: 1px solid var(--nav-link-color);
    cursor: pointer;
    opacity: 0.85;
    transition: color 0.2s, border-color 0.2s, background 0.2s, opacity 0.2s;
  }

  .nav-reset-btn:hover {
    background: var(--nav-link-color);
    color: var(--nav-bg);
    opacity: 1;
  }

  .nav-register-btn {
    font-family: 'Cinzel', serif;
    font-size: 0.68rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink) !important;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    padding: 0.5rem 1.2rem;
    text-decoration: none;
    transition: opacity 0.2s;
  }

  .nav-register-btn:hover { opacity: 0.85; }

  /* ── AUTH MODALS ── */
  .auth-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 13000;
    background: rgba(10,14,26,0.92);
    backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    overscroll-behavior: contain;   /* stop scroll leaking through the backdrop */
  }

  .auth-modal.open { display: flex; }

  .auth-box {
    background: var(--deep-navy);
    border: 1px solid rgba(184,150,12,0.35);
    width: 100%;
    max-width: 440px;
    box-shadow: 0 20px 80px rgba(0,0,0,0.8);
    animation: modal-in 0.25s ease;
  }

  .auth-box-wide { max-width: 680px; }
  .auth-box-reg  { max-width: 900px; }

  .auth-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.1rem 1.5rem;
    border-bottom: 1px solid rgba(184,150,12,0.2);
    background: rgba(184,150,12,0.05);
  }

  .auth-title {
    font-family: 'Cinzel', serif;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    color: var(--gold-bright);
    text-transform: uppercase;
  }

  .auth-close {
    background: none;
    border: 1px solid rgba(128,128,128,0.35);
    color: var(--text-primary);
    font-size: 1.2rem;
    width: 30px; height: 30px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: border-color 0.2s, color 0.2s;
    line-height: 1;
    flex-shrink: 0;
  }

  .auth-close:hover { border-color: var(--gold-light); color: var(--gold-light); }

  .auth-body {
    padding: 1.8rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 80vh;
    overflow-y: auto;
    overscroll-behavior: contain;   /* prevent scroll chaining to background page */
  }

  .auth-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .auth-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
  }

  .auth-field label {
    font-family: 'Cinzel', serif;
    font-size: 0.70rem;
    letter-spacing: 0.2em;
    color: var(--silver-dark);
    text-transform: uppercase;
  }

  .auth-field input,
  .auth-field select,
  .auth-field textarea {
    background: rgba(0,0,0,0.06);
    border: 1px solid var(--silver-dark);
    color: var(--cream);
    padding: 0.7rem 0.9rem;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
    width: 100%;
  }

  .auth-field input:focus,
  .auth-field select:focus,
  .auth-field textarea:focus { border-color: var(--gold-light); }

  .auth-field select option { background: var(--deep-navy); color: var(--cream); }

  .auth-btn-primary {
    font-family: 'Cinzel', serif;
    font-size: 0.77rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 0.85rem 1.5rem;
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    border: none;
    cursor: pointer;
    width: 100%;
    transition: filter 0.25s, box-shadow 0.2s;
    box-shadow: 0 2px 16px rgba(0,0,0,0.25);
    margin-top: 0.3rem;
  }

  .auth-btn-primary:hover {
    filter: brightness(1.15);
    box-shadow: 0 4px 24px rgba(0,0,0,0.4);
  }

  .auth-btn-secondary {
    font-family: 'Cinzel', serif;
    font-size: 0.74rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 0.7rem 1.5rem;
    background: transparent;
    color: var(--silver-dark);
    border: 1px solid var(--silver-dark);
    cursor: pointer;
    width: 100%;
    margin-top: 0.5rem;
    transition: border-color 0.2s, color 0.2s;
  }

  .auth-btn-secondary:hover { border-color: var(--gold-light); color: var(--gold-light); }

  /* ── AUTH BUTTON ROW (side-by-side Login+Cancel) ── */
  .auth-btn-row {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
  }
  .auth-btn-row .auth-btn-primary,
  .auth-btn-row .auth-btn-secondary {
    flex: 1;
    width: auto;
    margin-top: 0;
  }

  /* ── TRIBUTE LIGHTBOX NAV ── */
  .tribute-lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(184,150,12,0.4);
    color: var(--gold-light);
    font-size: 2rem;
    width: 2.8rem;
    height: 2.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.2s;
    z-index: 10000;
    line-height: 1;
  }
  .tribute-lb-nav:hover { background: rgba(184,150,12,0.3); }
  .tribute-lb-nav.tribute-lb-prev { left: 1.5rem; }
  .tribute-lb-nav.tribute-lb-next { right: 1.5rem; }

  .auth-links {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.3rem;
  }

  .auth-links a {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.9rem;
    color: var(--silver-dark);
    text-decoration: none;
    font-style: italic;
    transition: color 0.2s;
  }

  .auth-links a:hover { color: var(--gold-light); }

  .auth-info {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    color: var(--silver-dark);
    font-style: italic;
    line-height: 1.6;
  }

  .auth-err {
    background: rgba(180,40,40,0.18);
    border: 1px solid rgba(220,80,80,0.5);
    color: var(--cream);
    padding: 0.6rem 0.9rem;
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.95rem;
  }

  .auth-success {
    background: rgba(40,140,80,0.18);
    border: 1px solid rgba(80,180,100,0.5);
    color: var(--cream);
    padding: 0.6rem 0.9rem;
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.95rem;
    line-height: 1.5;
  }

  /* ── FAQ ── */
  .faq-list { display: flex; flex-direction: column; }

  .faq-item {
    border-bottom: 1px solid rgba(192,192,192,0.08);
  }

  .faq-item:last-child { border-bottom: none; }

  .faq-q {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.1rem 0;
    cursor: pointer;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--cream);
    gap: 1rem;
    transition: color 0.2s;
    user-select: none;
  }

  .faq-q:hover { color: var(--gold-light); }

  .faq-arrow {
    font-size: 1.3rem;
    color: var(--gold-light);
    flex-shrink: 0;
    transition: transform 0.25s;
    line-height: 1;
  }

  .faq-item.open .faq-arrow { transform: rotate(45deg); }

  .faq-a {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    color: var(--silver-dark);
    line-height: 1.8;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s;
    padding-bottom: 0;
  }

  .faq-item.open .faq-a {
    max-height: 600px;
    padding-bottom: 1.1rem;
  }

  /* ── PAYMENT ── */
  .payment-tiers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
    margin-bottom: 0.5rem;
  }

  .payment-tier {
    border: 1px solid rgba(192,192,192,0.15);
    padding: 1rem 0.8rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    background: rgba(0,0,0,0.04);
  }

  .payment-tier:hover { border-color: rgba(184,150,12,0.4); background: rgba(184,150,12,0.04); }

  .payment-tier.selected {
    border-color: var(--gold-light);
    background: rgba(184,150,12,0.1);
  }

  .tier-label {
    font-family: Arial, sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.05em;
    color: var(--silver-dark);
    text-transform: uppercase;
    margin-bottom: 0.4rem;
  }

  .tier-price {
    font-family: Arial, sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--gold-light);
    margin-bottom: 0.3rem;
  }

  .payment-tier.selected .tier-price { color: var(--gold-bright); }

  .tier-note {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.88rem;
    color: var(--silver-dark);
    font-style: italic;
  }

  /* ── MEMORY WALL ── */
  .memwall-section {
    background: var(--mid-navy);
    position: relative;
  }

  .memwall-section::before {
    content: '';
    position: absolute;
    top: 0; left: 10%; right: 10%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(192,192,192,0.2), transparent);
  }

  .memwall-wrap { max-width: 1000px; margin: 0 auto; }

  .memwall-compose { margin-bottom: 3rem; }

  .memwall-compose-inner {
    background: rgba(0,0,0,0.04);
    border: 1px solid rgba(192,192,192,0.1);
    padding: 2rem;
  }

  .memwall-upload-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 1px dashed rgba(184,150,12,0.3);
    padding: 2.5rem 2rem;
    cursor: pointer;
    transition: border-color 0.3s, background 0.3s;
    background: rgba(184,150,12,0.02);
    margin-top: 0.5rem;
  }

  .memwall-upload-area:hover {
    border-color: rgba(184,150,12,0.6);
    background: rgba(184,150,12,0.05);
  }

  .memwall-upload-icon { font-size: 2.5rem; }

  .memwall-upload-text {
    font-family: 'Cinzel', serif;
    font-size: 0.74rem;
    letter-spacing: 0.25em;
    color: var(--gold-light);
    text-transform: uppercase;
    margin: 0;
  }

  .memwall-upload-hint {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.9rem;
    color: var(--silver-dark);
    font-style: italic;
    margin: 0;
  }

  .memwall-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
  }

  .memwall-photo-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border: 1px solid rgba(192,192,192,0.08);
    background: rgba(0,0,0,0.04);
  }

  .memwall-photo-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
  }

  .memwall-photo-item:hover img { transform: scale(1.05); }

  .memwall-photo-caption {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(10,14,26,0.88));
    padding: 1rem 0.7rem 0.5rem;
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.91rem;
    font-style: italic;
    color: var(--cream);
    opacity: 0;
    transition: opacity 0.3s;
  }

  .memwall-photo-item:hover .memwall-photo-caption { opacity: 1; }

  .memwall-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    font-style: italic;
    color: var(--silver-dark);
    border: 1px dashed rgba(192,192,192,0.1);
  }

  /* ── THEN & NOW FILM ROLL ── */
  .filmpoll-section {
    background: var(--mid-navy);
    position: relative;
    overflow: hidden;
  }
  .filmpoll-section::before {
    content: '';
    position: absolute;
    top: 0; left: 10%; right: 10%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(192,192,192,0.15), transparent);
  }

  /* Upload button */
  .film-upload-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    max-width: 900px;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    border: 1px dashed rgba(184,150,12,0.4);
    background: rgba(184,150,12,0.03);
    font-family: 'Cinzel', serif;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--gold-light);
    text-transform: uppercase;
    cursor: pointer;
    transition: border-color 0.3s, background 0.3s;
  }
  .film-upload-btn:hover { border-color: rgba(184,150,12,0.8); background: rgba(184,150,12,0.07); }

  /* Horizontal film roll */
  .filmroll {
    background: #0e0e0e;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 3px 16px rgba(0,0,0,0.7), inset 0 -3px 16px rgba(0,0,0,0.7);
    /* Safari: force GPU compositing on the container to prevent black-layer bug */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
  }

  .filmroll-sprocket-top,
  .filmroll-sprocket-bottom {
    position: absolute;
    left: 0; right: 0;
    height: 16px;
    background-image: repeating-linear-gradient(
      to right,
      transparent 0px, transparent 14px,
      #0e0e0e 14px, #0e0e0e 16px,
      rgba(0,0,0,0.10) 16px, rgba(0,0,0,0.10) 32px,
      #0e0e0e 32px, #0e0e0e 34px,
      transparent 34px, transparent 52px
    );
    z-index: 2;
    pointer-events: none;
  }
  .filmroll-sprocket-top { top: 0; }
  .filmroll-sprocket-bottom { bottom: 0; }

  .filmroll-track {
    display: flex;
    align-items: center;
    padding: 20px 16px;
    width: -webkit-max-content;
    width: max-content;
    -webkit-animation: filmscroll 40s linear infinite;
    animation: filmscroll 40s linear infinite;
    /* Safari: prevent black compositing layer during transform animation */
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }
  .filmroll-track:hover {
    -webkit-animation-play-state: paused;
    animation-play-state: paused;
  }

  @-webkit-keyframes filmscroll {
    from { -webkit-transform: translateX(0);    transform: translateX(0); }
    to   { -webkit-transform: translateX(-50%); transform: translateX(-50%); }
  }
  @keyframes filmscroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
  }

  /* One person = then frame + thin intra-sep + now frame */
  .tn-pair {
    display: flex;
    align-items: stretch;
    flex-shrink: 0;
  }

  .tn-frame {
    width: 190px;
    height: 155px;
    flex-shrink: 0;
    border: 3px solid #222;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.3s;
  }
  .tn-frame:hover { border-color: rgba(184,150,12,0.6); }
  .tn-frame img { width: 100%; height: 100%; object-fit: contain; object-position: center; background: #111; display: block; -webkit-transition: -webkit-transform 0.4s; transition: transform 0.4s; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
  .tn-frame:hover img { -webkit-transform: scale(1.05); transform: scale(1.05); }
  .tn-frame { position: relative; }
  /* Owner overlay — shows Edit/Delete on hover over the owner's pair */
  .tn-pair { position: relative; }
  .tn-owner-overlay {
    display: none;
    position: absolute;
    inset: 0;
    background: rgba(10,8,5,0.62);
    z-index: 12;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    border-radius: 4px;
    backdrop-filter: blur(2px);
  }
  .tn-pair:hover .tn-owner-overlay { display: flex; }
  .tn-owner-btn {
    padding: 0.45rem 1rem;
    border-radius: 4px;
    border: 1px solid rgba(184,150,12,0.6);
    background: rgba(10,8,5,0.8);
    color: var(--gold-light);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.84rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
  }
  .tn-owner-btn:hover { background: rgba(184,150,12,0.18); border-color: var(--gold-light); }
  .tn-owner-delete {
    border-color: rgba(200,60,60,0.5);
    color: #e07070;
  }
  .tn-owner-delete:hover { background: rgba(200,60,60,0.18); border-color: #e07070; }

  /* Tiny divider between Then and Now within one person */
  .tn-intra-sep {
    width: 6px;
    flex-shrink: 0;
    background: #0e0e0e;
    border-left: 1px solid rgba(184,150,12,0.15);
    border-right: 1px solid rgba(184,150,12,0.15);
  }

  /* Wide hatched gap between different people */
  .tn-person-gap {
    width: 40px;
    flex-shrink: 0;
    background: repeating-linear-gradient(
      45deg,
      transparent,
      transparent 4px,
      rgba(0,0,0,0.05) 4px,
      rgba(0,0,0,0.05) 8px
    );
    border-left: 2px solid rgba(0,0,0,0.10);
    border-right: 2px solid rgba(0,0,0,0.10);
  }

  /* Frame placeholders */
  .film-frame-inner {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, #1f1a0e, #2a2010);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    color: rgba(0,0,0,0.25);
  }
  .film-frame-inner span { font-size: 1.6rem; opacity: 0.25; }
  .film-frame-inner p { font-size: 0.71rem; letter-spacing: 0.2em; margin: 0; text-transform: uppercase; font-weight: 700; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,0.8); }
  .film-frame-inner-now { background: linear-gradient(135deg, #0e1520, #141e2e); }

  /* ── IN LOVING MEMORY ── */
  .tribute-section {
    background: var(--mid-navy);
    position: relative;
  }

  .tribute-section::before {
    content: '';
    position: absolute;
    top: 0; left: 10%; right: 10%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(192,192,192,0.15), transparent);
  }

  .tribute-wrap {
    max-width: 100%;
    margin: 0 auto;
    text-align: center;
    padding: 0;
    overflow: hidden;
  }

  .tribute-candle-row {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2.5rem;
    font-size: 2rem;
    animation: flicker 3s ease-in-out infinite alternate;
  }

  @keyframes flicker {
    0%   { opacity: 0.7; }
    50%  { opacity: 1; }
    100% { opacity: 0.8; }
  }

  /* ── Single horizontal row — scrolls on all screen sizes ── */
  .tribute-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.85rem;
    margin-bottom: 0.75rem;
    padding: 0.5rem 1.5rem 1.2rem;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    justify-content: safe center;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .tribute-row::-webkit-scrollbar { display: none; }

  /* ── Each photo card — fixed width, never shrinks ── */
  .tribute-photo-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    flex: 0 0 118px;       /* fixed width on desktop */
    scroll-snap-align: start;
  }

  .tribute-photo-frame {
    width: 100%;
    aspect-ratio: 3/4;
    background: rgba(240,237,228,0.7);
    border: 2px solid rgba(184,150,12,0.35);
    border-top: 3px solid rgba(184,150,12,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: rgba(255,255,255,0.3);
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s, transform 0.2s;
    padding: 0;
  }

  .tribute-photo-frame:hover {
    border-color: rgba(184,150,12,0.8);
    transform: scale(1.04);
  }

  .tribute-photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    filter: grayscale(20%);
  }

  /* ── Mobile: smaller card width, always scroll ── */
  @media (max-width: 768px) {
    .tribute-row {
      justify-content: flex-start;   /* left-align so scroll makes sense */
      padding: 0.4rem 1rem 1rem;
      gap: 0.6rem;
    }
    .tribute-photo-card { flex: 0 0 88px; }
  }
  @media (max-width: 480px) {
    .tribute-photo-card { flex: 0 0 78px; }
  }

  /* Lightbox */
  .tribute-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1rem;
    cursor: pointer;
  }
  .tribute-lightbox.open { display: flex; }
  .tribute-lightbox img {
    max-width: 85vw;
    max-height: 80vh;
    object-fit: contain;
    border: 2px solid rgba(184,150,12,0.5);
    box-shadow: 0 0 60px rgba(0,0,0,0.8);
  }
  .tribute-lightbox-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    color: var(--gold-light);
    letter-spacing: 0.2em;
  }
  .tribute-lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    font-size: 2rem;
    color: var(--silver-light);
    cursor: pointer;
    line-height: 1;
  }

  .tribute-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--cream);
    text-align: center;
    line-height: 1.3;
  }

  .tribute-dept {
    font-family: 'Cinzel', serif;
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    color: var(--silver-dark);
    text-transform: uppercase;
    text-align: center;
  }

  .tribute-note {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    color: var(--silver-dark);
    font-style: italic;
    margin-top: 1rem;
  }

  /* ── SPONSORS ── */
  .sponsors-section {
    background: var(--mid-navy);
    position: relative;
  }

  .sponsors-section::before {
    content: '';
    position: absolute;
    top: 0; left: 10%; right: 10%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(184,150,12,0.3), transparent);
  }

  .sponsors-wrap { max-width: 1100px; margin: 0 auto; }

  .sponsors-flat-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
  }

  .sponsor-flat-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    padding: 1.8rem 2.5rem;
    border-radius: 10px;
    border: none;
    height: 130px;
    box-sizing: border-box;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  }

  @media (max-width: 768px) {
    .sponsors-flat-row {
      grid-template-columns: 1fr;
      gap: 1rem;
      margin-bottom: 2rem;
    }
    .sponsor-flat-card {
      padding: 1.2rem 1.8rem;
      justify-content: center;
      height: 120px;
    }
    .sponsor-brand-name {
      font-size: 1.3rem;
      white-space: normal;
    }
    .sponsor-datahondo .sponsor-logo {
      height: 34px;
    }
  }

  .sponsor-flat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  }

  .sponsor-byterix  { background: linear-gradient(135deg, #0d1b3e 0%, #1a2d5a 100%); }
  .sponsor-datahondo { background: #FFE7D9; }
  .sponsor-quaisec  { background: linear-gradient(135deg, #1a5c38 0%, #2d7a50 100%); }

  .sponsor-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 0;
    background: transparent;
    flex-shrink: 0;
    padding: 0;
  }

  .sponsor-datahondo .sponsor-logo {
    height: 25px;
    width: auto;
    max-width: 80%;
    object-fit: contain;
    display: block;
  }
  @media (max-width: 768px) {
    .sponsor-datahondo .sponsor-logo {
      height: 26px;
      max-width: 85%;
    }
  }

  .sponsor-logo {
    height: 44px;
    width: 44px;
    object-fit: contain;
  }

  .sponsor-divider {
    display: none;
  }

  .sponsor-datahondo .sponsor-divider { display: none; }

  .sponsor-brand-name {
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #ffffff;
    text-transform: none;
    white-space: nowrap;
  }

  .sponsor-datahondo .sponsor-brand-name { color: #1a1a1a; }
  .sponsor-datahondo .dh-data  { color: #111111 !important; }
  .sponsor-datahondo .dh-hondo { color: #CC2020 !important; }

  .sponsors-contact {
    text-align: center;
    padding-top: 1rem;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    font-style: italic;
    color: var(--silver-dark);
  }

  /* ── PAYMENT MODAL DETAILS ── */
  .pay-methods { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0; }

  .pay-method-block {
    background: rgba(0,0,0,0.04);
    border: 1px solid rgba(192,192,192,0.1);
    padding: 1.2rem 1.4rem;
    margin-bottom: 0.5rem;
  }

  .pay-method-title {
    font-family: Arial, sans-serif;
    font-size: 0.84rem;
    letter-spacing: 0.05em;
    color: var(--gold-light);
    text-transform: uppercase;
    margin-bottom: 1rem;
  }

  .pay-details-grid { display: flex; flex-direction: column; gap: 0.5rem; }

  .pay-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    padding: 0.35rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.07);
  }

  .pay-detail-row:last-child { border-bottom: none; }

  .pay-detail-label {
    font-family: Arial, sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.03em;
    color: var(--silver-dark);
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .pay-detail-value {
    font-family: Arial, sans-serif;
    font-size: 0.95rem;
    color: var(--cream);
    text-align: right;
    font-weight: 600;
  }

  .pay-divider {
    text-align: center;
    font-family: Arial, sans-serif;
    font-size: 0.91rem;
    color: var(--silver-dark);
    padding: 0.6rem 0;
  }

  /* Payment modal info text — Arial, non-italic */
  #payment-modal .auth-info {
    font-family: Arial, sans-serif;
    font-style: normal;
    font-size: 0.9rem;
  }

  .pay-upi-row {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
  }

  .pay-qr-placeholder {
    width: 110px;
    height: 110px;
    flex-shrink: 0;
    border: 1px dashed rgba(184,150,12,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(184,150,12,0.04);
  }

  .pay-qr-inner {
    font-family: Arial, sans-serif;
    font-size: 0.91rem;
    font-style: normal;
    color: var(--silver-dark);
    text-align: center;
    line-height: 1.6;
  }

  .pay-qr-inner span { font-size: 0.9rem; opacity: 0.6; }

  .pay-upi-details { flex: 1; display: flex; flex-direction: column; gap: 0.3rem; }

  .pay-upi-hint {
    font-family: Arial, sans-serif;
    font-size: 0.91rem;
    font-style: normal;
    color: var(--silver-dark);
    margin-top: 0.6rem;
    line-height: 1.5;
  }

  .pay-note {
    margin-top: 1.2rem;
    padding: 0.9rem 1.2rem;
    background: rgba(184,150,12,0.06);
    border-left: 2px solid rgba(184,150,12,0.4);
    font-family: Arial, sans-serif;
    font-size: 0.92rem;
    font-style: normal;
    color: var(--cream);
    line-height: 1.6;
  }
  .pay-note strong, .pay-note span { font-family: Arial, sans-serif; font-style: normal; }

  .register-form-modal { display: flex; flex-direction: column; gap: 2.2rem; }

  /* 4-column grid for register modal rows */
  .auth-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
  }

  /* Register modal: typography & spacing upgrades (scoped to avoid affecting other modals) */
  .auth-box-reg .auth-field            { gap: 0.65rem; padding-top: 0.3rem; }
  .auth-box-reg .auth-field label      { font-size: 0.9rem; letter-spacing: 0.18em; }
  .auth-box-reg .auth-field input,
  .auth-box-reg .auth-field select     { font-size: 1.15rem; padding: 0.9rem 0.9rem; }
  .auth-box-reg .auth-grid             { gap: 1.2rem; }

  /* Register action buttons row */
  .reg-btn-row {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
  }

  .auth-btn-join {
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 0.9rem 1.5rem;
    background: linear-gradient(135deg, #1a6b3c, #27a85f, #1a6b3c);
    background-size: 200% auto;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    border: none;
    cursor: pointer;
    flex: 1;
    border-radius: 4px;
    transition: background-position 0.3s, box-shadow 0.2s;
    box-shadow: 0 2px 16px rgba(39,168,95,0.35);
  }
  .auth-btn-join:hover {
    background-position: right center;
    box-shadow: 0 4px 24px rgba(39,168,95,0.55);
  }

  .auth-btn-tweaksave {
    font-family: 'Cinzel', serif;
    font-size: 0.77rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 0.85rem 1.5rem;
    background: linear-gradient(135deg, #c8920a, #f0b429, #c8920a);
    background-size: 200% auto;
    color: var(--ink);
    border: none;
    cursor: pointer;
    flex: 1;
    border-radius: 4px;
    transition: background-position 0.3s, box-shadow 0.2s;
    box-shadow: 0 2px 16px rgba(240,180,41,0.35);
  }
  .auth-btn-tweaksave:hover {
    background-position: right center;
    box-shadow: 0 4px 24px rgba(240,180,41,0.55);
  }

  .auth-btn-maybe {
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 0.9rem 1.5rem;
    background: linear-gradient(135deg, #b52a3a, #e05060, #b52a3a);
    background-size: 200% auto;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    border: none;
    cursor: pointer;
    flex: 1;
    border-radius: 4px;
    transition: background-position 0.3s, box-shadow 0.2s;
    box-shadow: 0 2px 16px rgba(200,50,60,0.3);
  }
  .auth-btn-maybe:hover {
    background-position: right center;
    box-shadow: 0 4px 24px rgba(200,50,60,0.5);
  }

  /* ── Reveal Memories (Then & Now upload) modal ── */
  .tn-empty-msg {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 2.5rem 1rem;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.15rem;
    color: var(--silver-dark);
    letter-spacing: 0.06em;
    font-style: italic;
    text-align: center;
  }

  .tn-reveal-subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.05rem;
    color: var(--silver-dark);
    opacity: 0.75;
    text-align: center;
    margin-top: -0.5rem;
  }

  .tn-upload-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(128,128,128,0.06);
    border: 1px solid rgba(128,128,128,0.2);
    border-radius: 6px;
    padding: 0.65rem 0.9rem;
  }

  /* Each upload slot — card container */
  .tn-slot-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;   /* keep badge compact, not stretched */
    gap: 0.5rem;
    background: rgba(128,128,128,0.06);
    border: 1px solid rgba(128,128,128,0.18);
    border-radius: 8px;
    padding: 0.75rem 1rem;
  }
  /* File input & preview fill the full width of the slot */
  .tn-slot-wrap .tn-file-input-wrap,
  .tn-slot-wrap .tn-file-preview { width: 100%; align-self: stretch; }

  .tn-badge {
    font-family: 'Cinzel', serif;
    font-size: 0.73rem;
    letter-spacing: 0.12em;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-weight: 700;
    flex-shrink: 0;
    cursor: default;
    user-select: none;
  }
  .tn-badge-then {
    background: rgba(20,20,30,0.95);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
  }
  .tn-badge-now {
    background: #1a6b3c;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
  }

  .tn-file-input-wrap {
    flex: 1;
    min-width: 0;
  }
  .tn-file-input-wrap input[type="file"] {
    color: var(--cream);
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.97rem;
    width: 100%;
    cursor: pointer;
  }

  .tn-file-preview {
    margin-top: 0.35rem;
    background: rgba(128,128,128,0.15);
    border-radius: 4px;
    padding: 0.45rem 0.8rem;
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.98rem;
    color: var(--silver-dark);
    opacity: 0.8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border: 1px solid rgba(128,128,128,0.2);
  }
  .tn-file-preview.has-file { color: var(--cream); opacity: 1; }

  .tn-action-row {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.25rem;
  }

  .auth-btn-upload {
    font-family: 'Cinzel', serif;
    font-size: 0.74rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 0.85rem 1.2rem;
    background: linear-gradient(135deg, #c84b00, #f07020, #c84b00);
    background-size: 200% auto;
    color: #fff;
    border: none;
    cursor: pointer;
    flex: 1;
    border-radius: 999px;
    transition: background-position 0.3s, box-shadow 0.2s;
    box-shadow: 0 2px 16px rgba(200,75,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
  }
  .auth-btn-upload:hover {
    background-position: right center;
    box-shadow: 0 4px 24px rgba(200,75,0,0.6);
  }

  .auth-btn-clear {
    font-family: 'Cinzel', serif;
    font-size: 0.74rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 0.85rem 1.2rem;
    background: rgba(80,80,90,0.6);
    color: rgba(192,192,192,0.8);
    border: 1px solid rgba(192,192,192,0.15);
    cursor: pointer;
    border-radius: 999px;
    transition: background 0.2s, color 0.2s;
  }
  .auth-btn-clear:hover { background: rgba(100,100,110,0.8); color: var(--cream); }

  /* ── Progress bar ── */
  .tn-progress-bar-bg {
    background: rgba(255,255,255,0.08);
    border-radius: 10px;
    overflow: hidden;
    height: 8px;
    margin-top: 0.9rem;
  }
  .tn-progress-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ff9f1c, #ff4d4d);
    border-radius: 10px;
    transition: width 0.2s ease;
  }
  .tn-progress-text {
    font-family: 'Cinzel', serif;
    font-size: 0.70rem;
    letter-spacing: 0.15em;
    color: var(--silver-dark);
    display: block;
    text-align: right;
    margin-top: 0.3rem;
  }

  /* ── Confirm feature-in-carousel modal ── */
  .tn-confirm-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    z-index: 14000;
    align-items: center;
    justify-content: center;
    /* iOS safe-area: keep content clear of notch / home bar */
    padding: env(safe-area-inset-top, 1rem)
             env(safe-area-inset-right, 1rem)
             env(safe-area-inset-bottom, 1rem)
             env(safe-area-inset-left, 1rem);
  }
  .tn-confirm-overlay.open { display: flex; }

  .tn-confirm-box {
    background: linear-gradient(135deg, #1a0a3a, #0d1f3c);
    border: 1px solid rgba(184,150,12,0.35);
    border-radius: 16px;
    padding: 2rem 2.2rem;
    width: 90%;
    max-width: 360px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.8);
    animation: modal-in 0.22s ease;
    /* Scrollable on short landscape viewports */
    max-height: 90vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .tn-confirm-msg {
    font-family: 'Playfair Display', serif;
    font-size: 1.17rem;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    line-height: 1.55;
    margin-bottom: 1.5rem;
  }

  .tn-confirm-btns {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
  }

  .tn-confirm-yes {
    font-family: 'Cinzel', serif;
    font-size: 0.81rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 0.75rem 1.6rem;
    min-height: 44px; /* touch target */
    background: linear-gradient(90deg, #ff416c, #ff4b2b);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    touch-action: manipulation; /* removes 300ms tap delay */
    transition: transform 0.2s, box-shadow 0.2s;
  }
  .tn-confirm-yes:hover { transform: scale(1.04); box-shadow: 0 5px 18px rgba(255,75,43,0.45); }

  .tn-confirm-no {
    font-family: 'Cinzel', serif;
    font-size: 0.81rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 0.75rem 1.6rem;
    min-height: 44px; /* touch target */
    background: linear-gradient(90deg, #4a5568, #2d3748);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    touch-action: manipulation; /* removes 300ms tap delay */
    transition: transform 0.2s, box-shadow 0.2s;
  }
  .tn-confirm-no:hover { transform: scale(1.04); box-shadow: 0 5px 18px rgba(44,55,72,0.5); }

  /* Delete variant — red "Yes" button */
  .tn-confirm-danger {
    background: linear-gradient(90deg, #c0392b, #e74c3c) !important;
  }
  .tn-confirm-danger:hover { box-shadow: 0 5px 18px rgba(200,60,60,0.55) !important; }

  /* ── Landscape phones — limit box height so buttons stay on screen ── */
  @media (max-height: 500px) and (orientation: landscape) {
    .tn-confirm-box {
      padding: 1rem 1.2rem;
      max-height: 85vh;
    }
    .tn-confirm-msg {
      font-size: 0.98rem;
      margin-bottom: 0.8rem;
    }
    .tn-confirm-btns {
      flex-direction: row;
      gap: 0.5rem;
    }
    .tn-confirm-yes, .tn-confirm-no {
      padding: 0.5rem 1rem;
      font-size: 0.79rem;
    }
  }

  /* ── Delete-Both button inside upload modal ── */
  .tn-delete-both-btn {
    font-family: 'Cinzel', serif;
    font-size: 0.93rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.65rem 1.4rem;
    background: transparent;
    border: 1px solid rgba(200,60,60,0.5);
    color: #e07070;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
  }
  .tn-delete-both-btn:hover {
    background: rgba(200,60,60,0.12);
    border-color: #e07070;
    color: #ff9090;
  }

  @media (max-width: 700px) {
    .auth-grid-4 { grid-template-columns: 1fr 1fr; }
    .auth-box-reg { max-width: 98vw; }
  }
  @media (max-width: 480px) {
    .auth-grid-4 { grid-template-columns: 1fr; }
    .reg-btn-row  { flex-direction: column; }
    .tn-action-row { flex-direction: column; }
  }

  /* ═══════════════════════════════════════════
     ALUMNI VAULT
  ═══════════════════════════════════════════ */
  .vault-section {
    background: var(--mid-navy);
    position: relative;
    overflow: hidden;
  }
  .vault-section::before {
    content: '';
    position: absolute;
    top: 0; left: 10%; right: 10%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(192,192,192,0.15), transparent);
  }
  .vault-upload-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    padding: 0.75rem 1.5rem;
    border: 1px dashed rgba(184,150,12,0.4);
    background: rgba(184,150,12,0.03);
    font-family: 'Cinzel', serif;
    font-size: 0.74rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s, border-color 0.2s;
  }
  .vault-upload-btn:hover {
    background: rgba(184,150,12,0.08);
    border-color: rgba(184,150,12,0.7);
  }
  .vault-marquee-wrap {
    overflow: hidden;
    margin-bottom: 1.5rem;
    width: 100%;
    min-height: 160px;
    position: relative;
    /* Safari: use GPU-layer hints instead of isolation:isolate to avoid black-screen compositing */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
  }
  .vault-marquee {
    display: flex;
    gap: 1rem;
    width: -webkit-max-content;
    width: max-content;
    -webkit-animation: marquee 35s linear infinite;
    animation: marquee 35s linear infinite;
  }
  .vault-marquee.vault-marquee-reverse {
    -webkit-animation-name: marquee-reverse;
    animation-name: marquee-reverse;
    -webkit-animation-duration: 28s;
    animation-duration: 28s;
  }
  .vault-marquee:hover {
    -webkit-animation-play-state: paused;
    animation-play-state: paused;
  }
  .vault-photo-card {
    width: 200px;
    height: 160px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(184,150,12,0.2);
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.3s, border-color 0.2s;
    background: rgba(0,0,0,0.05);
  }
  .vault-photo-card:hover {
    transform: scale(1.04);
    border-color: rgba(184,150,12,0.55);
  }
  .vault-photo-card img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
  }
  .vault-photo-card .vault-placeholder {
    width: 100%; height: 100%;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 0.4rem;
    color: rgba(0,0,0,0.25);
    font-size: 1.8rem;
  }
  .vault-photo-card .vault-placeholder p {
    font-family: 'Cinzel', serif;
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(0,0,0,0.25);
  }
  .vault-del-btn {
    position: absolute; top: 5px; right: 5px;
    background: rgba(0,0,0,0.6);
    border: none; color: #fff;
    width: 20px; height: 20px;
    border-radius: 50%;
    font-size: 0.76rem; cursor: pointer;
    display: none; align-items: center; justify-content: center;
    z-index: 2;
  }
  .edit-mode .vault-del-btn { display: flex; }

  /* Vault lightbox */
  #tn-lightbox {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 9999;
    align-items: center; justify-content: center;
    flex-direction: column;
    gap: 1rem;
  }
  #tn-lightbox.open { display: flex; }
  #tn-lightbox img {
    max-width: 90vw;
    max-height: 82vh;
    border-radius: 6px;
    border: 1px solid rgba(184,150,12,0.3);
    object-fit: contain;
  }
  #tn-lb-label {
    color: var(--gold);
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    text-align: center;
  }
  #tn-lb-close {
    position: fixed; top: 1.2rem; right: 1.5rem;
    background: none; border: none;
    color: rgba(255,255,255,0.6);
    font-size: 2rem; cursor: pointer; z-index: 10000;
  }
  #tn-lb-prev, #tn-lb-next {
    position: fixed; top: 50%; transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.7);
    width: 2.5rem; height: 2.5rem;
    border-radius: 50%; font-size: 1.1rem;
    cursor: pointer; z-index: 10000;
    display: flex; align-items: center; justify-content: center;
  }
  #tn-lb-prev { left: 1rem; }
  #tn-lb-next { right: 1rem; }

  #vault-lightbox {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 9999;
    align-items: center; justify-content: center;
    flex-direction: column;
    gap: 1rem;
  }
  #vault-lightbox.open { display: flex; }
  #vault-lightbox img {
    max-width: 90vw;
    max-height: 82vh;
    border-radius: 6px;
    border: 1px solid rgba(184,150,12,0.3);
    object-fit: contain;
  }
  #vault-lb-caption {
    color: var(--gold);
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    text-align: center;
  }
  #vault-lb-close {
    position: fixed; top: 1.2rem; right: 1.5rem;
    background: none; border: none;
    color: rgba(255,255,255,0.6);
    font-size: 2rem; cursor: pointer; z-index: 10000;
  }
  #vault-lb-prev, #vault-lb-next {
    position: fixed; top: 50%; transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(0,0,0,0.25);
    color: rgba(255,255,255,0.7);
    width: 2.5rem; height: 2.5rem;
    border-radius: 50%; font-size: 1.1rem;
    cursor: pointer; z-index: 10000;
    display: flex; align-items: center; justify-content: center;
  }
  #vault-lb-prev { left: 1rem; }
  #vault-lb-next { right: 1rem; }


  /* ── CAMPUS CHRONICLES ── */


  .chronicles-section {
    background: var(--mid-navy);
    padding: 5rem 2rem 6rem;
    position: relative;
    overflow: hidden;
  }

  .chronicles-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
      transparent, transparent 39px,
      rgba(184,150,12,0.06) 39px, rgba(184,150,12,0.06) 40px
    );
    pointer-events: none;
  }

  .chronicles-section::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    left: clamp(1.5rem, 6vw, 5rem);
    width: 1px;
    background: rgba(180,60,60,0.18);
    pointer-events: none;
  }
  .chronicles-section .section-sub-italic {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.05rem;
    color: rgba(192,192,192,0.7);
    text-align: center;
    font-style: italic;
    margin-bottom: 3.5rem;
    position: relative;
  }

  /* ── LOCKED WRAPPER ── */
  .chronicles-locked {
    position: relative;
  }

  .chronicles-blur {
    filter: blur(7px);
    pointer-events: none;
    user-select: none;
    opacity: 0.45;
    position: relative;
  }

  /* ── Chronicles prev/next arrows (desktop only) ── */
  .chronicles-arrow {
    display: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 38px; height: 38px;
    border-radius: 50%;
    background: rgba(10,16,26,0.82);
    border: 1px solid rgba(184,150,12,0.4);
    color: var(--gold-light);
    font-size: 1.3rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
  }
  .chronicles-arrow:hover { background: rgba(184,150,12,0.18); border-color: rgba(184,150,12,0.75); }
  .chronicles-arrow-prev { left:  0.4rem; }
  .chronicles-arrow-next { right: 0.4rem; }
  @media (min-width: 769px) {
    .chronicles-arrow { display: flex; }
  }

  .chronicles-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    gap: 1rem;
    padding: 2rem;
  }

  .coming-soon-lock {
    font-size: 2.8rem;
    line-height: 1;
  }

  .coming-soon-badge {
    font-family: 'Cinzel', serif;
    font-size: 0.875rem;
    letter-spacing: 0.35em;
    color: var(--gold-light);
    background: rgba(184,150,12,0.1);
    border: 1px solid rgba(184,150,12,0.3);
    padding: 0.35rem 1.2rem;
  }

  .coming-soon-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.3rem, 3.5vw, 2rem);
    font-style: italic;
    color: var(--cream);
    text-align: center;
    line-height: 1.3;
  }

  .coming-soon-sub {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    color: white;
    font-style: italic;
    text-align: center;
  }

  .coming-soon-bar-wrap {
    width: clamp(200px, 40vw, 360px);
    height: 3px;
    background: rgba(255,255,255,0.08);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 0.5rem;
  }

  .coming-soon-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--gold), var(--gold-bright));
    border-radius: 2px;
    animation: fillBar 1.8s ease forwards 0.5s;
  }

  @keyframes fillBar {
    to { width: var(--bar-pct); }
  }

  .coming-soon-count {
    font-family: 'Cinzel', serif;
    font-size: 0.875rem;
    letter-spacing: 0.15em;
    color: white;
  }

  /* ── GRID & CARDS (blurred dummy) ── */
  .chronicles-grid {
    display: grid;
    grid-template-rows: 1fr 1fr;
    grid-auto-flow: column;
    grid-auto-columns: 295px;
    height: 660px;
    max-width: 1100px;
    margin: 0 auto;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 1.2rem 1.5rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 0.5rem 1.5rem 1rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    align-items: stretch;
  }
  .chronicles-grid::-webkit-scrollbar { display: none; }

  .chronicle-card {
    background: linear-gradient(160deg, #0f1828 0%, #131f30 60%, #0e1520 100%);
    border: 1px solid rgba(184,150,12,0.18);
    border-radius: 2px;
    padding: 2rem 1.75rem 1.5rem;
    position: relative;
    overflow: hidden;
    scroll-snap-align: start;
    min-width: 0;
    display: flex;
    flex-direction: column;
  }
  .chronicle-excerpt { flex: 1; }
  .chronicle-footer  { flex-shrink: 0; margin-top: auto; padding-top: 1rem; }

  /* Admin action buttons shown on each story card */
  .chron-admin-btns {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    display: flex;
    gap: 0.3rem;
    z-index: 5;
  }
  .chron-admin-btn {
    background: rgba(0,0,0,0.55);
    border: 1px solid rgba(184,150,12,0.35);
    border-radius: 4px;
    color: #c9a227;
    padding: 0.25rem 0.4rem;
    cursor: pointer;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
  }
  .chron-admin-btn svg { display:block; stroke:#c9a227; }
  .chron-admin-btn:hover { background: rgba(184,150,12,0.2); }
  .chron-del-btn { border-color: rgba(200,60,60,0.4); color: #e05555; }
  .chron-del-btn:hover { background: rgba(200,60,60,0.15); }

  /* Per-card themed colours — Card 1: olive green, Card 2: amber-teak, Card 3: deep navy, Card 4: wine-maroon */
  .chronicle-card.featured {
    background: linear-gradient(160deg, #1a3012 0%, #243c18 55%, #142808 100%) !important;
    border-color: rgba(110,190,80,0.45) !important;
  }
  .chronicles-grid .chronicle-card:nth-child(2) {
    background: linear-gradient(160deg, #2c1a06 0%, #3a2208 55%, #221408 100%) !important;
    border-color: rgba(210,160,20,0.45) !important;
  }
  .chronicles-grid .chronicle-card:nth-child(3) {
    background: linear-gradient(160deg, #0c1230 0%, #101a3e 55%, #080e24 100%) !important;
    border-color: rgba(90,120,220,0.45) !important;
  }
  .chronicles-grid .chronicle-card:nth-child(4) {
    background: linear-gradient(160deg, #28080e 0%, #380c14 55%, #200610 100%) !important;
    border-color: rgba(210,70,100,0.45) !important;
  }
  .chronicles-grid .chronicle-card:nth-child(5) {
    background: linear-gradient(160deg, #061a1a 0%, #0a2828 55%, #041212 100%) !important;
    border-color: rgba(40,180,160,0.45) !important;
  }
  .chronicles-grid .chronicle-card:nth-child(6) {
    background: linear-gradient(160deg, #150826 0%, #1e1038 55%, #0e0618 100%) !important;
    border-color: rgba(140,80,220,0.45) !important;
  }

  .chronicle-card.featured {
    border-color: rgba(110,190,80,0.55) !important;
  }

  .chronicle-dept {
    font-family: 'Cinzel', serif;
    font-size: 0.875rem;
    letter-spacing: 0.22em;
    color: var(--gold-light);
    margin-bottom: 0.8rem;
    opacity: 0.85;
    text-align: center;
  }

  .chronicle-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--cream);
    line-height: 1.4;
    margin-bottom: 1rem;
    text-align: center;
  }

  .chronicle-excerpt {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    font-weight: 400;
    color: rgba(240,240,240,0.95);
    line-height: 1.75;
    font-style: italic;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .chronicle-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid rgba(184,150,12,0.12);
  }

  .chronicle-author {
    font-family: 'Cinzel', serif;
    font-size: 0.875rem;
    letter-spacing: 0.12em;
    color: #E8E8E8;
    opacity: 1;
    text-align: right;
    margin-left: auto;
  }

  .featured-badge {
    display: inline-block;
    font-family: 'Cinzel', serif;
    font-size: 0.875rem;
    letter-spacing: 0.25em;
    color: var(--gold-bright);
    background: rgba(184,150,12,0.1);
    border: 1px solid rgba(184,150,12,0.25);
    padding: 0.2rem 0.6rem;
    margin-bottom: 1rem;
  }

  .featured-left { display: flex; flex-direction: column; }
  .featured-right {
    border-left: 1px solid rgba(184,150,12,0.15);
    padding-left: 2rem;
  }

  .pull-quote {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-style: italic;
    color: var(--cream);
    line-height: 1.6;
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .pull-quote::before {
    content: '\201C';
    position: absolute;
    left: 0; top: -0.3rem;
    font-size: 3rem;
    color: var(--gold-light);
    opacity: 0.5;
    line-height: 1;
  }

  .corner {
    position: absolute;
    top: 0.75rem; right: 0.9rem;
    font-size: 1rem;
    opacity: 0.3;
  }


    to { opacity: 1; transform: translateY(0); }
  





  /* ── MAGNIFIER BUBBLE ── */
  /* note: .mini-vol-row position:relative is set in the base rule above */
  .mini-vol-name.has-bubble { position: relative; overflow: visible; }

  .vol-bubble {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) scale(0.5);
    transform-origin: bottom center;
    width: 100px; height: 100px;
    border-radius: 50%;
    overflow: hidden;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.22s cubic-bezier(0.34,1.5,0.64,1);
    box-shadow: 0 0 0 3px rgba(184,150,12,0.55),
                0 0 0 6px rgba(184,150,12,0.12),
                0 12px 32px rgba(0,0,0,0.85);
    z-index: 200;
  }
  .mini-vol-row:hover .vol-bubble {
    opacity: 1;
    transform: translateX(-50%) scale(1);
    pointer-events: auto;
  }
  .vol-bubble img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
  }
  .vol-bubble.no-photo {
    background: linear-gradient(135deg, #0d1828, #111e30);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .vol-bubble-ini {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: rgba(184,150,12,0.45);
  }

  /* ── Committee scroll-reveal: auto-show bubble on active row ── */
  .mini-vol-row.scroll-active .vol-bubble {
    opacity: 1;
    transform: translateX(-50%) scale(1);
    pointer-events: auto;
  }

  /* ── VOLUNTEER PHOTO LIGHTBOX ── */
  .vol-bubble img { cursor: zoom-in; }

  #vol-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.88);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
  }
  #vol-lightbox.open { display: flex; }

  #vol-lightbox-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    animation: volLbIn 0.22s cubic-bezier(0.34,1.4,0.64,1);
  }
  @keyframes volLbIn {
    from { opacity:0; transform: scale(0.85); }
    to   { opacity:1; transform: scale(1); }
  }

  #vol-lightbox-img {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    box-shadow: 0 0 0 3px rgba(184,150,12,0.6),
                0 0 0 7px rgba(184,150,12,0.15),
                0 24px 60px rgba(0,0,0,0.9);
  }
  #vol-lightbox-name {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    font-weight: 600;
    color: #d4aa20;
    letter-spacing: 0.08em;
    text-align: center;
  }
  #vol-lightbox-role {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 0.9rem;
    color: rgba(240,235,224,0.6);
    text-align: center;
    margin-top: -0.5rem;
  }
  #vol-lightbox-close {
    position: absolute;
    top: -2.5rem;
    right: -1rem;
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    font-size: 1.6rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
  }
  #vol-lightbox-close:hover { color: #d4aa20; }

  /* ── PALETTE FONT-SIZE CONTROLS (Issue 13) ── */
  .pal-fontsize-row {
    display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.45rem;
  }
  .pal-fontsize-row label { flex: 1; font-family: 'Cormorant Garamond', serif; font-size: 0.88rem; color: #C8B890; }
  .pal-fontsize-btn {
    width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
    background: rgba(184,150,12,0.12); border: 1px solid rgba(184,150,12,0.3);
    color: #C8A000; font-size: 1rem; cursor: pointer; border-radius: 4px;
    transition: background 0.2s;
  }
  .pal-fontsize-btn:hover { background: rgba(184,150,12,0.25); }
  .pal-fontsize-val {
    min-width: 38px; text-align: center; font-family: 'Cormorant Garamond', serif;
    font-size: 0.9rem; color: #E8E0D0;
  }

  /* ── MOBILE HAMBURGER BUTTON ── */
  .nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px; height: 22px;
    background: transparent;
    border: 1.5px solid rgba(139,100,0,0.5);
    border-radius: 3px;
    padding: 3px 4px;
    cursor: pointer;
    flex-shrink: 0;
    margin-left: 0.5rem;
  }
  .nav-hamburger span {
    display: block;
    height: 2px; width: 100%;
    background: var(--nav-link-color);
    border-radius: 1px;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }
  .nav-hamburger.open span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
  .nav-hamburger.open span:nth-child(2) { opacity: 0; }
  .nav-hamburger.open span:nth-child(3) { transform: translateY(-4px) rotate(-45deg); }

/* ─────────────────────────────────────────────────────────────────────────
   MOBILE RESPONSIVE  (Issue 16)
   ───────────────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  /* ── Global overflow containment on mobile ── */
  html, body { overflow-x: hidden !important; max-width: 100vw; }
  section { overflow-x: hidden; }
  .about-section, .committee-section, .schedule-section,
  .filmpoll-section, .vault-section, .chronicles-section { overflow-x: hidden !important; }

  /* ── Nav ── */
  nav {
    padding: 0.7rem 1rem !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    align-items: center !important;
    overflow: visible !important;
    position: fixed !important;
    top: 0 !important; left: 0 !important; right: 0 !important;
    z-index: 1000 !important;
  }
  .nav-hamburger {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    width: 30px !important; height: 22px !important;
    padding: 3px 4px !important;
    flex-shrink: 0 !important;
    margin-left: 0.5rem !important;
    order: 2;
  }
  .nav-left { flex: 1; min-width: 0; overflow: hidden; order: 1; }
  .nav-logo  { font-size: 0.72rem !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .nav-batch { font-size: 0.64rem !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .nav-auth { order: 3; flex-shrink: 0; margin-left: 0.4rem; }
  .nav-user-info { flex-direction: column !important; gap: 0.12rem !important; align-items: flex-end !important; }
  .nav-user-name  { display: inline-block !important; font-size: 0.6rem !important; max-width: 72px !important; }
  .nav-logout-btn { font-size: 0.62rem !important; padding: 0.28rem 0.7rem !important; letter-spacing: 0.09em !important; }
  .nav-links {
    display: none !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    position: absolute !important;
    top: 100% !important; left: 0 !important; right: 0 !important;
    background: var(--nav-bg) !important;
    border-top: 2px solid rgba(200,152,0,0.4) !important;
    border-bottom: 1px solid rgba(0,0,0,0.1) !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.14) !important;
    z-index: 998 !important;
    padding: 0.25rem 0 0.75rem !important;
    list-style: none !important;
    margin: 0 !important;
    gap: 0 !important;
    width: 100% !important;
    order: 99;
  }
  .nav-links.mobile-open { display: flex !important; }
  .nav-links > li > a,
  .nav-links > li > .nav-dropdown-trigger {
    display: block !important;
    padding: 0.6rem 1.1rem !important;
    color: var(--nav-link-color) !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.12em !important;
    border-bottom: 1px solid rgba(0,0,0,0.08) !important;
    text-transform: uppercase !important;
    text-align: left !important;
  }
  /* Sub-dropdowns — inline on mobile */
  .nav-dropdown-wrap { padding-bottom: 0; }
  .nav-links.mobile-open .nav-dropdown {
    position: static !important;
    display: block !important;
    background: rgba(200,152,0,0.07) !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    width: 100% !important;
    min-width: unset !important;
    transform: none !important;
  }
  .nav-links.mobile-open .nav-dropdown li a,
  .nav-links.mobile-open .nav-dropdown a {
    display: block !important;
    padding: 0.48rem 2.2rem !important;
    color: var(--nav-link-color) !important;
    font-size: 0.74rem !important;
    text-align: left !important;
    font-weight: 700 !important;
    border-bottom: 1px solid rgba(0,0,0,0.05) !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
  }
  /* disable CSS hover on mobile (only click/toggle works) */
  .nav-dropdown-wrap:hover .nav-dropdown { display: none; }
  .nav-dropdown.open { display: block !important; }

  /* ── Hero ── */
  .hero-split { height: auto; min-height: 320px; }
  .hero-split-left {
    width: 100%; padding: 3rem 1.5rem 2.5rem;
    clip-path: none;  /* remove diagonal clip on mobile — show full-width background */
    position: relative; /* take out of absolute flow on mobile */
    inset: auto;
  }
  .hero-split-right { width: 100%; height: 200px; position: relative; top: auto; right: auto; }
  .hero-split-diagonal { display: none; }
  .hero-title { font-size: 2rem; }

  /* ── Section padding — reduce for mobile ── */
  section { padding: 3rem 1.5rem; }

  /* ── Schedule — mobile: full-width padding ── */
  .sched-outer { padding: 0 0.4rem; }

  /* ── Honor section ── */
  .honor-stats-row { flex-direction: column; gap: 1.2rem; text-align: center; }
  .honor-stat-sep { display: none; }
  .honor-top3 { flex-direction: column; align-items: stretch; }
  .honor-controls { flex-direction: column; }
  .honor-table { font-size: 0.86rem; }

  /* ── Auth modals ── */
  .auth-box { margin: 0 auto; max-width: calc(100vw - 1rem) !important; }
  .auth-grid, .auth-grid-4 { grid-template-columns: 1fr !important; }
  .auth-body { padding: 1.2rem 1rem; max-height: calc(100vh - 8rem); overflow-y: auto; }
  .reg-btn-row { flex-direction: column; gap: 0.5rem; }
  /* Center modals below the fixed nav bar */
  .auth-modal {
    align-items: flex-start !important;
    padding: 3.5rem 0.75rem 1rem !important;
    overflow-y: auto !important;
    z-index: 13000 !important;
  }

  /* ── Then & Now manage row ── */
  .tn-upload-row { flex-direction: column; gap: 0.5rem; }

  /* ── Alumni Vault / filmroll carousel ── */
  .filmroll { overflow: hidden; }
  .tn-frame { width: 145px; height: 118px; }
  .tn-intra-sep { width: 3px; }
  .tn-person-gap { width: 14px; }
  .tn-owner-btn { padding: 0.35rem 0.65rem; font-size: 0.66rem; }
  .film-frame-inner p { font-size: 0.66rem; }

  /* ── Then & Now upload modal ── */
  .tn-slot-wrap { flex-direction: column; align-items: flex-start; }
  .tn-confirm-btns { gap: 0.5rem; }
  .tn-confirm-box { padding: 1.6rem 1.4rem; }
  .tn-delete-both-btn { font-size: 0.85rem; padding: 0.6rem 1.1rem; }

  /* ── Palette panel ── */
  #admin-palette-panel { width: calc(100vw - 3rem) !important; right: 1rem; }

  /* ── Stats sections ── */
  .section-heading { font-size: 1.8rem; }
  .section-sub { font-size: 0.95rem; }

  /* ── Payment tiers ── */
  .payment-tiers { grid-template-columns: 1fr !important; }

  /* ── Campus Chronicles — horizontal scroll on mobile ── */
  .chronicles-section {
    overflow: visible !important;   /* don't clip grid's scroll container */
    padding-left: 0 !important; padding-right: 0 !important;
  }
  .chronicles-blur { overflow: visible !important; }
  .chronicles-grid {
    display: grid !important;
    grid-template-rows: 1fr 1fr !important;
    grid-auto-flow: column !important;
    grid-auto-columns: 72vw !important;
    height: 560px !important;
    overflow-x: auto !important; overflow-y: hidden !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 0.8rem !important;
    padding: 0 1rem 0.8rem !important;
    width: 100vw !important; max-width: 100vw !important;
    box-sizing: border-box !important;
    scrollbar-width: none !important;
    align-items: stretch !important;
  }
  .chronicles-grid::-webkit-scrollbar { display: none !important; }
  .chronicle-card { scroll-snap-align: start !important; min-width: 0 !important; }
  .chronicle-card.featured { border-color: rgba(110,190,80,0.55) !important; }

  /* ── Social left widget — hide on small screens ── */
  .social-left-widget { display: none; }

  /* ── Fixed right-side widgets — hidden on mobile; revealed via toggle tab ── */
  .countdown-widget, .yt-widget, .rembook-widget, .insta-widget { display: none !important; }

  /* Mobile widget toggle tab — right side, 15% from top */
  .mobile-widget-toggle {
    position: fixed !important; top: 15vh; right: 0;
    z-index: 9991 !important; background: #8B5E00 !important;
    touch-action: none !important;
    border: 2px solid #C89800 !important; border-right: none !important;
    border-radius: 6px 0 0 6px !important;
    padding: 0.45rem 0.8rem !important; font-size: 0.71rem !important;
    color: #ffffff !important; -webkit-text-fill-color: #ffffff !important;
    cursor: pointer !important; font-family: 'Cinzel', serif !important;
    letter-spacing: 0.06em !important; white-space: nowrap !important;
    display: flex !important; align-items: center !important; gap: 0.3rem !important;
    box-shadow: -3px 3px 12px rgba(0,0,0,0.35) !important;
    user-select: none !important; font-weight: 700 !important;
  }

  /* When body.widgets-open: show each widget with mobile-optimised sizing */
  .widgets-open .countdown-widget {
    display: flex !important; position: fixed !important;
    top: calc(15vh + 2.95rem) !important; right: 0 !important; bottom: auto !important;
    height: auto !important;
    flex-direction: column !important; align-items: center !important;
    padding: 0.5rem 0.7rem !important;
    width: 160px !important; max-width: 160px !important; overflow: hidden !important;
    background: rgba(10,14,26,0.96) !important;
    border: 1px solid rgba(184,150,12,0.4) !important;
    border-right: none !important; border-radius: 4px 0 0 0 !important;
    box-shadow: -2px 2px 8px rgba(0,0,0,0.3) !important; gap: 0 !important;
  }
  .widgets-open .cw-label {
    font-size: 0.38rem !important; letter-spacing: 0.18em !important;
    color: #FFD966 !important; -webkit-text-fill-color: #FFD966 !important;
    margin-bottom: 0.2rem !important; white-space: nowrap !important; opacity: 1 !important;
  }
  .widgets-open .cw-grid {
    display: flex !important; flex-direction: row !important;
    align-items: flex-end !important; gap: 0.2rem !important; flex-wrap: nowrap !important;
  }
  .widgets-open .cw-unit {
    display: flex !important; flex-direction: column !important;
    align-items: center !important; min-width: 26px !important;
  }
  .widgets-open .cw-num {
    font-size: 1.1rem !important; font-weight: 700 !important;
    color: #ffffff !important; -webkit-text-fill-color: #ffffff !important;
    background: none !important; -webkit-background-clip: unset !important;
    background-clip: unset !important; line-height: 1 !important;
  }
  .widgets-open .cw-lbl {
    font-size: 0.3rem !important; letter-spacing: 0.08em !important;
    color: #cccccc !important; -webkit-text-fill-color: #cccccc !important;
    margin-top: 0.1rem !important;
  }
  .widgets-open .cw-sep {
    font-size: 0.9rem !important; color: rgba(184,150,12,0.7) !important;
    -webkit-text-fill-color: rgba(184,150,12,0.7) !important;
    line-height: 1 !important; margin-bottom: 0.45rem !important; align-self: flex-end !important;
  }
  .widgets-open .rembook-widget {
    display: flex !important; position: fixed !important;
    top: calc(15vh + 7.25rem) !important; bottom: auto !important; right: 0 !important;
    height: auto !important; width: 110px !important;
    padding: 0.5rem 0.6rem !important;
    flex-direction: column !important; align-items: center !important;
    gap: 0.25rem !important;
    background: rgba(10,14,26,0.96) !important;
    border: 1px solid rgba(184,150,12,0.4) !important;
    border-right: none !important; border-radius: 0 !important;
    box-shadow: -2px 2px 8px rgba(0,0,0,0.3) !important;
  }
  .widgets-open .insta-widget {
    display: flex !important; position: fixed !important;
    top: calc(15vh + 11.75rem) !important; bottom: auto !important; right: 0 !important;
    height: auto !important; width: 110px !important;
    padding: 0.5rem 0.6rem !important;
    flex-direction: column !important; align-items: center !important;
    gap: 0.25rem !important;
    background: rgba(10,14,26,0.96) !important;
    border: 1px solid rgba(238,42,123,0.35) !important;
    border-right: none !important; border-radius: 0 !important;
    box-shadow: -2px 2px 8px rgba(0,0,0,0.3) !important;
    text-decoration: none !important;
  }
  .widgets-open .yt-widget {
    display: flex !important; position: fixed !important;
    top: calc(15vh + 16.25rem) !important; bottom: auto !important; right: 0 !important;
    height: auto !important; width: 110px !important;
    padding: 0.5rem 0.6rem !important;
    flex-direction: column !important; align-items: center !important;
    gap: 0.25rem !important;
    background: rgba(10,14,26,0.96) !important;
    border: 1px solid rgba(255,0,0,0.35) !important;
    border-right: none !important; border-radius: 0 0 0 4px !important;
    box-shadow: -2px 2px 8px rgba(0,0,0,0.3) !important;
  }
  .widgets-open .rembook-title, .widgets-open .insta-title, .widgets-open .yt-title {
    display: block !important;
    color: #f0e4c0 !important; -webkit-text-fill-color: #f0e4c0 !important;
    font-size: 0.52rem !important;
  }
  .widgets-open .rembook-icon svg { width: 22px !important; height: 26px !important; }
  .widgets-open .insta-icon svg   { width: 22px !important; height: 22px !important; }
  .widgets-open .yt-widget > svg  { width: 24px !important; height: 17px !important; }

  /* ── Footer ── */
  .footer-links { flex-wrap: wrap; justify-content: center; gap: 0.8rem 1.5rem; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.4rem; }
  .honor-big-num { font-size: 2rem; }
  .nav-left { gap: 0.5rem; }
  .nav-logo { font-size: 0.64rem; }
  .nav-batch { font-size: 0.60rem; }
  section { padding: 2.5rem 1rem; }
  .td-roll, .td-reg { font-size: 0.78rem; }
  .auth-btn-primary, .auth-btn-join { padding: 0.7rem 1rem; font-size: 0.77rem; }
  /* Payment modal — stack pay detail rows */
  .pay-detail-row { flex-direction: column; gap: 0.2rem; align-items: flex-start; }
  .pay-detail-value { text-align: left; word-break: break-all; }
  .pay-upi-row { flex-direction: column; }
  .payment-tiers { grid-template-columns: 1fr; }
  /* Honor table — make it more readable on narrow phones */
  .honor-table th, .honor-table td { padding: 0.6rem 0.7rem; font-size: 0.78rem; }
  .honor-page-btn { padding: 0.5rem 0.75rem; font-size: 0.71rem; }
  .dept-chip { font-size: 0.64rem; padding: 0.4rem 0.7rem; }
  /* Palette panel on small phones */
  #admin-palette-panel { width: calc(100vw - 1rem) !important; right: 0.5rem !important; }

  /* ── Filmroll carousel — compact frames on small phones ── */
  .tn-frame { width: 110px; height: 90px; }
  .tn-person-gap { width: 8px; }
  .film-frame-inner span { font-size: 1.2rem; }
  .film-frame-inner p { font-size: 0.64rem; letter-spacing: 0.12em; }
  .tn-owner-btn { padding: 0.3rem 0.5rem; font-size: 0.62rem; }

  /* ── Then & Now confirm popups — stack buttons vertically ── */
  .tn-confirm-btns { flex-direction: column; align-items: stretch; }
  .tn-confirm-yes, .tn-confirm-no { width: 100%; text-align: center; font-size: 0.85rem; }
  .tn-confirm-box { width: 92%; padding: 1.4rem 1.1rem; }
  .tn-confirm-msg { font-size: 1.02rem; }

  /* ── Upload modal — full-width action buttons ── */
  .tn-action-row { flex-direction: column; gap: 0.5rem; }
  .auth-btn-upload, .auth-btn-clear { width: 100%; justify-content: center; }
  .tn-delete-both-btn { width: 100%; text-align: center; font-size: 0.89rem; }

  /* ── Vault upload button ── */
  .vault-upload-btn { font-size: 0.68rem; padding: 0.8rem 1.2rem; }
}

/* ══════════════════════════════════════════════════════════════
   LIGHT THEME PALETTE  —  html[data-theme="light"]
   Reference: reconnect-light-theme / reconnect-site
   Functionality unchanged; only colours & surfaces differ.
   ══════════════════════════════════════════════════════════════ */

/* ── CSS variable overrides ── */
html[data-theme="light"] {
  --deep-navy:       #FAFAF8;
  --mid-navy:        #F3F3F0;
  --accent-blue:     #444444;
  --gold:            #C89800;
  --gold-light:      #C89800;
  --gold-bright:     #F0B800;
  --silver:          #FFFFFF;
  --silver-light:    #FFFFFF;
  --silver-dark:     #DDDDDD;
  --cream:           #111111;
  --ivory:           #FAFAF8;
  --nav-bg:          #FAFAF8;
  --nav-link-color:  #111111;
  --text-primary:    #111111;
  --btn-primary-bg:  #C89800;
  --btn-primary-text:#111111;
  --hero-text-shadow: rgba(0,0,0,0);
}

/* ── Base ── */
html[data-theme="light"] body { background: #FAFAF8 !important; color: #111111 !important; }
html[data-theme="light"] body::before { opacity: 0.04 !important; }

/* ── Navigation ── */
html[data-theme="light"] nav {
  background: rgba(250,250,248,0.97) !important;
  border-bottom: 1px solid rgba(17,17,17,0.08) !important;
  backdrop-filter: none !important;
}
html[data-theme="light"] .nav-batch { color: #8B4513 !important; -webkit-text-fill-color: #8B4513 !important; font-weight: 900 !important; -webkit-text-stroke: 0.4px #8B4513 !important; text-shadow: none !important; }
html[data-theme="light"] .nav-logo { color: #8B4513 !important; -webkit-text-fill-color: #8B4513 !important; font-weight: 900 !important; }
html[data-theme="light"] .nav-links a { color: #111111 !important; -webkit-text-fill-color: #111111 !important; font-weight: 600 !important; }
html[data-theme="light"] .nav-links a:hover,
html[data-theme="light"] .nav-links a:hover { color: #F0B800 !important; -webkit-text-fill-color: #F0B800 !important; opacity: 1 !important; filter: none !important; }
html[data-theme="light"] .nav-dropdown { background: rgba(250,250,248,0.99) !important; border-color: rgba(17,17,17,0.10) !important; box-shadow: 0 8px 24px rgba(0,0,0,0.12) !important; }
html[data-theme="light"] .nav-dropdown a { color: #111111 !important; -webkit-text-fill-color: #111111 !important; font-weight: 600 !important; }
html[data-theme="light"] .nav-dropdown a:hover { color: #F0B800 !important; -webkit-text-fill-color: #F0B800 !important; }
html[data-theme="light"] .nav-login-btn { background: linear-gradient(135deg, #B88800, #F0B800, #B88800) !important; background-size: 200% auto !important; color: #111111 !important; -webkit-text-fill-color: #111111 !important; font-weight: 700 !important; border: none !important; }
html[data-theme="light"] .nav-logout-btn { background: linear-gradient(135deg, #B88800, #F0B800, #B88800) !important; background-size: 200% auto !important; color: #111111 !important; -webkit-text-fill-color: #111111 !important; font-weight: 700 !important; border: none !important; }
html[data-theme="light"] .nav-user-name { display: inline-block !important; color: #3B4A2F !important; -webkit-text-fill-color: #3B4A2F !important; }
html[data-theme="light"] .nav-hamburger { color: #111111 !important; -webkit-text-fill-color: #111111 !important; }
html[data-theme="light"] .nav-bell-btn { color: #111111 !important; }
html[data-theme="light"] .nav-bell-dot { border-color: rgba(250,250,248,0.95) !important; }
html[data-theme="light"] .nav-links > li + li { border-left-color: rgba(17,17,17,0.18) !important; }
html[data-theme="light"] .mobile-nav-open { background: rgba(250,250,248,0.98) !important; }
/* Mobile nav — separators & sub-menu bg visible on cream */
html[data-theme="light"] .nav-links > li { border-bottom-color: rgba(17,17,17,0.08) !important; }
html[data-theme="light"] .nav-links { border-top-color: rgba(17,17,17,0.10) !important; }
html[data-theme="light"] .nav-dropdown { background: rgba(240,238,230,0.95) !important; border-left-color: rgba(17,17,17,0.12) !important; }

/* ── Hero ── */
html[data-theme="light"] .hero-split { background: #1C2A15 !important; }
html[data-theme="light"] .hero-split-left { background: #3B4A2F !important; }
html[data-theme="light"] .hero-cta-bar    { background: #2E3B24 !important; border-top: 1px solid rgba(255,255,255,0.08) !important; }
html[data-theme="light"] .hero-25 {
  background: linear-gradient(135deg, #E8E8E8 0%, #C8A000 35%, #F4ECC0 55%, #C8A000 75%, #E8E8E8 100%) !important;
  -webkit-background-clip: text !important; -webkit-text-fill-color: transparent !important;
  background-clip: text !important; background-size: 200% auto !important;
}
html[data-theme="light"] .hero-years  { color: rgba(255,255,255,0.88) !important; -webkit-text-fill-color: rgba(255,255,255,0.88) !important; }
html[data-theme="light"] .hero-tagline { color: rgba(255,255,255,0.80) !important; -webkit-text-fill-color: rgba(255,255,255,0.80) !important; }
html[data-theme="light"] .hero-title  { color: #FFFFFF !important; -webkit-text-fill-color: #FFFFFF !important; opacity: 1 !important; text-shadow: 0 2px 12px rgba(0,0,0,0.5) !important; }
html[data-theme="light"] .hero-date   { color: rgba(255,255,255,0.85) !important; -webkit-text-fill-color: rgba(255,255,255,0.85) !important; opacity: 1 !important; }
html[data-theme="light"] .hero-divider { background: linear-gradient(90deg, transparent, #C8A000, transparent) !important; opacity: 1 !important; }
html[data-theme="light"] .hero-cta-bar .btn-primary  { background: linear-gradient(135deg, #9A7800, #C8A000, #7A5E00) !important; color: #1A1200 !important; -webkit-text-fill-color: #1A1200 !important; }
html[data-theme="light"] .hero-cta-bar .btn-secondary,
html[data-theme="light"] .hero-cta-bar a.btn-secondary { color: #FFFFFF !important; -webkit-text-fill-color: #FFFFFF !important; border-color: rgba(255,255,255,0.65) !important; font-weight: 700 !important; background: transparent !important; }
html[data-theme="light"] .hero-cta-bar .btn-secondary:hover,
html[data-theme="light"] .hero-cta-bar a.btn-secondary:hover { color: #F0B800 !important; -webkit-text-fill-color: #F0B800 !important; border-color: #F0B800 !important; }
html[data-theme="light"] .hero-cta .btn-secondary,
html[data-theme="light"] .hero-cta a.btn-secondary { color: #FFFFFF !important; -webkit-text-fill-color: #FFFFFF !important; border-color: rgba(255,255,255,0.65) !important; font-weight: 700 !important; }
html[data-theme="light"] .hero-cta .btn-secondary:hover,
html[data-theme="light"] .hero-cta a.btn-secondary:hover { color: #F0B800 !important; -webkit-text-fill-color: #F0B800 !important; border-color: #F0B800 !important; }

/* ── Section text ── */
html[data-theme="light"] .section-heading {
  background: linear-gradient(135deg, #3B4A2F 0%, #6B8A50 45%, #3B4A2F 100%) !important;
  -webkit-background-clip: text !important; -webkit-text-fill-color: transparent !important;
  background-clip: text !important; background-size: 200% auto !important;
}
html[data-theme="light"] .section-label  { color: #5c724a !important; -webkit-text-fill-color: #5c724a !important; font-weight: 700 !important; opacity: 1 !important; margin-bottom: 0.5rem !important; }
html[data-theme="light"] .section-sub,
html[data-theme="light"] .section-sub.reveal { color: rgba(17,17,17,0.72) !important; -webkit-text-fill-color: rgba(17,17,17,0.72) !important; font-weight: 600 !important; opacity: 1 !important; }
html[data-theme="light"] .schedule-section .section-heading { margin-bottom: 0.4rem !important; }
html[data-theme="light"] .schedule-section .section-sub { margin-bottom: 1.8rem !important; }
html[data-theme="light"] p   { color: rgba(17,17,17,0.78) !important; font-weight: 500 !important; }
html[data-theme="light"] li  { color: rgba(17,17,17,0.78) !important; font-weight: 500 !important; }
html[data-theme="light"] h2,
html[data-theme="light"] h3,
html[data-theme="light"] h4  { color: #111111 !important; }

/* ── All section backgrounds — uniform light ── */
html[data-theme="light"] .about-section,
html[data-theme="light"] .schedule-section,
html[data-theme="light"] .honor-section,
html[data-theme="light"] .filmpoll-section,
html[data-theme="light"] .vault-section,
html[data-theme="light"] .memories-section,
html[data-theme="light"] .committee-section,
html[data-theme="light"] .sponsors-section,
html[data-theme="light"] .faq-section { background: #FAFAF8 !important; }
/* ::after is the "25" watermark text — must stay transparent so it doesn't paint over stat boxes */
html[data-theme="light"] .about-section::after,
html[data-theme="light"] .about-section::before { background: transparent !important; }
html[data-theme="light"] .chronicles-section { background: #F3F3F0 !important; }
html[data-theme="light"] .chronicles-section::after { background: rgba(200,152,0,0.35) !important; }
html[data-theme="light"] .chronicles-section::before { background-image: repeating-linear-gradient(transparent, transparent 39px, rgba(200,152,0,0.08) 39px, rgba(200,152,0,0.08) 40px) !important; }
html[data-theme="light"] .chronicles-section .section-sub-italic { color: rgba(17,17,17,0.65) !important; -webkit-text-fill-color: rgba(17,17,17,0.65) !important; }
html[data-theme="light"] .coming-soon-sub   { color: white !important; -webkit-text-fill-color: white !important; }
html[data-theme="light"] .coming-soon-count { color: white !important; -webkit-text-fill-color: white !important; }
html[data-theme="light"] .coming-soon-bar-wrap { background: rgba(17,17,17,0.10) !important; }
/* Chronicles light-theme: blur fully opaque, featured card dark brown, overlay title white */
html[data-theme="light"] .chronicles-blur { opacity: 1 !important; filter: blur(6px) !important; }
html .chronicles-blur.chronicles-unlocked,
html[data-theme="light"] .chronicles-blur.chronicles-unlocked { filter: none !important; opacity: 1 !important; pointer-events: auto !important; }
/* Per-card colours in light theme */
html[data-theme="light"] .chronicle-card.featured,
html[data-theme="light"] .chronicles-grid .chronicle-card:nth-child(1) {
  background: linear-gradient(160deg, #1a3012 0%, #243c18 55%, #142808 100%) !important;
  border-color: rgba(110,190,80,0.55) !important;
}
html[data-theme="light"] .chronicles-grid .chronicle-card:nth-child(2) {
  background: linear-gradient(160deg, #2c1a06 0%, #3a2208 55%, #221408 100%) !important;
  border-color: rgba(210,160,20,0.55) !important;
}
html[data-theme="light"] .chronicles-grid .chronicle-card:nth-child(3) {
  background: linear-gradient(160deg, #0c1230 0%, #101a3e 55%, #080e24 100%) !important;
  border-color: rgba(90,120,220,0.55) !important;
}
html[data-theme="light"] .chronicles-grid .chronicle-card:nth-child(4) {
  background: linear-gradient(160deg, #28080e 0%, #380c14 55%, #200610 100%) !important;
  border-color: rgba(210,70,100,0.55) !important;
}
html[data-theme="light"] .chronicles-grid .chronicle-card:nth-child(5) {
  background: linear-gradient(160deg, #061a1a 0%, #0a2828 55%, #041212 100%) !important;
  border-color: rgba(40,180,160,0.55) !important;
}
html[data-theme="light"] .chronicles-grid .chronicle-card:nth-child(6) {
  background: linear-gradient(160deg, #150826 0%, #1e1038 55%, #0e0618 100%) !important;
  border-color: rgba(140,80,220,0.55) !important;
}
html[data-theme="light"] .coming-soon-title { color: #FFFFFF !important; -webkit-text-fill-color: #FFFFFF !important; }
html[data-theme="light"] .featured-badge { color: #F0B800 !important; -webkit-text-fill-color: #F0B800 !important; background: rgba(240,184,0,0.10) !important; }
html[data-theme="light"] .leaderboard-section { background: #FAFAF8 !important; }
html[data-theme="light"] .tribute-section     { background: #FAFAF8 !important; }
html[data-theme="light"] .tribute-section::before { display: none !important; }

/* ── Dark cards on light background ── */
html[data-theme="light"] .tl-card,
html[data-theme="light"] .faq-item,
html[data-theme="light"] .committee-card,
html[data-theme="light"] .vol-card,
html[data-theme="light"] .sponsor-card,
html[data-theme="light"] .auth-modal .auth-box ~ * { /* not auth-box itself */
  background: #333333 !important;
  border-color: rgba(240,184,0,0.22) !important;
  box-shadow: 0 4px 24px rgba(0,0,0,0.18) !important;
}
html[data-theme="light"] .tl-card *,
html[data-theme="light"] .faq-item *,
html[data-theme="light"] .committee-card *,
html[data-theme="light"] .vol-card *,
html[data-theme="light"] .sponsor-card *,
html[data-theme="light"] .chronicle-card * { color: #FFFFFF !important; -webkit-text-fill-color: #FFFFFF !important; }

/* ── Memory cards — olive green variants ── */
html[data-theme="light"] .memory-card { border-color: rgba(92,114,74,0.4) !important; }
html[data-theme="light"] .memory-card:nth-child(7n+1) .memory-card-inner { background: linear-gradient(135deg, #3B4A2F, #4E6040) !important; }
html[data-theme="light"] .memory-card:nth-child(7n+2) .memory-card-inner { background: linear-gradient(135deg, #4A5230, #5c6640) !important; }
html[data-theme="light"] .memory-card:nth-child(7n+3) .memory-card-inner { background: linear-gradient(135deg, #2E3D24, #3d5030) !important; }
html[data-theme="light"] .memory-card:nth-child(7n+4) .memory-card-inner { background: linear-gradient(135deg, #44543A, #566847) !important; }
html[data-theme="light"] .memory-card:nth-child(7n+5) .memory-card-inner { background: linear-gradient(135deg, #3a4a28, #4c5e36) !important; }
html[data-theme="light"] .memory-card:nth-child(7n+6) .memory-card-inner { background: linear-gradient(135deg, #2a3820, #384a2c) !important; }
html[data-theme="light"] .memory-card:nth-child(7n+0) .memory-card-inner { background: linear-gradient(135deg, #506040, #627852) !important; }
html[data-theme="light"] .memory-card-inner,
html[data-theme="light"] .memory-card * { color: #ffffff !important; -webkit-text-fill-color: #ffffff !important; }
html[data-theme="light"] .tribute-dept { color: rgba(255,255,255,0.95) !important; -webkit-text-fill-color: rgba(255,255,255,0.95) !important; }
html[data-theme="light"] .chronicle-dept,
html[data-theme="light"] .memory-author,
html[data-theme="light"] .mini-vol-section-header { color: #F0B800 !important; -webkit-text-fill-color: #F0B800 !important; }
/* Chronicle card text — light theme explicit overrides */
html[data-theme="light"] .chronicle-title  { color: #FFFFFF !important; -webkit-text-fill-color: #FFFFFF !important; }
html[data-theme="light"] .chronicle-excerpt { color: #FFFFFF !important; -webkit-text-fill-color: #FFFFFF !important; opacity: 1 !important; }
html[data-theme="light"] .chronicle-author { color: #FFFFFF !important; -webkit-text-fill-color: #FFFFFF !important; font-weight: 700 !important; opacity: 1 !important; }
/* Story modal body text — brown on cream background */
html[data-theme="light"] .story-modal-title { color: #1a1000 !important; -webkit-text-fill-color: #1a1000 !important; }
html[data-theme="light"] .story-modal-content p { color: #1a1000 !important; -webkit-text-fill-color: #1a1000 !important; font-style: normal !important; font-weight: 700 !important; }

/* ── Day separator badges ── */
html[data-theme="light"] .day-sep-badge { background: #DCDCDC !important; border-color: rgba(200,152,0,0.45) !important; }
html[data-theme="light"] .day-sep-num {
  background: linear-gradient(135deg, #8A6400, #C89800) !important;
  -webkit-background-clip: text !important; -webkit-text-fill-color: transparent !important; background-clip: text !important; font-weight: 700 !important;
}
html[data-theme="light"] .day-sep-date { color: #333333 !important; -webkit-text-fill-color: #333333 !important; font-weight: 600 !important; opacity: 1 !important; }
html[data-theme="light"] .day-sep-line { background: linear-gradient(to right, transparent, rgba(200,152,0,0.45)) !important; }
html[data-theme="light"] .day-sep-line.right { background: linear-gradient(to left, transparent, rgba(200,152,0,0.45)) !important; }

/* ── Honor Roll table ── */
html[data-theme="light"] .honor-table-wrap { background: #D8D8D8 !important; border-color: rgba(0,0,0,0.12) !important; }
html[data-theme="light"] .honor-table th { background: #555555 !important; color: #FFFFFF !important; -webkit-text-fill-color: #FFFFFF !important; font-weight: 700 !important; border-color: rgba(255,255,255,0.12) !important; }
html[data-theme="light"] .honor-table td { color: #111111 !important; -webkit-text-fill-color: #111111 !important; font-weight: 600 !important; border-color: rgba(0,0,0,0.08) !important; }
html[data-theme="light"] .honor-table tbody tr:nth-child(even) td { background: rgba(0,0,0,0.05) !important; }
html[data-theme="light"] .honor-table tbody tr:hover td { background: rgba(200,152,0,0.12) !important; }
html[data-theme="light"] .td-dept { color: #333333 !important; -webkit-text-fill-color: #333333 !important; border: 1.5px solid #C89800 !important; padding: 1px 7px !important; border-radius: 3px !important; font-weight: 700 !important; }
html[data-theme="light"] .td-reg  { color: #444444 !important; -webkit-text-fill-color: #444444 !important; font-weight: 700 !important; }

/* ── Honor stats ── */
html[data-theme="light"] .honor-big-num  { background: linear-gradient(135deg, #333333, #C89800, #111111) !important; -webkit-background-clip: text !important; -webkit-text-fill-color: transparent !important; background-clip: text !important; }
html[data-theme="light"] .honor-big-label{ color: #111111 !important; -webkit-text-fill-color: #111111 !important; font-weight: 700 !important; }
html[data-theme="light"] .honor-stat-sep  { background: linear-gradient(to bottom, transparent, rgba(17,17,17,0.2), transparent) !important; }
html[data-theme="light"] .stat-num  { color: #C89800 !important; -webkit-text-fill-color: #C89800 !important; font-weight: 700 !important; }
html[data-theme="light"] .stat-desc { color: #111111 !important; -webkit-text-fill-color: #111111 !important; font-weight: 700 !important; }
html[data-theme="light"] .stat-box  { border-color: rgba(17,17,17,0.12) !important; }

/* ── Dept filter chips ── */
html[data-theme="light"] .dept-chip       { color: #111111 !important; -webkit-text-fill-color: #111111 !important; border-color: rgba(17,17,17,0.35) !important; background: transparent !important; font-weight: 700 !important; }
html[data-theme="light"] .dept-chip:hover { color: #C89800 !important; -webkit-text-fill-color: #C89800 !important; border-color: #C89800 !important; }
html[data-theme="light"] .dept-chip.active{ background: rgba(240,184,0,0.15) !important; border-color: #F0B800 !important; color: #111111 !important; -webkit-text-fill-color: #111111 !important; }

/* ── Honor search + pagination ── */
html[data-theme="light"] .honor-search          { background: rgba(17,17,17,0.06) !important; border-color: rgba(17,17,17,0.20) !important; color: #111111 !important; -webkit-text-fill-color: #111111 !important; font-weight: 600 !important; }
html[data-theme="light"] .honor-search::placeholder { color: rgba(17,17,17,0.40) !important; }
html[data-theme="light"] .honor-search-icon     { color: rgba(17,17,17,0.45) !important; -webkit-text-fill-color: rgba(17,17,17,0.45) !important; }
html[data-theme="light"] .honor-result-info     { color: #111111 !important; -webkit-text-fill-color: #111111 !important; font-weight: 600 !important; }
html[data-theme="light"] .honor-page-btn        { color: #111111 !important; -webkit-text-fill-color: #111111 !important; border-color: rgba(17,17,17,0.35) !important; font-weight: 700 !important; }
html[data-theme="light"] .honor-page-btn:hover:not(:disabled) { color: #C89800 !important; -webkit-text-fill-color: #C89800 !important; border-color: #C89800 !important; }
html[data-theme="light"] .honor-page-num        { color: #111111 !important; -webkit-text-fill-color: #111111 !important; font-weight: 700 !important; }

/* ── Top 3 / Podium ── */
html[data-theme="light"] .honor-top3     { gap: 8px !important; background: transparent !important; border: none !important; }
html[data-theme="light"] .top3-item      { background: rgba(200,152,0,0.08) !important; border: 1.5px solid rgba(200,152,0,0.45) !important; border-radius: 6px !important; }
html[data-theme="light"] .top3-item:hover{ background: rgba(200,152,0,0.14) !important; }
html[data-theme="light"] .top3-item:nth-child(1) { border-color: #C89800 !important; }
html[data-theme="light"] .top3-item:nth-child(2) { border-color: #999999 !important; }
html[data-theme="light"] .top3-item:nth-child(3) { border-color: #9B6A2A !important; }
html[data-theme="light"] .top3-name { color: #111111 !important; -webkit-text-fill-color: #111111 !important; font-weight: 700 !important; }
html[data-theme="light"] .top3-dept { color: #8A6400 !important; -webkit-text-fill-color: #8A6400 !important; font-weight: 700 !important; }
html[data-theme="light"] .top3-item:nth-child(1) .top3-count { color: #B87800 !important; -webkit-text-fill-color: #B87800 !important; }
html[data-theme="light"] .top3-item:nth-child(2) .top3-count { color: #666666 !important; -webkit-text-fill-color: #666666 !important; }
html[data-theme="light"] .top3-item:nth-child(3) .top3-count { color: #8B4513 !important; -webkit-text-fill-color: #8B4513 !important; }
html[data-theme="light"] .podium-label { color: rgba(17,17,17,0.65) !important; -webkit-text-fill-color: rgba(17,17,17,0.65) !important; font-weight: 700 !important; }

/* ── Leaderboard rows ── */
html[data-theme="light"] .lb-row       { background: rgba(200,152,0,0.08) !important; border: 1px solid rgba(200,152,0,0.25) !important; border-radius: 6px !important; padding: 0.7rem 1rem !important; }
html[data-theme="light"] .lb-row:hover { background: rgba(200,152,0,0.14) !important; }
html[data-theme="light"] .lb-dept-name { color: #111111 !important; -webkit-text-fill-color: #111111 !important; font-weight: 700 !important; }
html[data-theme="light"] .lb-rank      { color: rgba(17,17,17,0.55) !important; -webkit-text-fill-color: rgba(17,17,17,0.55) !important; font-weight: 700 !important; }
html[data-theme="light"] .lb-count     { color: #8A6400 !important; -webkit-text-fill-color: #8A6400 !important; font-weight: 700 !important; }
html[data-theme="light"] .lb-bar-track { background: rgba(17,17,17,0.10) !important; }

/* ── Committee ── */
html[data-theme="light"] .committee-convenors .committee-row { background: rgba(200,152,0,0.07) !important; border: 1.5px solid rgba(200,152,0,0.55) !important; border-radius: 6px !important; box-shadow: 0 2px 12px rgba(200,152,0,0.12) !important; }
html[data-theme="light"] .committee-convenors .committee-row:hover { background: rgba(200,152,0,0.12) !important; border-color: #C89800 !important; }
html[data-theme="light"] .committee-row { background: #DCDCDC !important; border-color: rgba(17,17,17,0.14) !important; }
html[data-theme="light"] .committee-row:hover { background: #D0D0D0 !important; border-color: rgba(200,152,0,0.40) !important; }
html[data-theme="light"] .cm-name { color: #111111 !important; -webkit-text-fill-color: #111111 !important; font-weight: 700 !important; }
html[data-theme="light"] .cm-meta { color: #8A6400 !important; -webkit-text-fill-color: #8A6400 !important; opacity: 1 !important; font-weight: 700 !important; }
html[data-theme="light"] .committee-convenors .cm-name { color: #111111 !important; -webkit-text-fill-color: #111111 !important; font-weight: 700 !important; font-size: 1rem !important; }
html[data-theme="light"] .committee-convenors .cm-meta { color: #8A6400 !important; -webkit-text-fill-color: #8A6400 !important; opacity: 1 !important; font-weight: 700 !important; }

/* ── Core members / vol list ── */
html[data-theme="light"] .mini-vol-list { background: #D8D8D8 !important; border: 1px solid rgba(0,0,0,0.12) !important; border-radius: 10px !important; box-shadow: 0 2px 12px rgba(0,0,0,0.08) !important; }
html[data-theme="light"] .mini-vol-section-header { background: #555555 !important; color: #FFFFFF !important; -webkit-text-fill-color: #FFFFFF !important; border-color: rgba(255,255,255,0.12) !important; font-weight: 700 !important; }
html[data-theme="light"] .mini-vol-row,
html[data-theme="light"] .mini-vol-row:nth-child(even),
html[data-theme="light"] .mini-vol-row:nth-child(odd) { background: transparent !important; border-bottom-color: rgba(0,0,0,0.08) !important; }
html[data-theme="light"] .mini-vol-row:hover { background: rgba(200,152,0,0.10) !important; }
html[data-theme="light"] .mini-vol-name { color: #111111 !important; -webkit-text-fill-color: #111111 !important; font-weight: 700 !important; }
html[data-theme="light"] .mvbadge-vol,
html[data-theme="light"] .mvbadge-dept { background: rgba(200,152,0,0.18) !important; color: #6B4A00 !important; -webkit-text-fill-color: #6B4A00 !important; border: 1px solid rgba(200,152,0,0.45) !important; font-weight: 700 !important; }

/* ── Tribute ── */
html[data-theme="light"] .tribute-name { color: #111111 !important; -webkit-text-fill-color: #111111 !important; font-weight: 700 !important; }
html[data-theme="light"] .tribute-dept { color: rgba(17,17,17,0.62) !important; -webkit-text-fill-color: rgba(17,17,17,0.62) !important; font-weight: 600 !important; }

/* ── Sponsors ── */
html[data-theme="light"] .sponsor-card { background: #333333 !important; border-color: rgba(240,184,0,0.22) !important; }
html[data-theme="light"] .sponsor-card * { color: #FFFFFF !important; -webkit-text-fill-color: #FFFFFF !important; }
html[data-theme="light"] .sponsors-contact { color: #111111 !important; -webkit-text-fill-color: #111111 !important; font-weight: 600 !important; }

/* ── Buttons ── */
html[data-theme="light"] .btn-primary { background: linear-gradient(135deg, #B88800, #F0B800, #906800) !important; color: #111111 !important; -webkit-text-fill-color: #111111 !important; font-weight: 700 !important; }
html[data-theme="light"] .btn-secondary { color: #111111 !important; -webkit-text-fill-color: #111111 !important; border-color: rgba(17,17,17,0.45) !important; font-weight: 700 !important; }
html[data-theme="light"] .btn-secondary:hover { color: #C89800 !important; -webkit-text-fill-color: #C89800 !important; border-color: #C89800 !important; }
html[data-theme="light"] .film-upload-btn { border: 1.5px solid #C89800 !important; border-radius: 8px !important; background: rgba(200,152,0,0.08) !important; color: #111111 !important; -webkit-text-fill-color: #111111 !important; font-weight: 700 !important; }
html[data-theme="light"] .film-upload-btn *    { color: #111111 !important; -webkit-text-fill-color: #111111 !important; font-weight: 700 !important; }
html[data-theme="light"] .film-upload-btn:hover { background: rgba(200,152,0,0.16) !important; border-color: #8B6200 !important; }

/* ── Inputs ── */
html[data-theme="light"] input,
html[data-theme="light"] select,
html[data-theme="light"] textarea { background: #2A2A2A !important; border-color: rgba(240,184,0,0.30) !important; color: #FFFFFF !important; -webkit-text-fill-color: #FFFFFF !important; font-weight: 600 !important; }
html[data-theme="light"] input::placeholder { color: rgba(255,255,255,0.40) !important; }
html[data-theme="light"] label { color: #FFFFFF !important; -webkit-text-fill-color: #FFFFFF !important; font-weight: 600 !important; }

/* ── Modals (auth / FAQ / payment) ── */
html[data-theme="light"] .auth-box { background: #F5F0E8 !important; border-color: rgba(200,152,0,0.3) !important; box-shadow: 0 8px 40px rgba(0,0,0,0.18) !important; }
html[data-theme="light"] .auth-header { background: #3B4A2F !important; border-bottom: 1px solid rgba(92,114,74,0.6) !important; }
html[data-theme="light"] .auth-title  { color: #ffffff !important; -webkit-text-fill-color: #ffffff !important; font-weight: 700 !important; }
html[data-theme="light"] .auth-close  { color: rgba(255,255,255,0.85) !important; -webkit-text-fill-color: rgba(255,255,255,0.85) !important; border-color: rgba(255,255,255,0.35) !important; }
html[data-theme="light"] .auth-close:hover { color: #FFD966 !important; -webkit-text-fill-color: #FFD966 !important; border-color: #FFD966 !important; }
html[data-theme="light"] .auth-body,
html[data-theme="light"] .auth-body * { color: #2a1a00 !important; -webkit-text-fill-color: #2a1a00 !important; }
html[data-theme="light"] .auth-field label { color: #3B4A2F !important; -webkit-text-fill-color: #3B4A2F !important; font-weight: 700 !important; }
html[data-theme="light"] .auth-field input,
html[data-theme="light"] .auth-field select,
html[data-theme="light"] .auth-field textarea { background: #ffffff !important; border-color: rgba(200,152,0,0.35) !important; color: #111111 !important; -webkit-text-fill-color: #111111 !important; font-weight: 600 !important; }
html[data-theme="light"] .auth-field input::placeholder { color: rgba(0,0,0,0.35) !important; }
html[data-theme="light"] .auth-field select option { background: #ffffff !important; color: #111111 !important; }
html[data-theme="light"] .auth-btn-primary { background: #3B4A2F !important; color: #ffffff !important; -webkit-text-fill-color: #ffffff !important; border-color: #3B4A2F !important; }
html[data-theme="light"] .auth-btn-primary:hover { background: #2e3a24 !important; border-color: #2e3a24 !important; }
html[data-theme="light"] .auth-btn-secondary { color: #3B4A2F !important; -webkit-text-fill-color: #3B4A2F !important; border-color: rgba(59,74,47,0.4) !important; font-weight: 700 !important; }
html[data-theme="light"] .auth-btn-secondary:hover { border-color: #3B4A2F !important; }
/* Register Submit / Cancel buttons: override the .auth-body * wildcard that forces dark color in light theme */
html[data-theme="light"] .auth-btn-join,
html[data-theme="light"] .auth-btn-maybe {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-weight: 700 !important;
}
html[data-theme="light"] .auth-links a { color: #5A3E00 !important; -webkit-text-fill-color: #5A3E00 !important; font-weight: 600 !important; }
html[data-theme="light"] .auth-links a:hover { color: #3B4A2F !important; -webkit-text-fill-color: #3B4A2F !important; }
html[data-theme="light"] .auth-info { color: #444444 !important; -webkit-text-fill-color: #444444 !important; font-weight: 500 !important; }
html[data-theme="light"] .auth-err * { color: #a00000 !important; -webkit-text-fill-color: #a00000 !important; }
html[data-theme="light"] .auth-success * { color: #2e5c1e !important; -webkit-text-fill-color: #2e5c1e !important; }
/* Then & Now modal upload success/error message: black text on cream background */
html[data-theme="light"] #tn-upload-ok {
  color: #111111 !important;
  -webkit-text-fill-color: #111111 !important;
  background: rgba(40,140,80,0.12) !important;
  border-color: rgba(60,160,80,0.4) !important;
}
html[data-theme="light"] #tn-upload-err {
  color: #111111 !important;
  -webkit-text-fill-color: #111111 !important;
}
/* ── Then & Now modal badge + frame label fixes ── */
html[data-theme="light"] .tn-badge-then { background: rgba(20,20,30,0.95) !important; color: #ffffff !important; -webkit-text-fill-color: #ffffff !important; border: 1px solid rgba(255,255,255,0.25) !important; }
html[data-theme="light"] .tn-badge-now  { background: #1a6b3c !important; color: #ffffff !important; -webkit-text-fill-color: #ffffff !important; border: 1px solid rgba(255,255,255,0.25) !important; }

/* File preview: dark text on light bg (was white = invisible) */
html[data-theme="light"] .tn-file-preview {
  color: rgba(42,26,0,0.55) !important;
  -webkit-text-fill-color: rgba(42,26,0,0.55) !important;
  background: rgba(0,0,0,0.06) !important;
  border-color: rgba(59,74,47,0.2) !important;
}
html[data-theme="light"] .tn-file-preview.has-file {
  color: #1a3a00 !important;
  -webkit-text-fill-color: #1a3a00 !important;
}

/* tn-empty-msg: dark text (was white = invisible) */
html[data-theme="light"] .tn-empty-msg { color: rgba(42,26,0,0.55) !important; -webkit-text-fill-color: rgba(42,26,0,0.55) !important; }

/* Subtitle hint: black text, bumped 1pt (was white = invisible on cream bg) */
html[data-theme="light"] .tn-reveal-subtitle {
  color: #111111 !important;
  -webkit-text-fill-color: #111111 !important;
  font-size: 1.05rem !important;
  opacity: 1 !important;
}

/* File input: force light color-scheme so browser button is not dark */
html[data-theme="light"] .tn-file-input-wrap input[type="file"] {
  color-scheme: light !important;
  color: #333333 !important;
  -webkit-text-fill-color: #333333 !important;
  background: rgba(255,255,255,0.85) !important;
  border-radius: 4px !important;
  padding: 0.25rem 0.4rem !important;
}

/* Slot wrap: card-like container per slot */
html[data-theme="light"] .tn-slot-wrap {
  background: rgba(59,74,47,0.06) !important;
  border: 1px solid rgba(59,74,47,0.18) !important;
  border-radius: 8px !important;
  padding: 0.75rem 1rem !important;
}
/* Then & Now modal buttons: force white text on dark buttons */
html[data-theme="light"] .auth-btn-upload,
html[data-theme="light"] .auth-btn-clear {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}
/* Delete Both button: black text (transparent bg on cream modal = white invisible) */
html[data-theme="light"] .tn-delete-both-btn {
  color: #111111 !important;
  -webkit-text-fill-color: #111111 !important;
  border-color: rgba(180,60,40,0.6) !important;
}
/* Slot rendered spans/buttons (dynamic JS content): black text */
html[data-theme="light"] #tn-slot-then span,
html[data-theme="light"] #tn-slot-now span {
  color: #111111 !important;
  -webkit-text-fill-color: #111111 !important;
}
html[data-theme="light"] #tn-slot-then button,
html[data-theme="light"] #tn-slot-now button {
  color: #111111 !important;
  -webkit-text-fill-color: #111111 !important;
  border-color: rgba(180,60,40,0.6) !important;
}
/* Then & Now confirm message: force white text (light theme body color overrides otherwise) */
html[data-theme="light"] .tn-confirm-msg {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}
html[data-theme="light"] .film-frame-inner p { color: #ffffff !important; -webkit-text-fill-color: #ffffff !important; }
/* ── tn-lightbox ── */
html[data-theme="light"] #tn-lb-label { color: #F0B800 !important; -webkit-text-fill-color: #F0B800 !important; }

/* ── FAQ modal ── */
html[data-theme="light"] #faq-modal .auth-box { background: #F5F0E8 !important; border-color: rgba(200,152,0,0.3) !important; }
html[data-theme="light"] #faq-modal .auth-header { background: #3B4A2F !important; border-bottom: 1px solid rgba(92,114,74,0.6) !important; }
html[data-theme="light"] #faq-modal .faq-item { background: #EEE8D8 !important; border-color: rgba(200,152,0,0.2) !important; box-shadow: none !important; border-radius: 6px !important; margin-bottom: 0.4rem !important; overflow: hidden !important; }
html[data-theme="light"] #faq-modal .faq-item * { color: #2a1a00 !important; -webkit-text-fill-color: #2a1a00 !important; }
html[data-theme="light"] #faq-modal .faq-arrow { color: #8B6200 !important; -webkit-text-fill-color: #8B6200 !important; font-size: 1.1rem !important; }
html[data-theme="light"] #faq-modal .faq-item.open .faq-a { background: rgba(59,74,47,0.12) !important; border-left: 3px solid #C89800 !important; color: #2a1a00 !important; -webkit-text-fill-color: #2a1a00 !important; }

/* ── Payment modal ── */
html[data-theme="light"] .payment-tier { background: #EEE8D8 !important; border-color: rgba(200,152,0,0.3) !important; color: #2a1a00 !important; }
html[data-theme="light"] .payment-tier.selected,
html[data-theme="light"] .payment-tier:hover { background: rgba(59,74,47,0.12) !important; border-color: #3B4A2F !important; }
html[data-theme="light"] .tier-label  { color: #3B4A2F !important; -webkit-text-fill-color: #3B4A2F !important; font-weight: 700 !important; }
html[data-theme="light"] .tier-price  { color: #5c1a00 !important; -webkit-text-fill-color: #5c1a00 !important; }
html[data-theme="light"] .pay-method-block { background: #EEE8D8 !important; border-color: rgba(200,152,0,0.25) !important; }
html[data-theme="light"] .pay-method-title { color: #000000 !important; -webkit-text-fill-color: #000000 !important; font-weight: 800 !important; }
html[data-theme="light"] .pay-detail-label { color: #3B2800 !important; -webkit-text-fill-color: #3B2800 !important; }
html[data-theme="light"] .pay-detail-value { color: #111111 !important; -webkit-text-fill-color: #111111 !important; font-weight: 700 !important; }
html[data-theme="light"] .pay-note * { color: #2a1a00 !important; -webkit-text-fill-color: #2a1a00 !important; }
html[data-theme="light"] .pay-divider { color: rgba(0,0,0,0.2) !important; -webkit-text-fill-color: rgba(0,0,0,0.2) !important; }

/* ── Memory lightbox ── */
html[data-theme="light"] #memory-lightbox { background: rgba(0,0,0,0.5) !important; }
html[data-theme="light"] #memory-lightbox > div { background: #F5F0E8 !important; border: 1px solid rgba(200,152,0,0.35) !important; box-shadow: 0 8px 48px rgba(0,0,0,0.2) !important; }
html[data-theme="light"] #memory-lightbox-text { color: #2a1a00 !important; -webkit-text-fill-color: #2a1a00 !important; font-weight: 600 !important; opacity: 1 !important; }
html[data-theme="light"] #memory-lightbox p { color: #2a1a00 !important; -webkit-text-fill-color: #2a1a00 !important; opacity: 1 !important; }
html[data-theme="light"] #memory-lightbox p:last-of-type { color: #7a5800 !important; -webkit-text-fill-color: #7a5800 !important; font-weight: 600 !important; }

/* ── Footer ── */
html[data-theme="light"] footer { background: #111111 !important; }
html[data-theme="light"] footer p,
html[data-theme="light"] footer span,
html[data-theme="light"] footer a,
html[data-theme="light"] footer li,
html[data-theme="light"] footer div { color: rgba(255,255,255,0.75) !important; -webkit-text-fill-color: rgba(255,255,255,0.75) !important; font-weight: 600 !important; }
html[data-theme="light"] .footer-link:hover { color: #F0B800 !important; -webkit-text-fill-color: #F0B800 !important; }

/* ── Scrollbar ── */
html[data-theme="light"] ::-webkit-scrollbar-track { background: #F3F3F0 !important; }
html[data-theme="light"] ::-webkit-scrollbar-thumb { background: rgba(26,26,26,0.22) !important; }


/* ── Campus Chronicles: story cards, lightbox, reactions, comments ── */

/* Story card image */
.chronicle-story-img { width:100%; border-radius:8px; overflow:hidden; margin-bottom:1rem; max-height:220px; }
.chronicle-story-img img { width:100%; height:220px; object-fit:cover; border-radius:8px; cursor:zoom-in; transition:transform 0.3s ease; display:block; }
.chronicle-story-img img:hover { transform:scale(1.03); }
.chronicle-story-img--sm { max-height:160px; }
.chronicle-story-img--sm img { height:160px; }

.chronicle-read-btn { background:none; border:1px solid var(--gold-light,#D4AF37); color:var(--gold-light,#D4AF37); padding:0.3rem 0.9rem; border-radius:4px; cursor:pointer; font-size:0.82rem; letter-spacing:0.05em; margin-left:auto; transition:background 0.2s,color 0.2s; }
.chronicle-read-btn:hover { background:var(--gold-light,#D4AF37); color:#1a1a1a; }

/* FIRST/LAST pagination buttons */
#honor-first, #honor-last { font-size:0.78rem; letter-spacing:0.05em; }

/* ── STORY READER MODAL ── */
.story-modal-backdrop { display:none; position:fixed; inset:0; z-index:9995; background:rgba(0,0,0,0.72); backdrop-filter:blur(4px); -webkit-backdrop-filter:blur(4px); align-items:center; justify-content:center; padding:1.5rem; overscroll-behavior:contain; }
.story-modal-backdrop.open { display:flex; }
.story-modal-box { background:#F5F0E8; border:1px solid rgba(184,150,12,0.3); width:70%; max-width:1000px; max-height:88vh; display:flex; flex-direction:column; box-shadow:0 24px 80px rgba(0,0,0,0.25); animation:modal-in 0.3s ease; border-radius:2px; }
.story-modal-header { display:flex; align-items:center; justify-content:space-between; padding:0.85rem 1.4rem; border-bottom:1px solid rgba(184,150,12,0.2); flex-shrink:0; gap:0.8rem; background:#3B4A2F; }
.story-modal-meta { display:flex; align-items:center; gap:0.6rem; min-width:0; flex:1; overflow:hidden; }
.story-modal-actions { display:flex; align-items:center; gap:0.6rem; flex-shrink:0; }
.story-modal-badge { font-family:'Cinzel',serif !important; font-size:0.875rem !important; letter-spacing:0.22em !important; color:#FFD966 !important; -webkit-text-fill-color:#FFD966 !important; white-space:nowrap; }
.story-modal-author { font-family:'Cinzel',serif !important; font-size:0.875rem !important; letter-spacing:0.1em !important; color:rgba(255,255,255,0.85) !important; -webkit-text-fill-color:rgba(255,255,255,0.85) !important; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.story-modal-box .auth-close { background:none !important; border:1px solid rgba(255,255,255,0.3) !important; color:#FFFFFF !important; -webkit-text-fill-color:#FFFFFF !important; font-size:1.3rem; width:32px; height:32px; cursor:pointer; display:flex; align-items:center; justify-content:center; flex-shrink:0; transition:border-color 0.2s; }
.story-modal-box .auth-close:hover { border-color:#FFD966 !important; color:#FFD966 !important; -webkit-text-fill-color:#FFD966 !important; }
.story-modal-body { overflow-y:auto; padding:2rem 2.4rem 2.5rem; flex:1; -webkit-overflow-scrolling:touch; background:#F5F0E8; overscroll-behavior:contain; }
.story-modal-title-row { margin-bottom:1.8rem; padding-bottom:1.2rem; border-bottom:1px solid rgba(184,150,12,0.25); }
.story-modal-title { font-family:'Playfair Display',serif !important; font-size:clamp(1.6rem,3.5vw,2.2rem) !important; font-weight:700 !important; color:#1a1000 !important; -webkit-text-fill-color:#1a1000 !important; line-height:1.3 !important; margin:0 !important; padding:0 !important; border:none !important; }
.story-modal-content p { font-family:'Cormorant Garamond',serif !important; font-size:1.25rem !important; line-height:1.9 !important; color:#1a1000 !important; -webkit-text-fill-color:#1a1000 !important; margin-bottom:1.4rem !important; font-style:normal; font-weight:700; }
.story-modal-content p:last-child { margin-bottom:0 !important; }
.story-modal-content::after { content:''; display:table; clear:both; }

@media (min-width: 769px) {
  .story-modal-content p { font-weight: 600 !important; }
  html[data-theme="light"] .story-modal-content p { font-weight: 600 !important; }
}

/* Story image (floats right inside modal body) */
.story-modal-img-wrap { display:none; float:right; width:390px; margin:0 0 1.2rem 1.8rem; border-radius:3px; overflow:hidden; border:1px solid rgba(184,150,12,0.3); box-shadow:0 3px 12px rgba(0,0,0,0.13); cursor:zoom-in; background:#EEE8D8; }
.story-modal-img { width:390px; height:auto; display:block; }
.story-modal-img-caption { font-family:'Cinzel',serif !important; font-size:0.875rem !important; letter-spacing:0.06em !important; color:#7a5800 !important; -webkit-text-fill-color:#7a5800 !important; padding:0.4rem 0.5rem; background:#EEE8D8; margin:0; font-style:normal !important; border-top:1px solid rgba(184,150,12,0.15); text-align:center; line-height:1.3; }
@media (max-width:768px) {
  /* Bottom-sheet style: modal anchors to bottom so keyboard pushes it up, not over it */
  .story-modal-backdrop { padding:0 !important; align-items:flex-end !important; }
  .story-modal-box {
    max-height: 92vh;
    max-height: 92dvh;       /* dvh shrinks when virtual keyboard opens — keeps input row visible */
    margin: 0 !important;
    border-radius: 10px 10px 0 0 !important;
    width: 100% !important;
  }
  .story-modal-body { padding:1.2rem 1.2rem 1.5rem; }
  .story-modal-title { font-size:1.45rem !important; }
  .story-modal-content p { font-size:1.15rem !important; }
  .story-modal-img-wrap { float:right !important; width:260px !important; margin:0 0 1rem 1.1rem !important; overflow:hidden !important; }
  .story-modal-img { width:260px !important; height:auto !important; }
  /* Pull-bar handle at top of bottom-sheet */
  .story-modal-header::before {
    content: '';
    display: block;
    position: absolute;
    top: 6px; left: 50%;
    transform: translateX(-50%);
    width: 36px; height: 4px;
    border-radius: 2px;
    background: rgba(255,255,255,0.3);
  }
  .story-modal-header { position: relative; padding:0.75rem 1rem; }
  /* Mobile: dept/name LEFT, counter+close RIGHT — same as desktop */
  .story-modal-meta { gap:0.4rem; }
  .story-modal-badge { font-size:0.75rem !important; letter-spacing:0.16em !important; }
  .story-modal-author { font-size:0.78rem !important; }
}

/* Story share button — same style as Comments button */
.story-share-btn { display:flex; align-items:center; gap:0.4rem; background:none; border:1.5px solid rgba(184,150,12,0.35); border-radius:20px; padding:0.3rem 0.9rem; cursor:pointer; font-family:'Cinzel',serif; font-size:0.875rem; color:#5c3a00 !important; -webkit-text-fill-color:#5c3a00 !important; transition:all 0.2s; white-space:nowrap; }
.story-share-btn:hover { border-color:#C89800; background:rgba(184,150,12,0.08); }

/* Story engage-right: Comments + Share inline on desktop, stacked on mobile */
.story-engage-right { display:flex; align-items:center; gap:0.5rem; flex-shrink:0; position:relative; }

/* Story modal box — relative so arrows can be absolute inside it */
.story-modal-box { position:relative !important; overflow:visible !important; }

/* Story side-navigation arrow buttons — absolute inside the modal box */
.story-side-btn { display:none; position:absolute; top:45%; transform:translateY(-50%); z-index:6; background:rgba(0,0,0,0.3); border:none; color:#FFD966; font-size:1.7rem; font-weight:700; width:34px; height:64px; cursor:pointer; align-items:center; justify-content:center; transition:background 0.2s; -webkit-tap-highlight-color:transparent; }
.story-side-btn:hover:not(:disabled) { background:rgba(0,0,0,0.55); }
.story-side-btn:disabled { opacity:0.14; cursor:default; }
.story-side-btn--left  { left:0; border-radius:0 4px 4px 0; }
.story-side-btn--right { right:0; border-radius:4px 0 0 4px; }
@media (max-width:768px) {
  .story-side-btn { width:28px !important; height:52px !important; font-size:1.3rem !important; }
}

/* Story header counter (1/7) — inside actions group on the right */
.story-header-counter { font-family:'Cinzel',serif; font-size:0.72rem; letter-spacing:0.12em; color:rgba(255,255,255,0.6); white-space:nowrap; flex-shrink:0; }
@media (max-width:768px) { .story-header-counter { font-size:0.68rem; letter-spacing:0.08em; } }

/* Chronicles nav notification badge (on the dropdown link text) */
.chron-notif-badge { display:inline-block; background:#e04040; color:#fff; font-family:'Cinzel',serif; font-size:0.58rem; font-weight:700; border-radius:50%; width:1.1rem; height:1.1rem; line-height:1.1rem; text-align:center; margin-left:0.35rem; vertical-align:middle; animation:notif-pulse 1.8s ease-in-out infinite; }
@keyframes notif-pulse { 0%,100%{ transform:scale(1); } 50%{ transform:scale(1.25); } }

/* Global bell icon — top nav bar, always visible */
.nav-bell-btn { background:none; border:none; cursor:pointer; position:relative; padding:0.3rem 0.45rem; margin:0 0.3rem; display:flex; align-items:center; justify-content:center; color:var(--nav-link-color); opacity:0.9; transition:opacity 0.2s, color 0.2s, filter 0.3s; -webkit-tap-highlight-color:transparent; flex-shrink:0; }
.nav-bell-btn:hover { opacity:1; color:#FFD966; }
/* Bell lit-up state — gold glow + swing animation */
.nav-bell-btn.bell-active { color:#FFD966 !important; opacity:1 !important; filter:drop-shadow(0 0 6px rgba(255,210,50,0.75)); animation:bell-swing 0.5s ease 0s 1, bell-glow-pulse 2.2s ease-in-out 0.5s infinite; }
.nav-bell-icon { width:22px; height:22px; stroke:currentColor; display:block; }
.nav-bell-dot { position:absolute; top:2px; right:2px; width:9px; height:9px; background:#e04040; border-radius:50%; border:2px solid var(--nav-bg); display:none; }
@keyframes bell-swing {
  0%   { transform: rotate(0deg); }
  20%  { transform: rotate(18deg); }
  40%  { transform: rotate(-14deg); }
  60%  { transform: rotate(10deg); }
  80%  { transform: rotate(-6deg); }
  100% { transform: rotate(0deg); }
}
@keyframes bell-glow-pulse {
  0%,100% { filter:drop-shadow(0 0 4px rgba(255,210,50,0.5)); }
  50%      { filter:drop-shadow(0 0 10px rgba(255,210,50,0.9)); }
}

/* ── Bell notification panel ─────────────────────────────────────────────── */
.bell-notif-panel { position:fixed; z-index:10100; background:#FFFDF5; border:1.5px solid rgba(184,150,12,0.45); border-radius:8px; box-shadow:0 8px 32px rgba(0,0,0,0.22); width:320px; max-width:calc(100vw - 1rem); display:flex; flex-direction:column; overflow:hidden; animation:modal-in 0.18s ease; }
.bell-notif-header { display:flex; align-items:center; justify-content:space-between; padding:0.45rem 0.85rem; background:#3B4A2F; border-bottom:1px solid rgba(184,150,12,0.25); }
.bell-notif-title { font-family:'Cinzel',serif; font-size:0.68rem; letter-spacing:0.1em; color:#FFD966; }
.bell-notif-close { background:none; border:none; color:rgba(255,255,255,0.6); font-size:1.2rem; cursor:pointer; padding:0 0.2rem; line-height:1; }
.bell-notif-close:hover { color:#fff; }
.bell-notif-list { overflow-y:auto; max-height:340px; }
.bell-notif-item { padding:0.65rem 1rem; border-bottom:1px solid rgba(184,150,12,0.12); cursor:pointer; transition:background 0.15s; }
.bell-notif-item:hover { background:rgba(184,150,12,0.06); }
.bell-notif-item:last-child { border-bottom:none; }
/* Name — boldest, darkest, Cinzel caps — clear anchor */
.bell-notif-actor { font-family:'Cinzel',serif; font-size:0.82rem; font-weight:700; color:#253318; letter-spacing:0.07em; margin-bottom:0.1rem; }
/* Story title — clearly lighter: smaller, normal weight, muted colour */
.bell-notif-story { font-family:'Cormorant Garamond',serif; font-size:0.74rem; font-weight:400; font-style:normal; color:rgba(60,38,0,0.52); margin-bottom:0.1rem; line-height:1.35; }
/* Dept tag — gold accent, kept small */
.bell-notif-dept { font-family:'Cinzel',serif; font-size:0.62rem; letter-spacing:0.07em; color:#B8960C; margin-left:0.28rem; font-weight:400; }
/* Snippet — the actual comment; italic, warm amber, slightly larger for readability */
.bell-notif-snippet { font-family:'Cormorant Garamond',serif; font-size:0.92rem; font-weight:400; color:#6b4800; font-style:italic; margin-bottom:0.15rem; line-height:1.45; overflow:hidden; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
.bell-notif-ts { font-family:'Cinzel',serif; font-size:0.6rem; letter-spacing:0.07em; color:rgba(60,38,0,0.38); margin-top:0.08rem; }
.bell-notif-loading, .bell-notif-empty { padding:1.2rem 1rem; font-family:'Cormorant Garamond',serif; font-size:0.95rem; color:rgba(92,58,0,0.55); text-align:center; }
.bell-notif-footer { padding:0.5rem 1rem; border-top:1px solid rgba(184,150,12,0.15); background:#FAF7F0; }
.bell-notif-view-all { font-family:'Cinzel',serif; font-size:0.72rem; letter-spacing:0.1em; color:#3B4A2F; cursor:pointer; text-decoration:none; display:block; text-align:center; }
.bell-notif-view-all:hover { color:#B8960C; }
@media (max-width:480px) {
  .bell-notif-panel { width:calc(100vw - 1rem); left:0.5rem !important; right:0.5rem; }
  .bell-notif-list { max-height:260px; }
}
/* Mobile: bell sits between hamburger (order:2) and auth (order:4) */
@media (max-width:900px) {
  .nav-bell-btn { order:3 !important; padding:0.28rem 0.35rem; }
  .nav-bell-icon { width:18px; height:18px; }
  .nav-auth { order:4 !important; }
}

/* Story comment layout */
.story-comment-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:0.2rem; grid-column:1 / -1; }
/* Edit + Delete button group — right side of comment header */
.story-comment-btns { display:inline-flex; align-items:center; gap:0.1rem; flex-shrink:0; }
/* Edit icon button */
.story-comment-edit-btn { background:none; border:none; cursor:pointer; color:#5c3a00; padding:0.15rem 0.25rem; opacity:0.55; line-height:1; flex-shrink:0; display:inline-flex; align-items:center; border-radius:3px; transition:opacity 0.15s, color 0.15s; }
.story-comment-edit-btn:hover { opacity:1; color:#3B4A2F; background:rgba(184,150,12,0.08); }
.story-comment-edit-btn svg { display:block; }
/* Delete icon button — red tint on hover */
.story-comment-del-btn  { background:none; border:none; cursor:pointer; color:#5c3a00; padding:0.15rem 0.25rem; opacity:0.45; line-height:1; flex-shrink:0; display:inline-flex; align-items:center; border-radius:3px; transition:opacity 0.15s, color 0.15s; }
.story-comment-del-btn:hover  { opacity:1; color:#c0392b; background:rgba(192,57,43,0.08); }
.story-comment-del-btn svg  { display:block; }

/* Edit comment — wrapper spans full grid row */
.story-comment-edit-wrap { grid-column:1 / -1; display:flex; flex-direction:column; gap:0.4rem; margin-top:0.3rem; }
.story-comment-edit-input { width:100%; font-family:'Cormorant Garamond',serif; font-size:1rem; color:#1a1000; background:#fff; border:1.5px solid rgba(184,150,12,0.45); border-radius:4px; padding:0.5rem 0.7rem; resize:none; overflow:hidden; line-height:1.6; outline:none; box-sizing:border-box; min-height:56px; }
.story-comment-edit-input:focus { border-color:#B8960C; box-shadow:0 0 0 2px rgba(184,150,12,0.12); }
.story-comment-edit-actions { display:flex; gap:0.5rem; }
.story-comment-edit-save { font-family:'Cinzel',serif; font-size:0.75rem; letter-spacing:0.08em; background:#3B4A2F; color:#FFD966; border:none; padding:0.4rem 1.2rem; cursor:pointer; border-radius:3px; transition:background 0.2s; }
.story-comment-edit-save:hover { background:#4E6040; }
.story-comment-edit-cancel { font-family:'Cinzel',serif; font-size:0.75rem; letter-spacing:0.08em; background:transparent; color:#666; border:1px solid #ccc; padding:0.4rem 1rem; cursor:pointer; border-radius:3px; transition:border-color 0.2s; }
.story-comment-edit-cancel:hover { border-color:#999; color:#333; }

/* Story image fullscreen lightbox */
.story-img-lightbox { display:none; position:fixed; inset:0; z-index:10500; background:rgba(0,0,0,0.92); align-items:center; justify-content:center; padding:1.5rem; cursor:zoom-out; }
.story-img-lightbox.open { display:flex; }
.story-img-lightbox-img { width:92vw; height:90vh; object-fit:contain; border-radius:3px; box-shadow:0 8px 48px rgba(0,0,0,0.6); border:1px solid rgba(184,150,12,0.3); }
.story-img-lightbox-close { position:absolute; top:1.2rem; right:1.4rem; background:none; border:1px solid rgba(255,255,255,0.3); color:#FFFFFF; font-size:1.5rem; width:38px; height:38px; display:flex; align-items:center; justify-content:center; cursor:pointer; transition:border-color 0.2s; }
.story-img-lightbox-close:hover { border-color:#C89800; color:#C89800; }

/* Likes & comments bar */
.story-engage { border-top:1px solid rgba(184,150,12,0.2); background:#EEE8D8; flex-shrink:0; }
.story-engage-bar { display:flex; align-items:center; gap:0.5rem; padding:0.65rem 1.4rem; }
.story-reactions { display:flex; align-items:center; gap:0.8rem; flex:1; }
.story-react-btn { display:flex; align-items:center; background:none; border:1.5px solid rgba(184,150,12,0.3); border-radius:20px; padding:0.28rem 0.7rem; cursor:pointer; transition:all 0.18s; font-size:1rem; line-height:1; }
.story-react-btn:hover { border-color:#C89800; background:rgba(184,150,12,0.1); transform:scale(1.06); }
.story-react-btn.reacted { border-color:#3B4A2F; background:#3B4A2F; }

.story-react-btn.react-pop { animation:react-pop 0.3s ease; }
@keyframes react-pop { 0%{transform:scale(1);} 50%{transform:scale(1.45);} 100%{transform:scale(1);} }
.story-react-count { font-family:'Cinzel',serif; font-size:0.875rem; font-weight:700; color:#5c3a00 !important; -webkit-text-fill-color:#5c3a00 !important; min-width:8px; text-align:center; cursor:pointer; }
/* Reactor tooltip – "who liked" popup */
.react-tooltip-wrap { position:relative; display:inline-flex; align-items:center; gap:0.4rem; }
.react-tooltip {
  display:none;
  position:absolute;
  bottom:calc(100% + 8px);
  left:50%;
  transform:translateX(-50%);
  background:#FFFDF5;
  border:1.5px solid rgba(184,150,12,0.6);
  border-radius:8px;
  padding:0.55rem 0.85rem;
  min-width:140px;
  max-width:220px;
  z-index:9999;
  box-shadow:0 4px 18px rgba(0,0,0,0.18);
  pointer-events:none;
  white-space:normal;
  text-align:left;
}
.react-tooltip.visible { display:block; }
.react-tooltip::after {
  content:'';
  position:absolute;
  top:100%;
  left:50%;
  transform:translateX(-50%);
  border:6px solid transparent;
  border-top-color:rgba(184,150,12,0.6);
}
.react-tooltip-label {
  font-family:'Cinzel',serif;
  font-size:0.7rem;
  letter-spacing:0.08em;
  color:#7a5a00;
  text-transform:uppercase;
  margin-bottom:0.3rem;
  display:block;
}
.react-tooltip-names {
  font-family:'Cormorant Garamond',serif;
  font-size:1rem;
  color:#2a1a00;
  line-height:1.5;
}
/* Mobile inline "who reacted" panel — sits between engage-bar and comments */
.react-names-panel {
  display: none;
  padding: 0.45rem 1rem 0.55rem;
  background: #FFFDF5;
  border-top: 1px solid rgba(184,150,12,0.2);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  color: #2a1a00;
  line-height: 1.5;
}
.react-names-panel.open { display: block; }
.react-names-panel-label {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: #7a5a00;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.15rem;
}
.story-comment-toggle { display:flex; align-items:center; gap:0.4rem; background:none; border:1.5px solid rgba(184,150,12,0.35); border-radius:20px; padding:0.3rem 0.9rem; cursor:pointer; font-family:'Cinzel',serif; font-size:0.875rem; color:#5c3a00 !important; -webkit-text-fill-color:#5c3a00 !important; transition:all 0.2s; }
.story-comment-toggle:hover { border-color:#C89800; background:rgba(184,150,12,0.08); }
.story-comments-wrap { display:none; flex-direction:column; border-top:1px solid rgba(184,150,12,0.15); max-height:280px; }
.story-comments-wrap.open { display:flex; }
.story-comments-list { flex:1; overflow-y:auto; padding:0.6rem 1.4rem; scrollbar-gutter:stable; display:flex; flex-direction:column; gap:0.6rem; -webkit-overflow-scrolling:touch; }
.story-no-comments { font-family:'Cinzel',serif !important; font-size:0.875rem !important; color:rgba(92,58,0,0.5) !important; -webkit-text-fill-color:rgba(92,58,0,0.5) !important; text-align:center; padding:0.8rem 0; }
.story-comment { display:grid; grid-template-columns:auto 1fr auto; gap:0.4rem 0.6rem; align-items:baseline; padding:0.5rem 0.7rem; background:#F5F0E8; border-radius:4px; border-left:2px solid rgba(184,150,12,0.4); }
.story-comment-name { font-family:'Cinzel',serif !important; font-size:0.8rem !important; font-weight:700 !important; color:#3B4A2F !important; -webkit-text-fill-color:#3B4A2F !important; white-space:nowrap; }
.story-comment-text { font-family:'Cormorant Garamond',serif !important; font-size:1rem !important; color:#1a1000 !important; -webkit-text-fill-color:#1a1000 !important; font-style:normal !important; font-weight:400 !important; line-height:1.7; grid-column:1 / -1; }
.story-comment-time { font-family:'Cinzel',serif !important; font-size:0.75rem !important; color:rgba(92,58,0,0.5) !important; -webkit-text-fill-color:rgba(92,58,0,0.5) !important; white-space:nowrap; grid-column:3; grid-row:1; }
.story-comment-input-row { display:flex; gap:0; border-top:1px solid rgba(184,150,12,0.15); flex-shrink:0; }
.story-comment-input { flex:1; border:none; background:#F5F0E8; padding:0.7rem 1rem; font-family:'Cormorant Garamond',serif; font-size:1rem; color:#2a1a00; outline:none; }
.story-comment-input::placeholder { color:rgba(92,58,0,0.4); }
.story-comment-submit { background:#3B4A2F; color:#FFFFFF !important; -webkit-text-fill-color:#FFFFFF !important; border:none; padding:0.7rem 1.2rem; font-family:'Cinzel',serif; font-size:0.875rem; letter-spacing:0.1em; cursor:pointer; transition:background 0.2s; flex-shrink:0; }
.story-comment-submit:hover { background:#4E6040; }
@media (max-width:768px) {
  .story-engage-bar { padding:0.5rem 0.9rem; }
  .story-comments-list { padding:0.5rem 0.9rem; }
  .story-comment-input { padding:0.6rem 0.8rem; font-size:0.95rem; }
  .story-comment-submit { padding:0.6rem 0.9rem; font-size:0.875rem; }
  /* Fix comment layout on mobile — 2-col grid so name always has room */
  .story-comment { grid-template-columns:1fr auto; gap:0.3rem 0.5rem; }
  .story-comment-name { grid-column:1; grid-row:1; white-space:normal; overflow:hidden; text-overflow:ellipsis; }
  .story-comment-time { grid-column:2; grid-row:1; }
  .story-comment-text { font-size:0.9rem !important; line-height:1.6; }
}

/* ═══════════════════════════════════════════════════════════════
   CAMPUS CHRONICLES — MOBILE IMPROVEMENTS
   ═══════════════════════════════════════════════════════════════ */

/* ── 768px and below ── */
@media (max-width: 768px) {
  /* Section padding */
  .chronicles-section { padding: 3rem 1rem 4rem !important; }

  /* Admin buttons: stack vertically, full-width feel */
  .chronicles-section [style*="display:flex"][style*="justify-content:center"] {
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.55rem !important;
  }

  /* All cards — same padding on mobile */
  .chronicle-card { padding: 1.4rem 1.2rem 1.2rem !important; }

  /* Excerpt: show more lines on mobile */
  .chronicle-excerpt { -webkit-line-clamp: 5 !important; font-size: 0.95rem !important; }

  /* Title — keep readable on mobile */
  .chronicle-title { font-size: 1.1rem !important; }
  .chronicle-dept  { font-size: 0.875rem !important; }
  .chronicle-author { font-size: 0.875rem !important; }

  /* Coming soon overlay */
  .coming-soon-title { font-size: 1.1rem !important; }
  .coming-soon-sub   { font-size: 0.88rem !important; }
  .coming-soon-bar-wrap { width: 80vw !important; }

  /* Story modal reactions — flex row: left 50% = 2×2 smiley grid, right = comments content-width */
  .story-engage-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.7rem;
  }
  .story-reactions {
    width: 50%;
    flex-shrink: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    row-gap: 0.4rem;
    column-gap: 0.8rem;
  }
  /* Restore pill border on button; no box around wrap */
  .story-reactions .react-tooltip-wrap {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0;
    border: none;
    background: none;
    border-radius: 0;
    min-height: 0;
    cursor: pointer;
  }
  .story-reactions .react-tooltip-wrap .story-react-btn {
    border: 1.5px solid rgba(184,150,12,0.3);
    background: none;
    padding: 0.28rem 0.7rem;
    font-size: 1rem;
    line-height: 1;
    border-radius: 20px;
  }
  .story-reactions .react-tooltip-wrap .story-react-btn.reacted {
    border-color: #3B4A2F;
    background: #3B4A2F;
  }
  /* Comments button: content-based width, pill shape */
  .story-comment-toggle {
    flex: none;
    border-radius: 20px;
    padding: 0.3rem 0.9rem;
    gap: 0.4rem;
    font-size: 0.875rem;
  }

  /* Story modal comment input — stays row, but fits inside bottom-sheet */
  .story-comment-input-row { flex-direction: row; min-height: 44px; }
  .story-comment-input  { font-size: 0.9rem; padding: 0.55rem 0.7rem; }
  .story-comment-submit { font-size: 0.875rem; padding: 0.55rem 0.9rem; letter-spacing: 0.06em; min-width: 56px; }

  /* Comments list — dynamic height inside dvh bottom-sheet */
  .story-comments-wrap { max-height: 42vh; }
  .story-comments-list { padding: 0.5rem 0.9rem; }
}

/* ── 500px and below: story image full-width, no float ── */
@media (max-width: 500px) {
  .story-modal-img-wrap {
    float: right !important;
    width: 185px !important;
    margin: 0 0 0.8rem 1rem !important;
    border-radius: 4px !important;
    overflow: hidden !important;
  }
  .story-modal-img {
    width: 185px !important;
    height: auto !important;
  }
  .story-modal-body  { padding: 1rem 1rem 1.5rem !important; }
  .story-modal-title { font-size: 1.45rem !important; }
  .story-modal-content p { font-size: 1.15rem !important; }

  .chronicles-section { padding: 2.5rem 0.75rem 3rem !important; }

  /* Tighten coming soon */
  .chronicles-overlay { padding: 1rem 0.75rem; gap: 0.7rem; }
  .coming-soon-lock   { font-size: 2rem; }
  .coming-soon-badge  { font-size: 0.875rem; letter-spacing: 0.18em; }
}

/* Bike story — larger image on desktop */
.story-modal-img-wrap.story-img-lg { width: 440px !important; }
.story-modal-img-wrap.story-img-lg .story-modal-img { width: 440px !important; max-height: 420px !important; }

/* Portrait phone — immersive story images */
@media (max-width: 768px) and (orientation: portrait) {
  .story-modal-img-wrap { width: 240px !important; margin: 0 0 1rem 1.2rem !important; }
  .story-modal-img { width: 240px !important; max-height: 300px !important; }
  .story-modal-img-wrap.story-img-lg { width: 260px !important; }
  .story-modal-img-wrap.story-img-lg .story-modal-img { width: 260px !important; max-height: 320px !important; }
}

/* Landscape phone — immersive story images */
@media (max-width: 900px) and (orientation: landscape) and (max-height: 500px) {
  .story-modal-img-wrap { width: 270px !important; margin: 0 0 1rem 1.4rem !important; }
  .story-modal-img { width: 270px !important; max-height: 270px !important; }
  .story-modal-img-wrap.story-img-lg { width: 300px !important; }
  .story-modal-img-wrap.story-img-lg .story-modal-img { width: 300px !important; max-height: 290px !important; }
}

/* ── Chronicles + Tribute scroll-dots & swipe hint ── */
.chronicles-dots-wrap,
.tribute-dots-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 0.75rem;
  margin-bottom: 1.25rem;
}
.chronicles-dot,
.tribute-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(184,150,12,0.25);
  border: 1px solid rgba(184,150,12,0.4);
  transition: all 0.25s;
  flex-shrink: 0;
}
.chronicles-dot.active,
.tribute-dot.active {
  background: #B8960C;
  border-color: #B8960C;
  width: 20px;
  border-radius: 4px;
}
.chronicles-swipe-hint {
  text-align: center;
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  color: rgba(184,150,12,0.6);
  -webkit-text-fill-color: rgba(184,150,12,0.6);
  margin-top: 0.5rem;
  pointer-events: none;
  transition: opacity 0.4s;
  animation: hint-pulse 1.8s ease-in-out infinite;
}
@keyframes hint-pulse {
  0%, 100% { opacity: 0.6; }
  50%       { opacity: 1;   }
}

/* Swipe hint mobile only; dots always visible */
@media (min-width: 769px) {
  .chronicles-swipe-hint { display: none; }
}
/* Directional chevrons flanking the dots */
.chronicles-chev {
  font-size: 1.1rem;
  color: #B8960C;
  line-height: 1;
  transition: opacity 0.25s;
  user-select: none;
  -webkit-user-select: none;
  padding: 0 2px;
}
.chronicles-chev-left  { opacity: 0.2; }
.chronicles-chev-right { opacity: 1;   }

/* ── Story Management Form ─────────────────────────────────────────────────── */
#story-mgmt-box input,
#story-mgmt-box textarea,
#story-mgmt-box select {
  width: 100%;
  box-sizing: border-box;
  background: #0d0c07;
  border: 1px solid rgba(184,150,12,0.3);
  color: #d4b86a;
  border-radius: 4px;
}
#story-mgmt-box input::placeholder,
#story-mgmt-box textarea::placeholder { color: #4e4535; }
#story-mgmt-box .smf-lbl { font-size:0.72rem; color:#a89060; letter-spacing:0.06em; text-transform:uppercase; font-family:'Cinzel',serif; }
#story-mgmt-box .smf-hint { color:#7a6a4a; text-transform:none; letter-spacing:0; font-family:inherit; font-size:0.7rem; }

/* gold text-selection highlight instead of browser default white */
#story-mgmt-box input::selection,
#story-mgmt-box textarea::selection {
  background: rgba(184,150,12,0.45);
  color: #fff;
}
#story-mgmt-box input::-moz-selection,
#story-mgmt-box textarea::-moz-selection {
  background: rgba(184,150,12,0.45);
  color: #fff;
}

/* kill browser autofill white/yellow background */
#story-mgmt-box input:-webkit-autofill,
#story-mgmt-box input:-webkit-autofill:hover,
#story-mgmt-box input:-webkit-autofill:focus,
#story-mgmt-box input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px #0d0c07 inset !important;
  box-shadow: 0 0 0 1000px #0d0c07 inset !important;
  -webkit-text-fill-color: #d4b86a !important;
  caret-color: #d4b86a;
  transition: background-color 9999s ease-out 0s;
}

/* responsive 2-column grids → stack on narrow mobile */
.smf-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.8rem;
}

@media (max-width: 480px) {
  #story-mgmt-backdrop { padding: 0; }
  #story-mgmt-box { width: 100%; margin: 0; border-radius: 0; min-height: 100vh; min-height: 100dvh; padding: 1.1rem; }
  .smf-grid-2 { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════
   NEW FEATURES — MOBILE RESPONSIVE
   (story nav, share panel, comment edit, notif badge)
   ═══════════════════════════════════════════════════════════════ */

/* Share panel popup — icon grid, opens upward from share button */
#story-share-panel {
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  display: flex;
  flex-direction: row;
  gap: 0.55rem;
  padding: 0.6rem 0.7rem;
  background: rgba(30,24,16,0.97);
  border: 1px solid rgba(184,150,12,0.35);
  border-radius: 12px;
  box-shadow: 0 -6px 28px rgba(0,0,0,0.45);
  z-index: 30;
  box-sizing: border-box;
  /* pointer-events safe */
}
/* Each platform slot */
#story-share-panel .ssp-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}
/* Circular icon button */
#story-share-panel .ssp-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
#story-share-panel .ssp-icon-btn:hover,
#story-share-panel .ssp-icon-btn:focus {
  transform: scale(1.1);
  box-shadow: 0 4px 14px rgba(0,0,0,0.4);
  outline: none;
}
#story-share-panel .ssp-icon-btn svg {
  display: block;
  pointer-events: none;
}
@media (max-width: 768px) {
  #story-share-panel {
    right: 0;
    left: auto;
    gap: 0.45rem;
    padding: 0.5rem 0.6rem;
  }
  #story-share-panel .ssp-icon-btn {
    width: 42px;
    height: 42px;
  }
}
@media (max-width: 400px) {
  #story-share-panel {
    gap: 0.35rem;
    padding: 0.45rem 0.5rem;
  }
  #story-share-panel .ssp-icon-btn {
    width: 38px;
    height: 38px;
  }
}

/* Engage-right: Share stacks below Comments on mobile */
@media (max-width: 768px) {
  .story-engage-right { flex-direction: column; align-items: flex-end; gap: 0.3rem; }
  .story-share-btn { padding: 0.28rem 0.8rem; font-size: 0.8rem; width: 100%; justify-content:center; }
}
@media (max-width: 480px) {
  .story-share-btn { font-size: 0.75rem; }
}

/* Notification badge — slightly larger on mobile for readability */
@media (max-width: 900px) {
  .chron-notif-badge {
    width: 1.2rem;
    height: 1.2rem;
    line-height: 1.2rem;
    font-size: 0.6rem;
    margin-left: 0.3rem;
  }
}

/* Comment edit — mobile touch targets */
@media (max-width: 768px) {
  .story-comment-edit-btn,
  .story-comment-del-btn  { min-height: 32px; min-width: 28px; -webkit-tap-highlight-color: transparent; padding: 0.2rem 0.35rem; }
  .story-comment-edit-input { font-size: 1rem; padding: 0.5rem 0.65rem; min-height: 52px; }
  .story-comment-edit-save,
  .story-comment-edit-cancel { min-height: 38px; flex: 1; text-align: center; padding: 0.45rem 0.8rem; font-size: 0.72rem; }
}

/* ═══════════════════════════════════════════════════
   SNAPFEST PHOTOGRAPHY CONTEST
   ═══════════════════════════════════════════════════ */
.snapfest-section {
  background: #FAFAF8 !important;
}

/* ── Scrolling rows ── */
.snapfest-marquee-wrap {
  overflow: hidden;
  margin-bottom: 1rem;
}
.snapfest-marquee {
  display: flex;
  gap: 1rem;
  animation: snapfest-scroll 40s linear infinite;
  width: max-content;
  animation-play-state: running;
  -webkit-animation-play-state: running;
}
.snapfest-marquee:hover { animation-play-state: paused; }

@keyframes snapfest-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-25%); }
}

.snapfest-photo-card {
  width: 240px;
  height: 180px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid rgba(184,150,12,0.2);
  transition: transform 0.3s, border-color 0.2s;
  background: #EEE8D8;
}
.snapfest-photo-card:hover {
  transform: scale(1.04);
  border-color: rgba(184,150,12,0.6);
}
.snapfest-photo-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}
.snapfest-photo-card:hover img { transform: scale(1.06); }
.snapfest-card-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 0.6rem 0.75rem 0.5rem;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.25s;
}
.snapfest-photo-card:hover .snapfest-card-overlay { opacity: 1; }
.snapfest-card-category {
  font-family: 'Cinzel', serif;
  font-size: 0.5rem;
  letter-spacing: 0.18em;
  color: #FFD966;
  text-transform: uppercase;
  margin-bottom: 0.15rem;
}
.snapfest-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 0.78rem;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.2;
}
.snapfest-card-photographer {
  font-family: 'Cinzel', serif;
  font-size: 0.5rem;
  color: rgba(255,255,255,0.7);
  margin-top: 0.1rem;
}

/* ── Submit button ── */
.snapfest-submit-open-btn {
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  padding: 0.75rem 2rem;
  background: #3B4A2F;
  color: #FFFFFF !important;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s;
}
.snapfest-submit-open-btn:hover { background: #4E6040; }

/* ── Lightbox ── */
.snapfest-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10100;  /* above desktop-widget-toggle (9991) */
  background: rgba(0,0,0,0.9);
  align-items: center;
  justify-content: center;
  gap: 0;           /* arrows flush with inner box edges — same as story modal */
  padding: 1.2rem 0.5rem;
}
.snapfest-lb-close {
  position: absolute;
  top: 1rem; right: 1.2rem;
  background: none;
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  font-size: 1.1rem;
  width: 36px; height: 36px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.2s;
  z-index: 10;
  border-radius: 2px;
}
.snapfest-lb-close:hover { border-color: #C89800; color: #C89800; }

/* Arrows — pill-tab style: rounded outer edge, flat inner edge flush with modal box */
.snapfest-lb-nav {
  flex-shrink: 0;
  background: rgba(70, 70, 70, 0.78);
  border: none;
  color: #FFD966;
  font-size: 1.6rem;
  font-weight: 700;
  width: 38px; height: 80px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  position: relative; z-index: 15;
  align-self: center;
  -webkit-tap-highlight-color: transparent;
}
.snapfest-lb-nav:hover  { background: rgba(70, 70, 70, 0.95); transform: scaleX(1.08); }
.snapfest-lb-nav:active { transform: scaleX(0.96); }
.snapfest-lb-nav:disabled { opacity: 0.18; cursor: default; transform: none; }
/* Prev: pill on the LEFT (outer) edge, flat on the RIGHT (inner, touches modal) */
#snapfest-lb-prev { border-radius: 999px 0 0 999px; }
/* Next: flat on the LEFT (inner, touches modal), pill on the RIGHT (outer) edge */
#snapfest-lb-next { border-radius: 0 999px 999px 0; }

.snapfest-lb-inner {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 0;
  flex: 1;
  max-width: 1080px;
  max-height: 90vh;
  background: #111;
  border: 1px solid rgba(184,150,12,0.2);
  border-radius: 3px;
  overflow: hidden;
}
.snapfest-lb-left {
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.snapfest-lb-img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  display: block;
}
.snapfest-lb-right {
  padding: 2rem 0;         /* horizontal padding moved to children so #sf-comments-wrap can bleed edge-to-edge */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #F5F0E8;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
/* Give horizontal breathing room to every direct child EXCEPT the comments wrap
   (which intentionally bleeds to the full panel width). */
.snapfest-lb-right > *:not(#sf-comments-wrap) {
  padding-left:  1.8rem;
  padding-right: 1.8rem;
  box-sizing: border-box;
}
.snapfest-lb-category {
  font-family: 'Cinzel', serif !important;
  font-size: 0.82rem !important;
  letter-spacing: 0.2em !important;
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
  background: #3B4A2F;
  display: inline-block;
  padding: 0.25rem 0.75rem;
  text-transform: uppercase;
  border-radius: 2px;
  align-self: flex-start;
}
.snapfest-lb-title {
  font-family: 'Playfair Display', serif !important;
  font-size: 1.65rem !important;
  font-weight: 700 !important;
  color: #1a1000 !important;
  -webkit-text-fill-color: #1a1000 !important;
  line-height: 1.25 !important;
  margin: 0 !important;
}
.snapfest-lb-photographer {
  font-family: 'Cinzel', serif !important;
  font-size: 0.9rem !important;
  letter-spacing: 0.1em !important;
  color: #3B4A2F !important;
  -webkit-text-fill-color: #3B4A2F !important;
  font-weight: 700 !important;
  margin: 0 !important;
}
.snapfest-lb-divider {
  height: 1px;
  background: rgba(184,150,12,0.35);
  margin: 0.2rem 0;
}
.snapfest-lb-meta {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
/* Each meta row gets its own strong color */
.snapfest-lb-meta span:nth-child(1) {
  font-family: 'Cinzel', serif !important;
  font-size: 0.78rem !important;
  letter-spacing: 0.06em !important;
  color: #1a5276 !important;
  -webkit-text-fill-color: #1a5276 !important;
  font-weight: 600;
}
.snapfest-lb-meta span:nth-child(2) {
  font-family: 'Cinzel', serif !important;
  font-size: 0.78rem !important;
  letter-spacing: 0.06em !important;
  color: #7B2D00 !important;
  -webkit-text-fill-color: #7B2D00 !important;
  font-weight: 600;
}
.snapfest-lb-meta span:nth-child(3) {
  font-family: 'Cinzel', serif !important;
  font-size: 0.78rem !important;
  letter-spacing: 0.06em !important;
  color: #2E4A1E !important;
  -webkit-text-fill-color: #2E4A1E !important;
  font-weight: 600;
}
.snapfest-lb-caption {
  font-family: 'Cormorant Garamond', serif !important;
  font-size: 1.2rem !important;
  color: #2a1a00 !important;
  -webkit-text-fill-color: #2a1a00 !important;
  line-height: 1.8 !important;
  font-style: italic !important;
  margin: 0 !important;
}
.snapfest-lb-statement {
  font-family: 'Cormorant Garamond', serif !important;
  font-size: 1.1rem !important;
  color: rgba(42,26,0,0.82) !important;
  -webkit-text-fill-color: rgba(42,26,0,0.82) !important;
  line-height: 1.8 !important;
  font-style: italic !important;
  border-left: 3px solid rgba(184,150,12,0.5);
  padding-left: 1rem;
  margin: 0 !important;
}

/* ── Form modal ── */
.snapfest-form-box {
  background: #F5F0E8;
  border: 1px solid rgba(184,150,12,0.25);
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  border-radius: 2px;
  box-shadow: 0 16px 60px rgba(0,0,0,0.2);
}
.snapfest-form-body {
  overflow-y: auto;
  padding: 1.6rem 1.8rem 2rem;
  -webkit-overflow-scrolling: touch;
}
.snapfest-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem 1.2rem;
  margin-bottom: 1.4rem;
}
.snapfest-full { grid-column: 1 / -1; }
.snapfest-form-box .auth-field label span { font-size: 1.4em !important; color: #c0392b !important; -webkit-text-fill-color: #c0392b !important; font-weight: 900 !important; line-height: 1; vertical-align: middle; margin-left: 2px; }
.snapfest-form-box textarea {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid rgba(184,150,12,0.35);
  background: #fff;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  color: #2a1a00;
  resize: vertical;
  outline: none;
  border-radius: 2px;
}
.snapfest-file-wrap {
  cursor: pointer;
  border: 1.5px dashed rgba(184,150,12,0.4);
  border-radius: 3px;
  overflow: hidden;
}
.snapfest-file-preview {
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: #fff;
  transition: background 0.2s;
  position: relative;
}
.snapfest-file-wrap:hover .snapfest-file-preview { background: #FAF6ED; }
.snapfest-file-icon { font-size: 1.8rem; }
.snapfest-file-label {
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: #7a5800;
}
.snapfest-upload-btn {
  width: 100%;
  padding: 0.85rem;
  background: #3B4A2F;
  color: #FFFFFF;
  border: none;
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  cursor: pointer;
  transition: background 0.2s;
  border-radius: 2px;
}
.snapfest-upload-btn:hover { background: #4E6040; }

/* Submit button lives outside the scrollable form body, always visible */
.snapfest-form-body {
  flex: 1 1 auto;       /* grow to fill space, shrink when box is constrained */
}
.snapfest-form-box > .snapfest-upload-btn {
  flex-shrink: 0;
  margin: 0;
  border-radius: 0 0 2px 2px;  /* round only bottom corners to match box */
  box-shadow: 0 -4px 12px rgba(0,0,0,0.08);
}

/* Mobile */
@media (max-width: 768px) {
  .snapfest-photo-card { width: 180px; height: 135px; }
  .snapfest-lb-inner { grid-template-columns: 1fr; grid-template-rows: auto auto auto; max-height: 85vh; overflow-y: auto; }
  .snapfest-lb-img { min-height: 240px; max-height: 45vh; object-fit: cover; }
  .snapfest-lb-right { max-height: none; }
  .snapfest-lb-nav { width: 28px; height: 60px; font-size: 1.15rem; }
  .snapfest-form-grid { grid-template-columns: 1fr; }
  .snapfest-full { grid-column: 1; }
  .snapfest-form-body { padding: 1.2rem 1rem 1.5rem; }
}

/* ── SnapFest date row ── */
.sf-date-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.sf-date-row select {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid rgba(184,150,12,0.35);
  background: #fff;
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  color: #2a1a00;
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

/* ── SnapFest 2-Step Form ── */
.snapfest-steps {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: 1;
}
.sf-step {
  font-family: 'Cinzel', serif;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.45) !important;
  -webkit-text-fill-color: rgba(255,255,255,0.45) !important;
  transition: color 0.2s;
}
.sf-step.active {
  color: #FFD966 !important;
  -webkit-text-fill-color: #FFD966 !important;
  font-weight: 700;
}
.sf-step-sep { color: rgba(255,255,255,0.3) !important; -webkit-text-fill-color: rgba(255,255,255,0.3) !important; font-size: 0.75rem; }

/* Drop zone */
.snapfest-drop-zone {
  border: 2px dashed rgba(184,150,12,0.4);
  border-radius: 6px;
  background: #FEFCF5;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  overflow: hidden;
  margin-bottom: 1.2rem;
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.snapfest-drop-zone:hover,
.snapfest-drop-zone.drag-over {
  border-color: #C89800;
  background: #FDF8E8;
}
.sf-drop-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  padding: 1.5rem 2rem;
  text-align: left;
}
.sf-drop-icon { flex-shrink: 0; }
.sf-drop-title {
  font-family: 'Playfair Display', serif !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  color: #2a1a00 !important;
  -webkit-text-fill-color: #2a1a00 !important;
  margin: 0 0 0.2rem !important;
}
.sf-drop-hint {
  font-family: 'Cinzel', serif !important;
  font-size: 0.62rem !important;
  color: rgba(42,26,0,0.45) !important;
  -webkit-text-fill-color: rgba(42,26,0,0.45) !important;
  margin: 0 !important;
}
.sf-drop-preview {
  width: 100%;
  min-height: 160px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}
.sf-drop-preview img {
  width: 100%;
  max-height: 300px;
  object-fit: contain;
  display: block;
}
.sf-change-btn {
  position: absolute;
  bottom: 0.8rem;
  right: 0.8rem;
  background: rgba(0,0,0,0.65);
  color: #FFD966 !important;
  -webkit-text-fill-color: #FFD966 !important;
  border: 1px solid rgba(255,215,102,0.4);
  font-family: 'Cinzel', serif;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  padding: 0.35rem 0.8rem;
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.2s;
}
.sf-change-btn:hover { background: rgba(0,0,0,0.85); }

/* Step 2 layout */
.sf-step2-layout {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 1.4rem;
  margin-bottom: 1.2rem;
}
.sf-step2-thumb {
  position: relative;
  align-self: start;
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid rgba(184,150,12,0.3);
  background: #000;
}
.sf-step2-thumb img {
  width: 160px;
  height: 120px;
  object-fit: cover;
  display: block;
}
.sf-step2-thumb .sf-change-btn {
  position: static;
  display: block;
  width: 100%;
  background: #3B4A2F;
  border: none;
  border-radius: 0;
  padding: 0.4rem;
  text-align: center;
  color: #FFD966 !important;
  -webkit-text-fill-color: #FFD966 !important;
}
.sf-step2-fields { margin: 0; }

/* My Submissions */
.snapfest-submissions-box { max-width: 640px; }
.sf-sub-card {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 0.8rem;
  border: 1px solid rgba(184,150,12,0.2);
  border-radius: 3px;
  margin-bottom: 0.7rem;
  background: #FEFCF5;
}
.sf-sub-thumb {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 2px;
  display: block;
}
.sf-sub-category {
  font-family: 'Cinzel', serif !important;
  font-size: 0.6rem !important;
  letter-spacing: 0.15em !important;
  color: #C89800 !important;
  -webkit-text-fill-color: #C89800 !important;
  margin-bottom: 0.2rem;
}
.sf-sub-title {
  font-family: 'Playfair Display', serif !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  color: #1a1000 !important;
  -webkit-text-fill-color: #1a1000 !important;
  margin-bottom: 0.15rem;
}
.sf-sub-meta {
  font-family: 'Cinzel', serif !important;
  font-size: 0.62rem !important;
  color: #5c3a00 !important;
  -webkit-text-fill-color: #5c3a00 !important;
}
.sf-sub-actions { display: flex; flex-direction: column; gap: 0.4rem; }
.sf-sub-edit, .sf-sub-delete {
  font-family: 'Cinzel', serif;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.8rem;
  border-radius: 2px;
  cursor: pointer;
  border: 1.5px solid;
}
.sf-sub-edit { border-color: #3B4A2F; background: #3B4A2F; color: #fff !important; -webkit-text-fill-color: #fff !important; }
.sf-sub-edit:hover { background: #4E6040; }
.sf-sub-delete { border-color: rgba(192,57,43,0.5); background: none; color: #c0392b !important; -webkit-text-fill-color: #c0392b !important; }
.sf-sub-delete:hover { background: rgba(192,57,43,0.07); }
.snapfest-my-btn { background: transparent !important; border: 1.5px solid #3B4A2F; color: #3B4A2F !important; -webkit-text-fill-color: #3B4A2F !important; }
.snapfest-my-btn:hover { background: rgba(59,74,47,0.08) !important; }

@media (max-width: 768px) {
  .sf-step2-layout { grid-template-columns: 1fr; }
  .sf-step2-thumb { display: none; }
  .sf-sub-card { grid-template-columns: 60px 1fr; }
  .sf-sub-actions { grid-column: 1 / -1; flex-direction: row; }
}

/* ── SnapFest success panel ── */
.sf-success-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  text-align: center;
  gap: 0.8rem;
}
.sf-success-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: #3B4A2F;
  color: #FFD966;
  font-size: 2rem;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 0.5rem;
}
.sf-success-title {
  font-family: 'Playfair Display', serif !important;
  font-size: 1.4rem !important;
  font-weight: 700 !important;
  color: #1a1000 !important;
  -webkit-text-fill-color: #1a1000 !important;
  margin: 0 !important;
}
.sf-success-sub {
  font-family: 'Cinzel', serif !important;
  font-size: 0.72rem !important;
  letter-spacing: 0.08em !important;
  color: #5c3a00 !important;
  -webkit-text-fill-color: #5c3a00 !important;
  margin: 0 !important;
}
.sf-success-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.8rem;
  width: 100%;
  max-width: 320px;
}
.sf-view-subs-btn {
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  padding: 0.7rem 1.2rem;
  background: transparent;
  border: 1.5px solid #3B4A2F;
  color: #3B4A2F !important;
  -webkit-text-fill-color: #3B4A2F !important;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s;
}
.sf-view-subs-btn:hover { background: rgba(59,74,47,0.08); }

/* ── SnapFest lightbox engagement bar ── */
.sf-lb-engage-bar {
  background: #EEE8D8;
  padding: 0.5rem 0;
  border-radius: 3px;
  margin-top: 0.2rem;
  flex-wrap: wrap;     /* allow wrapping on narrow panels so buttons never overlap */
  row-gap: 0.3rem;
}
/* Comment toggle: never shrink, never let text wrap inside the pill */
.sf-lb-engage-bar .story-comment-toggle {
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── SnapFest masked photographer ── */
.sf-masked { font-style: italic; }
.sf-masked-text { color: #3B4A2F !important; -webkit-text-fill-color: #3B4A2F !important; }
.sf-masked-hint {
  font-family: 'Cormorant Garamond', serif !important;
  font-size: 0.78rem !important;
  font-style: italic !important;
  color: rgba(59,74,47,0.55) !important;
  -webkit-text-fill-color: rgba(59,74,47,0.55) !important;
}

/* ── SnapFest filter bar ── */
.sf-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.4rem;
  padding: 0.1rem 0;
  /* Mobile: horizontal scroll instead of wrapping many pills */
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.sf-filter-bar::-webkit-scrollbar { display: none; }
.sf-filter-btn {
  font-family: 'Cinzel', serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.4rem 1rem;
  border: 1px solid #3B4A2F;
  background: #fff;
  color: #1a2e14 !important;
  -webkit-text-fill-color: #1a2e14 !important;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.18s;
  display: inline-flex;
  align-items: center;
}
.sf-filter-btn:hover { border-color: #C89800; background: rgba(184,150,12,0.1); color: #7a5800 !important; -webkit-text-fill-color: #7a5800 !important; }
.sf-filter-btn.active {
  background: #3B4A2F;
  border-color: #3B4A2F;
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
}
.sf-filter-count { margin-left: 0.35rem; font-size: 0.85em; opacity: 0.75; }
@media (max-width: 768px) {
  .sf-filter-bar { gap: 0.4rem; }
  .sf-filter-btn { font-size: 0.58rem; padding: 0.3rem 0.7rem; }
}

/* ── SnapFest filter pills — no text-wrap ── */
.sf-filter-btn { white-space: nowrap; flex-shrink: 0; }

/* ── SnapFest FAQ box ── */
.sf-faq-box { max-width: 600px; }
.sf-faq-body { display: flex; flex-direction: column; gap: 1.2rem; }
.sf-faq-section { border-bottom: 1px solid rgba(184,150,12,0.18); padding-bottom: 1rem; }
.sf-faq-section:last-child { border-bottom: none; }
.sf-faq-heading {
  font-family: 'Cinzel', serif !important;
  font-size: 0.8rem !important;
  letter-spacing: 0.1em !important;
  color: #1a2e14 !important;
  -webkit-text-fill-color: #1a2e14 !important;
  margin: 0 0 0.5rem !important;
}
.sf-faq-text {
  font-family: 'Cormorant Garamond', serif !important;
  font-size: 1rem !important;
  color: #3a2800 !important;
  -webkit-text-fill-color: #3a2800 !important;
  line-height: 1.6 !important;
  margin: 0 !important;
}
.sf-faq-list {
  font-family: 'Cormorant Garamond', serif !important;
  font-size: 1rem !important;
  color: #3a2800 !important;
  -webkit-text-fill-color: #3a2800 !important;
  line-height: 1.7 !important;
  padding-left: 1.4rem;
  margin: 0 !important;
}
.sf-faq-btn {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  padding: 0.55rem 1.4rem;
  border: 1.5px solid #3B4A2F;
  background: transparent;
  color: #3B4A2F !important;
  -webkit-text-fill-color: #3B4A2F !important;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s;
}
.sf-faq-btn:hover { background: rgba(59,74,47,0.08); }

/* ═══════════════════════════════════════════════════
   SNAPFEST — MOBILE ENHANCEMENTS
   ═══════════════════════════════════════════════════ */

/* Touch-friendly reaction buttons inside lightbox */
@media (max-width: 768px) {
  /* Lightbox stacks vertically; image on top, details below */
  .snapfest-lb-inner {
    grid-template-columns: 1fr;
    max-height: 92vh;     /* fallback for Safari < 15.4 / Chrome < 108 */
    max-height: 92dvh;    /* dvh shrinks when virtual keyboard opens */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .snapfest-lb-left {
    max-height: 42vh;     /* fallback */
    max-height: 42dvh;
    overflow: hidden;
  }
  .snapfest-lb-img {
    width: 100%;
    max-height: 42vh;     /* fallback */
    max-height: 42dvh;
    object-fit: cover;
  }
  .snapfest-lb-right {
    max-height: none;
    padding: 1.1rem 0 1.5rem;   /* horizontal padding pushed to children */
    gap: 0.65rem;
  }
  /* Reduce child horizontal padding to 1rem on small screens */
  .snapfest-lb-right > *:not(#sf-comments-wrap) {
    padding-left:  1rem;
    padding-right: 1rem;
  }
  .snapfest-lb-title { font-size: 1.3rem !important; }
  .snapfest-lb-photographer { font-size: 0.78rem !important; }
  .snapfest-lb-caption { font-size: 1rem !important; }
  .snapfest-lb-statement { font-size: 0.95rem !important; }

  /* Nav arrows smaller on mid-size screens — keep pill shape */
  .snapfest-lb-nav {
    width: 30px; height: 66px;
    font-size: 1.2rem;
    flex-shrink: 0;
  }

  /* Close button easier to tap */
  .snapfest-lb-close { width: 40px; height: 40px; font-size: 1.1rem; top: 0.6rem; right: 0.6rem; }

  /* Form modal — subtract modal padding (3.5rem top + 1rem bottom = 4.5rem) so button stays in view */
  .snapfest-form-box { max-width: 100%; border-radius: 0; max-height: calc(100vh - 4.5rem); max-height: calc(100dvh - 4.5rem); }
  .snapfest-form-body { padding: 1rem 0.85rem 1.5rem; }
  .snapfest-form-grid { grid-template-columns: 1fr; }
  .snapfest-full { grid-column: 1; }

  /* Drop zone compacter on mobile */
  .snapfest-drop-zone { min-height: 110px; }
  .sf-drop-content { flex-direction: column; gap: 0.5rem; padding: 1rem; text-align: center; }
  .sf-drop-icon svg { width: 36px; height: 36px; }

  /* Submissions list: single-column card */
  .sf-sub-card { grid-template-columns: 72px 1fr; gap: 0.7rem; }
  .sf-sub-actions { grid-column: 1 / -1; flex-direction: row; justify-content: flex-end; }
  .sf-sub-thumb { width: 72px; height: 54px; }

  /* Submit/FAQ buttons full-width */
  .snapfest-submit-open-btn { width: 100%; }
  div.snapfest-submit-open-btn + button { margin-top: 0; }

  /* Filter pills: scrollable single row */
  .sf-filter-bar { flex-wrap: nowrap; padding-bottom: 0.4rem; }

  /* Story comments in lightbox */
  .sf-lb-engage-bar { padding: 0.4rem 0; gap: 0.4rem; }
  .story-comment-input { font-size: 1rem; /* prevent iOS zoom */ }
  .sf-comments-wrap.open .story-comment-input { font-size: 1rem; }
}

/* ── Engage bar: extra-narrow screens (≤480px) — compact pill, hide label ── */
@media (max-width: 480px) {
  /* Keep reactions + comment on ONE tight row; if they still can't fit they wrap */
  .sf-lb-engage-bar {
    gap: 0.3rem;
    row-gap: 0.25rem;
  }
  /* Shrink emoji reaction buttons slightly */
  .sf-lb-engage-bar .story-react-btn {
    padding: 0.22rem 0.55rem;
    font-size: 0.95rem;
  }
  .sf-lb-engage-bar .story-comment-toggle {
    padding: 0.25rem 0.7rem;
    font-size: 0.82rem;
    gap: 0.25rem;
  }
}

/* ════════════════════════════════════════════════════════════════════════════
   SCROLL ISOLATION — prevent background page from scrolling when any modal
   is open. overscroll-behavior:contain stops scroll chaining at the boundary
   of the modal's own scrollable area (works on Chrome, Firefox, Safari 16+).
   Body overflow:hidden (set via JS) acts as the fallback for older browsers.
   ════════════════════════════════════════════════════════════════════════════ */

/* Every scrollable area inside a modal / lightbox / overlay */
.snapfest-lb-right,
.snapfest-form-body,
.sf-faq-body,
.vault-manage-grid,
.story-comments-list,
#sf-comments-list,
.rembook-modal-body,
#rb-canvas-wrap,
.auth-body,
.auth-modal {
  overscroll-behavior: contain;
}

/* The overlay itself — intercepts touch-scroll on the dark backdrop */
.snapfest-lightbox,
.auth-modal,
.rembook-modal,
.yt-lightbox,
#memory-lightbox,
#sf-zoom-overlay,
.story-modal,
.tn-confirm-overlay {
  overscroll-behavior: none;   /* nothing to scroll on the backdrop */
  /* NOTE: touch-action: none intentionally omitted — it would block tap events
     (e.g. clicking to close modals) on iOS Safari and Android Chrome.
     Body overflow:hidden (set via JS) is the primary scroll-lock mechanism. */
}

/* But the INNER scrollable boxes should still scroll — re-enable touch */
.snapfest-lb-right,
.snapfest-lb-inner,
.snapfest-form-body,
.auth-body,
.auth-box,
.rembook-modal-box,
.story-modal-box,
.vault-manage-box,
#rb-canvas-wrap,
.story-comments-list,
#sf-comments-list {
  touch-action: pan-y;         /* allow vertical scroll inside the box */
}

/* ── SnapFest comment input — use ID for max specificity to beat dark theme ── */
#sf-comment-input {
  background: #FFFFFF !important;
  border: 1px solid rgba(184,150,12,0.35) !important;
  border-right: none !important;
  border-radius: 3px 0 0 3px !important;
  color: #2a1a00 !important;
  -webkit-text-fill-color: #2a1a00 !important;
  flex: 1;
  padding: 0.65rem 0.85rem !important;
  font-family: 'Cormorant Garamond', serif !important;
  font-size: 1rem !important;
  outline: none !important;
}
#sf-comment-input::placeholder {
  color: rgba(92,58,0,0.5) !important;
  -webkit-text-fill-color: rgba(92,58,0,0.5) !important;
  opacity: 1 !important;
}
/* autofill override so browser dark tint doesn't override */
#sf-comment-input:-webkit-autofill,
#sf-comment-input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 999px #FFFFFF inset !important;
  -webkit-text-fill-color: #2a1a00 !important;
  caret-color: #2a1a00 !important;
}
/* Input row: explicit light background + tight padding */
#sf-comments-wrap .story-comment-input-row {
  background: #F5F0E8 !important;
  padding: 0.4rem 0.4rem !important;
  gap: 0.35rem !important;
  border-top: 1px solid rgba(184,150,12,0.15) !important;
  flex-shrink: 0 !important;
}
#sf-comments-wrap .story-comment-submit {
  border-radius: 0 3px 3px 0;
  padding: 0.65rem 1rem;
}

/* ── SnapFest comments list: zero padding — let .sf-comment handle its own spacing ── */
#sf-comments-list {
  padding: 0.35rem 0 !important;   /* no left/right padding; comment card handles it */
  gap: 0 !important;               /* gap handled by border-bottom between cards */
}

/* ── SnapFest comment layout: name left, edit+delete+time far right ── */
.sf-comment {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  border-left: none;              /* remove side accent used in story comments */
  padding: 0.4rem 0.5rem;         /* tight side padding — content hugs edges */
  border-bottom: 1px solid rgba(184,150,12,0.12);
  border-radius: 2px;
}
.sf-comment:last-child {
  border-bottom: none;
}
.sf-comment .story-comment-header {
  display: flex;
  align-items: center;
  width: 100%;                    /* stretch full width so space-between works */
  gap: 0.35rem;
  flex-wrap: nowrap;
}
/* Name takes all leftover space — pushes meta to far right */
.sf-comment .story-comment-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
  font-size: 0.88rem;
  color: #2a1a00;
  -webkit-text-fill-color: #2a1a00;
}
/* Meta group (edit + delete + time) — pinned to far right */
.sf-comment-meta {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex: 0 0 auto;                 /* never grow/shrink */
}
.sf-comment-meta .story-comment-time {
  font-size: 0.7rem;
  color: rgba(92,58,0,0.5);
  -webkit-text-fill-color: rgba(92,58,0,0.5);
  white-space: nowrap;
}
.sf-comment-meta .story-comment-btns {
  display: flex;
  gap: 0.1rem;
}

/* ── SnapFest comment edit wrap ── */
.sf-comment-edit-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  width: 100%;
}
.sf-comment-edit-wrap .story-comment-edit-input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.42rem 0.65rem;
  border: 1px solid rgba(184,150,12,0.4);
  border-radius: 3px;
  background: #fff;
  color: #2a1a00;
  -webkit-text-fill-color: #2a1a00;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  outline: none;
}
.sf-comment-edit-wrap .story-comment-edit-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

/* ── SnapFest right panel: thin scrollbar ── */
.snapfest-lb-right {
  scrollbar-width: thin;
  scrollbar-color: rgba(184,150,12,0.4) transparent;
}
.snapfest-lb-right::-webkit-scrollbar {
  width: 5px;
}
.snapfest-lb-right::-webkit-scrollbar-track {
  background: transparent;
}
.snapfest-lb-right::-webkit-scrollbar-thumb {
  background: rgba(184,150,12,0.4);
  border-radius: 999px;
}
.snapfest-lb-right::-webkit-scrollbar-thumb:hover {
  background: rgba(184,150,12,0.65);
}

/* ── SnapFest comments wrap: full-width bleed (child-padding approach) ──
   .snapfest-lb-right has padding:2rem 0, with side padding pushed to its
   direct children via "> *:not(#sf-comments-wrap)". So #sf-comments-wrap
   naturally gets the full panel width — no negative margins needed (which
   would be clipped inside an overflow-y:auto parent per CSS spec). */
#sf-comments-wrap {
  width: 100%;
  box-sizing: border-box;
}
/* comment cards get their own small horizontal padding */
#sf-comments-list {
  padding-left:  0.75rem !important;
  padding-right: 0.75rem !important;
}
/* input row gets the same horizontal breathing room */
#sf-comments-wrap .story-comment-input-row {
  padding-left:  0.75rem !important;
  padding-right: 0.75rem !important;
}

/* ── SnapFest lightbox: header bar spans both grid columns ── */
.snapfest-lb-inner {
  /* Override: add header row */
  grid-template-rows: auto 1fr;
}
.sf-lb-header {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.7rem 1.2rem;
  background: #3B4A2F;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(184,150,12,0.2);
}
.sf-lb-header-cat {
  font-family: 'Cinzel', serif;
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  color: #FFD966;
  -webkit-text-fill-color: #FFD966;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sf-lb-header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.sf-lb-counter {
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.6);
  -webkit-text-fill-color: rgba(255,255,255,0.6);
  white-space: nowrap;
}
.sf-lb-header-close {
  background: none;
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  -webkit-text-fill-color: #fff;
  font-size: 1rem;
  width: 30px; height: 30px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  border-radius: 2px;
  transition: border-color 0.2s, color 0.2s;
  flex-shrink: 0;
}
.sf-lb-header-close:hover { border-color: #FFD966; color: #FFD966; -webkit-text-fill-color: #FFD966; }
/* On mobile: smaller header padding */
@media (max-width: 768px) {
  .sf-lb-header { padding: 0.55rem 0.85rem; gap: 0.5rem; }
  .sf-lb-header-cat { font-size: 0.72rem; letter-spacing: 0.14em; }
  .sf-lb-counter { font-size: 0.65rem; }
}

/* ── SnapFest form: mandatory field validation highlight ── */
@keyframes sf-shake {
  0%,100% { transform: translateX(0); }
  20%      { transform: translateX(-5px); }
  40%      { transform: translateX(5px); }
  60%      { transform: translateX(-4px); }
  80%      { transform: translateX(4px); }
}
.sf-field-error {
  animation: sf-shake 0.38s ease;
}
.sf-field-error label {
  color: #c0392b !important;
  -webkit-text-fill-color: #c0392b !important;
}
.sf-field-error label span {
  color: #c0392b !important;
  -webkit-text-fill-color: #c0392b !important;
}
.sf-field-error input,
.sf-field-error select,
.sf-field-error textarea {
  border-color: #c0392b !important;
  background: rgba(192,57,43,0.06) !important;
  outline: none;
}
.sf-field-error input:focus,
.sf-field-error select:focus,
.sf-field-error textarea:focus {
  border-color: #e74c3c !important;
  box-shadow: 0 0 0 2px rgba(192,57,43,0.18) !important;
}
/* Drop-zone missing photo error */
.sf-drop-zone.sf-drop-error {
  border-color: #c0392b !important;
  background: rgba(192,57,43,0.05) !important;
  animation: sf-shake 0.38s ease;
}
.sf-drop-zone.sf-drop-error .sf-drop-title {
  color: #c0392b !important;
  -webkit-text-fill-color: #c0392b !important;
}

/* ── SnapFest image zoom overlay (js-controlled display:flex) ── */
#sf-zoom-overlay {
  /* base styles; display toggled by JS */
  align-items: center;
  justify-content: center;
}
#sf-zoom-overlay button:hover {
  background: rgba(255,255,255,0.22) !important;
}


