/* Nomi site navigation overlay (2026-11-08). Loads after styles.css. */
html,
body {
  overflow-x: clip;
}
.landing .hero-plane {
  max-width: 100%;
}

:root {
  --nav-touch: 44px;
  --nav-line: #1a2a32;
}

/* ---- Header ---- */
.site-head {
  align-items: center;
  gap: 0.5rem 0.75rem;
  padding-top: 0.65rem;
  padding-bottom: 0.35rem;
  min-height: var(--nav-touch);
}
.site-brand {
  display: inline-flex;
  align-items: center;
  min-height: var(--nav-touch);
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: var(--nav-touch);
  padding: 0 0.55rem;
  border-radius: 999px;
  font-size: 0.92rem;
}
.site-nav a[aria-current="page"] {
  color: var(--fg);
  box-shadow: inset 0 -2px 0 var(--accent);
  border-radius: 0;
}
.site-login {
  display: inline-flex;
  align-items: center;
  min-height: var(--nav-touch);
}
.site-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--nav-touch);
  padding: 0 1rem;
}
.site-head[data-channel="telegram"] .site-login {
  margin-left: auto;
}

.site-menu {
  width: 100%;
  margin: 0;
}
.site-menu summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--nav-touch);
  padding: 0 0.9rem;
  border: 1px solid var(--nav-line);
  border-radius: 999px;
  color: var(--fg);
  font-size: 0.9rem;
  cursor: pointer;
}
.site-menu summary::-webkit-details-marker {
  display: none;
}
.site-menu summary::after {
  content: "▾";
  color: var(--muted);
}
.site-menu[open] summary::after {
  transform: rotate(180deg);
}
.site-menu nav {
  margin-top: 0.45rem;
  border: 1px solid var(--nav-line);
  border-radius: 12px;
  background: var(--card);
  padding: 0.25rem 0;
}
.site-menu nav a {
  display: flex;
  align-items: center;
  min-height: var(--nav-touch);
  padding: 0 1rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  border-top: 1px solid var(--nav-line);
}
.site-menu nav a:first-child {
  border-top: 0;
}

@media (min-width: 641px) {
  .site-menu {
    display: none;
  }
  .site-nav {
    margin-right: auto;
    flex-wrap: nowrap;
  }
  .site-head {
    flex-wrap: nowrap;
    min-height: 60px;
    padding-bottom: 0.55rem;
  }
}

@media (max-width: 640px) {
  .site-nav {
    display: none;
  }
  .site-head {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* ---- Breadcrumbs ---- */
.crumbs {
  max-width: 60rem;
  margin: 0 auto;
  padding: 0.75rem 1.5rem 0;
  font-size: 0.84rem;
  color: var(--muted);
}
.crumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.crumbs li {
  display: flex;
  align-items: center;
  min-height: var(--nav-touch);
  min-width: 0;
}
.crumbs li + li::before {
  content: "›";
  margin: 0 0.45rem;
  opacity: 0.6;
}
.crumbs a {
  display: inline-flex;
  align-items: center;
  min-height: var(--nav-touch);
  color: var(--muted);
  text-decoration: none;
}
.crumbs a:hover {
  color: var(--accent);
  text-decoration: underline;
}
.crumbs [aria-current="page"] {
  color: var(--fg);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.crumbs link {
  display: none;
}
@media (max-width: 420px) {
  .crumbs li.crumb-home {
    display: none;
  }
  .crumbs li:nth-child(2)::before {
    display: none;
  }
}

/* ---- Related ---- */
.related {
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--nav-line);
}
.related h2 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin: 0 0 0.9rem;
}
.related-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
  grid-template-columns: 1fr;
}
@media (min-width: 820px) {
  .related-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.related-card {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-height: var(--nav-touch);
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--nav-line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--fg);
  text-decoration: none;
}
.related-card:hover,
.related-card:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.related-kicker {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.related-title {
  font-size: 0.97rem;
  line-height: 1.35;
}
.related-sub {
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--muted);
}

.channel-line {
  margin: 1rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}
.channel-line a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---- Hub pages ---- */
.hub-pages {
  display: grid;
  gap: 0.55rem;
  margin: 0 0 1.4rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .hub-pages {
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  }
}
.hub-page {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-height: var(--nav-touch);
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--nav-line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--fg);
  text-decoration: none;
}
.hub-page:hover {
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
}
.hub-page-title {
  font-weight: 600;
  font-size: 0.97rem;
}
.hub-page-sub {
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.45;
}

/* ---- Footer sitemap ---- */
.site-foot > p a {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.site-foot .site-map {
  display: none;
  margin-top: 1rem;
}
.site-foot .site-map-mobile {
  margin-top: 0.75rem;
}
.site-map-mobile summary {
  display: flex;
  align-items: center;
  min-height: var(--nav-touch);
  padding: 0 0.9rem;
  border: 1px solid var(--nav-line);
  border-radius: 10px;
  cursor: pointer;
  color: var(--fg);
}
.site-map-mobile ul {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
}
.site-map-mobile a {
  display: flex;
  align-items: center;
  min-height: var(--nav-touch);
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}
@media (min-width: 720px) {
  .site-foot .site-map {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem 1.2rem;
  }
  .site-foot .site-map-mobile {
    display: none;
  }
}
.site-map-col h2 {
  font-family: var(--font-display);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 0.35rem;
}
.site-map-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-map-col a {
  display: flex;
  align-items: center;
  min-height: var(--nav-touch);
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.site-map-col a:hover {
  color: var(--accent);
}

/* ---- Landing home blocks ---- */
.home-cards {
  display: grid;
  gap: 0.6rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .home-cards {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}
.home-card {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-height: var(--nav-touch);
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--nav-line);
  border-radius: 10px;
  background: var(--card);
  color: var(--fg);
  text-decoration: none;
}
.home-card:hover {
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
}
.home-card-title {
  font-weight: 600;
}
.home-card-sub {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.45;
}
