/* =========================
   Natsai custom theme layer
   ========================= */

/* ---- NAV: divider + grey links (rentahuman-ish) ---- */
#gh-navigation {
  border-bottom: 1px solid rgba(255,255,255,.10);
}
#gh-navigation .gh-navigation-menu a {
  color: rgba(255,255,255,.62);
}
#gh-navigation .gh-navigation-menu a:hover {
  color: rgba(255,255,255,.92);
}
#gh-navigation .gh-navigation-menu .nav-current a {
  color: rgba(255,255,255,.95);
}

/* ---- BUTTONS: monospace everywhere, blue buttons = black text ---- */
a.gh-button,
button.gh-button,
.gh-button,
a.natsai-home-hero__btn,
.natsai-home-hero__btn {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-weight: 800;
}

/* Default Ghost buttons are accent/blue -> black text */
a.gh-button,
button.gh-button,
.gh-button {
  color: #081018;
}

/* Secondary/transparent buttons keep white-ish text */
a.gh-button.gh-button-secondary,
.gh-button.gh-button-secondary,
a.gh-button.is-secondary,
.gh-button.is-secondary {
  color: rgba(255,255,255,.92);
}

/* ---- HOMEPAGE: remove Source’s built-in landing subscribe header ---- */
.home-template .gh-header {
  display: none;
}

/* ---- HOMEPAGE HERO (Natsai) ---- */
.home-template .natsai-home-hero {
  padding: 34px 0 26px;
}

/* Stats */
.home-template .natsai-home-hero__stats {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  margin: 0 0 14px;
}
.home-template .natsai-home-hero__stat { min-width: 130px; }
.home-template .natsai-home-hero__stat-value {
  display: block;
  font-weight: 800;
  font-size: clamp(18px, 1.6vw, 26px);
  line-height: 1;
  color: var(--ghost-accent-color);
  margin-bottom: 6px;
}
.home-template .natsai-home-hero__stat-label {
  display: block;
  font-size: 12px;
  opacity: .78;
  line-height: 1.2;
}

/* 1-line punch headline (desktop), wraps on mobile */
.home-template .natsai-home-hero__title {
  margin: 0 auto 10px;
  max-width: 980px;
  font-size: 34px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}
.home-template .natsai-home-hero__title .accent {
  color: var(--ghost-accent-color);
}

/* Description = grey, exactly 2 lines via <span> blocks */
.home-template .natsai-home-hero__desc {
  margin: 0 auto 16px;
  max-width: 820px;
  font-size: 16px;
  line-height: 1.42;
  color: rgba(255,255,255,.72);
}
.home-template .natsai-home-hero__desc span { display: block; }

/* CTA buttons */
.home-template .natsai-home-hero__actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0;
}
.home-template .natsai-home-hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16);
  text-decoration: none;
  font-size: 14px;
}
.home-template .natsai-home-hero__btn--primary {
  background: var(--ghost-accent-color);
  color: #081018;
  border-color: transparent;
}
.home-template .natsai-home-hero__btn--secondary {
  background: transparent;
  color: rgba(255,255,255,.92);
}

/* Mobile: allow headline wrap */
@media (max-width: 820px){
  .home-template .natsai-home-hero__title{
    white-space: normal;
    max-width: 20ch;
    font-size: 30px;
    line-height: 1.08;
  }
}

/* NATSAI_DROPDOWNS_V2 */
li.n-has-dropdown { position: relative; }
li.n-has-dropdown > a { padding-right: 20px; }

li.n-has-dropdown .n-dd-toggle{
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: inherit;
  opacity: .85;
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
  padding: 2px 4px;
}

li.n-has-dropdown .n-nav-dd{
  display: none;
  position: absolute;
  left: 0;
  top: calc(100% + 10px);
  min-width: 240px;
  margin: 0;
  padding: 8px;
  list-style: none;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(7,10,18,.98);
  z-index: 9999;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}

li.n-has-dropdown:hover .n-nav-dd { display: block; }
li.n-has-dropdown.n-open .n-nav-dd { display: block; }

li.n-has-dropdown .n-nav-dd li { margin: 0; }

li.n-has-dropdown .n-nav-dd a{
  display: block;
  padding: 10px 10px;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  opacity: .95;
}

li.n-has-dropdown .n-nav-dd a:hover{
  background: rgba(255,255,255,.06);
}

@media (max-width: 900px){
  li.n-has-dropdown .n-nav-dd{
    position: static;
    margin-top: 10px;
    min-width: 0;
  }

  /* On mobile, use the toggle instead of hover */
  li.n-has-dropdown:hover .n-nav-dd {
    display: none;
  }

  li.n-has-dropdown.n-open .n-nav-dd {
    display: block;
  }
}

/* HOTFIX: dropdown hover gap bridge */
li.n-has-dropdown .n-nav-dd{
  top: 100%;
  margin-top: 8px; /* visual gap */
}

/* Invisible bridge so cursor can travel from nav item into dropdown without closing */
li.n-has-dropdown .n-nav-dd::before{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -12px;
  height: 12px;
}
