/* ==========================================================================
   Vectrieve public shell layout (templates/vt_public.html)
   --------------------------------------------------------------------------
   Drawn to match the Next.js site's sign in page (frontend/app/globals.css,
   .vt-auth, .vt-head, .vt-foot): a column with the header, the page and the
   footer, beside the demo terrain's rendered frame. The legal pages use the
   docs layout instead: the terrain fixed behind a solid reading panel.
   Tokens from vt-field.css.
   ========================================================================== */

body.vt-pub { margin: 0; font-size: 1.0625rem; line-height: 1.6; --gut: 2.5rem; }
@media (max-width: 720px) { body.vt-pub { --gut: 1.25rem; } }

/* ---- Frame ---- */
.vt-pub-frame { min-height: 100vh; min-height: 100svh; }
.vt-pub-split .vt-pub-frame { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.vt-pub-col { display: flex; flex-direction: column; min-width: 0; min-height: 100vh; min-height: 100svh; position: relative; z-index: 1; }

/* ---- Header, as .vt-head on the site ---- */
.vt-pub-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.625rem var(--gut);
}
.vt-pub-word { display: inline-flex; align-items: center; color: var(--vt-ink); text-decoration: none; }
.vt-pub-word .vt-logo { display: block; height: 26px; width: auto; }
.vt-pub-nav { display: flex; align-items: center; gap: 1.875rem; font-size: 0.9375rem; white-space: nowrap; }
.vt-pub-nav a:not(.os-btn) { color: var(--vt-ink-2); text-decoration: none; }
.vt-pub-nav a:not(.os-btn):hover { color: var(--vt-ink); }
.vt-pub-nav a[aria-current='page']:not(.os-btn) {
  color: var(--vt-ink);
  text-decoration: underline;
  text-underline-offset: 7px;
  text-decoration-color: var(--vt-signal);
}
body.vt-pub .vt-pub-nav .os-btn { min-height: 2.375rem; padding-inline: 0.9375rem; font-size: 0.875rem; }
@media (max-width: 860px) { .vt-pub-nav .vt-hide-phone { display: none; } }
@media (max-width: 480px) {
  .vt-pub-nav { gap: 1rem; }
  .vt-pub-nav .vt-hide-xs { display: none; }
  .vt-pub-word .vt-logo { height: 22px; }
}

/* ---- Main ---- */
body.vt-pub .vt-pub-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  max-width: none;
  padding: 4rem var(--gut) 5rem;
}
body.vt-pub .vt-auth { width: 100%; max-width: 27.5rem; margin: 0 auto; }
body.vt-pub .vt-auth-wide { max-width: 36rem; }
body.vt-pub .vt-auth h1 { font-size: clamp(2.6rem, 4.2vw, 4rem); line-height: 0.98; letter-spacing: -0.03em; margin-bottom: 1.125rem; }
body.vt-pub .vt-auth .vt-lede,
body.vt-pub .vt-lede { color: var(--vt-ink-2); font-size: 1.0625rem; margin-bottom: 2rem; max-width: 34rem; }
body.vt-pub .vt-meta { font-size: 0.8125rem; color: var(--vt-ink-3); margin-bottom: 0.75rem; }
body.vt-pub .vt-auth-alt { color: var(--vt-ink-2); font-size: 0.9375rem; margin-top: 1.625rem; }
body.vt-pub .vt-auth-alt a { color: var(--vt-ink); }
body.vt-pub .os-card { padding: 1.25rem 1.5rem; }
body.vt-pub .os-btn { min-height: 2.875rem; padding-inline: 1.25rem; font-size: 0.9375rem; }
body.vt-pub .vt-btn-block { width: 100%; }
body.vt-pub .os-input,
body.vt-pub .os-select,
body.vt-pub .os-textarea { min-height: 3.25rem; padding-inline: 1rem; font-size: 1.0625rem; }
body.vt-pub .os-textarea { padding-block: 0.75rem; }
body.vt-pub .os-label,
body.vt-pub label.os-text-sm { font-size: 0.875rem; color: var(--vt-ink-2); }
body.vt-pub .vt-flash {
  border-radius: 0;
  border: 0;
  border-left: 2px solid var(--vt-ink-3);
  background: var(--vt-deep);
  color: var(--vt-ink);
  font-size: 0.9375rem;
  padding: 0.75rem 0.875rem;
}

