/*
 * SMORTLER + SI Shared Header v3.0 - Deployment
 * ------------------------------------------------------------------
 * Intentionally isolated to .si-sh. Never style generic header/nav/a/body.
 * ASCII hyphens only in authored interface copy.
 */
.si-sh,
.si-sh * { box-sizing: border-box; }

.si-sh {
  --si-sh-purple: #642fbd;
  --si-sh-purple-dark: #3a176f;
  --si-sh-orange: #f5752a;
  --si-sh-ink: #2d1d42;
  --si-sh-muted: #766d80;
  --si-sh-border: #e9e0ee;
  position: relative;
  z-index: 100;
  width: 100%;
  color: var(--si-sh-ink);
  background: rgba(255, 255, 255, .975);
  border-bottom: 1px solid var(--si-sh-border);
  box-shadow: 0 4px 18px rgba(42, 20, 67, .04);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}
.si-sh a,
.si-sh a:visited { color: inherit; text-decoration: none; }
.si-sh a:focus-visible,
.si-sh summary:focus-visible { outline: 3px solid var(--si-sh-orange); outline-offset: 3px; }
.si-sh img { display: block; max-width: 100%; height: auto; }
.si-sh__inner {
  width: min(1420px, calc(100% - 48px));
  min-height: 83px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.si-sh__identity {
  min-width: 0;
  display: flex;
  align-items: center;
  flex: 0 1 auto;
  gap: clamp(9px, 1.1vw, 17px);
}
.si-sh__family-logo { display: flex; align-items: center; flex-shrink: 0; }
.si-sh__family-logo img { width: clamp(132px, 12.2vw, 172px); max-height: 48px; object-fit: contain; }
.si-sh__divider { height: 36px; width: 1px; flex: 0 0 auto; background: #d9c5e7; }
.si-sh__brand {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 8px;
  white-space: nowrap;
}
.si-sh__accent-logo { width: 43px; max-height: 48px; object-fit: contain; flex-shrink: 0; }
.si-sh__brand-words { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.si-sh__brand-words strong {
  display: block;
  color: var(--si-sh-ink);
  font-size: 18px;
  font-weight: 850;
  line-height: 1.1;
  letter-spacing: -.035em;
}
.si-sh__brand-words small { margin-top: 4px; color: var(--si-sh-purple); font-size: 11px; font-weight: 750; }
.si-sh__nav { display: flex; justify-content: flex-end; align-items: center; flex: 0 1 auto; gap: clamp(4px, .7vw, 13px); }
.si-sh__link,
.si-sh__link:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  white-space: nowrap;
  border-radius: 10px;
  border: 1px solid transparent;
  padding: 10px 11px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.25;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}
.si-sh__link:hover { color: var(--si-sh-purple-dark); background: #f7f0ff; border-color: #e8dcf5; }
.si-sh__link--active,
.si-sh__link--active:visited { color: #fff !important; background: var(--si-sh-purple); }
.si-sh__link--active:hover { color: #fff; background: var(--si-sh-purple-dark); }
.si-sh__link--external { color: var(--si-sh-purple) !important; }
.si-sh__link--auth { border-color: #e8dcf5; background: #faf7ff; }
.si-sh__mobile { display: none; position: relative; margin-left: auto; }
.si-sh__mobile > summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 40px;
  padding: 9px 13px;
  border: 1px solid #e2d4ed;
  border-radius: 11px;
  background: #fff;
  color: var(--si-sh-purple-dark);
  cursor: pointer;
  font-size: 13px;
  font-weight: 850;
  list-style: none;
  user-select: none;
}
.si-sh__mobile > summary::-webkit-details-marker { display: none; }
.si-sh__menu-icon { display: grid; gap: 3px; }
.si-sh__menu-icon i { width: 16px; height: 2px; border-radius: 5px; background: currentColor; }
.si-sh__mobile-list {
  position: absolute;
  right: 0;
  top: calc(100% + 9px);
  width: min(300px, calc(100vw - 26px));
  display: grid;
  gap: 3px;
  max-height: min(75vh, 630px);
  overflow-y: auto;
  padding: 9px;
  background: #fff;
  border: 1px solid #e4d7f1;
  border-radius: 14px;
  box-shadow: 0 19px 43px rgba(44, 21, 70, .18);
}
.si-sh__mobile-list .si-sh__link { display: flex; justify-content: flex-start; padding: 11px 12px; white-space: normal; }
.si-sh__private { display: flex; align-items: center; gap: 5px; flex-shrink: 0; }
.si-sh__private a,
.si-sh__private a:visited {
  padding: 3px 7px;
  min-width: 34px;
  text-align: center;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 850;
  line-height: 1.55;
}
.si-sh__private-pre { background: #fff0e6; color: #cd5100 !important; }
.si-sh__private-bio { background: #f1e8ff; color: #5a2ba4 !important; }

/* VIOSCANS keeps the existing compact, individual tool destinations. */
.si-sh--vioscans {
  --si-sh-ink: #2c1748;
  --si-sh-purple: #6835c6;
  background: rgba(255, 249, 246, .96);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(15px);
}
.si-sh--vioscans .si-sh__inner { max-width: 1440px; min-height: 72px; }
.si-sh--vioscans .si-sh__brand-words strong { color: #5327a0; font-size: 21px; letter-spacing: -.05em; }
.si-sh--vioscans .si-sh__brand-words small { color: #746484; font-size: 10px; }
.si-sh--vioscans .si-sh__link { font-size: 12px; padding: 9px 8px; }
.si-sh--vioscans .si-sh__link--active { background: linear-gradient(135deg, #7c3aed, #5b21b6); }

/* Individual-brand accents, without changing shared layout behavior. */
.si-sh--crothers .si-sh__brand-words strong { font-size: 17px; }
.si-sh--crothers .si-sh__brand-words small { letter-spacing: .05em; }
.si-sh--asmarter .si-sh__brand-words strong { font-size: clamp(13px, 1.2vw, 16px); }
.si-sh--asmarter .si-sh__link:last-child { color: #fff !important; background: #6735b5; }
.si-sh--asmarter .si-sh__link:last-child:hover { background: #482180; }
.si-sh--viotilneum { background: rgba(252, 250, 255, .94); }
.si-sh--viotilneum .si-sh__inner { min-height: 60px; }
.si-sh--viotilneum .si-sh__brand-words strong { color: #5b34a2; font-size: 18px; }
.si-sh--cybersecurity .si-sh__brand-words strong { font-size: 14px; }
.si-sh--kevinisms .si-sh__brand-words strong { font-size: 25px; color: #542d91; }
.si-sh--kevinisms .si-sh__brand-words strong::first-letter { color: #ef6827; }
.si-sh--kevinisms .si-sh__nav .si-sh__link:last-child { border: 1px solid #e5d8f2; border-radius: 99px; background: #faf6ff; }
.si-sh--phonetics .si-sh__brand-words strong,
.si-sh--ipa .si-sh__brand-words strong { color: #5426a7; }

@media (max-width: 1260px) {
  .si-sh--vioscans .si-sh__nav { display: none; }
  .si-sh--vioscans .si-sh__mobile { display: block; }
}
@media (max-width: 1080px) {
  .si-sh--asmarter .si-sh__nav { display: none; }
  .si-sh--asmarter .si-sh__mobile { display: block; }
}
@media (max-width: 920px) {
  .si-sh:not(.si-sh--vioscans):not(.si-sh--asmarter) .si-sh__nav { display: none; }
  .si-sh:not(.si-sh--vioscans):not(.si-sh--asmarter) .si-sh__mobile { display: block; }
}
@media (max-width: 620px) {
  .si-sh__inner { width: min(100% - 24px, 1420px); min-height: 70px; gap: 8px; }
  .si-sh__identity { gap: 8px; }
  .si-sh__family-logo img { width: clamp(98px, 29vw, 137px); }
  .si-sh__divider { height: 27px; }
  .si-sh__accent-logo { width: 33px; }
  .si-sh__brand-words strong { font-size: 15px; }
  .si-sh__brand-words small { font-size: 10px; }
  .si-sh--asmarter .si-sh__brand-words strong { max-width: 180px; white-space: normal; font-size: 13px; }
  .si-sh--vioscans .si-sh__brand-words strong { font-size: 19px; }
  .si-sh--kevinisms .si-sh__brand-words strong { font-size: 20px; }
  .si-sh__private { gap: 3px; }
  .si-sh__private a { min-width: 28px; padding: 3px 4px; }
  .si-sh__mobile > summary { padding: 9px 10px; }
}
@media (max-width: 370px) {
  .si-sh__mobile > summary span:last-child { display: none; }
  .si-sh__family-logo img { width: 103px; }
  .si-sh--vioscans .si-sh__brand-words small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .si-sh__link { transition: none; }
}

/* v3 - native hidden semantics, compact review workstation variant. */
.si-sh [hidden] { display: none !important; }
.si-sh--compact .si-sh__inner { min-height: 50px; }
.si-sh--compact .si-sh__family-logo img { width: 116px; max-height: 33px; }
.si-sh--compact .si-sh__accent-logo { width: 30px; }
.si-sh--compact .si-sh__divider { height: 27px; }
.si-sh--compact .si-sh__link { padding: 6px 8px; font-size: 12px; }
.si-sh--compact .si-sh__mobile > summary { min-height: 34px; padding: 5px 10px; }
.si-sh--vioscans .si-sh__identity { flex-wrap: wrap; max-width: 100%; }
.si-sh--vioscans .si-sh__private {
  display: flex; align-items: center; gap: 7px;
  align-self: center; flex: 0 0 auto;
}
.si-sh--vioscans .si-sh__private a { padding: 1px 2px; border-radius: 4px; }
.si-sh--vioscans .si-sh__private img { display: block; width: 65px; height: 23px; object-fit: contain; }
@media (max-width: 620px) {
 .si-sh--vioscans .si-sh__private { gap: 5px; }
 .si-sh--vioscans .si-sh__private img { width: 52px; height: 20px; }
}

.si-sh--vioscans .si-sh__vio-brand-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
  gap: 5px;
  padding: 4px 0;
}
.si-sh--vioscans .si-sh__private { align-self: flex-start; }
