:root{
  color-scheme: light dark;
  --bg: #0b0f19;
  --card: #0f1424;
  --elev: #0c1222;
  --text: #e6ebff;
  --muted: #9aa3b2;
  --border: #1c2541;
  --accent: #5b8cff;
  --accent-contrast: #0b0f19;
  --chip-bg: #151c31;
  --link: #8fb3ff;
  --warn: #ff6464;
  --ok: #6ee7a9;
  --shadow: 0 8px 24px rgba(0,0,0,.35);
}

@media (prefers-color-scheme: light){
  :root{
    --bg:#f6f7fb;
    --card:#ffffff;
    --elev:#f8f9ff;
    --text:#0e1726;
    --muted:#5e6b7a;
    --border:#e6e8f0;
    --accent:#2e5bff;
    --accent-contrast:#ffffff;
    --chip-bg:#f1f4ff;
    --link:#1947e5;
    --warn:#b91c1c;
    --ok:#059669;
    --shadow: 0 8px 24px rgba(2,8,23,.08);
  }
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font: 16px/1.6 ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Inter, Arial, "Noto Sans", "Apple Color Emoji","Segoe UI Emoji";
  letter-spacing:.2px;
}

a{color:var(--link);text-decoration:none}
a:hover{text-decoration:underline}

.container{max-width:1200px;margin:0 auto;padding:0 24px}
@media(max-width:768px){
  .container{padding:0 16px}
}

/* === Enhanced Header === */
.header{
  position:sticky;top:0;z-index:100;
  backdrop-filter:saturate(1.3) blur(16px);
  background: color-mix(in oklab, var(--bg) 92%, transparent);
  border-bottom:1px solid var(--border);
  box-shadow:0 2px 8px rgba(0,0,0,.05);
  transition:all 0.3s ease;
}
.header-inner{
  display:flex;
  gap:24px;
  align-items:center;
  justify-content:space-between;
  padding:16px 24px;
  max-width:1200px;
  margin:0 auto;
}
@media(max-width:768px){
  .header-inner{padding:12px 16px;gap:16px}
}

.brand{
  display:flex;
  gap:14px;
  align-items:center;
  flex-shrink:0;
}
.brand .logo{
  width:42px;
  height:42px;
  border-radius:12px;
  object-fit:contain;
  display:block;
  flex-shrink:0;
}
.brand .name{
  font-weight:800;
  font-size:20px;
  letter-spacing:-0.3px;
  background:linear-gradient(135deg, var(--text), color-mix(in oklab, var(--text) 80%, transparent));
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  background-clip:text;
}
.brand .name a{
  color:inherit;
  text-decoration:none;
  background:unset;
  -webkit-text-fill-color:unset;
}
@media(max-width:768px){
  .brand .name{font-size:18px}
  .brand .logo{width:38px;height:38px}
}

.nav{
  display:flex;
  gap:8px;
  align-items:center;
  flex:1;
  justify-content:flex-end;
}

.header-search{
  flex:0 0 auto;
  min-width:200px;
  max-width:400px;
}
.search-input-wrapper{
  display:flex;
  align-items:center;
  background:var(--chip-bg);
  border:1px solid var(--border);
  border-radius:10px;
  padding:8px 12px;
  transition:all 0.2s ease;
}
.search-input-wrapper:focus-within{
  border-color:var(--accent);
  box-shadow:0 0 0 3px rgba(91,140,255,.1);
}
.search-input-wrapper svg{
  flex-shrink:0;
  color:var(--muted);
  margin-right:8px;
}
.search-input-wrapper input{
  flex:1;
  border:none;
  background:transparent;
  color:var(--text);
  font-size:14px;
  outline:none;
  width:100%;
}
.search-input-wrapper input::placeholder{
  color:var(--muted);
}
@media(max-width:768px){
  .header-search{
    order:3;
    width:100%;
    max-width:100%;
    margin-top:12px;
  }
  .header-inner{
    flex-wrap:wrap;
  }
  .nav{
    order:2;
    flex:0 0 auto;
  }
}
.nav a{
  padding:10px 16px;
  border-radius:10px;
  color:var(--text);
  text-decoration:none;
  font-weight:500;
  font-size:15px;
  transition:all 0.2s ease;
  position:relative;
}
.nav a::before{
  content:"";
  position:absolute;
  bottom:6px;
  left:50%;
  transform:translateX(-50%) scaleX(0);
  width:calc(100% - 16px);
  height:2px;
  background:var(--accent);
  border-radius:2px;
  transition:transform 0.2s ease;
}
.nav a.current,
.nav a:hover{
  background:var(--chip-bg);
  color:var(--accent);
}
.nav a.current::before,
.nav a:hover::before{
  transform:translateX(-50%) scaleX(1);
}

/* === Enhanced Toolbar & Search === */
.toolbar{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  align-items:center;
  margin:32px 0 20px;
  padding:16px 20px;
  background:var(--card);
  border:1px solid var(--border);
  border-radius:16px;
  box-shadow:0 2px 8px rgba(0,0,0,.05);
}
@media(max-width:768px){
  .toolbar{
    margin:20px 0 16px;
    padding:12px 16px;
  }
}

