/* Bespoke bits only. UIkit 3 + brand.css handle layout and the brand look;
 * this file is just the few things UIkit doesn't give us. */

/* ── Marketing-page body paragraph size — tweak this to taste ──────────────
   Affects normal <p> in the page body (feature/use-case/hardware/contact text).
   The big lead paragraphs (hero tagline, overview) are separate: .uk-text-lead
   in brand.css (20px). The global base for ALL text is html{font-size:15px} in
   brand.css — but that's shared with the app, so change it here instead. */
main p { font-size: 18px; line-height: 1.7; }

/* Hero: 1800×600 video frame (matches neuropype.io) inside a 70px band.
   .np-hero is the uk-cover frame; the video fills it and the card sits on top. */
.np-hero-section { padding: 70px 0; }
.np-hero {
  max-width: 1800px;
  height: 600px;
  margin: 0 auto;
  background: var(--np-wash);
}
@media (max-width: 640px) {
  .np-hero { height: 420px; }
}
/* Hero card: the lead tagline drops the global 20% left indent (overview keeps
   it), and the NP icon is scaled down. */
.np-hero-section .uk-text-lead { padding-left: 0; }
.np-hero-section .uk-card img { max-width: 75%; height: auto; }

/* LSL badge next to the hardware intro → labstreaminglayer.org. */
.np-lsl {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--np-accent);
  color: var(--np-accent);
  font-family: var(--np-font-head);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 1px;
  text-decoration: none;
  transition: all .15s ease-in-out;
}
.np-lsl:hover { background: var(--np-accent); color: #fff; }

/* Use cases: gif + text rows, text alternating sides (530×335 frame, 20px gap). */
.np-usecase {
  display: flex;
  align-items: center;
  margin-bottom: 50px;
}
.np-usecase:last-child { margin-bottom: 0; }
.np-usecase-gif {
  width: 500px;
  height: 335px;
  flex: none;
  display: block;
}
.np-usecase-text { flex: 1; }
/* 20px gap on the side that faces the text. */
.np-usecase .np-usecase-gif      { margin-right: 40px; }
.np-usecase-alt .np-usecase-gif  { margin-right: 0; margin-left: 20px; }
@media (min-width: 960px) {
  .np-usecase-alt { flex-direction: row-reverse; }
}
@media (max-width: 959px) {
  .np-usecase, .np-usecase-alt { flex-direction: column; text-align: center; }
  .np-usecase-gif {
    width: 100%;
    max-width: 500px;
    height: auto;
    margin: 0 auto 16px !important;
  }
}

/* Edition price line: bold dark Raleway. */
.np-price {
  font-family: var(--np-font-head);
  font-weight: 700;
  font-size: 18px;
  color: var(--np-ink);
}

/* Edition feature list with teal check marks. */
.np-checklist { list-style: none; padding: 0; }
.np-checklist > li { position: relative; padding-left: 24px; }
.np-checklist > li::before {
  content: "\2713";          /* ✓ */
  position: absolute;
  left: 0;
  color: var(--np-accent);
  font-weight: 700;
}

/* Hardware device lists: tighter, muted. */
.np-device-list > li { font-size: 14px; break-inside: avoid; }
.np-device-list > li:not(:first-child) { border-top: none; margin-top: 4px; padding-top: 0; }

/* Footer disclaimer: constrained, faint. */
.np-disclaimer { max-width: 760px; margin: 12px auto 0; color: rgba(255, 255, 255, .45); }

/* Trim the footer height. Scoped to <footer> so it doesn't shrink the overview
   band, which also uses .uk-section-small. (uk-section-small default ≈ 40px.) */
footer.uk-section-small { padding-top: 24px; padding-bottom: 24px; }

/* Honeypot anti-spam field (visually hidden, still submitted). */
.np-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Buzz-post figure: floats beside the body text, sized to the image's natural
   width but capped at half the column so text wraps around it. Framed. */
.np-release-figure {
  float: left;
  max-width: 50%;
  margin: 6px 28px 16px 0;   /* gutter (right) keeps wrapped text off the frame */
}
.np-release-figure img {
  display: block;
  max-width: 100%;           /* natural size, up to the figure's 50% cap; no upscaling */
  height: auto;
  border: 1px solid var(--np-line);
  border-radius: 6px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
}
.np-release-figure figcaption { color: var(--np-muted); }
/* Narrow screens: don't float — full-width block above the text. */
@media (max-width: 640px) {
  .np-release-figure { float: none; max-width: 100%; margin: 0 0 20px; }
}

/* Releases index: 2-up cards with a 16:9 thumbnail. */
.np-release-card { display: block; overflow: hidden; }
.np-release-thumb {
  aspect-ratio: 16 / 9;
  background: var(--np-wash);
  border-bottom: 1px solid var(--np-line);
  display: flex;
  align-items: center;
  justify-content: center;
}
/* contain (not cover): scale each thumbnail to touch the tile's width OR height —
   whichever needs less scaling — so nothing is cropped; letterbox shows the wash. */
.np-release-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
/* Fallback tile (no screenshot yet): centered logo on the wash. */
.np-release-thumb--empty img { width: 72px; height: 72px; object-fit: contain; opacity: .45; }

/* ---- intheon.io home hero: full-bleed Glass Brain video + title on a
   translucent white box (black text), matching the current intheon.io. ---- */
.intheon-hero-cover { height: clamp(420px, 65vh, 580px); }
.intheon-hero-box {
  display: inline-block;
  max-width: 90vw;
  background: rgba(255, 255, 255, .82);
  padding: 28px 44px;
  border-radius: 4px;
  box-shadow: 0 2px 24px rgba(0, 0, 0, .18);
}
.intheon-hero-title {
  color: var(--np-ink);
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.2;
  margin: 0;
}
.intheon-hero-lead { color: var(--np-ink); margin: 10px 0 0; }

/* ---- Home vision paragraph — change `font-size` here to resize the copy. ---- */
.intheon-vision {
  font-size: 1.7rem;      
  line-height: 1.6;
  color: var(--np-ink);
}

/* ---- Team page: circular photo + bio row ---- */
.np-team-photo {
  width: 160px; height: 160px; object-fit: cover;
  border-radius: 50%; border: 1px solid var(--np-line);
}
.np-team-member { border-bottom: 1px solid var(--np-line); padding-bottom: 24px; }

/* ---- Community Projects: framed project logos in the article flow ---- */
.np-article img { max-width: 100%; height: auto; border-radius: 6px; margin: 8px 0; }

/* Embedded video (YouTube): responsive 16:9; clears any floated figure above it. */
.np-video { clear: both; position: relative; width: 100%; aspect-ratio: 16 / 9; margin: 20px 0; }
.np-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 6px; }

