/* Nakshatra Hora - shared header, mobile menu, section links and footer.
   Scoped under #nh-header / #nh-drawer / .nh-related / #nh-footer so page styles do not leak in or out. */
#nh-header, #nh-drawer, .nh-related, #nh-footer {
  --nh-ivory:#faf6ee; --nh-card:#fffdf9; --nh-line:#e8ddc4; --nh-blue:#1e3a6e;
  --nh-gold:#bfa065; --nh-gold-deep:#a8874f; --nh-ink:#3d3a34; --nh-muted:#6f6a5e;
  font-family:Arial,Helvetica,sans-serif; box-sizing:border-box; text-align:left;
}
#nh-header *, #nh-drawer *, .nh-related *, #nh-footer * { box-sizing:border-box; }
#nh-header a, #nh-drawer a, .nh-related a, #nh-footer a { text-decoration:none; }
html.nh-lock, html.nh-lock body { overflow:hidden; }

/* ---------- header ---------- */
#nh-header { position:sticky; top:0; z-index:1100; background:rgba(250,246,238,.96);
  -webkit-backdrop-filter:blur(10px); backdrop-filter:blur(10px); border-bottom:1px solid var(--nh-line);
  margin:0; padding:0; width:100%; }
#nh-header .nh-bar { max-width:1240px; margin:0 auto; padding:0 18px; height:64px; display:flex; align-items:center; gap:10px; }
#nh-header .nh-brand { display:flex; align-items:center; gap:9px; color:var(--nh-blue); font-family:Cinzel,Georgia,serif;
  font-weight:700; font-size:19px; letter-spacing:.4px; white-space:nowrap; flex:0 0 auto; margin-right:6px; }
#nh-header .nh-brand img { width:34px; height:34px; display:block; border:0; }
#nh-header .nh-menu { list-style:none; display:flex; align-items:center; gap:0; margin:0 auto 0 0; padding:0; flex:1 1 auto; min-width:0; }
#nh-header .nh-item { position:relative; display:flex; align-items:center; margin:0; padding:0; list-style:none; }
#nh-header .nh-top { color:var(--nh-ink); font-size:14.5px; letter-spacing:.2px; padding:22px 4px 20px 10px; white-space:nowrap;
  border-bottom:3px solid transparent; line-height:19px; display:block; background:none; }
#nh-header .nh-top:hover, #nh-header .nh-item.open .nh-top { color:var(--nh-blue); }
#nh-header .nh-item.nh-active .nh-top { color:var(--nh-blue); font-weight:700; border-bottom-color:var(--nh-gold); }
#nh-header .nh-caret { background:none; border:0; padding:6px 6px 6px 2px; margin:0; cursor:pointer; color:var(--nh-muted);
  font-size:11px; line-height:1; border-radius:6px; font-family:Arial,Helvetica,sans-serif; }
#nh-header .nh-caret:hover, #nh-header .nh-caret:focus-visible { color:var(--nh-blue); background:rgba(191,160,101,.14); }
#nh-header .nh-dd { display:none; position:absolute; top:100%; left:0; min-width:250px; background:var(--nh-card);
  border:1px solid var(--nh-line); border-radius:12px; box-shadow:0 14px 34px rgba(60,40,10,.14); padding:12px 8px; z-index:1200; }
