/* ================================================================
   IR 2.0 — Shared Site Nav + Footer
   Loads AFTER assets/brand.css. Works on dark and paper surfaces.
   ================================================================ */

/* ---------- Site Nav ---------- */
.sitenav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  color: var(--d-text);
  border-bottom: 1px solid var(--navy-line);
  font-family: var(--display);
}
.sitenav__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.sitenav__brand {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 9.5pt;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--d-text);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.sitenav__brand .mark {
  width: 14px; height: 14px;
  background: var(--signal);
  position: relative;
}
.sitenav__brand .mark::after {
  content: ""; position: absolute; inset: 3px; background: var(--navy);
}
.sitenav__brand b { font-weight: 700; }
.sitenav__brand .slash {
  color: var(--d-muted);
  font-weight: 400;
  margin: 0 2px;
}
.sitenav__brand .product { color: var(--signal); }

.sitenav__links {
  display: flex; align-items: center; gap: 4px;
  list-style: none; margin: 0; padding: 0;
}
.sitenav__links a {
  display: inline-block;
  padding: 8px 12px;
  font-size: 9pt;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--d-text-2);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.sitenav__links a:hover { color: var(--d-text); }
.sitenav__links a.is-active {
  color: var(--signal);
  border-bottom-color: var(--signal);
}

.sitenav__cta {
  font-family: var(--mono);
  font-size: 8.5pt;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--signal);
  text-decoration: none;
  padding: 8px 14px;
  border: 1px solid var(--signal);
  transition: background 0.15s ease, color 0.15s ease;
}
.sitenav__cta:hover { background: transparent; color: var(--signal); }

.sitenav__menu {
  display: none;
  background: transparent;
  color: var(--d-text);
  border: 1px solid var(--navy-line);
  font-family: var(--mono);
  font-size: 9pt;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 7px 11px;
  cursor: pointer;
}

/* ---------- Site Footer ---------- */
.sitefoot {
  background: var(--navy);
  color: var(--d-text-2);
  font-family: var(--display);
  border-top: 1px solid var(--navy-line);
  margin-top: 80px;
}
.sitefoot__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 32px 36px;
}
.sitefoot__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--navy-line);
}
.sitefoot__brand .logo {
  display: inline-flex; align-items: center; gap: 12px;
  font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  font-size: 10pt; color: var(--d-text);
}
.sitefoot__brand .logo .mark {
  width: 14px; height: 14px;
  background: var(--signal);
  position: relative;
}
.sitefoot__brand .logo .mark::after {
  content: ""; position: absolute; inset: 3px; background: var(--navy);
}
.sitefoot__brand p {
  font-family: var(--serif);
  font-size: 11pt;
  color: var(--d-text-2);
  max-width: 36ch;
  margin: 18px 0 0;
  line-height: 1.5;
}
.sitefoot__col h5 {
  font-family: var(--display);
  font-size: 8.5pt;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--d-muted);
  margin: 0 0 14px;
}
.sitefoot__col ul { list-style: none; padding: 0; margin: 0; }
.sitefoot__col li { margin: 8px 0; }
.sitefoot__col a {
  font-family: var(--display);
  font-size: 10pt;
  color: var(--d-text);
  text-decoration: none;
  letter-spacing: 0;
}
.sitefoot__col a:hover { color: var(--signal); }

.sitefoot__bot {
  padding-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 8.5pt;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--d-muted);
  flex-wrap: wrap;
  gap: 18px;
}
.sitefoot__bot a { color: var(--d-muted); text-decoration: none; }
.sitefoot__bot a:hover { color: var(--signal); }
.sitefoot__url { color: var(--d-text); }
.sitefoot__url .accent { color: var(--signal); }

/* ---------- Section sub-nav (under global sitenav) ---------- */
/* Per brief §3.1–3.2: global nav is always the same 4 items.
   Section sub-nav lives BELOW the global nav, separated by a
   hairline divider, only on pages inside a section (/ir2, /research). */
.subnav {
  background: var(--navy);
  color: var(--d-text-2);
  border-bottom: 1px solid var(--navy-line);
  font-family: var(--display);
}
.subnav__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 32px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
}
.subnav__label {
  font-family: var(--mono);
  font-size: 8pt;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--d-muted);
  margin-right: 4px;
}
.subnav__links {
  display: flex; align-items: center; gap: 2px;
  list-style: none; margin: 0; padding: 0;
  flex-wrap: wrap;
}
.subnav__links a {
  display: inline-block;
  padding: 6px 10px;
  font-family: var(--mono);
  font-size: 8.5pt;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--d-muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.subnav__links a:hover { color: var(--d-text-2); }
.subnav__links a.is-active {
  color: var(--signal);
  border-bottom-color: var(--signal);
}
@media (max-width: 900px) {
  .subnav__inner { padding: 8px 22px; overflow-x: auto; }
  .subnav__links { flex-wrap: nowrap; }
}

/* ---------- Breadcrumb (under nav) ---------- */
.crumbtrail {
  background: #FAF8F3;
  border-bottom: 1px solid rgba(11, 18, 32, 0.08);
  padding: 10px 32px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(11, 18, 32, 0.55);
}
.crumbtrail__inner { max-width: 1180px; margin: 0 auto; }
.crumbtrail a { color: rgba(11, 18, 32, 0.55); text-decoration: none; transition: color 0.15s ease; }
.crumbtrail a:hover { color: var(--signal-ink); }
.crumbtrail .sep { display: inline-block; margin: 0 0.5em; opacity: 0.5; }
.crumbtrail .current { color: var(--navy); }
.page--dark .crumbtrail {
  background: var(--navy-2);
  border-bottom-color: var(--navy-line);
  color: var(--d-text-2);
}
.page--dark .crumbtrail a { color: var(--d-text-2); }
.page--dark .crumbtrail a:hover { color: var(--signal); }
.page--dark .crumbtrail .current { color: var(--d-text); }
/* Explicit modifier (no body wrapper required) — used on dark-chrome pages
   (everything under /ir2, /research, archive entries). Mirrors .page--dark. */
.crumbtrail--dark {
  background: var(--navy-2);
  border-bottom-color: var(--navy-line);
  color: var(--d-text-2);
}
.crumbtrail--dark a { color: var(--d-text-2); text-decoration: none; }
.crumbtrail--dark a:hover { color: var(--signal); }
.crumbtrail--dark .current { color: var(--d-text); }
@media (max-width: 900px) {
  .crumbtrail { padding: 10px 22px; }
}

/* ---------- Generic page shell for site pages (not docs) ---------- */
.site-shell {
  background: var(--navy);
  color: var(--d-text);
  min-height: 100vh;
}
.site-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .sitenav__links { display: none; }
  .sitenav__links.is-open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 60;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 16px 22px;
    background: var(--navy);
    border-bottom: 1px solid var(--navy-line);
    box-shadow: 0 18px 32px rgba(0, 0, 0, 0.28);
  }
  .sitenav__links.is-open a {
    width: 100%;
    padding: 10px 0;
  }
  .sitenav__menu { display: inline-block; }
  .sitenav__inner { padding: 12px 22px; position: relative; }
  .sitefoot__top { grid-template-columns: 1fr 1fr; gap: 28px; }
  .sitefoot__inner { padding: 44px 22px 28px; }
  .site-wrap { padding: 0 22px; }
}
@media (max-width: 540px) {
  .sitefoot__top { grid-template-columns: 1fr; }
  .sitenav__cta { display: none; }
}