.search{
  display:flex;
  align-items:center;
  gap:12px;
  background:var(--elev);
  border:2px solid var(--border);
  border-radius:14px;
  padding:12px 16px;
  flex:1;
  min-width:200px;
  transition:all 0.2s ease;
}
.search:focus-within{
  border-color:var(--accent);
  box-shadow:0 0 0 4px color-mix(in oklab, var(--accent) 15%, transparent);
}
.search svg{
  flex-shrink:0;
  opacity:0.6;
  transition:opacity 0.2s;
}
.search:focus-within svg{
  opacity:1;
}
.search input{
  flex:1;
  background:transparent;
  border:0;
  color:var(--text);
  outline:none;
  font-size:15px;
  min-width:0;
}
.search input::placeholder{
  color:var(--muted);
  opacity:0.7;
}

.chips{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin:0 0 24px;
}
.chip{
  padding:8px 16px;
  border-radius:999px;
  background:var(--chip-bg);
  border:1.5px solid var(--border);
  font-size:13px;
  font-weight:500;
  cursor:pointer;
  transition:all 0.2s ease;
  color:var(--text);
  text-decoration:none;
  display:inline-flex;
  align-items:center;
}
.chip:hover{
  border-color:var(--accent);
  background:color-mix(in oklab, var(--chip-bg), var(--accent) 10%);
  transform:translateY(-1px);
}
.chip.active{
  background:var(--accent);
  color:var(--accent-contrast);
  border-color:var(--accent);
  box-shadow:0 4px 12px rgba(91,140,255,.3);
  font-weight:600;
}

.select{
  background:var(--card);border:1px solid var(--border);border-radius:12px;padding:8px 10px;color:var(--text)
}

/* === Enhanced Grid & Cards === */
.grid{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(300px,1fr));
  gap:24px;
  margin:24px 0 48px;
}
@media(max-width:768px){
  .grid{
    grid-template-columns:1fr;
    gap:20px;
    margin:20px 0 32px;
  }
}

.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 4px 12px rgba(0,0,0,.08);
  display:flex;
  flex-direction:column;
  min-height:60px;
  transition:all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position:relative;
  isolation:isolate; /* Create new stacking context */
}
.card::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius:18px;
  padding:1px;
  background:linear-gradient(135deg, rgba(91,140,255,.2), rgba(122,162,255,.1), transparent);
  -webkit-mask:linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite:xor;
  mask-composite:exclude;
  opacity:0;
  transition:opacity 0.3s ease;
  pointer-events:none; /* Don't block clicks */
  z-index:0; /* Keep it behind content */
}
.card:hover{
  transform:translateY(-4px);
  box-shadow:0 12px 32px rgba(0,0,0,.15);
  border-color:color-mix(in oklab, var(--accent) 30%, transparent);
}
.card:hover::before{
  opacity:1;
}

.thumb{
  position:relative;
  aspect-ratio:16/9;
  background:var(--elev);
  overflow:hidden;
  display:block;
  text-decoration:none;
  z-index:1; /* Ensure thumb is above ::before */
}
.thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition:transform 0.4s ease;
}
.card:hover .thumb img{
  transform:scale(1.05);
}

.badge{
  position:absolute;
  inset:auto 12px 12px auto;
  background:var(--accent);
  color:var(--accent-contrast);
  padding:6px 12px;
  border-radius:999px;
  font-weight:600;
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:0.5px;
  box-shadow:0 4px 12px rgba(0,0,0,.25);
  backdrop-filter:blur(8px);
}

.content{
  padding:20px;
  display:flex;
  flex-direction:column;
  gap:12px;
  flex:1;
  position:relative;
  z-index:1; /* Ensure content is above ::before */
}
.meta{
  display:flex;
  gap:10px;
  align-items:center;
  color:var(--muted);
  font-size:13px;
  flex-wrap:wrap;
  position:relative;
  z-index:1; /* Ensure meta is clickable */
}
.meta a{
  position:relative;
  z-index:2; /* Author links are clickable */
}
.dot{
  width:4px;
  height:4px;
  border-radius:50%;
  background:currentColor;
  opacity:.6;
}
.title{
  font-weight:700;
  font-size:18px;
  line-height:1.35;
  letter-spacing:-0.2px;
  margin:0;
}
.title a{
  color:var(--text);
  text-decoration:none;
  transition:color 0.2s ease;
  display:block;
  width:100%;
  cursor:pointer;
  position:relative;
  padding:4px 0;
  z-index:2; /* Ensure title links are clickable */
}
.title a:hover{
  color:var(--accent);
  text-decoration:none;
}
.title a:active{
  color:var(--link);
}
.excerpt{
  color:var(--muted);
  font-size:14px;
  line-height:1.6;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  margin:0;
}

/* === Enhanced Footer === */
.footer{
  width:100%;
  padding:48px 0 32px;
  margin-top:64px;
  border-top:1px solid var(--border);
  color:var(--muted);
  text-align:center;
  background:color-mix(in oklab, var(--bg), var(--card) 20%);
  min-height:200px; /* Prevent layout shift */
}
.footer-copyright #year{
  display:inline-block;
  min-width:4ch; /* Reserve space for year to prevent layout shift */
  text-align:left;
}
.footer small{
  font-size:14px;
}
@media(max-width:768px){
  .footer{
    padding:32px 16px 24px;
    margin-top:48px;
  }
}

/* === Enhanced Post Page === */
.post-wrap{
  max-width:900px;
  margin:0 auto;
  padding:32px 24px 48px;
}
@media(max-width:768px){
  .post-wrap{
    padding:24px 16px 32px;
  }
}

