/* Shared VAWT Engineering Notebook identity and step navigator.
   Scoped to notebook pages. No changes to Warlock header, menu, golden layout
   architecture, experimental datasets, or calculation code. */
.nb-notebook-site .nb-notebook-masthead {
  margin: 7px;
  padding: clamp(14px, 2vw, 28px);
  border: 1px solid color-mix(in srgb, var(--text-color) 20%, transparent);
  background-image: linear-gradient(106deg, color-mix(in srgb, var(--page-background-color) 88%, lightblue 12%), var(--page-background-color));
  color: var(--text-color);
  box-sizing: border-box;
}
.nb-notebook-site .nb-notebook-masthead * { box-sizing: border-box; }
.nb-notebook-site .nb-notebook-brand {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px 28px;
  padding: 1px 3px 18px;
}
.nb-notebook-site .nb-notebook-brand-copy { min-width: 0; }
.nb-notebook-site .nb-brand-overline {
  display: block;
  font: 700 .68rem/1.5 'Segoe UI', Arial, sans-serif;
  letter-spacing: .14em;
}
.nb-notebook-site .nb-notebook-brand .nb-notebook-name {
  color: var(--text-color);
  font: 500 clamp(1.7rem, 2.9vw, 2.65rem)/1.12 Georgia, 'Times New Roman', serif;
  letter-spacing: -.026em;
  margin: 7px 0 7px;
}
.nb-notebook-site .nb-notebook-brand p {
  font-size: clamp(.82rem, 1vw, .96rem);
  line-height: 1.4;
  margin: 0;
  max-width: 70ch;
}
.nb-notebook-site .nb-notebook-location {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  max-width: 270px;
  gap: 4px;
  border-left: 2px solid color-mix(in srgb, var(--text-color) 45%, transparent);
  padding: 4px 0 4px 14px;
  font: 700 .64rem/1.35 'Segoe UI', Arial, sans-serif;
  letter-spacing: .1em;
}
.nb-notebook-site .nb-notebook-location strong {
  font: 600 .91rem/1.4 'Segoe UI', Arial, sans-serif;
  letter-spacing: normal;
}
.nb-notebook-site .nb-notebook-nav {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
  border-top: 1px solid color-mix(in srgb, var(--text-color) 24%, transparent);
  padding-top: 13px;
}
.nb-notebook-site .nb-notebook-nav-items {
  display: grid;
  grid-template-columns: repeat(8, minmax(125px, 1fr));
  gap: 6px;
  min-width: 1010px;
}
.nb-notebook-site .nb-notebook-nav .nb-nav-step {
  min-width: 0;
  min-height: 55px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding: 9px 10px;
  background: color-mix(in srgb, var(--page-background-color) 87%, var(--text-color) 13%);
  color: var(--text-color);
  border: 1px solid color-mix(in srgb, var(--text-color) 23%, transparent);
  border-radius: 6px;
  text-decoration: none;
  font: 600 .81rem/1.22 'Segoe UI', Arial, sans-serif;
}
.nb-notebook-site .nb-notebook-nav .nb-nav-step[href]:hover,
.nb-notebook-site .nb-notebook-nav .nb-nav-step[href]:focus-visible {
  background: color-mix(in srgb, var(--page-background-color) 75%, var(--text-color) 25%);
  outline: 2px solid var(--text-color);
  outline-offset: 1px;
}
.nb-notebook-site .nb-notebook-nav .nb-nav-step.is-current {
  border: 2px solid var(--text-color);
  padding: 8px 9px;
  background: color-mix(in srgb, var(--page-background-color) 75%, lightblue 25%);
}
.nb-notebook-site .nb-notebook-nav .nb-nav-step.is-planned {
  opacity: .55;
  cursor: default;
}
.nb-notebook-site .nb-notebook-nav .nb-nav-desc {
  font-size: .67rem;
  font-weight: 400;
  line-height: 1.35;
}
.nb-notebook-site .nb-notebook-mobile-tip { display: none; }
@media(max-width: 1050px) {
  .nb-notebook-site .nb-notebook-nav-items { grid-template-columns: repeat(8, 135px); }
}
@media(max-width: 600px) {
  .nb-notebook-site .nb-notebook-masthead { padding: 14px 12px; }
  .nb-notebook-site .nb-notebook-brand { align-items: flex-start; flex-direction: column; gap: 13px; padding-bottom: 13px; }
  .nb-notebook-site .nb-notebook-brand .nb-notebook-name { font-size: clamp(1.45rem, 6.4vw, 2rem); }
  .nb-notebook-site .nb-notebook-location {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    border-left: none;
    border-top: 1px solid color-mix(in srgb, var(--text-color) 24%, transparent);
    padding: 7px 0 0;
    max-width: 100%;
  }
  .nb-notebook-site .nb-notebook-location strong { font-size: .82rem; }
  .nb-notebook-site .nb-notebook-nav-items { grid-template-columns: repeat(8, 130px); min-width: max-content; }
  .nb-notebook-site .nb-notebook-nav .nb-nav-step { min-height: 59px; font-size: .84rem; }
  .nb-notebook-site .nb-notebook-mobile-tip {
    display: block;
    margin: 7px 1px 0;
    font: 400 .72rem/1.3 'Segoe UI', Arial, sans-serif;
  }
}
