/* Why NABD: approved questions layout. */

:root {
  color-scheme: dark;
  --bg: #060707;
  --text: #edeeeb;
  --muted: #a1a5a1;
  --line: #242725;
  --green: #bdee63;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

button, summary, a {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 6px;
}

::selection {
  background: var(--green);
  color: #080a06;
}

h1, h2, p {
  margin: 0;
}

[hidden] {
  display: none !important;
}

.header {
  width: min(1280px, calc(100% - 64px));
  margin: 24px auto 0;
}

.nav {
  min-height: 60px;
  padding: 8px 8px 8px 20px;
  border: 1px solid #20231f;
  border-radius: 100px;
  display: flex;
  align-items: center;
  gap: 24px;
  background: #0b0d0b;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  flex: 0 0 auto;
  font-size: 14px;
}

.brand img {
  display: block;
  width: 29px;
  height: 29px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 1;
}

.nav-links a {
  padding: 12px 13px;
  color: var(--muted);
  font-size: 13px;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a[aria-current] {
  color: var(--text);
  background: #1b1e1b;
  border-radius: 100px;
}

.testnet {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  min-height: 44px;
  padding: 10px 21px;
  border-radius: 100px;
  background: var(--green);
  color: #0b1106;
  font-size: 13px;
}

.testnet:hover {
  background: #c9f485;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  min-height: 44px;
  font-size: 14px;
}

.text-link span {
  color: var(--green);
}

.text-link:hover {
  color: var(--green);
}

.footer {
  width: min(1152px, calc(100% - 80px));
  margin: auto auto 0;
  border-top: 1px solid var(--line);
  padding: 26px 0 30px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: #858b85;
  font-size: 12px;
}

.footer a:hover {
  color: var(--text);
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .nav {
    justify-content: space-between;
  }

}

@media (max-width: 600px) {
  .header {
    width: calc(100% - 28px);
    margin-top: 14px;
  }

  .nav {
    padding-left: 16px;
    gap: 12px;
  }

  .brand {
    font-size: 13px;
  }

  .testnet {
    padding: 10px 16px;
  }

  .footer {
    width: calc(100% - 48px);
    padding: 24px 0;
    gap: 12px;
    flex-wrap: wrap;
  }

}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }

}

.questions {
  width: min(820px, calc(100% - 96px));
  margin: 92px auto 86px;
}

.questions h1 {
  font-size: clamp(36px, 3vw, 44px);
  line-height: 1.15;
  letter-spacing: -.045em;
  font-weight: 450;
  margin-bottom: 50px;
}

.questions details {
  border-top: 1px solid var(--line);
}

.questions details:last-of-type {
  border-bottom: 1px solid var(--line);
}

.questions summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 27px 0;
  cursor: pointer;
  font-size: clamp(19px, 1.8vw, 24px);
  line-height: 1.4;
  letter-spacing: -.025em;
}

.questions summary::-webkit-details-marker {
  display: none;
}

.questions summary:hover {
  color: var(--green);
}

.toggle {
  flex: 0 0 18px;
  height: 18px;
  position: relative;
  color: #9aa298;
}

.toggle::before, .toggle::after {
  content: "";
  position: absolute;
  background: currentColor;
}

.toggle::before {
  height: 1px;
  width: 14px;
  left: 2px;
  top: 8px;
}

.toggle::after {
  height: 14px;
  width: 1px;
  left: 8px;
  top: 2px;
}

details[open] .toggle::after {
  display: none;
}

details[open] .toggle {
  color: var(--green);
}

.answer {
  padding: 0 48px 30px 0;
  max-width: 730px;
}

.answer p {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.8;
}

.answer p + p {
  margin-top: 14px;
}

.questions > .text-link {
  margin-top: 28px;
}

@media (max-width: 600px) {
  .questions {
    width: calc(100% - 48px);
    margin: 60px auto 64px;
  }

  .questions h1 {
    margin-bottom: 34px;
  }

  .questions summary {
    padding: 24px 0;
    gap: 20px;
  }

  .answer {
    padding-right: 12px;
  }

  .answer p {
    font-size: 16px;
  }

}