.post-hero{
  display:flex;
  flex-direction:column;
  gap:16px;
  margin:0 0 32px;
  padding-bottom:24px;
  border-bottom:1px solid var(--border);
}
.post-title{
  font-weight:900;
  font-size:clamp(32px, 4vw, 48px);
  line-height:1.15;
  letter-spacing:-0.5px;
  margin:0;
  color:var(--text);
}
@media (prefers-color-scheme: dark){
  .post-title{
    background:linear-gradient(135deg, var(--text), color-mix(in oklab, var(--text) 85%, transparent));
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
    background-clip:text;
  }
}
.post-meta{
  display:flex;
  gap:12px;
  align-items:center;
  color:var(--muted);
  font-size:14px;
  flex-wrap:wrap;
}
.post-cover{
  border-radius:20px;
  overflow:hidden;
  border:1px solid var(--border);
  box-shadow:0 8px 24px rgba(0,0,0,.12);
  margin:32px 0;
}
.post-cover img{
  display:block;
  width:100%;
  height:auto;
}

.post-body{
  font-size:18px;
  line-height:1.85;
  color:var(--text);
  margin:32px 0;
}
.post-body p{
  margin:0 0 24px;
}
.post-body h1,
.post-body h2,
.post-body h3,
.post-body h4,
.post-body h5,
.post-body h6{
  margin:32px 0 16px;
  font-weight:700;
  line-height:1.3;
  color:var(--text);
}
.post-body h2{font-size:28px}
.post-body h3{font-size:24px}
.post-body h4{font-size:20px}
.post-body img{
  max-width:100%;
  height:auto;
  border-radius:14px;
  border:1px solid var(--border);
  margin:32px 0;
  box-shadow:0 4px 16px rgba(0,0,0,.1);
}
.post-body a{
  color:var(--link);
  text-decoration:underline;
  text-underline-offset:3px;
  font-weight:500;
}
.post-body a:hover{
  color:var(--accent);
  text-decoration-thickness:2px;
}
.post-body code{
  background:var(--chip-bg);
  padding:2px 6px;
  border-radius:6px;
  font-size:0.9em;
  font-family:ui-monospace, monospace;
}
.post-body pre{
  background:var(--elev);
  border:1px solid var(--border);
  border-radius:12px;
  padding:20px;
  overflow-x:auto;
  margin:24px 0;
}
.post-body pre code{
  background:none;
  padding:0;
}
.post-body blockquote{
  border-left:4px solid var(--accent);
  padding-left:20px;
  margin:24px 0;
  color:var(--muted);
  font-style:italic;
}
.kbd{background:var(--chip-bg);padding:2px 6px;border-radius:6px;border:1px solid var(--border);font-size:12px}

.share{display:flex;gap:8px;flex-wrap:wrap}
.share-btn{
  padding:10px 16px;
  border-radius:10px;
  border:1.5px solid var(--border);
  background:var(--card);
  color:var(--text);
  text-decoration:none;
  display:inline-flex;
  gap:8px;
  align-items:center;
  font-weight:500;
  font-size:14px;
  cursor:pointer;
  transition:all 0.2s ease;
  font-family:inherit;
  line-height:1;
}
.share-btn:hover{
  transform:translateY(-1px);
  box-shadow:0 4px 12px rgba(0,0,0,.15);
}
.share-btn:active{
  transform:translateY(0);
}
.share-btn svg{
  flex-shrink:0;
  width:18px;
  height:18px;
}
.share-btn span{
  white-space:nowrap;
}
.share-btn-twitter{
  border-color:rgba(29,161,242,.3);
  color:#1da1f2;
}
.share-btn-twitter:hover{
  background:rgba(29,161,242,.1);
  border-color:#1da1f2;
}
.share-btn-facebook{
  border-color:rgba(24,119,242,.3);
  color:#1877f2;
}
.share-btn-facebook:hover{
  background:rgba(24,119,242,.1);
  border-color:#1877f2;
}
.share-btn-linkedin{
  border-color:rgba(0,119,181,.3);
  color:#0077b5;
}
.share-btn-linkedin:hover{
  background:rgba(0,119,181,.1);
  border-color:#0077b5;
}
.share-btn-copy{
  border-color:var(--border);
  color:var(--text);
}
.share-btn-copy:hover{
  background:var(--chip-bg);
  border-color:var(--accent);
}
.share-btn-copy.copied{
  background:var(--ok);
  border-color:var(--ok);
  color:var(--accent-contrast);
}
.share-btn-copy.copied:hover{
  background:var(--ok);
}
.share-btn-native{
  border-color:var(--accent);
  color:var(--accent);
}
.share-btn-native:hover{
  background:rgba(91,140,255,.1);
  border-color:var(--accent);
}
@media(max-width:640px){
  .share-btn span{
    display:none;
  }
  .share-btn{
    padding:10px 12px;
    min-width:44px;
    justify-content:center;
  }
}
/* === Enhanced Buttons === */
.btn{
  padding:12px 20px;
  border-radius:12px;
  border:1.5px solid var(--border);
  background:var(--card);
  color:var(--text);
  text-decoration:none;
  display:inline-flex;
  gap:8px;
  align-items:center;
  font-weight:500;
  font-size:14px;
  cursor:pointer;
  transition:all 0.2s ease;
}
.btn:hover{
  background:var(--chip-bg);
  border-color:var(--accent);
  transform:translateY(-1px);
  box-shadow:0 4px 12px rgba(0,0,0,.1);
}
.btn.primary{
  background:var(--accent);
  color:var(--accent-contrast);
  border-color:var(--accent);
  box-shadow:0 4px 16px rgba(91,140,255,.3);
}
.btn.primary:hover{
  background:color-mix(in oklab, var(--accent), white 10%);
  box-shadow:0 6px 20px rgba(91,140,255,.4);
  transform:translateY(-2px);
}

