/* Net Hub Support — single hand-written stylesheet.
   Taken from the nethubkb shell (site.css + home.css) and trimmed for a
   public site. Brand: Navy #08191F dominant dark, Red #E73746 accent/CTA,
   Grey #F2F2F2, White. Poppins substitutes the licensed brand faces.
   Light theme only, zero external requests. */

/* ---- Fonts (self-hosted) ---- */
@font-face { font-family: Poppins; font-weight: 400; font-style: normal; font-display: swap; src: url('/static/fonts/poppins-400.woff2') format('woff2'); }
@font-face { font-family: Poppins; font-weight: 400; font-style: italic; font-display: swap; src: url('/static/fonts/poppins-400i.woff2') format('woff2'); }
@font-face { font-family: Poppins; font-weight: 500; font-style: normal; font-display: swap; src: url('/static/fonts/poppins-500.woff2') format('woff2'); }
@font-face { font-family: Poppins; font-weight: 600; font-style: normal; font-display: swap; src: url('/static/fonts/poppins-600.woff2') format('woff2'); }
@font-face { font-family: Poppins; font-weight: 700; font-style: normal; font-display: swap; src: url('/static/fonts/poppins-700.woff2') format('woff2'); }

:root {
  --navy: #08191F;
  --red: #E73746;
  --red-dark: #C42B39;
  --grey: #F2F2F2;
  --white: #FFFFFF;
  --border: #E6E6EA;
  --ink: #08191F;
  --ink-soft: #4A5A61;
  --teal: #00B3BA;
  --amber: #FCBF00;
  --radius: 13px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: Poppins, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink); background: var(--grey); line-height: 1.55;
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1 0 auto; }
a { color: inherit; }
img { max-width: 100%; }
input { font: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--white); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ---- Status strip (site.json "status") ---- */
.status {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 7px 16px; font-size: 13px; font-weight: 500; background: #0E2A33; color: rgba(255, 255, 255, 0.85);
}
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 3px rgba(0, 179, 186, 0.25); }
.status-degraded { background: #3A2E05; }
.status-degraded .status-dot { background: var(--amber); box-shadow: 0 0 0 3px rgba(252, 191, 0, 0.25); }
.status-outage { background: var(--red); color: var(--white); }
.status-outage .status-dot { background: var(--white); box-shadow: none; }

/* ---- Top bar ---- */
.topbar {
  background: var(--navy); display: flex; align-items: center; gap: 18px;
  padding: 14px 24px; flex-wrap: wrap; border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.topbar-logo { display: inline-flex; align-items: center; gap: 12px; margin-right: auto; text-decoration: none; }
.topbar-logo img { width: 180px; height: auto; }  /* brand minimum for the master lockup */
.topbar-tag {
  color: var(--white); font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  padding-left: 12px; border-left: 1px solid rgba(255, 255, 255, 0.25);
}
.topbar-nav { display: flex; gap: 6px; flex-wrap: wrap; }
.topbar-nav a { color: var(--white); text-decoration: none; font-weight: 500; font-size: 14px; padding: 7px 10px; border-radius: 8px; }
.topbar-nav a:hover { background: rgba(255, 255, 255, 0.1); }

/* ---- Search (hero + top bar) ---- */
.search-wrap { position: relative; }
.search-wrap > svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--ink-soft); }
.search-wrap input {
  width: 100%; height: 56px; padding: 0 52px 0 46px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--white); color: var(--ink); font-size: 16px;
}
.search-wrap input:focus { outline: 2px solid var(--red); outline-offset: 1px; border-color: transparent; }
.search-wrap kbd {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%); pointer-events: none;
  font-family: inherit; font-size: 11px; color: var(--ink-soft); border: 1px solid var(--border); border-radius: 5px; padding: 1px 7px;
}
.search-hero { max-width: 620px; margin-top: 8px; }
.search-top { flex: 0 1 240px; min-width: 170px; }
.search-top > svg { color: rgba(255, 255, 255, 0.6); left: 12px; width: 16px; height: 16px; }
.search-top input {
  height: 38px; padding: 0 40px 0 36px; font-size: 13.5px;
  border-color: rgba(255, 255, 255, 0.18); background: rgba(255, 255, 255, 0.08); color: var(--white);
}
.search-top input::placeholder { color: rgba(255, 255, 255, 0.6); }
.search-top kbd { color: rgba(255, 255, 255, 0.65); border-color: rgba(255, 255, 255, 0.3); right: 10px; }
.search-results {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 20; overflow: hidden;
  background: var(--white); color: var(--ink); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(8, 25, 31, 0.16); text-align: left;
}
.search-top .search-results { left: auto; width: min(380px, calc(100vw - 32px)); }
.search-results a {
  display: flex; justify-content: space-between; gap: 12px; padding: 11px 16px;
  text-decoration: none; border-bottom: 1px solid var(--border); font-size: 14px;
}
.search-results a:last-child { border-bottom: 0; }
.search-results a:hover, .search-results a.on { background: var(--grey); }
.search-results a span { color: var(--ink-soft); font-size: 12px; white-space: nowrap; }
.search-results .no-hits { padding: 12px 16px; color: var(--ink-soft); font-size: 14px; }
.search-results .no-hits a { display: inline; padding: 0; border: 0; color: var(--red); font-size: inherit; }

