:root {
  --ink: #0a0a0a;
  --paper: #ffffff;
  --muted: #444444;
  --line: #111111;
  --soft: #f4f4f4;
  --accent: #0a0a0a;
  --font: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --frame-width: min(1120px, calc(100% - 2.5rem));
  /* Shared type scale — prefer these over one-off page font sizes. */
  --text-body: 1rem;
  --text-lede: 1.125rem;
  --text-lede-line: 1.5;
  --text-meta: 0.9rem;
  --text-follow: 1.05rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--ink);
  background:
    linear-gradient(180deg, #f7f7f7 0%, #ffffff 28%),
    var(--paper);
}

a { color: inherit; }

/* —— Shared chrome —— */
.topbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: var(--frame-width);
  margin: 0 auto;
  padding: 0.85rem 0 1.5rem;
  min-height: 4.75rem;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  justify-content: flex-start;
  box-sizing: border-box;
  width: auto;
  height: auto;
  max-width: 100%;
  text-decoration: none;
  border: none;
  background: transparent;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.04em;
  font-size: 2.25rem;
  gap: 0;
  flex-shrink: 0;
}

.brand-simpl,
.brand-invest {
  display: inline;
  margin: 0;
  padding: 0;
  white-space: nowrap;
  background: transparent;
}

/* SIMPLINVEST as one wordmark on white — ink + muted */
.brand-simpl {
  color: var(--ink);
  font-weight: 800;
}

.brand-invest {
  color: var(--muted);
  font-weight: 700;
}

.brand-lockup {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.28rem;
  flex-shrink: 0;
}