/* === Breadcrumbs === */
.breadcrumbs{
  margin:0 0 24px;
  font-size:14px;
  color:var(--muted);
}
.breadcrumbs a{
  color:var(--link);
  text-decoration:none;
}
.breadcrumbs a:hover{
  text-decoration:underline;
  color:var(--accent);
}
/* Only add separator after direct child spans that are ListItem, not nested spans */
.breadcrumbs > span[itemprop="itemListElement"]:not(:last-child)::after{
  content:" › ";
  color:var(--muted);
  opacity:0.6;
}

.related{margin-top:28px}
.related h3{margin:0 0 10px}

/* FAQ Section Styles */
.faq-section{
  margin:2rem 0;
  padding:1.5rem;
  background:var(--card);
  border-radius:8px;
  border:1px solid var(--border);
}
.faq-section h2{
  font-size:24px;
  margin:0 0 1.5rem;
  color:var(--text);
  font-weight:700;
}
.faq-item{
  margin-bottom:1.5rem;
  padding-bottom:1.5rem;
  border-bottom:1px solid var(--border);
}
.faq-item:last-child{
  margin-bottom:0;
  padding-bottom:0;
  border-bottom:none;
}
.faq-item h3{
  font-size:1.1rem;
  margin:0 0 0.5rem;
  color:var(--accent);
  font-weight:600;
  line-height:1.4;
}
.faq-item p{
  margin:0;
  color:var(--text);
  line-height:1.6;
}
@media(max-width:768px){
  .faq-section{
    padding:1rem;
    margin:1.5rem 0;
  }
  .faq-section h2{
    font-size:20px;
  }
  .faq-item h3{
    font-size:1rem;
  }
}

.skeleton{position:relative;overflow:hidden;background:var(--elev)}
.skeleton::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg, transparent, rgba(255,255,255,.12), transparent);transform:translateX(-100%);animation:shimmer 1.4s infinite}
@keyframes shimmer{to{transform:translateX(100%)}}


/* === Extracted from index.html (Hero Slider + Calendar Styles) === */
/* --- Hero Slider (lightweight, dependency-free) --- */
    /* === Enhanced Hero Slider === */
    .hero-slider{
      position:relative;
      aspect-ratio:16/9;
      border-radius:20px;
      overflow:hidden;
      background:#111;
      margin:0 0 32px;
      box-shadow:0 8px 32px rgba(0,0,0,.2);
    }
    @media (max-width:768px){
      .hero-slider{
        aspect-ratio:4/3;
        border-radius:16px;
        margin-bottom:24px;
      }
    }
    
    .hero-slider .slides{
      width:100%;
      height:100%;
      position:relative;
    }
    .hero-slider .slide{
      position:absolute;
      inset:0;
      opacity:0;
      transition:opacity .6s cubic-bezier(0.4, 0, 0.2, 1);
      pointer-events:none;
    }
    .hero-slider .slide.active{
      opacity:1;
      pointer-events:auto;
    }
    .hero-slider .slide a{
      display:block;
      width:100%;
      height:100%;
      position:relative;
      color:inherit;
      text-decoration:none;
    }
    .hero-slider img{
      width:100%;
      height:100%;
      object-fit:cover;
      display:block;
      transition:transform 8s ease;
    }
    .hero-slider .slide.active img{
      transform:scale(1.02);
    }
    
    .hero-slider .overlay{
      position:absolute;
      inset:auto 0 0 0;
      padding:32px 28px 28px;
      background:linear-gradient(transparent, rgba(0,0,0,.4) 30%, rgba(0,0,0,.85));
      color:#fff;
    }
    @media(max-width:768px){
      .hero-slider .overlay{
        padding:24px 20px 20px;
      }
    }
    
    .hero-slider .title{
      font-size:clamp(20px,2.8vw,32px);
      line-height:1.25;
      margin:0 0 10px;
      font-weight:800;
      letter-spacing:-0.3px;
      text-shadow:0 2px 8px rgba(0,0,0,.5);
    }
    .hero-slider .meta{
      font-size:14px;
      opacity:.95;
      display:flex;
      gap:10px;
      align-items:center;
    }
    .hero-slider .badge{
      background:rgba(255,255,255,.18);
      backdrop-filter:blur(12px) saturate(140%);
      border:1px solid rgba(255,255,255,.3);
      padding:6px 12px;
      border-radius:999px;
      font-size:11px;
      font-weight:600;
      text-transform:uppercase;
      letter-spacing:0.5px;
      margin-right:8px;
    }
    
    .hero-slider .nav{
      position:absolute;
      inset:0;
      display:flex;
      justify-content:space-between;
      align-items:center;
      pointer-events:none;
      padding:0 16px;
    }
    .hero-slider button.navbtn{
      pointer-events:auto;
      appearance:none;
      border:0;
      background:rgba(0,0,0,.5);
      backdrop-filter:blur(8px);
      color:#fff;
      width:48px;
      height:48px;
      border-radius:50%;
      display:grid;
      place-items:center;
      cursor:pointer;
      transition:all 0.2s ease;
      opacity:0.8;
    }
    .hero-slider button.navbtn:hover{
      background:rgba(0,0,0,.7);
      opacity:1;
      transform:scale(1.1);
    }
    .hero-slider button.navbtn:focus-visible{
      outline:2px solid #fff;
      outline-offset:3px;
    }
    
    .hero-slider .dots{
      position:absolute;
      left:0;
      right:0;
      bottom:16px;
      display:flex;
      gap:12px;
      justify-content:center;
      align-items:center;
      pointer-events:none;
    }
    .hero-slider .dot{
      position:relative;
      width:40px;
      height:40px;
      border:0;
      background:transparent;
      cursor:pointer;
      border-radius:50%;
      display:inline-flex;
      align-items:center;
      justify-content:center;
      pointer-events:auto;
      transition:transform 0.2s ease;
    }
    .hero-slider .dot:hover{
      transform:scale(1.2);
    }
    .hero-slider .dot::before{
      content:"";
      width:10px;
      height:10px;
      border-radius:50%;
      background:rgba(255,255,255,.5);
      display:block;
      transition:all 0.2s ease;
    }
    .hero-slider .dot.active::before{
      background:#fff;
      width:32px;
      border-radius:999px;
      box-shadow:0 0 12px rgba(255,255,255,.5);
    }
    .hero-slider .dot:focus-visible{
      outline:2px solid #fff;
      outline-offset:3px;
    }
  
    /* Increase tap target for nav links */
    .header .nav a{display:inline-flex;align-items:center;justify-content:center;min-width:48px;min-height:48px;padding:0 12px}
  
    /* Minimum touch target sizes for links/buttons */
    .card .title a.tap{display:inline-flex;min-height:48px;align-items:center}
    .chips a{display:inline-flex;min-height:48px;align-items:center;padding:0 12px}
  
    /* === Enhanced Calendar / Upcoming Events === */
    .events-list{
      display:flex;
      flex-direction:column;
      gap:12px;
    }
    .event-row{
      display:grid;
      grid-template-columns:2fr 1fr 1.2fr;
      gap:16px;
      align-items:center;
      background:var(--card);
      border:1px solid var(--border);
      border-radius:14px;
      padding:16px 20px;
      transition:all 0.2s ease;
    }
    .event-row:hover{
      border-color:var(--accent);
      box-shadow:0 4px 12px rgba(0,0,0,.08);
      transform:translateX(4px);
    }
    .event-name{
      font-weight:600;
      font-size:15px;
      color:var(--text);
    }
    .event-date,
    .event-location{
      color:var(--muted);
      font-size:14px;
    }
    @media(max-width:720px){
      .event-row{
        grid-template-columns:1fr;
        gap:12px;
      }
      .event-date,
      .event-location{
        padding-left:18px;
      }
    }
    .event-row .status{
      display:flex;
      align-items:center;
      gap:10px;
    }
    .dot{
      width:10px;
      height:10px;
      border-radius:50%;
      display:inline-block;
      flex-shrink:0;
    }
    @keyframes livePulse {
      0% { transform: scale(1); opacity: 1; }
      50% { transform: scale(1.4); opacity: 0.4; }
      100% { transform: scale(1); opacity: 1; }
    }
    .dot.live {
      background: var(--ok);
      box-shadow: 0 0 8px 3px rgba(110,231,169,0.4);
      animation: livePulse 1.5s infinite ease-in-out;
    }   
    .dot.upcoming{
      background:#eab308;
      box-shadow: 0 0 4px 2px rgba(234,179,8,0.3);
    }
    .dot.past{
      background:var(--warn);
      opacity:0.7;
    }