/* Space out list items (e.g. the R&D Services publications list). */
.np-article li { margin-bottom: 6pt; }

/* ---- Open Source page: each project = image (≈1/3) beside its text ---- */
.np-os-project + hr { margin: 32px 0; }
.np-os-img { max-width: 100%; height: auto; border-radius: 4px; }
.np-os-points { padding-left: 18px; margin: 0 0 12px; }
.np-os-points li { margin-bottom: 5px; }

/* ---- Home products: two columns, image (native 560×240) above the text ---- */
.intheon-product-img {
  display: block;
  width: 100%;
  max-width: 560px;      /* native size; height:auto keeps the 560×240 aspect — no stretch */
  height: auto;
  margin: 0 auto 20px;
  border-radius: 4px;
}

/* ---- Home R&D teaser: image beside text, responsive ---- */
.intheon-rd-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}

/* ---- R&D Services page: service-area icon grid (teal icons) ---- */
.intheon-services > div { padding: 20px 16px; }
/* Lucide SVG icons (recolored to teal in the file). !important + flex:none so
   uk-grid-match (which stretches flex children to 100%) can't blow up the icon. */
.intheon-services .svc-icon {
  width: 46px !important;
  height: 46px;
  flex: none;
  margin: 0 auto;
  border-radius: 0;
}
.intheon-services .intheon-service-title {
  margin: 12px 0 4px;
  font-family: var(--np-font-head);
  font-weight: 700;
  font-size: 18px;
  color: var(--np-ink);
}
.intheon-services .intheon-service-desc {
  margin: 0;
  font-size: 16px;
  line-height: 1.45;
  color: var(--np-ink);
}
