/* DEV-ONLY: shared documentation layout. Both guides expose the navigable
   index in the upper-left column, matching the Pulse for Navisworks guide. */
.guide {
  max-width: 1120px;
  display: grid;
  grid-template-columns: 230px minmax(0, 760px);
  column-gap: 76px;
  padding: 94px 0 140px;
}
.guide[hidden] { display: none !important; }
.guide > * { grid-column: 2; }
.guide > .guide__toc {
  grid-column: 1;
  grid-row: 1 / span 999;
  position: sticky;
  top: 26px;
  align-self: start;
  display: grid;
  gap: 3px;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}
.guide > .guide__toc a {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
  color: var(--text-muted);
  font: 10px/1.4 var(--font-mono);
  letter-spacing: .07em;
  text-decoration: none;
  white-space: normal;
}
.guide > .guide__toc a:hover { color: var(--accent-link); }
.guide > .guide__toc::before {
  content: 'DOCUMENTAZIONE';
  margin-bottom: 13px;
  color: var(--text-head);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
}
html[lang='en'] .guide > .guide__toc::before { content: 'DOCUMENTATION'; }
html[lang='es'] .guide > .guide__toc::before { content: 'DOCUMENTACIÓN'; }
html[lang='de'] .guide > .guide__toc::before { content: 'DOKUMENTATION'; }
html[lang='fr'] .guide > .guide__toc::before { content: 'DOCUMENTATION'; }
.guide > h1 { margin-top: 0; }
.guide > h2 { scroll-margin-top: 34px; }
.guide > .legal__footer { grid-column: 2; }

/* The Navisworks guide keeps its product-specific header and content, but
   follows the Revit guide's type scale and reading rhythm. */
.navis-guide__hero {
  margin-bottom: 48px;
  padding-bottom: 40px;
}
.navis-guide__hero h1 {
  max-width: 760px;
  margin: 0 0 8px;
  font-family: var(--font-display, var(--display));
  font-weight: 800;
  font-size: clamp(30px, 4.5vw, 50px);
  line-height: 1.05;
  letter-spacing: normal;
}
.navis-guide__hero p {
  max-width: 650px;
  margin: 0 0 12px;
  color: var(--text-body, var(--body));
  font-size: 15px;
  line-height: 1.8;
}
.navis-guide__section { margin: 0 0 34px; }
.navis-guide__section h2 {
  margin: 34px 0 12px;
  font-family: var(--font-display, var(--display));
  font-weight: 700;
  font-size: 19px;
  line-height: normal;
  letter-spacing: normal;
}
.navis-guide__section h3 {
  margin: 28px 0 10px;
  font-family: var(--font-display, var(--display));
  font-size: 17px;
  font-weight: 600;
}
.navis-guide__section p { font-size: 15px; line-height: 1.8; }
.navis-guide__section li { font-size: 15px; line-height: 1.7; }
.navis-guide__section ol,
.navis-guide__section ul {
  margin: 0 0 12px;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.navis-guide__section li code {
  display: inline;
  padding: 0;
  border-left: 0;
  background: transparent;
}
.navis-guide__callout {
  margin: 20px 0;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.7;
}

@media (max-width: 820px) {
  .guide {
    display: block;
    max-width: 880px;
    padding: 72px 26px 110px;
  }
  .guide > .guide__toc {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 20px;
    margin: 0 0 46px;
  }
  .guide > .guide__toc a { padding: 8px 0; }
}
@media (max-width: 520px) {
  .guide > .guide__toc { grid-template-columns: 1fr; }
}