/* === Mobile Hamburger Menu (enhanced) === */
.menu-toggle{
  display:none;
  flex-direction:column;
  justify-content:center;
  gap:5px;
  width:40px;height:40px;
  background:transparent;border:0;padding:0;cursor:pointer;
}
.menu-toggle .bar{
  height:2px;width:100%;background:var(--text);border-radius:2px;transition:transform .25s ease, opacity .2s ease;
}
.menu-toggle.active .bar:nth-child(1){transform:translateY(6px) rotate(45deg)}
.menu-toggle.active .bar:nth-child(2){opacity:0}
.menu-toggle.active .bar:nth-child(3){transform:translateY(-6px) rotate(-45deg)}

/* Hide empty nav to avoid stray line */
.nav:empty{display:none}

/* Backdrop behind mobile menu */
.nav-backdrop{
  position:fixed;inset:0;background:rgba(0,0,0,.35);
  opacity:0;pointer-events:none;transition:opacity .25s ease;
  backdrop-filter:saturate(1.1) blur(2px);
}
.menu-open .nav-backdrop{opacity:1;pointer-events:auto}

/* Prevent body scroll when menu open */
.menu-open{overflow:hidden}

/* Mobile dropdown panel */
@media (max-width: 768px){
  .menu-toggle{display:flex}
  .header-inner{position:relative}
  .header .nav{
    position:absolute;right:20px;top:64px;left:auto;
    display:flex;flex-direction:column;gap:0;
    background:var(--card);
    border:1px solid var(--border);
    border-radius:14px;
    box-shadow:var(--shadow);
    overflow:hidden;
    transform-origin:top right;
    transform:scaleY(0.9);
    opacity:0;
    visibility:hidden;
    transition:opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
  }
  .header .nav.open{
    opacity:1;transform:scaleY(1);
    visibility:visible;transition-delay:0s;
  }
  .header .nav a{
    padding:14px 18px;
    border-bottom:1px solid var(--border);
    min-width:180px;
  }
  .header .nav a:last-child{border-bottom:0}
}

/* Slight hover accent for menu links */
.header .nav a:hover{background:var(--chip-bg)}