#nh-header .nh-dd.nh-cols-2 { min-width:480px; }
#nh-header .nh-item:last-child .nh-dd, #nh-header .nh-item.nh-right .nh-dd { left:auto; right:0; }
#nh-header .nh-item.open .nh-dd { display:flex; }
@media (hover:hover) and (min-width:1101px) { #nh-header .nh-item:hover .nh-dd, #nh-header .nh-item:focus-within .nh-dd { display:flex; } }
#nh-header .nh-group { flex:1 1 0; min-width:210px; padding:0 6px; }
#nh-header .nh-group-h { font-size:11px; letter-spacing:1.4px; text-transform:uppercase; color:var(--nh-gold-deep); font-weight:700; margin:4px 10px 6px; }
#nh-header .nh-dd a { display:block; color:var(--nh-ink); font-size:14px; padding:7px 10px; border-radius:8px; line-height:1.35; white-space:normal; }
#nh-header .nh-dd a:hover, #nh-header .nh-dd a:focus-visible { background:rgba(191,160,101,.15); color:var(--nh-blue); }
#nh-header .nh-dd a[aria-current="page"] { color:var(--nh-blue); font-weight:700; }
#nh-header .nh-actions { display:flex; align-items:center; gap:8px; flex:0 0 auto; margin-left:auto; }
#nh-header .nh-lang, #nh-drawer .nh-lang { display:inline-flex; border:1px solid var(--nh-line); border-radius:999px; overflow:hidden; background:var(--nh-card); }
#nh-header .nh-lang button, #nh-drawer .nh-lang button { border:0; background:transparent; color:var(--nh-ink); font-family:Arial,Helvetica,sans-serif;
  font-size:13px; font-weight:700; padding:7px 12px; cursor:pointer; white-space:nowrap; line-height:1.2; margin:0; }
#nh-header .nh-lang button.on, #nh-drawer .nh-lang button.on { background:var(--nh-blue); color:#fff; }
#nh-header .nh-cta, #nh-drawer .nh-cta { display:inline-block; background:var(--nh-gold); color:#fff; padding:9px 16px; border-radius:999px;
  font-size:14px; font-weight:700; letter-spacing:.3px; white-space:nowrap; line-height:1.2; }
#nh-header .nh-cta:hover, #nh-drawer .nh-cta:hover { background:var(--nh-gold-deep); color:#fff; }
#nh-header .nh-auth-slot:empty { display:none; }
#nh-header .nh-burger { display:none; width:42px; height:42px; border:1px solid var(--nh-line); border-radius:10px; background:var(--nh-card);
  cursor:pointer; align-items:center; justify-content:center; flex-direction:column; gap:4px; padding:0; margin:0; flex:0 0 auto; }
#nh-header .nh-burger span { display:block; width:20px; height:2px; background:var(--nh-blue); border-radius:2px; }

/* tighter desktop */
@media (max-width:1240px) { #nh-header .nh-top { padding-left:7px; font-size:14px; } #nh-header .nh-brand { font-size:17px; } }
/* below 1100px: one clean menu button, no shrunk desktop bar */
@media (max-width:1100px) {
  #nh-header .nh-menu { display:none; }
  #nh-header .nh-burger { display:inline-flex; }
  #nh-header .nh-bar { height:58px; padding:0 14px; }
}
@media (max-width:560px) {
  #nh-header .nh-actions .nh-cta, #nh-header .nh-actions .nh-lang { display:none; }
  #nh-header .nh-brand { font-size:16px; }
  #nh-header .nh-brand img { width:30px; height:30px; }
}

/* ---------- mobile drawer ---------- */
#nh-backdrop { position:fixed; inset:0; background:rgba(20,16,8,.42); z-index:1290; opacity:0; pointer-events:none; transition:opacity .2s; }
#nh-backdrop.open { opacity:1; pointer-events:auto; }
#nh-drawer { position:fixed; top:0; right:0; bottom:0; width:340px; max-width:88vw; background:#fffdf8; z-index:1300;
  transform:translateX(105%); transition:transform .25s ease; overflow-y:auto; -webkit-overflow-scrolling:touch;
  box-shadow:-2px 0 18px rgba(60,40,10,.16); padding:14px 16px 28px; visibility:hidden; }
#nh-drawer.open { transform:translateX(0); visibility:visible; }
#nh-drawer .nh-drawer-top { display:flex; align-items:center; justify-content:space-between; margin:0 0 10px; }
#nh-drawer .nh-drawer-title { font-family:Cinzel,Georgia,serif; color:var(--nh-blue); font-weight:700; font-size:18px; }
#nh-drawer .nh-drawer-close { width:40px; height:40px; border:1px solid var(--nh-line); border-radius:10px; background:var(--nh-card);
  font-size:24px; line-height:1; color:var(--nh-blue); cursor:pointer; }
