/* ============================================================
   knowledgebase.studiohub.ai — the one stylesheet.

   Every article page and the directory link this file. The look is the
   main site's (projects/website-studiohub-ai/pages/styles.css, chosen by
   Hervin 2026-08-29): Roboto, lavender page, white blocks with a 2px
   black border, 25px radius and a hard offset shadow, black rounded
   footer panel. Sizes are the main site's legal-page scale, which is the
   quieter scale meant for reading rather than selling.

   This is a copy, not a link, because the two sites deploy separately
   and a page must never depend on a file another project can change
   under it. Change a token here and every article follows.
   ============================================================ */

:root {
  --bg:        #f5f2ff;
  --blue:      #4fbdff;
  --blue-ink:  #188bf6;
  --black:     #000000;
  --white:     #ffffff;
  --ink:       #111318;
  --body:      #405561;
  --grey:      #7a8b95;
  --line:      #e8e8e8;
  --radius:    25px;
  --shadow:    4px 4px 0 rgba(0,0,0,0.267);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--body);
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap { width: 100%; max-width: 900px; margin: 0 auto; padding: 0 20px; }
p, li, a, td { overflow-wrap: break-word; }
a { color: var(--blue-ink); }

/* ---- header: logo left, one link right ------------------------------- */

.nav { padding: 22px 0; }
.nav .inner {
  max-width: 900px; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.nav .logo { width: 150px; height: auto; display: block; }
.nav .all { color: var(--ink); text-decoration: none; font-size: 16px; font-weight: 500; }
.nav .all:hover { color: var(--blue-ink); }
@media (max-width: 640px) {
  .nav { background: var(--white); padding: 10px 0; border-bottom: 1px solid var(--line); }
  .nav .logo { width: 120px; }
}

/* ---- breadcrumb ---------------------------------------------------- */

.crumbs { font-size: 14px; color: var(--grey); margin: 14px 0 18px; }
.crumbs a { color: var(--grey); text-decoration: none; }
.crumbs a:hover { color: var(--blue-ink); }
.crumbs span { margin: 0 6px; }

/* ---- the white block everything sits in ----------------------------- */

.card {
  background: var(--white);
  border: 2px solid var(--black);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 44px 48px;
}
@media (max-width: 640px) { .card { padding: 26px 20px; border-radius: 18px; } }

/* ---- article --------------------------------------------------------- */

.kb h1 { color: var(--ink); font-size: 34px; font-weight: 800; line-height: 1.2; margin: 0 0 10px; }
.kb .meta { font-size: 14px; color: var(--grey); margin: 0 0 26px; }
.kb h2 { color: var(--ink); font-size: 24px; font-weight: 700; line-height: 1.3; margin: 36px 0 12px; }
.kb h3 { color: var(--ink); font-size: 19px; font-weight: 700; line-height: 1.35; margin: 28px 0 10px; }
.kb h4 { color: var(--ink); font-size: 17px; font-weight: 700; margin: 24px 0 8px; }
.kb p, .kb li { font-size: 17px; }
.kb p { margin: 0 0 16px; }
.kb ul, .kb ol { margin: 0 0 16px; padding-left: 26px; }
.kb li { margin: 0 0 8px; }
.kb li > ul, .kb li > ol { margin-top: 8px; }
.kb strong { color: var(--ink); }
.kb hr { border: 0; border-top: 1px solid var(--line); margin: 30px 0; }
.kb pre {
  background: #f6f7f9; border: 1px solid var(--line); border-radius: 10px;
  padding: 16px 18px; font: 15px/1.55 'Roboto', sans-serif; white-space: pre-wrap; margin: 0 0 16px;
}
.kb img {
  max-width: 100%; height: auto; display: inline-block; vertical-align: top;
  border: 1px solid var(--line); border-radius: 10px; margin: 6px 6px 6px 0;
}
.kb p > img:only-child { display: block; margin: 8px 0 20px; }

/* the video block: black outline, no white frame, ratio held open */
.kb .video-wrap {
  overflow: hidden; background: #0d1017;
  border: 2px solid var(--black); border-radius: 16px; box-shadow: var(--shadow);
  margin: 6px 0 28px;
}
.kb .video { position: relative; height: 0; }
.kb .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .kb h1 { font-size: 26px; }
  .kb h2 { font-size: 21px; }
  .kb h3 { font-size: 18px; }
  .kb p, .kb li { font-size: 16px; }
}

/* ---- directory ------------------------------------------------------- */

.dir-head { padding: 26px 0 10px; }
.dir-head h1 { color: var(--ink); font-size: 40px; font-weight: 800; line-height: 1.15; margin: 0 0 10px; }
.dir-head p { font-size: 18px; margin: 0; max-width: 620px; }
.dir-search { margin: 22px 0 6px; }
.dir-search input {
  width: 100%; font: inherit; font-size: 17px; padding: 14px 18px;
  border: 2px solid var(--black); border-radius: 12px; background: var(--white); color: var(--ink);
  box-shadow: var(--shadow);
}
.dir-search input:focus { outline: 3px solid var(--blue); outline-offset: 2px; }
.dir-count { font-size: 14px; color: var(--grey); margin: 8px 0 0; min-height: 20px; }
.section { margin: 30px 0 0; }
.section h2 { color: var(--ink); font-size: 24px; font-weight: 700; margin: 0 0 14px; }
.section h2 small { color: var(--grey); font-size: 15px; font-weight: 400; margin-left: 8px; }
.section ul { list-style: none; margin: 0; padding: 0; }
.section li { border-top: 1px solid var(--line); }
.section li:first-child { border-top: 0; }
.section li a { display: block; padding: 12px 6px; color: var(--ink); text-decoration: none; font-size: 17px; }
.section li a:hover { color: var(--blue-ink); }
.section li .v { color: var(--grey); font-size: 13px; margin-left: 8px; white-space: nowrap; }
.section[hidden], .section li[hidden] { display: none; }
@media (max-width: 640px) {
  .dir-head h1 { font-size: 30px; }
  .dir-head p { font-size: 16px; }
  .section h2 { font-size: 21px; }
  .section li a { font-size: 16px; }
}

/* ---- footer: a black panel inset from the edges ------------------------ */

footer.site {
  background: var(--black);
  color: rgba(255,255,255,0.72);
  border-radius: 15px;
  margin: 40px 20px 20px;
  padding: 50px 24px 26px;
  text-align: center;
  font-size: 15px;
}
footer.site .logo { width: 260px; max-width: 70%; height: auto; display: block; margin: 0 auto 24px; }
footer.site p { margin: 0 auto 14px; max-width: 600px; }
footer.site a { color: rgba(255,255,255,0.9); }
footer.site .foot-row {
  display: flex; justify-content: space-between; gap: 16px;
  border-top: 1px solid rgba(255,255,255,0.25);
  margin: 0 100px; padding: 22px 0 6px;
}
@media (max-width: 900px) { footer.site .foot-row { margin: 0 12px; } }
@media (max-width: 640px) {
  footer.site { margin: 32px 12px 12px; padding: 36px 18px 18px; }
  footer.site .logo { width: 180px; }
}

/* ---- 404 ---------------------------------------------------------------- */
.missing { text-align: center; padding: 40px 0; }
.missing h1 { color: var(--ink); font-size: 34px; margin: 0 0 12px; }