/* === Back to Top Button === */
.back-to-top{
  position:fixed;
  bottom:32px;
  right:32px;
  width:48px;
  height:48px;
  border-radius:50%;
  background:var(--accent);
  color:var(--accent-contrast);
  border:none;
  box-shadow:0 4px 16px rgba(91,140,255,.4);
  cursor:pointer;
  display:none;
  align-items:center;
  justify-content:center;
  font-size:20px;
  z-index:90;
  transition:all 0.3s ease;
  opacity:0;
  transform:translateY(20px);
}
.back-to-top.visible{
  display:flex;
  opacity:1;
  transform:translateY(0);
}
.back-to-top:hover{
  background:color-mix(in oklab, var(--accent), white 10%);
  box-shadow:0 6px 20px rgba(91,140,255,.5);
  transform:translateY(-2px);
}
.back-to-top:active{
  transform:translateY(0);
}
@media(max-width:768px){
  .back-to-top{
    bottom:24px;
    right:24px;
    width:44px;
    height:44px;
  }
}

/* === Toast Notifications (Public Pages) === */
#toastContainer{
  position:fixed;
  top:80px;
  right:24px;
  z-index:1000;
  display:flex;
  flex-direction:column;
  gap:12px;
  max-width:400px;
  pointer-events:none;
}
@media(max-width:768px){
  #toastContainer{
    right:16px;
    left:16px;
    max-width:none;
  }
}
.toast{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:14px;
  padding:16px 20px;
  box-shadow:0 8px 32px rgba(0,0,0,.2);
  display:flex;
  align-items:center;
  gap:14px;
  animation:slideInRight 0.3s ease;
  min-width:280px;
  pointer-events:auto;
  backdrop-filter:blur(8px);
}
@keyframes slideInRight{
  from{
    transform:translateX(100%);
    opacity:0;
  }
  to{
    transform:translateX(0);
    opacity:1;
  }
}
.toast.success{
  border-left:4px solid var(--ok);
}
.toast.error{
  border-left:4px solid var(--warn);
}
.toast.info{
  border-left:4px solid var(--accent);
}
.toast .icon{
  font-size:22px;
  flex-shrink:0;
}
.toast.success .icon{color:var(--ok)}
.toast.error .icon{color:var(--warn)}
.toast.info .icon{color:var(--accent)}
.toast .message{
  flex:1;
  color:var(--text);
  font-size:14px;
  font-weight:500;
  line-height:1.4;
}
.toast .close{
  background:none;
  border:none;
  color:var(--muted);
  cursor:pointer;
  padding:4px;
  font-size:20px;
  line-height:1;
  opacity:0.6;
  transition:opacity 0.2s;
  display:flex;
  align-items:center;
  justify-content:center;
  width:24px;
  height:24px;
  border-radius:4px;
}
.toast .close:hover{
  opacity:1;
  background:rgba(125,125,125,.1);
}

/* === Loading States === */
.loading-spinner{
  display:inline-block;
  width:20px;
  height:20px;
  border:3px solid rgba(125,125,125,.2);
  border-top-color:var(--accent);
  border-radius:50%;
  animation:spin 0.8s linear infinite;
}
@keyframes spin{
  to{transform:rotate(360deg)}
}
.loading-overlay{
  position:absolute;
  inset:0;
  background:color-mix(in oklab, var(--bg) 90%, transparent);
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:inherit;
  z-index:10;
}
.grid.loading::after{
  content:"";
  grid-column:1/-1;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:60px 20px;
  color:var(--muted);
  font-size:15px;
}

/* === Social Links Hover Effects === */
.footer a[aria-label]{
  transition:all 0.2s ease;
}
.footer a[aria-label]:hover{
  background:var(--accent) !important;
  color:var(--accent-contrast) !important;
  border-color:var(--accent) !important;
  transform:translateY(-2px);
  box-shadow:0 4px 12px rgba(91,140,255,.3);
}

/* === Common Layout Styles === */
main.container{padding-top:24px}
.page-content{max-width:800px;margin:0 auto}
.content-article{padding:40px 20px}
.page-title{font-size:clamp(32px, 5vw, 48px);font-weight:700;margin:0 0 24px;line-height:1.2}
.page-subtitle{font-size:clamp(28px, 4vw, 36px);font-weight:700;margin:0 0 24px}
.page-subtitle-small{margin:0 0 20px;font-size:28px;font-weight:700}
.section-title{font-size:28px;font-weight:700;margin:32px 0 16px}
.content-text{line-height:1.8;font-size:16px;color:var(--text)}
.lead-text{margin-bottom:24px;font-size:18px;color:var(--muted)}
.lead-text-large{margin-bottom:32px;font-size:18px;color:var(--muted)}
.paragraph{margin-bottom:16px}
.content-list{margin-bottom:16px;padding-left:24px}

/* === Footer Common Styles === */
.footer-inner{max-width:1200px;margin:0 auto;padding:0 24px}
.footer-brand-wrapper{margin-bottom:20px}
.footer-brand{justify-content:center;margin-bottom:16px}
.footer-name{font-size:20px}
.footer-description{color:var(--muted);font-size:15px;margin:0;line-height:1.7;text-align:center}
.footer-nav{display:flex;gap:24px;justify-content:center;flex-wrap:wrap;margin:24px 0;padding:24px 0;border-top:1px solid var(--border);border-bottom:1px solid var(--border)}
.footer-nav a{color:var(--muted);text-decoration:none;font-size:14px;transition:color 0.2s;font-weight:500}
.footer-nav a:hover{color:var(--accent)}
.footer-socials{display:flex;gap:16px;justify-content:center;align-items:center;margin:20px 0 16px;flex-wrap:wrap}
.footer-social-link{display:flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:50%;background:var(--chip-bg);border:1px solid var(--border);color:var(--text);text-decoration:none;transition:all 0.2s;font-size:18px}
.footer-copyright{color:var(--muted);font-size:13px;display:block;text-align:center}

