/* Keep the route to a subject group short and readable. */
.hero {
  padding-top: 42px;
  padding-bottom: 42px;
}

.hero-board {
  min-height: 340px;
}

.hero-board .board-book {
  width: 250px;
}

.hero-lead {
  color: #495d53;
}

.hero-actions {
  align-items: center;
  gap: 16px 24px;
}

.hero-text-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  font-size: 15px;
  text-decoration: underline;
}

.subjects-section {
  padding-top: 40px;
}

.subjects-section .section-lead {
  max-width: 740px;
  color: #495d53;
}

.subjects-navigation {
  grid-template-columns: minmax(0, 1fr) 142px;
}

.subject-tab-copy {
  min-width: 0;
}

.subject-tab {
  font-size: 16px;
}

.subject-tab-hint {
  display: block;
  margin-top: 4px;
  color: #4c6657;
  font-size: 12px;
  font-weight: 400;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.subject-tab[aria-selected="true"] {
  background: #e8eddf;
  color: var(--green);
}

.subject-tab[aria-selected="true"] .subject-tab-icon {
  color: #496b54;
}

.subject-tab[aria-selected="true"] .subject-tab-hint {
  color: #3b5b48;
}

.subject-direct-link {
  gap: 6px;
  border-bottom-color: #587066;
  background: var(--green);
  color: #fffefa;
  font-size: 15px;
}

.subject-direct-link:hover {
  background: var(--green-hover);
  color: #fffefa;
}

.subject-direct-link > span[aria-hidden] {
  display: none;
}

.subject-panel #subject-description {
  color: #455b49;
}

.subject-panel .button {
  font-size: 15px;
}

.telegram-help {
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--white);
}

.telegram-help summary {
  min-height: 56px;
  padding: 16px 22px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
}

.telegram-help-content {
  max-width: 800px;
  padding: 0 24px 20px;
  color: #495d53;
  font-size: 16px;
}

.telegram-help-content ol {
  margin: 0;
  padding-left: 23px;
}

.telegram-help-content li + li {
  margin-top: 12px;
}

.telegram-help-content p {
  margin: 16px 0 0;
}

.faq summary,
.faq > p,
.step p {
  font-size: 16px;
}

.section-index {
  display: none;
}

@media (max-width: 780px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .hero-board {
    display: none;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 28px;
    padding-bottom: 28px;
  }

  .hero .eyebrow {
    margin-bottom: 15px;
  }

  .hero h1 {
    margin-bottom: 16px;
    font-size: 40px;
  }

  .hero-lead {
    margin-bottom: 19px;
    font-size: 16px;
    line-height: 1.6;
  }

  .hero-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-bottom: 7px;
  }

  .hero-actions .button {
    width: 100%;
    min-height: 54px;
    font-size: 16px;
  }

  .hero-text-link {
    justify-content: center;
    min-height: 48px;
  }

  .hero-note {
    font-size: 13px;
  }

  .subjects-section {
    padding-top: 28px;
  }

  .subjects-section .eyebrow {
    display: none;
  }

  .subjects-section .section-lead {
    margin-bottom: 18px;
    font-size: 16px;
  }

  .subjects-layout {
    grid-template-columns: minmax(0, 1fr) 112px;
    grid-auto-rows: minmax(88px, auto);
  }

  .subject-tab {
    min-height: 88px;
    padding: 12px;
    font-size: 16px;
  }

  .subject-direct-link {
    min-height: 88px;
    padding: 12px 10px;
    font-size: 15px;
  }

  .subject-panel .button {
    width: 100%;
    min-height: 52px;
    font-size: 15px;
  }

  .telegram-help summary {
    padding-inline: 16px;
  }

  .telegram-help-content {
    padding-inline: 16px;
  }

  .sample-label {
    font-size: 13px;
  }

  .sample-copy > p,
  .sample-link {
    font-size: 16px;
  }
}