#nh-drawer .nh-drawer-actions { display:flex; align-items:center; justify-content:space-between; gap:10px; margin:0 0 12px; }
#nh-drawer .nh-home { display:block; padding:12px 4px; color:var(--nh-blue); font-weight:700; font-size:16px; border-bottom:1px solid var(--nh-line); }
#nh-drawer details { border-bottom:1px solid var(--nh-line); }
#nh-drawer summary { list-style:none; cursor:pointer; padding:13px 4px; font-size:16px; font-weight:700; color:var(--nh-ink);
  display:flex; justify-content:space-between; align-items:center; }
#nh-drawer summary::-webkit-details-marker { display:none; }
#nh-drawer summary::after { content:'+'; color:var(--nh-gold-deep); font-size:20px; font-weight:400; }
#nh-drawer details[open] summary::after { content:'\2212'; }
#nh-drawer details.nh-active summary { color:var(--nh-blue); }
#nh-drawer .nh-group-h { font-size:11px; letter-spacing:1.3px; text-transform:uppercase; color:var(--nh-gold-deep); font-weight:700; margin:6px 4px 2px; }
#nh-drawer .nh-dgroup { padding:0 0 10px; }
#nh-drawer .nh-dgroup a { display:block; padding:9px 4px 9px 12px; color:var(--nh-ink); font-size:15px; border-radius:8px; }
#nh-drawer .nh-dgroup a:hover { background:rgba(191,160,101,.14); }
#nh-drawer .nh-dgroup a[aria-current="page"] { color:var(--nh-blue); font-weight:700; }

/* ---------- section links block above the footer ---------- */
.nh-related { max-width:1100px; margin:36px auto 0; padding:22px 22px 6px; border-top:1px solid var(--nh-line); }
.nh-related .nh-rel-h { font-family:Cinzel,Georgia,serif; color:var(--nh-blue); font-size:18px; font-weight:700; margin:0 0 4px; }
.nh-related .nh-rel-sub { font-size:12px; letter-spacing:1.3px; text-transform:uppercase; color:var(--nh-gold-deep); font-weight:700; margin:14px 0 8px; }
.nh-related ul { list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; gap:8px; }
.nh-related li { margin:0; padding:0; list-style:none; }
.nh-related li::before { content:none; }
.nh-related a { display:inline-block; border:1px solid var(--nh-line); background:var(--nh-card); color:var(--nh-blue);
  font-size:14px; padding:7px 13px; border-radius:999px; line-height:1.3; }
.nh-related a:hover { border-color:var(--nh-gold); background:#fff; }
.nh-related a[aria-current="page"] { background:var(--nh-blue); color:#fff; border-color:var(--nh-blue); }

/* ---------- footer ---------- */
#nh-footer { border-top:1px solid var(--nh-line); margin:36px 0 0; padding:34px 0 40px; background:var(--nh-ivory); color:var(--nh-muted); font-size:14px; }
#nh-footer .nh-fwrap { max-width:1100px; margin:0 auto; padding:0 22px; }
#nh-footer .nh-fcols { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:22px; }
#nh-footer .nh-fh { font-family:Cinzel,Georgia,serif; color:var(--nh-blue); font-size:15px; font-weight:700; margin:0 0 10px; letter-spacing:.3px; }
#nh-footer .nh-fcol ul { list-style:none; margin:0; padding:0; }
#nh-footer .nh-fcol li { margin:0 0 7px; padding:0; list-style:none; }
#nh-footer .nh-fcol li::before { content:none; }
#nh-footer a { color:var(--nh-ink); }
#nh-footer a:hover { color:var(--nh-blue); text-decoration:underline; }
#nh-footer .nh-fbottom { border-top:1px solid var(--nh-line); margin-top:24px; padding-top:18px; text-align:center; line-height:1.9; }
#nh-footer .nh-fbottom p { margin:0; }
#nh-footer .nh-sep { margin:0 8px; color:var(--nh-line); }
@media (max-width:900px) { #nh-footer .nh-fcols { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:420px) { #nh-footer .nh-fcols { grid-template-columns:1fr 1fr; gap:16px; } }

@media print { #nh-header, #nh-drawer, #nh-backdrop, .nh-related, #nh-footer { display:none !important; } }
