/* Leyline 2.0 shared shell (header, mobile menu, footer). */
.site-shell {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-bottom: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font: 400 14px/1.55 var(--font-ui);
  -webkit-font-smoothing: antialiased;
}

.shell-header.top {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 60px;
  min-height: 60px;
  padding: 0 64px;
  border-bottom: 0.75px solid var(--grid);
  background: var(--ground);
  font-size: 14px;
  line-height: 1.55;
}
.shell-header.top .brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: var(--ink-graphite);
  text-decoration: none;
}
.shell-header.top .brand b {
  font: 500 24px/1 var(--font-display);
  letter-spacing: -0.01em;
}
.shell-header.top .brand span {
  font: 400 10px/1 var(--font-mono);
  letter-spacing: 0.16em;
  color: var(--graphite-mid);
}
.shell-header.top .nav {
  display: flex;
  gap: 4px;
}
.shell-header.top .nav a {
  padding: 22px 12px 21px;
  color: var(--graphite-mid);
  font: 500 13.5px/1 var(--font-ui);
  text-decoration: none;
}
.shell-header.top .nav a.on {
  color: var(--ink-graphite);
  box-shadow: inset 0 -1.5px 0 var(--accent-blue);
}
.shell-header.top .sp {
  flex: 1;
}
.shell-header.top .nav2 {
  display: flex;
  gap: 20px;
  align-items: center;
}
.shell-header.top .nav2 a {
  color: var(--graphite-mid);
  font: 400 13px/1 var(--font-ui);
  text-decoration: none;
}
.shell-header.top .nav2 a.me {
  color: var(--ink-graphite);
}
.shell-header.top .caret {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  margin-left: 7px;
  font-style: normal;
}
.shell-header.top .kbd.shell-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 300px;
  max-width: 100%;
  height: 34px;
  margin: 0;
  padding: 0 12px;
  border: 0.75px solid var(--grid);
  background: var(--panel);
  color: var(--graphite-mid);
  font-size: 13px;
}
.shell-header.top .kbd.shell-search > i {
  margin-left: auto;
  padding: 2px 5px;
  border: 0.75px solid var(--grid);
  color: var(--graphite-mid);
  font: 400 10px/1 var(--font-mono);
  font-style: normal;
}
.shell-search-hint {
  flex: 1;
  pointer-events: none;
  font: 400 13px/1 var(--font-ui);
  color: var(--graphite-mid);
}
.shell-search input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0 12px;
  padding-right: 40px;
  border: 0;
  background: transparent;
  opacity: 0;
  color: var(--ink-graphite);
  caret-color: var(--ink-graphite);
  font: 400 13px/1 var(--font-ui);
  outline: none;
  appearance: none;
}
.shell-search:has(input:focus) .shell-search-hint,
.shell-search:has(input:not(:placeholder-shown)) .shell-search-hint,
.shell-search:has(input:focus) .shell-search-suffix,
.shell-search:has(input:not(:placeholder-shown)) .shell-search-suffix {
  opacity: 0;
}
.shell-search:has(input:focus) input,
.shell-search:has(input:not(:placeholder-shown)) input {
  opacity: 1;
}
.shell-search:not(.is-editing) input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: 0;
  opacity: 0;
}
.shell-search.is-editing input {
  opacity: 1;
}
.shell-search-suffix {
  margin-left: auto;
  padding: 2px 5px;
  border-width: 0.75px;
  border-style: solid;
  border-color: var(--grid);
  color: var(--graphite-mid);
  font: 400 10px/1 var(--font-mono);
  font-style: normal;
  position: relative;
  z-index: 1;
}
.shell-signals {
  position: relative;
  display: inline-block;
}
.shell-signals-panel {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 40;
  min-width: 200px;
  padding: 6px 0;
  border-width: 0.75px;
  border-style: solid;
  border-color: var(--grid);
  background: var(--hi);
}
.shell-signals.is-open .shell-signals-panel,
.shell-signals:focus-within .shell-signals-panel {
  display: block;
}
@media (min-width: 901px) {
  .shell-signals.is-open .shell-signals-panel {
    position: fixed;
    top: 56px;
    right: 240px;
    left: auto;
    width: 200px;
  }
}
.shell-signals-panel a {
  display: block;
  padding: 9px var(--space-4);
  color: var(--ink-graphite);
  font-size: 13px;
  text-decoration: none;
}
.shell-ticker {
  display: none;
  font: 400 10px/1 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--graphite-mid);
  text-decoration: none;
}
.shell-ticker strong {
  color: var(--ink-graphite);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.shell-menu-toggle {
  display: none;
  min-height: 36px;
  padding: 6px 8px;
  border-width: 0.75px;
  border-style: solid;
  border-color: var(--grid);
  background: var(--panel);
  color: var(--ink-graphite);
  font: 400 10px/1 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}
.shell-menu-context {
  display: none;
}
.shell-mobile-title {
  display: none;
  color: var(--ink-graphite);
  font: 400 10px/1 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.shell-main {
  flex: 1;
  width: min(100% - 80px, 1312px);
  margin: 0 auto;
  padding-bottom: var(--space-9);
}

.shell-foot {
  display: flex;
  gap: 28px;
  align-items: center;
  margin-top: auto;
  padding: 18px var(--margin-web-1440x900);
  padding-right: 150px;
  border-top: 0.75px solid var(--grid);
  background: var(--ground);
}
.shell-foot b {
  font: 500 18px/1 var(--font-display);
  color: var(--ink-graphite);
  font-weight: 500;
}
.shell-foot a.small {
  font: 400 12.5px/1.6 var(--font-ui);
  text-decoration: none;
}
.shell-foot .mono {
  font: 400 10px/1.4 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--graphite-mid);
}
.shell-foot .sp {
  flex: 1;
}
.shell-foot-trust {
  margin: 0;
  max-width: 28ch;
  color: var(--graphite-mid);
  font: 400 12.5px/1.5 var(--font-ui);
}
.shell-mobile-empty {
  margin: 0;
  padding: var(--space-2) 0;
  color: var(--graphite-mid);
  font: 400 13px/1.5 var(--font-ui);
}
.shell-mobile-empty[hidden] {
  display: none;
}

.shell-mobile-panel {
  display: none;
}

.shell-loader-slot .shell-loader-img {
  display: block;
  width: 120px;
  height: 150px;
}

.mono {
  font: 400 10px/1.4 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--graphite-mid);
}
.mono.ink {
  color: var(--ink-graphite);
}