/* ---- Hero ---- */
.hero { background: var(--navy); color: var(--white); position: relative; overflow: hidden; padding: 72px 0 120px; }
.hero::before {
  content: ""; position: absolute; right: -160px; top: -240px; width: 720px; height: 720px;
  border-radius: 50%; background: var(--red); opacity: 0.14;
}
.hero::after {
  content: ""; position: absolute; right: 280px; bottom: -280px; width: 440px; height: 440px;
  border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.08);
}
.hero-inner { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 18px; }
/* Same columns and gap as .paths-grid below, so the search box lines up with the first card. */
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; align-items: center; }
.hero-grid .search-hero { max-width: none; }

/* ---- Nina, the AI assistant (home hero) ---- */
.nina-card {
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 18px;
  padding: 26px 26px 24px; display: flex; flex-direction: column; gap: 16px;
}
.nina-top { display: flex; align-items: center; gap: 20px; }
.nina-ava { position: relative; flex: 0 0 auto; width: 112px; height: 112px; }
.nina-ava img { width: 112px; height: 112px; border-radius: 50%; display: block; border: 2px solid rgba(231, 55, 70, 0.7); }
.nina-ava::after {
  content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 2px solid var(--red);
  opacity: 0; animation: nina-breathe 3.2s ease-in-out infinite;
}
@keyframes nina-breathe { 0%, 100% { opacity: 0; transform: scale(0.96); } 50% { opacity: 0.55; transform: scale(1.03); } }
.nina-tag { font-size: 11.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: #FF6B78; }
.nina-card h2 { font-size: 34px; font-weight: 700; line-height: 1.1; margin: 2px 0 4px; }
.nina-full { font-size: 14px; color: #C7D0D4; }
.nina-intro { color: #C7D0D4; font-size: 15.5px; line-height: 1.55; }
.nina-intro a { color: var(--white); }
.nina-ask { display: flex; align-items: center; gap: 8px; background: var(--white); border-radius: var(--radius); padding: 6px 6px 6px 16px; }
.nina-ask[hidden] { display: none; }
.nina-ask input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 16px; height: 42px; }
.nina-ask:focus-within { box-shadow: 0 0 0 3px rgba(231, 55, 70, 0.55); }
.nina-ask button {
  flex: 0 0 auto; height: 42px; border: 0; border-radius: 10px; background: var(--red); color: var(--white);
  display: inline-flex; align-items: center; gap: 8px; padding: 0 16px; cursor: pointer;
  font-family: inherit; font-size: 14.5px; font-weight: 600; white-space: nowrap;
}
.nina-ask button:hover { background: var(--red-dark); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.kicker { font-size: 12.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: #FF6B78; }
.hero h1 { font-size: clamp(38px, 5.5vw, 60px); line-height: 1.04; font-weight: 700; letter-spacing: -0.01em; }
.lede { font-size: 18px; line-height: 1.6; color: #C7D0D4; max-width: 560px; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 20px;
  border-radius: 10px; font-weight: 600; font-size: 14.5px; text-decoration: none;
}
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-dark); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: #163540; }
.btn-ghost { border: 1px solid var(--border); color: var(--ink); background: var(--white); }
.btn-ghost:hover { border-color: var(--navy); }

/* ---- Audience paths (overlap the hero) ---- */
.paths { margin-top: -64px; position: relative; z-index: 2; }
.paths-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 22px; }
.path {
  background: var(--white); border-radius: 18px; padding: 30px 32px; display: flex; flex-direction: column; gap: 10px;
  box-shadow: 0 18px 44px rgba(8, 25, 31, 0.14); border-top: 5px solid var(--red);
}
.path-members { border-top-color: var(--navy); }
.path-kicker { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.path h2 { font-size: 26px; font-weight: 700; line-height: 1.2; }
.path > p:not(.path-kicker) { color: var(--ink-soft); font-size: 15px; }
.path-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; padding-top: 12px; }

/* ---- Section heading ---- */
.head { margin-bottom: 24px; }
.head h2 { font-size: 28px; font-weight: 700; line-height: 1.2; }
.head h2::before { content: ""; display: block; width: 44px; height: 4px; border-radius: 2px; background: var(--red); margin-bottom: 12px; }
.head p { color: var(--ink-soft); font-size: 15.5px; margin-top: 6px; max-width: 640px; }

/* ---- Topic cards (KB area cards) ---- */
.topics { padding: 72px 0; scroll-margin-top: 16px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.card {
  display: flex; flex-direction: column; background: var(--white); border-radius: 16px; overflow: hidden;
  text-decoration: none; box-shadow: 0 2px 8px rgba(8, 25, 31, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(8, 25, 31, 0.16); }
.band {
  position: relative; display: flex; align-items: center; justify-content: space-between;
  height: 112px; padding: 0 24px; background: var(--band); overflow: hidden; color: var(--white);
}
.band::after {
  content: ""; position: absolute; right: -40px; top: -60px; width: 200px; height: 200px;
  border-radius: 50%; background: rgba(255, 255, 255, 0.08);
}
.band-icon {
  width: 56px; height: 56px; border-radius: 14px; background: rgba(255, 255, 255, 0.14); color: var(--white);
  display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
}
.count { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-end; }
.count strong { font-size: 32px; font-weight: 700; line-height: 1; }
.count span { font-size: 12.5px; font-weight: 500; opacity: 0.85; }
.card-body { display: flex; flex-direction: column; gap: 8px; padding: 20px 24px 22px; flex: 1; }
.card-body h3 { font-size: 19px; font-weight: 700; line-height: 1.25; }
.card-body p { font-size: 14.5px; line-height: 1.55; color: var(--ink-soft); }
.open { margin-top: auto; padding-top: 12px; font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.card:hover .open { color: var(--red); }

/* ---- Contact ---- */
.contact { padding: 0 0 80px; scroll-margin-top: 16px; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.contact-card {
  display: flex; gap: 16px; align-items: flex-start; background: var(--white); border: 1px solid var(--border);
  border-radius: 16px; padding: 22px 22px 24px; text-decoration: none; transition: border-color 0.15s ease;
}
a.contact-card:hover { border-color: var(--navy); }
.contact-icon {
  width: 48px; height: 48px; border-radius: 12px; background: var(--grey); color: var(--red);
  display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
}
.contact-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.contact-body strong { font-size: 17px; font-weight: 700; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.contact-body > span { font-size: 15px; overflow-wrap: anywhere; }
.contact-body small { font-size: 13px; color: var(--ink-soft); margin-top: 4px; }
.is-soon .contact-icon { color: var(--ink-soft); }
.chip {
  font-style: normal; font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  background: #FFF4CC; color: #6B5000; border-radius: 999px; padding: 2px 9px;
}
.store-links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.store-links a {
  font-size: 13px; font-weight: 600; text-decoration: none; padding: 7px 12px; border-radius: 8px;
  background: var(--navy); color: var(--white);
}
.store-links a:hover { background: #163540; }

/* ---- Topic page ---- */
.page-head { background: var(--navy); color: var(--white); padding: 32px 0 40px; border-bottom: 5px solid var(--band); }
.breadcrumb { font-size: 13.5px; color: rgba(255, 255, 255, 0.7); margin-bottom: 16px; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--white); text-decoration: underline; }
.page-head-row { display: flex; align-items: center; gap: 18px; }
.page-head .band-icon { background: var(--band); }
.page-head h1 { font-size: clamp(26px, 4vw, 36px); font-weight: 700; line-height: 1.15; }
.page-head p { color: #C7D0D4; margin-top: 4px; }
.wrap.page-body { padding-top: 36px; padding-bottom: 56px; }
.article-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.article-list a {
  display: flex; flex-direction: column; gap: 4px; background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 22px; text-decoration: none;
}
.article-list a:hover { border-color: var(--navy); }
.article-list strong { font-size: 17px; }
.article-list span { color: var(--ink-soft); font-size: 14.5px; }
.article-list small { color: var(--ink-soft); font-size: 12.5px; }
.empty { background: var(--white); border: 1px dashed #C9CED2; border-radius: 16px; padding: 32px; max-width: 720px; }
.empty h1, .empty h2 { font-size: 22px; margin-bottom: 6px; }
.empty a { color: var(--red); }
.empty-404 { margin: 64px auto; }

/* ---- Article prose ---- */
.prose {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: clamp(24px, 5vw, 48px); margin: 14px auto 64px; max-width: 780px;
  overflow-wrap: anywhere; /* long URLs in the feature guides widened the page on phones */
}
.prose h1, .prose h2, .prose h3, .prose h4 { font-weight: 600; line-height: 1.3; margin: 1.4em 0 0.5em; }
.prose h1 { font-size: 30px; font-weight: 700; margin-top: 0; }
.prose h2 { font-size: 22px; }
.prose h3 { font-size: 18px; }
.prose p, .prose ul, .prose ol { margin-bottom: 1em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin-bottom: 0.3em; }
.prose a { color: var(--red); }
.prose code { background: var(--grey); border-radius: 5px; padding: 0.1em 0.35em; font-size: 0.9em; font-family: ui-monospace, Consolas, monospace; }
.prose blockquote { border-left: 3px solid var(--red); padding-left: 16px; color: var(--ink-soft); margin-bottom: 1em; }
.prose table { border-collapse: collapse; width: 100%; margin-bottom: 1em; font-size: 14px; }
.prose th, .prose td { border: 1px solid var(--border); padding: 8px 12px; text-align: left; }
.prose th { background: var(--grey); font-weight: 600; }
.prose img { border-radius: 8px; border: 1px solid var(--border); }

/* ---- Screenshots (shots.json, inserted by build.py) ---- */
.shot { margin: 4px 0 20px; }
.shot a { display: block; cursor: zoom-in; border-radius: 12px; }
.prose .shot img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--border); }
.shot--phone { max-width: 320px; margin-left: auto; margin-right: auto; }
.prose .shot--phone img { border: 0; border-radius: 0; } /* the phone frame is in the image */
.shot figcaption { margin-top: 8px; color: var(--ink-soft); font-size: 13px; text-align: center; }
.lightbox { margin: auto; padding: 0; border: 0; background: transparent; max-width: 96vw; max-height: 96vh; overflow: visible; }
.lightbox::backdrop { background: rgba(8, 25, 31, 0.85); }
.lightbox img { display: block; max-width: 96vw; max-height: 92vh; width: auto; height: auto; border-radius: 10px; background: var(--white); }
.lightbox.is-phone img { background: transparent; border-radius: 0; }
.lightbox-close {
  position: fixed; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: var(--white); color: var(--ink); font-size: 28px; line-height: 1; cursor: pointer;
}
.article-meta { color: var(--ink-soft); font-size: 13.5px; margin: -0.3em 0 1.6em; }
.article-help { margin-top: 2em; padding: 16px 18px; background: var(--grey); border-radius: 10px; font-size: 14.5px; }
.draft-flag {
  display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  background: #FFF4CC; color: #6B5000; border-radius: 999px; padding: 3px 10px; margin-bottom: 14px;
}

/* ---- Footer ---- */
.footer { background: var(--navy); color: rgba(255, 255, 255, 0.65); text-align: center; padding: 40px 24px; font-size: 13px; }
.footer img { width: 180px; height: auto; margin-bottom: 14px; }
.footer-links { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; margin-bottom: 10px; }
.footer-links a { color: var(--white); text-decoration: none; font-weight: 500; }
.footer-links a:hover { text-decoration: underline; }

/* ---- Small screens ---- */
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .topbar { padding: 12px 16px; gap: 10px; }
  .topbar-logo img { width: 150px; }
  .topbar-nav a { padding: 6px 8px; font-size: 13px; }
  .search-top { flex: 1 1 100%; order: 3; }
  .search-hero kbd, .search-top kbd { display: none; }
  .hero { padding: 44px 0 96px; }
  .path { padding: 24px 22px; }
  .path-actions .btn { width: 100%; justify-content: center; }
  .paths-grid, .grid { grid-template-columns: 1fr; }
  .topics { padding: 56px 0; }
  .page-head-row { align-items: flex-start; }
}
@media (max-width: 380px) {
  .topbar-tag { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card { transition: none; }
  .card:hover { transform: none; }
  .nina-ava::after { animation: none; }
}
/* The hero stacks before the cards do; the search box is then full width, as on phones. */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}
@media (max-width: 640px) {
  .nina-card { padding: 20px 18px; }
  .nina-top { gap: 14px; }
  .nina-ava, .nina-ava img { width: 80px; height: 80px; }
  .nina-card h2 { font-size: 28px; }
  /* phones: the box and the button stack, the button full width */
  .nina-ask { flex-wrap: wrap; padding: 6px; }
  .nina-ask input { flex-basis: 100%; padding: 0 10px; }
  .nina-ask button { width: 100%; justify-content: center; height: 46px; }
}