.brand-slogan {
  margin: 0;
  max-width: 18rem;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: var(--muted);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.topbar-end {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  position: relative;
  margin-left: auto;
  z-index: 6;
}

.topbar-link {
  flex-shrink: 0;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.35rem 0.15rem;
  border-bottom: 2px solid transparent;
}

.topbar-link:hover {
  border-bottom-color: var(--ink);
}

.site-search {
  position: relative;
}

.site-search-input {
  width: min(18rem, 46vw);
  height: 3.15rem;
  padding: 0 1rem;
  border: 2px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 999px;
  outline: none;
}

.site-search-input::placeholder {
  color: #777;
  font-weight: 500;
}

.site-search-input:focus {
  box-shadow: 0 0 0 3px rgba(10, 10, 10, 0.12);
}

.site-search-results {
  position: absolute;
  top: calc(100% + 0.4rem);
  right: 0;
  width: min(22rem, calc(100vw - 2.5rem));
  background: var(--paper);
  border: 2px solid var(--ink);
  z-index: 40;
  max-height: min(24rem, 70vh);
  overflow: auto;
}

.site-search-results[hidden] { display: none; }

.site-search-group {
  padding: 0.55rem 0.85rem 0.2rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #666;
}

.site-search-option {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  padding: 0.55rem 0.85rem;
  text-decoration: none;
  border-top: 1px solid #eee;
}

.site-search-option-name {
  font-weight: 700;
  font-size: 0.92rem;
}

.site-search-option-meta {
  font-size: 0.78rem;
  color: var(--muted);
}

.site-search-option:hover,
.site-search-option.is-active {
  background: var(--soft);
}

.site-search-empty {
  padding: 0.75rem 0.85rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.search-block { margin: 0 auto 2rem; width: var(--frame-width); }
.search-block .logo-grid { margin-top: 0.75rem; }
.search-block-title {

  margin: 0 0 0.65rem;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.search-link-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid #e6e6e6;
}

.search-link-list a {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  padding: 0.8rem 0;
  text-decoration: none;
  border-bottom: 1px solid #e6e6e6;
}

.search-link-name { font-weight: 700; }
.search-link-meta { color: var(--muted); font-size: 0.88rem; }
.search-link-list a:hover .search-link-name { text-decoration: underline; text-underline-offset: 2px; }

.search-soldby {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 0 0 1rem;
  padding: 0.85rem 0;
  text-decoration: none;
}
.search-soldby .logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
}
.search-soldby-sym {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.search-soldby-name {
  display: block;
  font-weight: 750;
  font-size: 1.05rem;
}
.company-soldby { margin: 0 0 1.25rem; }
.company-aisle {
  margin: 2.25rem 0 2.75rem;
  padding-top: 1.85rem;
  border-top: 1px solid #e8e8e8;
}
.company-aisle-header { margin-bottom: 1rem; }
.company-aisle-header h2 {
  margin: 0.15rem 0 0.4rem;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.company-aisle-header .lede {
  margin: 0;
  max-width: 42rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.section-rule {
  margin: 2.5rem 0 2rem;
  height: 1px;
  background: #eee;
  border: none;
}

.menu-btn {
  width: 2.85rem;
  height: 2.85rem;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  display: grid;
  place-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 0;
}

.menu-btn span {
  display: block;
  width: 1.05rem;
  height: 2px;
  background: currentColor;
}

.menu-btn:hover { transform: scale(1.04); }

.site-menu {
  position: absolute;
  top: 5.25rem;
  right: 0;
  min-width: 14rem;
  background: var(--ink);
  color: var(--paper);
  display: grid;
  padding: 0.75rem 0;
  z-index: 30;
  animation: menu-in 0.25s ease both;
}

.site-menu[hidden] { display: none; }

.site-menu a {
  text-decoration: none;
  padding: 0.7rem 1.1rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.site-menu a:hover { background: rgba(255, 255, 255, 0.08); }

.site-menu .menu-group-label {
  display: block;
  margin: 0.65rem 0 0.15rem;
  padding: 0.35rem 1.1rem 0.15rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  pointer-events: none;
}

.site-menu .menu-group-label:first-of-type {
  margin-top: 0.35rem;
}

.site-menu a.menu-nested {
  padding-left: 1.85rem;
  font-weight: 500;
  font-size: 0.9rem;
  opacity: 0.9;
}

.site-menu .menu-user {
  display: block;
  padding: 0.55rem 1.1rem 0.25rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-menu .menu-logout {
  margin: 0;
  padding: 0;
}

.site-menu .menu-logout button {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  padding: 0.7rem 1.1rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
}

.site-menu .menu-logout button:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* Keep auth blocks on the same frame as the logo / explore-intro. */
.auth > .auth-body {
  width: var(--frame-width);
  max-width: none;
  margin: 0 auto 3rem;
  box-sizing: border-box;
  text-align: left;
}

.auth-form {
  display: grid;
  gap: 1rem;
  margin: 0.25rem 0 1rem;
  max-width: 22rem;
  justify-items: stretch;
  text-align: left;
}

.auth-form .home-btn {
  justify-self: start;
  width: auto;
}

.auth-field {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: left;
}

.auth-field input {
  font: inherit;
  font-weight: 500;
  padding: 0.75rem 0.85rem;
  border: 2px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  border-radius: 0;
  width: 100%;
  box-sizing: border-box;
}

.auth-field input:focus {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.auth-hint {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(10, 10, 10, 0.65);
  text-align: left;
}

.auth-error {
  margin: 0 0 1rem;
  padding: 0.75rem 0.9rem;
  border: 2px solid #8a1f1f;
  background: #fff5f5;
  color: #5c1212;
  font-weight: 600;
  max-width: 28rem;
  text-align: left;
}

.auth-switch {
  margin: 1.25rem 0 0;
  font-size: 0.95rem;
  text-align: left;
}

.auth-switch a {
  color: var(--ink);
  font-weight: 700;
}

.page {
  width: var(--frame-width);
  margin: 0 auto;
  padding: 0 0 3.5rem;
}

.page-header { padding: 0.25rem 0 1.25rem; }

.back {
  color: var(--ink);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 0.85rem;
  font-weight: 600;
  border-bottom: 1px solid transparent;
}

.back:hover { border-color: var(--ink); }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.45rem;
  margin: 0 0 0.85rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.crumbs a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.crumbs a:hover { border-color: var(--ink); }

.crumbs-sep { color: var(--muted); font-weight: 500; }

.crumbs [aria-current="page"] { font-weight: 700; }

.eyebrow {
  margin: 0 0 0.45rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 700;
  color: #666;
}

.page-header h1 {
  margin: 0;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.lede, .meta { color: var(--muted); }
.lede {
  max-width: 40rem;
  font-size: var(--text-lede);
  line-height: var(--text-lede-line);
}
.meta {
  font-size: var(--text-meta);
  line-height: 1.45;
}
.meta a { font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* —— Sector logo grid —— */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 1.5rem;
  padding: 0;
  width: 100%;
  max-width: 100%;
  align-items: stretch;
  justify-items: stretch;
  overflow: hidden;
}

/* Full-bleed sections (e.g. /tickers .explore) — match page frame margins */
.explore .logo-grid {
  width: var(--frame-width);
  margin-left: auto;
  margin-right: auto;
}

.logo-tile {
  display: block;
  width: 100%;
  min-width: 0;
  aspect-ratio: 1;
  max-width: 100%;
  padding: 0;
  margin: 0;
  background: #fff;
  border: 0;
  line-height: 0;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.logo-tile:hover {
  background: #fff;
  color: inherit;
  transform: scale(1.02);
  opacity: 0.92;
  z-index: 1;
}

.logo-tile-img,
.logo-grid .logo.logo-tile-img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

.logo {
  width: 64px;
  height: 64px;
  border-radius: 0;
  object-fit: contain;
  background: transparent;
  padding: 0;
  border: 0;
}

.logo.large {
  width: 96px;
  height: 96px;
  background: #fff;
  padding: 6px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.company-hero .logo.large {
  width: 200px;
  height: 200px;
  flex: 0 0 200px;
  padding: 14px;
}

.logo-tile[hidden] { display: none !important; }

.logo-grid-named {
  gap: 0.55rem;
}

.logo-tile-named {
  aspect-ratio: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 1rem 0.65rem 0.85rem;
  border: 1px solid #eee;
  text-align: center;
  line-height: 1.25;
}

.logo-tile-named .logo-tile-img,
.logo-grid-named .logo.logo-tile-img {
  width: min(140px, 78%);
  height: auto;
  aspect-ratio: 1;
  max-width: 140px;
  max-height: 140px;
}

.logo-tile-sym {
  display: block;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.logo-tile-name {
  display: block;
  font-size: 0.78rem;
  color: var(--muted, #555);
  line-height: 1.25;
  max-width: 16ch;
}

.tickers-filter-bar {
  width: var(--frame-width);
  margin: 1rem auto 0.35rem;
  display: grid;
  gap: 0.65rem;
}

.tickers-filter-bar input[type="search"] {
  width: 100%;
  max-width: 28rem;
  border: 1px solid #ccc;
  padding: 0.55rem 0.7rem;
  font: 500 0.95rem Outfit, sans-serif;
  background: #fff;
  color: var(--ink, #0a0a0a);
}

.tickers-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tickers-filter-count {
  width: var(--frame-width);
  margin: 0 auto 0.25rem;
  min-height: 1.2em;
}

@media (max-width: 900px) {
  .logo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .logo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.18rem 0.45rem;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
}

.badge-row { margin: 0.4rem 0 0; }
.cap-large { background: var(--ink); color: #fff; border-color: var(--ink); }
.cap-mid { background: #e8e8e8; }
.cap-small { background: #fff; }
.cap-unknown { color: var(--muted); border-style: dashed; }

.cap-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin: 0.85rem 0 0;
}

.legend-note { color: var(--muted); font-size: 0.75rem; margin-left: 0.25rem; }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.25rem 0 0.5rem;
}

.chip {
  appearance: none;
  border: none;
  background: var(--soft);
  color: var(--muted);
  border-radius: 0;
  padding: 0.4rem 0.8rem;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.chip:hover {
  background: #e8e8e8;
  color: var(--ink);
}
.chip.active {
  background: var(--ink);
  color: var(--paper);
}

/* —— Company page —— */
.company-hero {
  display: flex;
  gap: 1.1rem;
  align-items: center;
  margin-top: 0.35rem;
}

.company-hero h1 {
  font-size: clamp(1.35rem, 2vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.page.pyramid .company-hero h1 {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  font-weight: 800;
}

.page.pyramid .company-hero .logo.large {
  width: 320px;
  height: 320px;
  flex: 0 0 320px;
  padding: 18px;
}

.company-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.15rem;
  margin: 1rem 0 0;
  padding: 0.85rem 0 0.15rem;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.company-jump a {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

.company-jump a:hover {
  color: #000;
}

.scan-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.65rem;
}

.scan-list li {
  position: relative;
  margin: 0;
  padding: 0 0 0 1.15rem;
  line-height: 1.45;
  color: #222;
  font-size: 1.02rem;
}

.scan-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--ink);
}

#investor-snapshot,
#products-and-services,
#company-background,
#other-companies,
#business-segments,
#who-they-serve,
#where-they-operate {
  scroll-margin-top: 5.5rem;
}

.page.pyramid .snapshot-lead {
  margin-top: 1.75rem;
}

.page.pyramid .panel h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
}

.page.pyramid .panel h3 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.snapshot {
  display: grid;
  gap: 1rem;
  margin-top: 0.5rem;
}

.hint {
  margin: 0;
  padding: 0.95rem 1.05rem;
  border: 1px dashed rgba(0, 0, 0, 0.35);
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
  background: var(--soft);
}

.panel {
  padding: 0.15rem 0 0.35rem;
}

.panel h2 {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.panel p { margin: 0; line-height: 1.5; color: #222; }
.panel p + p { margin-top: 0.7rem; }
.more p { margin-top: 0.65rem; }

.keys-lede {
  margin: 0 0 0.75rem;
  font-size: 0.92rem;
}

.keys {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.keys li { margin-bottom: 0.45rem; }

/* —— RTX-only concept map (Canva-style trial) —— */
.concept-map {
  --map-ink: #191919;
  display: flex;
  align-items: stretch;
  gap: 1.35rem;
  margin: 0.1rem 0 0;
}

.concept-map-rail {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  flex: 0 0 auto;
}

.concept-map-root {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  margin: 0;
  color: var(--map-ink);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  line-height: 1.15;
  white-space: nowrap;
}

.concept-map-items {
  --dot: 0.9rem;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  list-style: none;
  margin: 0;
  padding: 0.2rem 0;
  position: relative;
  min-width: 0;
}

.concept-map-items::before {
  content: "";
  position: absolute;
  left: calc(var(--dot) / 2);
  top: 1.45rem;
  bottom: 1.45rem;
  width: 1.5px;
  background: var(--map-ink);
  transform: translateX(-50%);
}

.concept-map-items > li {
  --accent: #deceff;
  --wash: #f6f2ff;
  display: grid;
  grid-template-columns: var(--dot) minmax(0, 1fr);
  column-gap: 1rem;
  align-items: center;
}

.concept-map-items > li:nth-child(6n+1) { --accent: #deceff; --wash: #f6f2ff; }
.concept-map-items > li:nth-child(6n+2) { --accent: #ffe1b3; --wash: #fdedd4; }
.concept-map-items > li:nth-child(6n+3) { --accent: #c8ebff; --wash: #effcff; }
.concept-map-items > li:nth-child(6n+4) { --accent: #fec2e6; --wash: #fff1f8; }
.concept-map-items > li:nth-child(6n+5) { --accent: #c8f5d4; --wash: #f0fff4; }
.concept-map-items > li:nth-child(6n) { --accent: #ffe8a3; --wash: #fff8e1; }

.concept-map-dot {
  width: var(--dot);
  height: var(--dot);
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: #fff;
  z-index: 1;
}

.concept-map-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
  padding: 0.85rem 1.05rem;
  border: 1.5px solid var(--accent);
  border-radius: 0.95rem;
  background: var(--wash);
  color: inherit;
}

.concept-map-card::before {
  content: "";
  position: absolute;
  left: -9px;
  top: 50%;
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-right: 9px solid var(--accent);
  transform: translateY(-50%);
}

.concept-map-copy { min-width: 0; }

.concept-map-copy p + p { margin-top: 0.18rem; }

.concept-map-copy .concept-map-label {
  margin: 0;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: var(--map-ink);
}

.concept-map-copy .concept-map-meaning,
.concept-map-copy .concept-map-leaves {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.4;
  color: #4a4a4a;
}

.concept-map-share {
  flex: 0 0 auto;
  text-align: right;
  line-height: 1.05;
}

.concept-map-share-pct {
  margin: 0;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.04em;
  color: var(--map-ink);
}

.concept-map-share-sales {
  margin: 0.18rem 0 0;
  font-size: 0.72rem;
  color: #4a4a4a;
}

.segment-sibs {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.segment-sibs li { margin-bottom: 0.45rem; }

.segment-sibs a {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.segment-sibs [aria-current="page"] {
  color: var(--ink);
  font-weight: 700;
}

@media (max-width: 640px) {
  .concept-map {
    flex-direction: column;
    gap: 0.75rem;
  }
  .concept-map-rail {
    justify-content: flex-start;
    gap: 0.85rem;
  }
  .concept-map-root {
    writing-mode: horizontal-tb;
    transform: none;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
  }
}

.metrics-split {
  display: grid;
  gap: 1.75rem;
}

.metrics-group-title {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #1a1a1a;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.95rem 1.1rem;
  margin: 0;
}

.metrics div { display: grid; gap: 0.28rem; }
.metrics dt {
  font-size: 0.98rem;
  line-height: 1.35;
  letter-spacing: 0;
  text-transform: none;
  color: #333;
  font-weight: 600;
}
.metrics dd { margin: 0; font-weight: 800; font-size: 1.12rem; }

/* Hover / focus glossary tips on financial terms */
.term-tip {
  position: relative;
  display: inline;
  cursor: help;
  border-bottom: 1px dotted rgba(0, 0, 0, 0.35);
  outline: none;
}
.term-tip:hover,
.term-tip:focus {
  border-bottom-color: rgba(0, 0, 0, 0.65);
  color: #111;
}
.term-tip::after {
  content: attr(data-tip);
  position: absolute;
  left: 0;
  bottom: calc(100% + 0.45rem);
  z-index: 20;
  width: max-content;
  max-width: min(18rem, 70vw);
  padding: 0.55rem 0.7rem;
  border-radius: 0.35rem;
  background: #1a1a1a;
  color: #f5f5f5;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0;
  text-transform: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  opacity: 0;
  transform: translateY(0.15rem);
  pointer-events: none;
  transition: opacity 0.12s ease, transform 0.12s ease;
}
.term-tip:hover::after,
.term-tip:focus::after,
.term-tip:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}
@media (hover: none) {
  .term-tip:focus::after,
  .term-tip:focus-visible::after {
    opacity: 1;
  }
}
.metric-note {
  margin: 0.2rem 0 0;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--muted);
}
.metrics dd.chg.up { color: #0b7a3b; }
.metrics dd.chg.down { color: #9b1c1c; }

.ipo-compare {
  margin: 0 0 1.25rem;
  padding: 1rem 1.1rem;
  border: 1px solid #e6e6e6;
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(11, 122, 59, 0.07), transparent 55%),
    #fafafa;
}
.ipo-compare h3 {
  margin: 0 0 0.3rem;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.ipo-compare-sub {
  margin: 0 0 0.9rem;
  color: #555;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.4;
}
.ipo-rail {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.75rem;
  align-items: stretch;
}
.ipo-end {
  padding: 0.85rem 0.9rem;
  background: #fff;
  border: 1px solid #eee;
}
.ipo-label {
  margin: 0 0 0.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #777;
}
.ipo-price {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.ipo-meta {
  margin: 0.35rem 0 0;
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.35;
  color: #555;
}
.ipo-meta strong { color: #0a0a0a; font-weight: 700; }
.ipo-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  min-width: 7rem;
  text-align: center;
  font-weight: 700;
}
.ipo-glyph { font-size: 1.2rem; line-height: 1; color: #0a0a0a; }
.ipo-pct {
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: #333;
}
.ipo-pct.up { color: #0b7a3b; }
.ipo-pct.down { color: #9b1c1c; }
.ipo-yrs {
  font-size: 0.78rem;
  font-weight: 500;
  color: #666;
}
@media (max-width: 640px) {
  .ipo-rail { grid-template-columns: 1fr; }
  .ipo-arrow { flex-direction: row; gap: 0.55rem; min-width: 0; }
}

.related-searches {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.15rem 1.5rem;
}
.related-searches h3 {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.related-search-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.related-search-list li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: baseline;
  padding: 0.38rem 0;
  border-bottom: 1px solid var(--line, #ececec);
  font-size: 0.95rem;
}
.related-search-list a {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}
.related-search-list a:hover { text-decoration: underline; }
.related-search-value {
  flex: none;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
}
.related-search-value.rising { color: #0b7a3b; }
.related-search-source { margin-top: 0.85rem; }

.more { margin-top: 0.75rem; color: var(--muted); }
.more summary { cursor: pointer; font-weight: 700; color: var(--ink); }

/* —— Product gallery (company page prototype) —— */
.product-gallery-section {
  margin: 1.15rem 0 2rem;
  width: 100%;
}

.product-gallery-header {
  margin-bottom: 1rem;
}

.product-gallery-header h2 {
  margin: 0.15rem 0 0.4rem;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.product-gallery-header .lede {
  margin: 0;
  max-width: 42rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.product-gallery {
  width: 100%;
  column-count: 3;
  column-gap: 0.55rem;
}

.product-shot {
  break-inside: avoid;
  margin: 0 0 0.55rem;
  position: relative;
  overflow: hidden;
  background: transparent;
  border: none;
}

.product-shot img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
  background: #0f0f0f;
  transition: transform 0.45s ease;
}

.product-shot:hover img {
  transform: scale(1.03);
}

.product-shot-tall img {
  min-height: 280px;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 900px) {
  .product-gallery { column-count: 2; }
}

@media (max-width: 560px) {
  .product-gallery { column-count: 1; }
  .product-shot-tall img { min-height: 0; }
}

.empty { color: var(--muted); }

.discover-page { padding-bottom: 4rem; }
.discover-block { margin: 2.25rem 0 0; }
.discover-block-head h2 {
  margin: 0.15rem 0 0.4rem;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.discover-search {
  display: flex;
  gap: 0.5rem;
  margin: 1rem 0 0.75rem;
  max-width: 40rem;
}
.discover-search input {
  flex: 1;
  min-width: 0;
  height: 2.75rem;
  border: 1px solid var(--ink);
  padding: 0 0.9rem;
  font: inherit;
}
.discover-search button {
  appearance: none;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font: inherit;
  font-weight: 700;
  padding: 0 1rem;
  cursor: pointer;
}
.discover-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1rem;
}
.discover-chips a {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  background: var(--soft);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
}
.discover-chips a:hover { background: #e8e8e8; }
.discover-relation {
  margin: 0;
  padding: 0.95rem 1.05rem;
  background: var(--soft);
  font-weight: 650;
  line-height: 1.45;
}
.discover-known {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: 1.1rem;
  margin-top: 1rem;
  text-decoration: none;
}
.discover-known-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #111;
  display: block;
}
.discover-known-logo { object-fit: contain; background: #fff; padding: 1rem; }
.discover-known h3 {
  margin: 0.15rem 0 0.4rem;
  font-size: 1.65rem;
  letter-spacing: -0.02em;
}
.discover-knownas { margin: 0 0 0.4rem; color: var(--muted); }
.discover-rail-title {
  margin: 1.4rem 0 0.7rem;
  font-size: 1.05rem;
  font-weight: 800;
}
.discover-rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}
.discover-rail-compact { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.discover-tile {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-decoration: none;
  background: var(--soft);
  min-height: 100%;
}
.discover-tile-media {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #111;
}
.discover-tile-logo { object-fit: contain; background: #fff; padding: 0.65rem; }
.discover-tile-sym {
  padding: 0.15rem 0.65rem 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.discover-tile-name {
  padding: 0 0.65rem;
  font-weight: 750;
  font-size: 0.95rem;
}
.discover-tile-sells {
  padding: 0 0.65rem;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.discover-tile .badge { margin: 0 0.65rem 0.65rem; width: max-content; }
.discover-tile[hidden] { display: none !important; }
.sector-listing { margin-top: 0.35rem; }
.discover-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 1rem;
}
.discover-compare h3 {
  margin: 0 0 0.7rem;
  font-size: 0.95rem;
}
.discover-ytd {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}
.discover-ytd li { padding: 0.75rem 0; border-top: 1px solid #e8e8e8; }
.discover-ytd a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 0.75rem;
  align-items: baseline;
  text-decoration: none;
}
.discover-ytd-name { font-weight: 750; }
.discover-ytd-count { color: var(--muted); font-size: 0.82rem; }
.discover-ytd-sample {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}
.discover-movers .mover-sector { max-width: 28rem; }

@media (max-width: 900px) {
  .discover-known,
  .discover-compare { grid-template-columns: 1fr; }
  .discover-rail,
  .discover-rail-compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .discover-ytd a { grid-template-columns: 1fr auto; }
  .discover-ytd-count { display: none; }
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--soft);
  padding: 0.1em 0.35em;
}

/* —— Site footer (DuPont / pyramid company pages) —— */
.site-footer {
  --footer-bg: #e6e6e6;
  --footer-ink: #1a1a1a;
  margin-top: 3.5rem;
  padding: 2.4rem 0 1.6rem;
  background: var(--footer-bg);
  color: var(--footer-ink);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.site-footer-inner {
  width: var(--frame-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem 2rem;
}

.site-footer-title {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #555;
}

.site-footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.55rem;
  height: 2.55rem;
  border: 1.5px solid rgba(0, 0, 0, 0.22);
  background: #f3f3f3;
  color: var(--footer-ink);
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.site-footer-social a:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.site-footer-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.site-footer-list a,
.site-footer-nav a {
  color: var(--footer-ink);
  text-decoration: underline;
  text-underline-offset: 0.16em;
  text-decoration-thickness: 1px;
  font-size: 0.95rem;
  line-height: 1.4;
  font-weight: 500;
}

.site-footer-list a:hover,
.site-footer-nav a:hover {
  color: #000;
}

.site-footer-nav {
  display: grid;
  gap: 0.4rem;
}

.site-footer-note {
  width: var(--frame-width);
  margin: 1.75rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  font-size: 0.82rem;
  color: #666;
  line-height: 1.4;
}

@media (max-width: 820px) {
  .site-footer-inner {
    grid-template-columns: 1fr 1fr;
  }
  .site-footer-col:first-child {
    grid-column: 1 / -1;
  }
  .site-footer-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem 1.25rem;
  }
}

@media (max-width: 520px) {
  .site-footer-inner {
    grid-template-columns: 1fr;
  }
  .site-footer-col:first-child {
    grid-column: auto;
  }
}

@keyframes menu-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 640px) {
  :root { --frame-width: min(100% - 1.5rem, 1120px); }
  .topbar {
    padding: 0.55rem 0 1.15rem;
    min-height: 0;
  }
  .brand { font-size: 2rem; }
  .site-search-input {
    width: min(14rem, 38vw);
    height: 2.85rem;
    font-size: 0.9rem;
    padding: 0 0.7rem;
  }
  .site-menu { top: 4.75rem; }
}

@media (max-width: 480px) {
  .company-hero { flex-direction: column; align-items: flex-start; }
  .company-hero .logo.large {
    width: 160px;
    height: 160px;
    flex: 0 0 160px;
  }
  .page.pyramid .company-hero .logo.large {
    width: 220px;
    height: 220px;
    flex: 0 0 220px;
  }
}