@media (max-width: 900px) {
  .shell-header {
    gap: 12px;
    height: 54px;
    min-height: 54px;
    padding: 0 18px;
  }
  .shell-header .brand span {
    display: none;
  }
  .shell-primary,
  .shell-search,
  .shell-utility .shell-ticker {
    display: none;
  }
  .shell-menu-toggle {
    display: inline-flex;
    align-items: center;
    min-height: 0;
    padding: 6px 8px;
    border-width: 0.75px;
    border-style: solid;
    border-color: var(--grid);
    background: transparent;
    color: var(--graphite-mid);
    font: 400 10px/1.4 var(--font-mono);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
  }
  .shell-mobile-title {
    display: inline;
    text-transform: uppercase;
  }
  .shell-main {
    width: min(100% - 36px, 1312px);
  }
  body.shell-menu-open {
    overflow: hidden;
    background: var(--panel);
  }
  body.shell-menu-open .shell-mobile-panel {
    display: block;
    position: fixed;
    top: 54px;
    left: 0;
    width: 100%;
    height: 790px;
    z-index: 30;
    padding: 16px 18px;
    overflow: hidden;
    border-top: 0.75px solid var(--grid);
    background: var(--panel);
    box-sizing: border-box;
  }
  body.shell-menu-open .shell-menu-context {
    display: block;
  }
  body.shell-menu-open .shell-main,
  body.shell-menu-open .shell-foot {
    display: none;
  }
  .shell-mobile-nav {
    display: flex;
    flex-direction: column;
  }
  .shell-mobile-nav a {
    padding: 13px 0;
    border-bottom-width: 0.75px;
    border-bottom-style: solid;
    border-bottom-color: var(--grid);
    color: var(--ink-graphite);
    font: 500 17px/1 var(--font-ui);
    text-decoration: none;
  }
  .shell-mobile-section {
    margin-top: 20px;
    color: var(--graphite-mid);
    font: 400 10px/1.4 var(--font-mono);
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }
  .shell-mobile-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 8px;
  }
  .shell-mobile-links a {
    color: var(--accent-blue);
    font: 400 13px/1 var(--font-ui);
    text-decoration: none;
  }
  .shell-mobile-agents {
    margin-top: 8px;
  }
  .shell-mobile-agents a {
    color: var(--accent-blue);
    font: 400 13px/1 var(--font-ui);
    text-decoration: none;
  }
  body.shell-menu-open .shell-mobile-chips .chip.t.on {
    display: inline-flex !important;
    align-items: center;
    height: 28px;
    padding: 0 9px;
    border: 0.75px solid var(--support-blue) !important;
    background: var(--blue-wash) !important;
    color: var(--ink-graphite) !important;
    font: 500 12px/1 var(--font-ui);
    text-transform: none;
    letter-spacing: 0;
  }
  .shell-mobile-section.shell-mobile-section-device {
    margin-top: 22px;
  }
  .shell-mobile-history {
    margin-top: 6px;
    font-size: 13.5px;
  }
  .shell-mobile-history strong {
    display: block;
    padding: var(--space-2) 0;
    font-weight: 600;
  }
  .shell-mobile-history p {
    margin: 0;
    padding: var(--space-2) 0;
    color: var(--graphite-mid);
    font-size: 13.5px;
  }
  .shell-mobile-history .shell-detail-mono {
    font: 400 10px/1.4 var(--font-mono);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--graphite-mid);
  }
  .shell-mobile-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: var(--space-2);
  }
  .shell-chip {
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 9px;
    border-width: 0.75px;
    border-style: solid;
    border-color: var(--support-blue);
    background: var(--blue-wash);
    color: var(--ink-graphite);
    font: 500 12px/1 var(--font-ui);
  }
  .shell-mobile-signin {
    display: flex;
    margin-top: 26px;
  }
  .shell-mobile-signin .btn {
    flex: 1;
    height: 36px;
    min-height: 36px;
    padding: 0 18px;
    font: 400 11px/1 var(--font-mono);
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shell-loader svg .mv {
    animation: none !important;
  }
}
