/* Shared, familiar social-app styling across the public MANZAR site. */
:root {
  --social-paper: #f2efe7;
  --social-card: #fffdf8;
  --social-ink: #171815;
  --social-line: rgba(23, 24, 21, .14);
  --social-accent: #d94b2b;
}

html { scroll-padding-top: 78px; }
body { color: var(--social-ink); background: var(--social-paper); }
#particles { display: none; }

.nav {
  z-index: 100;
  background: rgba(242, 239, 231, .98);
  border-bottom: 1px solid var(--social-line);
  box-shadow: none;
}
.nav.scrolled { background: rgba(242, 239, 231, .98); box-shadow: 0 2px 12px rgba(23,24,21,.06); backdrop-filter: none; -webkit-backdrop-filter: none; }
.brand { color: #173b33; }
.brand span { color: var(--social-accent); text-shadow: none; }
.menu a { color: #45463f; }
.menu .nav-cta { background: var(--social-accent); color: #fff; border-radius: 999px; box-shadow: none; }
.menu .nav-btn { color: #45463f; border-color: var(--social-line); background: rgba(255,255,255,.45); box-shadow: none; }
.menu .nav-login { color: #45463f; background: transparent; border-color: var(--social-line); box-shadow: none; }
.menu .nav-cta:hover { background: #b83c22; color: #fff; box-shadow: none; }

.page-head {
  color: #fffdf8;
  background: #173b33;
}
.page-head::before, .page-head::after { opacity: .32; }
.page-head .eyebrow, .page-head .section-tag { color: #f3b49e; }
.page-head .page-sub { color: rgba(255,253,248,.86); }
.page-title { color: #fffdf8; }

.section { border-color: var(--social-line); }
.section-title { color: var(--social-ink); }
.section-tag { color: #a9341b; }
.glass, .form-card, .overview-card, .sponsor-form, .event-block, .tl-card,
.legal-note, .tier-card, .tier-featured, .benefit, .podium-item, .photo,
.preview, .overview-card, .upload-card, .card-face, .acc-item, .register-main .form-card {
  background: var(--social-card) !important;
  color: var(--social-ink);
  border: 1px solid var(--social-line);
  border-radius: 16px;
  box-shadow: 0 5px 20px rgba(23,24,21,.045);
}
.card-face { overflow: hidden; }
.filter, .inkind-chip, .pkg, .check, .btn, .button, .menu a { border-radius: 999px; }
.filter.is-active, .btn-primary, .button { background: var(--social-accent); color: #fff; border-color: var(--social-accent); box-shadow: none; }
.btn-primary:hover, .button:hover { background: #b83c22; color: #fff; }
.filter.is-active { color: #fff; }
.field input, .field select, .field textarea, input, select, textarea {
  border-radius: 10px;
}
.footer { background: #173b33; color: #fffdf8; }
.foot-links { border-color: rgba(255,255,255,.2); }
.foot-links a, .foot-contact { color: #f3b49e; }

.mobile-tabbar { display: none; }
.site-page-links { display: none; }

@media (min-width: 769px) {
  #announceBar {
    z-index: 101;
    top: 14px !important;
    right: max(24px, calc((100vw - 1160px) / 2));
    left: max(230px, calc((100vw - 1160px) / 2 + 210px));
    height: 40px;
    display: flex;
    align-items: center;
    padding: 0 7px;
    overflow: hidden;
    background: #173b33;
    border: 0;
    border-radius: 999px;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .announce-inner { width:100%; min-height:40px; padding:0; gap:6px; }
  .announce-slide { min-width:0; color:#fffdf8; }
  .announce-cat { color:#f3b49e; }
  .announce-nav { width:28px; height:28px; }
  .announce-nav img { width:22px; height:22px; }
  .announce-nav:hover { border-radius:50%; background:rgba(255,255,255,.14); }
  .nav { height: 68px; padding: 0; }
  .nav-inner { min-height: 68px; max-width: 1160px; }
  .brand { font-size: 1.25rem; letter-spacing: -.035em; }
  .menu { gap: .3rem; }
  .menu a { min-height: 42px; padding: .65rem .78rem; border-radius: 999px; font-size: .78rem; letter-spacing: .015em; }
  .menu .nav-cta { padding-inline: 1rem; }
  .nav .menu, .nav .menu-toggle { display: none !important; }
  .site-page-links {
    position: fixed;
    z-index: 99;
    top: 68px;
    right: 0;
    left: 0;
    display: flex;
    gap: 8px;
    align-items: center;
    min-height: 46px;
    padding: 6px max(24px, calc((100vw - 1160px) / 2));
    overflow-x: auto;
    background: rgba(242,239,231,.98);
    border-bottom: 1px solid var(--social-line);
    scrollbar-width: none;
    white-space: nowrap;
  }
  .site-page-links::-webkit-scrollbar { display:none; }
  .site-page-links a {
    display: inline-flex;
    flex: 0 0 auto;
    min-height: 32px;
    align-items: center;
    padding: 6px 13px;
    border: 1px solid rgba(23,24,21,.16);
    border-radius: 999px;
    color: #34352f;
    background: #fffdf8;
    font-size: .73rem;
    font-weight: 700;
    line-height: 1;
    transition: color .18s ease, background .18s ease, border-color .18s ease;
  }
  .site-page-links a:hover, .site-page-links a[aria-current="page"] { color:#fff; background:#173b33; border-color:#173b33; }
  .site-page-links a[href="register.html"],
  .site-page-links a[href="external-registration.html"] {
    color:#fff;
    background:var(--social-accent);
    border-color:var(--social-accent);
    animation: neon-coral-pulse 1.7s ease-in-out infinite;
  }
  .site-page-links a[href="register.html"]:hover,
  .site-page-links a[href="register.html"][aria-current="page"],
  .site-page-links a[href="external-registration.html"]:hover,
  .site-page-links a[href="external-registration.html"][aria-current="page"] { background:#b83c22; border-color:#b83c22; }
  .site-page-links a[href="sponsorship.html"] { color:#fff; background:#287451; border-color:#287451; animation:neon-green-pulse 1.7s ease-in-out infinite; }
  .site-page-links a[href="sponsorship.html"]:hover,
  .site-page-links a[href="sponsorship.html"][aria-current="page"] { background:#1d5a3d; border-color:#1d5a3d; }
  .top { position: fixed; z-index:100; inset:0 0 auto; height:68px; padding-inline:max(24px,calc((100vw - 1160px)/2)); background:rgba(242,239,231,.98); border-bottom:1px solid var(--social-line); }
  .top + .wrap { margin-top: 128px; }

  .mobile-stories {
    display: flex;
    width: min(100% - 48px, 1120px);
    margin: 116px auto 22px;
    padding: 14px 20px 13px;
    gap: 22px;
    overflow-x: auto;
    background: var(--social-card);
    border: 1px solid var(--social-line);
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(23,24,21,.035);
    scrollbar-width: none;
  }
  .mobile-stories::-webkit-scrollbar { display: none; }
  .story-link { display:flex; flex:0 0 68px; flex-direction:column; align-items:center; gap:7px; color:#34352f; font-size:.75rem; line-height:1.2; white-space:nowrap; }
  .story-ring { display:grid; width:64px; height:64px; place-items:center; overflow:hidden; border:3px solid var(--social-card); border-radius:50%; outline:2px solid var(--social-accent); background:#173b33; }
  .story-ring img { display:block; width:100%; height:100%; object-fit:cover; }
  .story-home .story-ring { padding:6px; outline-color:#85877c; background:#fff; }
  .story-home .story-ring img { object-fit:contain; }
  .story-letter { color:#fffdf8; font-size:1.25rem; font-weight:800; }

  .hero {
    width: min(100% - 48px, 1120px);
    min-height: 0;
    margin: 0 auto 34px;
    padding: 46px clamp(28px, 5vw, 70px);
    gap: clamp(30px, 5vw, 68px);
    border-radius: 18px;
  }
  .hero .title { max-width: 100%; font-size: clamp(4.4rem, 7.2vw, 6.7rem); line-height: .92; letter-spacing: -.04em; }
  .hero .tagline { font-size: clamp(1.08rem, 1.8vw, 1.45rem); }
  .hero-content::before { margin-bottom: 1rem; }
  .hero-photo { width: 100%; height: clamp(340px, 37vw, 460px); margin: 0; padding: 8px; border: 1px solid rgba(242,239,231,.48); outline: 0; outline-offset: 0; border-radius: 14px; box-shadow: 0 12px 30px rgba(0,0,0,.22); transform: none; }
  .hero-photo::before { top: 18px; left: 18px; padding: .5rem .65rem; border-radius: 5px; transform: none; }
  .hero-photo img { border-radius: 8px; }
  .hero-photo figcaption { left: 8px; right: 8px; bottom: 8px; border-radius: 0 0 8px 8px; }
  .section { padding-block: 4rem; }
  .wrap { width: min(100% - 48px, 1080px); margin-inline: auto; }
  .section-title { font-size: clamp(2.5rem, 4vw, 3.6rem); line-height: 1; }
  .events .grid { gap: 16px; border: 0; }
  .events .card-face { min-height: 300px; border-radius: 16px; }
  .page-head { min-height: 0; padding: 8rem max(24px, calc((100vw - 1080px) / 2)) 3.2rem; }
  .page-title { max-width: 1000px; font-size: clamp(3.4rem, 6vw, 5.3rem); line-height: .98; }
  .page-sub { max-width: 700px; }
  .gallery-main, .results-main { padding-bottom: 3rem; }
  .reference-gallery, .gallery-section, .results-section { padding-inline: 24px; }
  .timeline { width: min(100% - 48px, 1000px); }
  .register-main { width: min(100% - 48px, 1080px); margin-inline: auto; }
  .legal { width: min(100% - 48px, 1080px); margin-inline: auto; }
  .footer { padding-top: 3rem; }
}

@media (max-width: 768px) {
  html { scroll-padding-top: 70px; }
  body { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
  .nav, .top {
    position: fixed;
    z-index: 100;
    inset: 0 0 auto;
    height: 58px;
    min-height: 58px;
    padding: 0 15px;
    background: rgba(242,239,231,.98);
    border-bottom: 1px solid var(--social-line);
    box-shadow: none;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  .nav-inner { height: 58px; min-height: 58px; padding: 0; }
  .site-page-links { display:none; }
  .top + .wrap { margin-top: 78px; }
  .brand { font-size: 1.18rem; }
  .brand-divider, .brand-cutm { display: none; }
  .mobile-stories { display:flex; gap:13px; overflow-x:auto; padding:9px 13px 11px; margin-top:94px; background:var(--social-paper); border-bottom:1px solid var(--social-line); scrollbar-width:none; }
  .mobile-stories::-webkit-scrollbar { display:none; }
  .story-link { display:flex; flex:0 0 62px; flex-direction:column; align-items:center; gap:4px; color:#292b25; font-size:.66rem; line-height:1.2; white-space:nowrap; }
  .story-ring { display:grid; width:58px; height:58px; place-items:center; overflow:hidden; border:2px solid var(--social-paper); border-radius:50%; outline:2px solid var(--social-accent); background:#173b33; }
  .story-ring img { display:block; width:100%; height:100%; object-fit:cover; }
  .story-home .story-ring { outline-color:#85877c; padding:5px; background:#fff; }
  .story-home .story-ring img { object-fit:contain; }
  .story-letter { color:#fffdf8; font-size:1.2rem; font-weight:800; }
  .menu-toggle { width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; }
  .menu-toggle span { background: #173b33; }
  .menu.open {
    position: fixed;
    inset: 58px 0 calc(60px + env(safe-area-inset-bottom)) !important;
    z-index: 110;
    display: flex;
    width: auto;
    height: auto;
    max-height: none;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 12px 18px 22px;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    background: var(--social-paper);
    border: 0;
    border-top: 1px solid var(--social-line);
    border-radius: 0;
    box-shadow: none;
    transform: none;
  }
  .menu.open a, .menu.open .nav-btn, .menu.open .nav-cta, .menu.open .nav-login {
    width: 100%;
    max-width: none;
    min-height: 48px;
    margin: 0;
    padding: 13px 6px;
    border: 0;
    border-bottom: 1px solid var(--social-line);
    border-radius: 0;
    color: var(--social-ink);
    background: transparent;
    box-shadow: none;
    font-size: .96rem;
    line-height: 1.2;
    text-align: left;
  }
  .menu.open .nav-cta { justify-content: center; margin-top: 12px; padding: 13px; color: white; background: var(--social-accent); text-align: center; }
  .menu.open a[href="register.html"],
  .menu.open a[href="external-registration.html"] { color:#fff; background:var(--social-accent); border-bottom-color:var(--social-accent); padding-inline:12px; animation:neon-coral-pulse 1.7s ease-in-out infinite; }
  .menu.open a[href="sponsorship.html"] { color:#fff; background:#287451; border-bottom-color:#287451; padding-inline:12px; animation:neon-green-pulse 1.7s ease-in-out infinite; }

  .mobile-tabbar {
    display: flex;
    position: fixed;
    z-index: 100;
    inset: auto 0 0;
    height: calc(60px + env(safe-area-inset-bottom));
    padding: 0 9px env(safe-area-inset-bottom);
    align-items: center;
    justify-content: space-around;
    background: rgba(242,239,231,.98);
    border-top: 1px solid var(--social-line);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }
  .mobile-tabbar a, .mobile-tabbar button {
    width: 48px; height: 48px;
    display: grid; place-items: center;
    padding: 0; border: 0; background: transparent;
    color: #20221e; cursor: pointer;
  }
  .mobile-tabbar svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .mobile-tabbar .is-current svg { fill: #20221e; stroke-width: 1.2; }

  .page-head { min-height: 0; padding: 6.5rem 1.15rem 2.2rem; }
  .page-title { font-size: clamp(2.5rem, 11vw, 4.3rem); line-height: .98; }
  .page-sub { font-size: .94rem; }
  .section { padding: 2.4rem 1rem; scroll-margin-top: 68px; }
  .wrap { width: 100%; }
  .footer { padding-bottom: 30px; }
  .top + .wrap { margin-top: 78px; }
  .manzar-chat-launch { bottom: calc(72px + env(safe-area-inset-bottom)) !important; }
  .manzar-chat-panel { bottom: calc(126px + env(safe-area-inset-bottom)) !important; }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-tabbar, .menu.open { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .site-page-links a[href="register.html"],
  .site-page-links a[href="external-registration.html"],
  .site-page-links a[href="sponsorship.html"],
  .menu.open a[href="register.html"],
  .menu.open a[href="external-registration.html"],
  .menu.open a[href="sponsorship.html"] { animation: none; }
}

@keyframes neon-coral-pulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(217,75,43,.16), 0 0 7px rgba(217,75,43,.28); }
  50% { box-shadow: 0 0 0 2px rgba(217,75,43,.32), 0 0 18px rgba(217,75,43,.72); }
}
@keyframes neon-green-pulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(40,116,81,.16), 0 0 7px rgba(40,116,81,.28); }
  50% { box-shadow: 0 0 0 2px rgba(40,116,81,.32), 0 0 18px rgba(40,116,81,.72); }
}