/* === Events Section === */
.events-section{
  margin-top:48px;
  min-height:100px; /* Prevent layout shift while loading */
}
.events-title{margin:0 0 20px;font-size:28px;font-weight:700}

/* === Search Page Styles === */
.search-results-header{margin:32px 0 24px}
.search-query{font-weight:600;color:var(--accent)}
.results-count{color:var(--muted);font-size:14px;margin-top:8px}

/* === Category Page Styles === */
.categories-list{display:grid;grid-template-columns:repeat(auto-fill, minmax(200px, 1fr));gap:16px;margin-top:24px}
.category-card{background:var(--card);border:1px solid var(--border);border-radius:12px;padding:20px;text-decoration:none;color:var(--text);transition:all 0.2s;display:flex;flex-direction:column;gap:8px}
.category-card:hover{border-color:var(--accent);transform:translateY(-2px);box-shadow:0 4px 12px rgba(0,0,0,.1);text-decoration:none}
.category-name{font-size:18px;font-weight:600;color:var(--text);margin:0}
.category-count{font-size:14px;color:var(--muted);margin:0}
.category-count strong{color:var(--accent);font-weight:600}
.category-description{margin-bottom:32px;padding:20px;background:var(--card);border-radius:8px;border:1px solid var(--border)}
.category-description-inner{line-height:1.8;color:var(--text)}
@media(max-width:768px){
  .categories-list{grid-template-columns:repeat(auto-fill, minmax(150px, 1fr));gap:12px}
  .category-card{padding:16px}
}

/* === 404 Error Page Styles === */
.error-page{min-height:60vh;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:40px 20px}
.error-page h1{font-size:120px;margin:0;color:var(--muted);font-weight:300;line-height:1}
.error-page h2{font-size:24px;margin:20px 0 10px;color:var(--text)}
.error-page p{color:var(--muted);margin-bottom:30px;max-width:500px}
.error-page .links{display:flex;gap:16px;flex-wrap:wrap;justify-content:center}
.error-page a{padding:12px 24px;background:var(--accent);color:var(--accent-contrast);text-decoration:none;border-radius:8px;font-weight:500;transition:opacity 0.2s}
.error-page a:hover{opacity:0.9}
.error-page a.secondary{background:transparent;color:var(--accent);border:2px solid var(--accent)}

/* === About/Contact Page Styles === */
.content-link{color:var(--accent);text-decoration:none}
.contact-card{background:var(--card);border:1px solid var(--border);border-radius:12px;padding:32px;margin-bottom:32px}
.contact-card h2{font-size:24px;font-weight:700;margin:0 0 16px}
.contact-card p{margin-bottom:24px}
.contact-info{display:flex;flex-direction:column;gap:16px}
.contact-info-label{display:block;margin-bottom:4px;color:var(--accent)}
.contact-info-value{color:var(--text);text-decoration:none}
.contact-socials{display:flex;gap:16px;margin-top:8px}
.contact-socials a{color:var(--text);text-decoration:none}
.contact-note{margin-top:32px;padding:20px;background:var(--chip-bg);border-radius:8px;border-left:4px solid var(--accent)}

/* === Post Page Styles === */
.post-excerpt{margin:0}
.share-section{margin-top:18px}
.load-more-wrapper{display:flex;justify-content:center;margin-top:8px}

/* === Loading/Empty States === */
.loading-state{grid-column:1/-1;display:flex;align-items:center;justify-content:center;padding:60px 20px;color:var(--muted);gap:12px}
.loading-state-inline{grid-column:1/-1;padding:60px 20px;text-align:center}
.error-state{grid-column:1/-1;padding:40px 20px;text-align:center;color:var(--warn)}
.error-state p{font-size:16px;margin:0}
.empty-state-center{grid-column:1/-1;padding:60px 20px;text-align:center}
.empty-state-center p{font-size:18px;color:var(--muted);margin:0}
.empty-state-center p + p{margin-top:12px}
.skeleton-full{width:100%;height:100%}

/* === Utility Classes === */
.text-center{text-align:center}
.mb-0{margin-bottom:0}

/* === Title Link Styles === */
.title a{display:block;width:100%;cursor:pointer;position:relative;padding:4px 0;z-index:2}

/* === iGO Editorial Page Styles === */
.editorial-wrap{max-width:1400px;margin:0 auto;padding:20px}

