/* standards.css */
/* Everything here is page scoped. It will not touch the home page. */
body.standards { scroll-padding-top: 110px; }
body.standards {
  padding-top: 76px; /* matches your fixed header height */
}

body.standards .site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
}

/* Standards hero */
body.standards .standards-hero {
  position: relative;
  padding: 120px 0 56px;
  text-align: center;
  overflow: hidden;
}

body.standards .standards-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(255,255,255,0.08), rgba(0,0,0,0.96) 70%);
  z-index: 1;
  pointer-events: none;
}

body.standards .standards-hero .container {
  position: relative;
  z-index: 2;
}

body.standards .standards-sub {
  max-width: 760px;
  margin: 18px auto 0;
  color: rgba(255,255,255,0.72);
  line-height: 1.55;
}

/* Standards floating logo, separate class so home is untouched */
body.standards .standards-floating-logo {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 55; /* under header, above hero */
  opacity: 1;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

body.standards .standards-floating-logo img {
  display: block;
  height: 44px;
  width: auto;
}

body.standards .standards-floating-logo.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(-8px);
}

/* Content layout */
body.standards .standards-body {
  padding: 56px 0 80px;
}

body.standards .standards-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 40px;
  align-items: start;
}

body.standards .standards-nav {
  position: sticky;
  top: 110px; /* below header */
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px;
  padding: 18px;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(10px);
}

body.standards .standards-nav a {
  display: block;
  padding: 12px 10px;
  color: rgba(255,255,255,0.78);
  text-decoration: none;
  border-radius: 10px;
}

body.standards .standards-nav a:hover {
  background: rgba(255,255,255,0.06);
}

body.standards .standards-section {
  padding: 26px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

body.standards .standards-section:last-child {
  border-bottom: 0;
}

body.standards .standards-section h2 {
  margin: 0 0 12px;
}

body.standards .standards-section p,
body.standards .standards-section li {
  color: rgba(255,255,255,0.75);
}

/* Mobile */
@media (max-width: 920px) {
  body.standards .standards-grid {
    grid-template-columns: 1fr;
  }

  body.standards .standards-nav {
    position: relative;
    top: auto;
  }
}

/* Reset */
    * {
      box-sizing: border-box;
    }

    html, body {
      margin: 0;
      padding: 0;
    }

    body {
      background: #000;
      color: #fff;
      font-family: serif;
    }

    /* Nav */
    header {
      position: sticky;
      top: 0;
      background: #0b0b0b;
      padding: 16px 32px;
    }

    nav {
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    nav ul {
      list-style: none;
      display: flex;
      gap: 24px;
      margin: 0;
      padding: 0;
    }

    nav a {
      color: #fff;
      text-decoration: none;
      font-size: 16px;
    }

    .cta {
      background: #b38a4c;
      color: #000;
      padding: 10px 18px;
      border-radius: 999px;
      text-decoration: none;
      font-weight: 600;
    }

    /* Main */
    main {
      margin: 0;
      padding: 0;
    }

    .hero {
      margin: 0;
      padding: 120px 24px 80px;
      text-align: center;
      background: radial-gradient(circle at top, #222, #000);
    }

    .hero h1 {
      margin: 0 0 24px;
      font-size: 56px;
    }

    .hero p {
      margin: 0;
      font-size: 20px;
      color: #ccc;
    }

    /* Hard reset */
html, body { margin: 0; padding: 0; }

/* Kill the brown band */
header,
.site-header,
.navbar {
  position: sticky;
  top: 0;
  z-index: 9999;

  background: #0b0b0b;   /* match your page */
  box-shadow: none;
  border-bottom: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* If you have an overlay pseudo-element */
header::before,
header::after,
.site-header::before,
.site-header::after,
.navbar::before,
.navbar::after {
  content: none;
}

/* If your hero has a top border or top shadow */
main, .hero, .page-hero {
  border-top: none;
  box-shadow: none;
  margin-top: 0;
  padding-top: 0;
}

.header-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 18px;
  min-height: 80px;
  background: black;
}

/* Fix anchor jump so headings do not hide under the sticky header */

/* Option A: best, simple. Put this in standards.css */
.standards-page{
  scroll-padding-top: 110px; /* adjust to match your header height */
}

/* Also add this so every section with an id offsets correctly */
.standards-page .std-block{
  scroll-margin-top: 110px; /* same number */
}

/* Option B: more precise per breakpoint */
@media (max-width: 820px){
  .standards-page{ scroll-padding-top: 150px; }
  .standards-page .std-block{ scroll-margin-top: 150px; }
}

/* Option C: if your anchors are on h2 instead of the section */
.standards-page h2[id]{
  scroll-margin-top: 110px;
}
