:root {
  --bg: #17181b;
  --surface: #202125;
  --surface-2: #28292e;
  --surface-3: #303137;
  --line: #35363d;
  --text: #f7f7f8;
  --muted: #a7a8af;
  --muted-2: #777981;
  --accent-blue: #afdbf0;
  --accent-mint: #ade2b9;
  --accent-lime: #c3ee9c;
  --accent-light: #d8f888;
  --accent: #c3ee9c;
  --accent-strong: #ade2b9;
  --accent-gradient: linear-gradient(135deg, #afdbf0 0%, #ade2b9 34%, #c3ee9c 68%, #d8f888 100%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Unter", "under", Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

h1,
h2,
h3 {
  font-family: "Plus Jakarta Sans", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.site-nav .brand {
  animation: rise-in .55s cubic-bezier(.22, 1, .36, 1) .04s backwards;
}

.login-button {
  animation: rise-in .55s cubic-bezier(.22, 1, .36, 1) .1s backwards;
}

.board-search .search {
  animation: rise-in .58s cubic-bezier(.22, 1, .36, 1) .1s backwards;
}

.board-search h1,
.section-heading > *,
.help-card,
.empty-state,
footer {
  animation: rise-in .62s cubic-bezier(.22, 1, .36, 1) backwards;
}

.board-search h1 { animation-delay: .08s; }
.section-heading > * { animation-delay: .26s; }
.help-card:nth-child(1) { animation-delay: .3s; }
.help-card:nth-child(2) { animation-delay: .34s; }
.help-card:nth-child(3) { animation-delay: .38s; }
.help-card:nth-child(4) { animation-delay: .42s; }
.help-card:nth-child(5) { animation-delay: .46s; }
.help-card:nth-child(6) { animation-delay: .5s; }
footer { animation-delay: .54s; }

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1050px, calc(100% - 100px));
  min-height: 82px;
  margin: 0 auto;
  padding: 28px 0 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 17px;
  width: max-content;
}

.brand img {
  width: 145px;
  height: 42px;
  object-fit: contain;
  object-position: left center;
}

.login-button {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 6px 6px 6px 22px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  color: #172019;
  background: var(--accent-gradient);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 13px;
  font-weight: 600;
  transition: transform .2s, box-shadow .2s;
}

.login-button:hover {
  box-shadow: 0 9px 25px rgba(195, 238, 156, .12);
  transform: translateY(-2px);
}

.login-arrow {
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 50%;
  color: var(--accent-light);
  background: #292c2d;
  box-shadow: 0 2px 7px rgba(0, 0, 0, .3);
  transition: transform .2s, background .2s;
}

.login-arrow svg {
  width: 17px;
  height: 17px;
  stroke-width: 2;
}

.login-button:hover .login-arrow {
  background: #202223;
  transform: translateX(2px);
}

.search {
  position: relative;
  display: flex;
  align-items: center;
}

.search svg {
  position: absolute;
  left: 17px;
  width: 19px;
  height: 19px;
  color: #9899a0;
}

.search input {
  width: 100%;
  outline: none;
  border: 1px solid #3a3b42;
  color: var(--text);
  background: #222328;
  font: inherit;
  transition: border-color .2s, box-shadow .2s;
}

.search input {
  height: 52px;
  padding: 0 80px 0 48px;
  border-radius: 999px;
}

.search input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(195, 238, 156, .14);
}

.search-key {
  position: absolute;
  right: 10px;
  padding: 2px 7px;
  border: 1px solid #484950;
  border-radius: 5px;
  color: #8f9097;
  font-size: 11px;
  font-weight: 700;
}

.search-suggestions {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  left: 0;
  z-index: 30;
  overflow: hidden;
  padding: 7px;
  border: 1px solid #37383e;
  border-radius: 12px;
  background: rgba(31, 32, 36, .98);
  box-shadow: 0 18px 45px rgba(0, 0, 0, .34);
  backdrop-filter: blur(16px);
  animation: suggestion-in .18s ease-out backwards;
}

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

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.suggestion-item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border-radius: 8px;
  outline: none;
  transition: color .15s, background .15s;
}