.editorial-header{background:var(--card);border-bottom:2px solid var(--border);padding:20px;margin:0 -20px 20px -20px;display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.editorial-header h1{margin:0;font-size:24px;font-weight:700}
.editorial-header .actions{display:flex;gap:10px;flex-wrap:wrap}

.stats-grid{display:grid;grid-template-columns:repeat(auto-fit, minmax(200px, 1fr));gap:16px;margin-bottom:32px}
.stat-card{background:var(--card);border:1px solid var(--border);border-radius:12px;padding:20px;text-align:center}
.stat-card .number{font-size:32px;font-weight:700;color:var(--accent);margin:0 0 8px}
.stat-card .label{color:var(--muted);font-size:14px;margin:0}

.section{margin-top:32px}
.section-title{font-size:20px;font-weight:600;margin:0 0 16px;color:var(--text)}

/* Editorial toolbar (more specific than general toolbar) */
.editorial-wrap .toolbar{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-bottom:16px;padding:12px 16px;background:var(--card);border:1px solid var(--border);border-radius:12px}
.search-wrapper{position:relative;flex:1;max-width:400px}
.search-wrapper::before{content:"🔍";position:absolute;left:12px;top:50%;transform:translateY(-50%);opacity:0.5;pointer-events:none}
.search-wrapper input{padding-left:36px}

.editorial-wrap .results{display:flex;flex-direction:column;gap:8px;min-height:200px}
.editorial-wrap .card{background:var(--card);border-radius:8px;box-shadow:var(--shadow);padding:16px;border:1px solid var(--border);transition:all 0.2s}
.editorial-wrap .card:hover{border-color:var(--accent);transform:translateY(-1px);box-shadow:0 6px 20px rgba(0,0,0,.4)}
.card-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:8px}
.card-title{margin:0;font-size:16px;font-weight:600;color:var(--text);line-height:1.3}
.card-meta{display:flex;flex-wrap:wrap;gap:8px;color:var(--muted);font-size:12px;margin-top:8px}
.card-actions{display:flex;gap:6px;flex-wrap:wrap;margin-top:12px}

.status-badge{display:inline-flex;align-items:center;gap:4px;padding:4px 10px;border-radius:999px;font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:0.3px}
.status-badge.published{background:rgba(110,231,169,.15);color:var(--ok);border:1px solid rgba(110,231,169,.3)}
.status-badge.draft{background:rgba(251,191,36,.15);color:#fbbf24;border:1px solid rgba(251,191,36,.3)}

.pill{display:inline-flex;align-items:center;gap:4px;padding:6px 12px;border-radius:8px;background:var(--chip-bg);color:var(--text);font-size:12px;font-weight:500;border:1px solid var(--border);transition:all 0.2s;text-decoration:none}
.pill:hover{background:var(--accent);color:var(--accent-contrast);border-color:var(--accent);transform:scale(1.05);text-decoration:none}
.pill.primary{background:var(--accent);color:var(--accent-contrast);border-color:var(--accent)}

.empty-state{text-align:center;padding:60px 20px;color:var(--muted)}
.empty-state-icon{font-size:48px;margin-bottom:16px;opacity:0.5}
.empty-state h3{color:var(--text);margin:0 0 8px;font-size:18px}
.empty-state p{margin:0;font-size:14px}

.loading{display:inline-flex;align-items:center;gap:8px;color:var(--muted)}
.spinner{width:16px;height:16px;border:2px solid var(--border);border-top-color:var(--accent);border-radius:50%;animation:spin 0.6s linear infinite}

.editorial-wrap .btn{padding:10px 18px;border-radius:10px;border:1.5px solid var(--border);background:var(--card);color:var(--text);text-decoration:none;display:inline-flex;gap:6px;align-items:center;font-weight:500;font-size:14px;cursor:pointer;transition:all 0.2s}
.editorial-wrap .btn:hover{background:var(--chip-bg);border-color:var(--accent);transform:translateY(-1px);text-decoration:none}
.editorial-wrap .btn.primary{background:var(--accent);color:var(--accent-contrast);border-color:var(--accent)}

.editorial-wrap .select{background:var(--card);border:1px solid var(--border);border-radius:10px;padding:8px 12px;color:var(--text);font-size:14px}

@media (max-width:768px){
  .editorial-wrap{padding:12px}
  .editorial-header{margin:0 -12px 20px -12px;padding:16px}
  .stats-grid{grid-template-columns:1fr}
  .editorial-wrap .toolbar{flex-direction:column;align-items:stretch}
  .search-wrapper{max-width:100%}
}

/* === Category Sections (Homepage) === */
.category-section{
  margin:48px 0;
  padding:0;
}
.category-section:first-of-type{
  margin-top:32px;
}
.category-section-title{
  font-size:28px;
  font-weight:700;
  margin:0 0 24px 0;
  color:var(--text);
  padding-bottom:12px;
  border-bottom:2px solid var(--border);
}
.category-section-content{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:32px;
  align-items:start;
}
.category-featured{
  flex:1;
}
.category-featured-card{
  height:100%;
}
.category-list{
  display:flex;
  flex-direction:column;
  gap:16px;
}
.category-posts-list{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:12px;
}
.category-post-item{
  margin:0;
  padding:0;
}
.category-post-link{
  display:flex;
  flex-direction:column;
  gap:4px;
  padding:12px;
  border-radius:8px;
  background:var(--card);
  border:1px solid var(--border);
  transition:all 0.2s ease;
  text-decoration:none;
  color:var(--text);
}
.category-post-link:hover{
  background:var(--elev);
  border-color:var(--accent);
  transform:translateX(4px);
  text-decoration:none;
}
.category-post-title{
  font-size:14px;
  line-height:1.4;
  color:var(--text);
}
.category-post-date{
  font-size:13px;
  color:var(--muted);
}
.category-more-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:4px 20px;
  background:var(--accent);
  color:var(--accent-contrast);
  border-radius:8px;
  font-weight:600;
  font-size:14px;
  text-decoration:none;
  transition:all 0.2s ease;
  margin-top:8px;
  align-self:center;
  width:100%;
}
.category-more-link:hover{
  background:color-mix(in oklab, var(--accent) 90%, black);
  transform:translateY(-2px);
  box-shadow:0 4px 12px rgba(0,0,0,.2);
  text-decoration:none;
}
@media(max-width:968px){
  .category-section-content{
    grid-template-columns:1fr;
    gap:24px;
  }
  .category-featured{
    order:-1;
  }
  .category-section-title{
    font-size:24px;
  }
}