/* ---- Footer, as .vt-foot on the site ---- */
body.vt-pub .vt-public-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2.5rem;
  padding: 2.25rem var(--gut) 2.75rem;
  border-top: 1px solid var(--vt-line);
  color: var(--vt-ink-3);
  font-size: 0.875rem;
}
body.vt-pub .vt-public-foot p { margin: 0; }
body.vt-pub .vt-public-foot nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
body.vt-pub .vt-public-foot a { color: var(--vt-ink-2); text-decoration: none; }
body.vt-pub .vt-public-foot a:hover { color: var(--vt-ink); }
body.vt-pub-split .vt-public-foot { padding-block: 1.5rem 1.75rem; }

/* ---- The terrain ---- */
.vt-pub-art { position: relative; min-height: 100%; border-left: 1px solid var(--vt-line); overflow: hidden; background: var(--vt-field); }
.vt-pub-art img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 50%;
}
.vt-pub-art::after {
  /* the vignette the site's lite quality draws */
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 18vmax rgba(0, 2, 6, 0.85);
}
.vt-pub-caption {
  position: absolute;
  left: 1.75rem;
  right: 1.75rem;
  bottom: 1.625rem;
  z-index: 2;
  margin: 0;
  font: 13px/1.5 var(--vt-mono);
  color: var(--vt-ink-2);
}
@media (max-width: 1100px) {
  .vt-pub-split .vt-pub-frame { display: block; }
  .vt-pub-split .vt-pub-art { display: none; }
}
@media (max-width: 720px) {
  body.vt-pub .vt-pub-main { justify-content: flex-start; padding: 2.25rem var(--gut) 3.75rem; }
}

/* ---- Reading layout: the legal pages ---- */
.vt-pub-reading .vt-pub-art {
  position: fixed;
  inset: 0;
  z-index: 0;
  border: 0;
}
.vt-pub-reading .vt-pub-art img { position: absolute; inset: 0; height: 100%; object-position: 30% 50%; opacity: 0.8; }
.vt-pub-reading .vt-pub-art::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(3, 7, 14, 0.2), rgba(3, 7, 14, 0.75) 60%, rgba(3, 7, 14, 0.9));
}
.vt-pub-reading .vt-pub-caption { display: none; }
body.vt-pub-reading .vt-public-foot { background: var(--vt-field); }
body.vt-pub-reading .vt-pub-main { justify-content: flex-start; padding-top: 3rem; }
body.vt-pub-reading .vt-docs {
  display: grid;
  grid-template-columns: minmax(12rem, 18rem) minmax(0, 48rem);
  gap: 4rem;
  justify-content: start;
  align-items: start;
}
body.vt-pub-reading .vt-docs-toc { position: sticky; top: 2rem; }
body.vt-pub-reading .vt-docs-toc h2 { font-family: var(--vt-body); font-size: 0.875rem; font-weight: 400; font-stretch: 100%; color: var(--vt-ink-2); margin: 0 0 1rem; letter-spacing: 0; }
body.vt-pub-reading .vt-docs-toc ol { list-style: none; margin: 0; padding: 0 0 0 1.25rem; border-left: 1px solid var(--vt-line-2); display: grid; gap: 0.625rem; }
body.vt-pub-reading .vt-docs-toc a { color: var(--vt-ink-2); text-decoration: none; font-size: 0.875rem; }
body.vt-pub-reading .vt-docs-toc a:hover,
body.vt-pub-reading .vt-docs-toc a[aria-current] { color: var(--vt-ink); }
body.vt-pub-reading .vt-docs .os-doc {
  background: var(--vt-deep);
  border: 1px solid var(--vt-line);
  padding: 3.5rem 3.5rem 4rem;
  max-width: none;
  color: var(--vt-ink-2);
}
body.vt-pub-reading .os-doc h1 { font-size: clamp(2.6rem, 4.4vw, 4.4rem); line-height: 0.95; letter-spacing: -0.03em; margin: 1.5rem 0 1rem; }
body.vt-pub-reading .os-doc h2 { font-size: 1.75rem; line-height: 1.1; margin: 3rem 0 1rem; }
body.vt-pub-reading .os-doc h3 { font-size: 1.25rem; margin: 2rem 0 0.75rem; }
body.vt-pub-reading .os-doc p,
body.vt-pub-reading .os-doc li { font-size: 1.0625rem; line-height: 1.65; }
body.vt-pub-reading .os-doc strong { color: var(--vt-ink); }
body.vt-pub-reading .os-doc a { color: var(--vt-ink); }
body.vt-pub-reading .os-doc .os-notice { background: var(--vt-field); border-left: 2px solid var(--vt-signal); color: var(--vt-ink); font-size: 0.9375rem; }
@media (max-width: 900px) {
  body.vt-pub-reading .vt-docs { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  body.vt-pub-reading .vt-docs-toc { position: static; }
  body.vt-pub-reading .vt-docs .os-doc { padding: 2rem 1.25rem 2.5rem; }
}
