/* Nember site, round 5: header dropdowns, the numbers strip under the hero,
   and the sub pages (pools, principles & name). */

/* ---- header dropdowns ---------------------------------------------------- */
.site-header nav { align-items: center; }
.dd { position: relative; }
.dd-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none;
  color: var(--snow-dim); font: inherit; font-size: .95rem; cursor: pointer; white-space: nowrap;
}
.dd-btn::after {
  content: ""; width: 6px; height: 6px; margin-top: -3px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); transition: transform .2s ease;
}
.dd-btn:hover, .dd.open .dd-btn { color: var(--snow); }
.dd-btn:focus-visible { outline: 2px solid var(--frost); outline-offset: 4px; border-radius: 4px; }
.dd.open .dd-btn::after { transform: translateY(3px) rotate(-135deg); }
.dd-panel {
  display: none; position: absolute; top: calc(100% + 18px); left: -14px; width: 300px; padding: 8px;
  border-radius: var(--radius); border: 1px solid var(--slate); background: var(--coal);
  box-shadow: 0 28px 50px -24px rgba(0, 0, 0, .85);
}
.dd-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -20px; height: 20px; } /* keeps hover alive across the gap */
.dd.open .dd-panel { display: grid; }
@media (hover: hover) and (min-width: 761px) { .dd:hover .dd-panel { display: grid; } }
.site-header nav .dd-panel a { display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; white-space: normal; }
.site-header nav .dd-panel a:hover, .site-header nav .dd-panel a:focus-visible { background: var(--slate-2); }
.dd-panel b { color: var(--snow); font-weight: 500; font-size: .95rem; }
.dd-panel span { color: var(--snow-dim); font-size: .82rem; line-height: 1.35; }
@media (prefers-reduced-motion: reduce) { .dd-btn::after { transition: none; } }

/* in the phone menu the groups are simply listed, headed by their names */
@media (max-width: 760px) {
  .site-header.menu-open nav { max-height: calc(100vh - 72px); overflow-y: auto; }
  .dd { border-bottom: 1px solid var(--slate); padding-bottom: 6px; }
  .dd-btn { pointer-events: none; padding: 14px 4px 4px; font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--amber); }
  .dd-btn::after { display: none; }
  .dd-panel { display: grid; position: static; width: auto; padding: 0; border: 0; background: none; box-shadow: none; }
  .dd-panel::before { display: none; }
  .site-header.menu-open nav .dd-panel a { padding: 9px 4px; border-bottom: 0; border-radius: 0; }
  .dd-panel span { display: none; }
  .dd-panel b { font-size: 1.05rem; font-weight: 400; }
}

/* ---- GitHub and Discord: icons at the end of the header, named rows in the phone menu */
.nav-ext { display: flex; align-items: center; gap: 2px; margin-left: 4px; padding-left: 12px; border-left: 1px solid var(--slate); }
.site-header nav .ext { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 9px; color: var(--snow-dim); transition: color .15s ease, background-color .15s ease; }
.site-header nav .ext:hover { color: var(--amber); background: var(--slate-2); }
.site-header nav .ext:focus-visible { outline: 2px solid var(--frost); outline-offset: 2px; }
.ext svg { width: 20px; height: 20px; fill: currentColor; }
.ext span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.nav-ext[hidden], .site-header nav .ext[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .site-header nav .ext { transition: none; } }
@media (max-width: 760px) {
  .nav-ext { margin: 0; padding: 14px 0 2px; border-left: 0; gap: 10px; }
  .site-header.menu-open nav .ext { display: inline-flex; gap: 10px; width: auto; height: auto; padding: 10px 16px; border: 1px solid var(--slate); border-radius: 10px; color: var(--snow); font-size: 1rem; }
  .site-header.menu-open nav .ext[hidden] { display: none; }
  .ext span { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
}

/* ---- numbers strip under the hero ---------------------------------------- */
.facts { border-top: 1px solid var(--slate); border-bottom: 1px solid var(--slate); background: var(--slate-2); }
.facts-row { display: grid; grid-template-columns: repeat(5, 1fr); margin: 0; }
.facts-row > div { padding: 20px 18px; border-left: 1px solid var(--slate); display: flex; flex-direction: column-reverse; gap: 4px; }
.facts-row > div:first-child { border-left: 0; padding-left: 0; }
.facts dt { font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--snow-dim); }
.facts dd { margin: 0; font-family: var(--font-head); font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.05; color: var(--snow); font-variant-numeric: tabular-nums; }
.facts dd small { font-size: .5em; font-family: var(--font-mono); color: var(--amber); letter-spacing: .02em; }
.facts-status { display: flex; align-items: center; gap: 10px; font-size: clamp(1rem, 1.5vw, 1.2rem) !important; white-space: nowrap; }
.facts-status i { width: 9px; height: 9px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px rgba(245, 165, 36, .16); flex: none; }
@media (max-width: 900px) {
  .facts-row { grid-template-columns: repeat(2, 1fr); }
  .facts-row > div { padding: 14px 0; border-left: 0; border-top: 1px solid var(--slate); }
  .facts-row > div:nth-child(-n+2) { border-top: 0; }
  .facts-row > div:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--slate); }
  .facts-row > div:last-child { grid-column: 1 / -1; padding-left: 0; border-left: 0; }
}

/* ---- sub pages ------------------------------------------------------------- */
.subpage > .section:first-child { padding-top: 64px; }
/* the homepage hid these details on phones; on their own page they are the point */
@media (max-width: 760px) {
  .subpage #integrate .int p { display: block; }
  .subpage #integrate .codewin { display: block; }
}

/* ---- network strip: the explorer's supply check (app.js) ------------------- */
.ss.ok { color: #7FDCA4; opacity: 1; }
.ss.bad { color: var(--glow); opacity: 1; font-weight: 600; }