.suggestion-item:hover,
.suggestion-item.active,
.suggestion-item:focus-visible {
  color: var(--text);
  background: #2a2b30;
}

.suggestion-copy {
  min-width: 0;
}

.suggestion-copy strong {
  display: block;
  overflow: hidden;
  color: #e8e8eb;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.suggestion-copy small {
  display: block;
  overflow: hidden;
  margin-top: 2px;
  color: #85868e;
  font-size: 10.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.suggestion-arrow {
  color: #7c7d84;
  font-size: 15px;
}

.suggestion-item:hover .suggestion-arrow,
.suggestion-item.active .suggestion-arrow {
  color: var(--accent-lime);
}

.suggestion-empty {
  padding: 18px 12px;
  color: #8b8c93;
  font-size: 12px;
  text-align: center;
}

.page-shell {
  min-height: 100vh;
}

.content {
  min-width: 0;
}

.board-search,
.help-section,
footer {
  width: min(1050px, calc(100% - 100px));
  margin-right: auto;
  margin-left: auto;
}

.board-search {
  padding: 50px 0 38px;
  text-align: center;
}

.board-search h1 {
  margin: 0;
  font-size: clamp(27px, 3.2vw, 38px);
  font-weight: 700;
  letter-spacing: -.035em;
}

.board-search .search {
  max-width: 720px;
  margin: 24px auto 0;
  text-align: left;
}

.section-heading h2 {
  margin: 0;
  letter-spacing: -.025em;
}

.help-section {
  padding: 18px 0 50px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.section-heading h2 {
  font-size: 22px;
}

.article-count {
  margin-bottom: 4px;
  color: #777880;
  font-size: 11px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.help-card {
  position: relative;
  display: block;
  min-height: 210px;
  padding: 22px 22px 76px;
  border: 1px solid #2e2f34;
  border-radius: 16px;
  background: #1f2024;
  transition: transform .2s, border-color .2s, background .2s;
}

.help-card:hover {
  border-color: #44454b;
  background: #232428;
  transform: translateY(-3px);
}

.card-icon {
  position: absolute;
  right: 20px;
  bottom: 18px;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: #bfc0c5;
  background: transparent;
}

.card-icon svg {
  width: 40px;
  height: 40px;
  stroke-width: 1.5;
}

.help-card h3 {
  max-width: 220px;
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.35;
}

.help-card p {
  margin: 0;
  color: #92939b;
  font-size: 12.5px;
  line-height: 1.5;
}

.help-card.hidden {
  display: none;
}

.empty-state {
  display: none;
  padding: 45px;
  border: 1px dashed #3a3b42;
  border-radius: 14px;
  color: #92939b;
  text-align: center;
}

.empty-state.visible {
  display: block;
}

footer {
  display: flex;
  justify-content: space-between;
  padding: 20px 0 28px;
  border-top: 1px solid #292a2f;
  color: #65666d;
  font-size: 10.5px;
}

@media (max-width: 1050px) {
  .site-nav {
    width: calc(100% - 60px);
  }

  .board-search,
  .help-section,
  footer {
    width: calc(100% - 60px);
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-nav {
    width: calc(100% - 36px);
    min-height: 72px;
    padding: 22px 0 12px;
  }

  .brand img {
    width: 125px;
  }

  .login-button {
    gap: 10px;
    padding: 5px 5px 5px 14px;
    font-size: 11px;
  }

  .login-arrow {
    width: 34px;
    height: 34px;
  }

  .board-search,
  .help-section,
  footer {
    width: calc(100% - 36px);
  }

  .section-heading {
    align-items: start;
  }

  .article-count {
    display: none;
  }

  .help-card {
    min-height: 0;
    min-height: 190px;
    padding: 20px 20px 70px;
  }

}

@media (max-width: 430px) {
  .section-heading h2 {
    font-size: 21px;
  }

  footer {
    flex-direction: column;
    gap: 6px;
  }
}

@media (max-width: 600px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
  }
}
