/* Рассказ на выбранную оценку: «3», «4» или «5».
   Подписи частей — красной ручкой, как пометки учителя на полях */

.answer {
  padding: 16px 22px 18px;
}

.answer__title {
  margin: 0 0 8px;
  font-family: var(--font-title);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
}

.answer__grades {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}

.answer__grade {
  flex: 1;
  min-height: 40px;
  padding: 0;
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  background: var(--paper);
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
}

.answer__grade:hover {
  background: var(--grid);
}

.answer__grade[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
}

.answer__grade:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.answer__step {
  padding: 10px 0 12px;
  border-top: 1px solid var(--grid);
}

.answer__step-label {
  margin: 0 0 3px;
  font-family: var(--font-hand);
  font-size: 18px;
  line-height: 1.2;
  color: var(--pen-red);
}

.answer__step-text {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
}

/* События внутри пересказа параграфа. Заголовок события — кнопка:
   по ней событие открывается отдельно и находится на карте */
.answer__events {
  margin: 0;
  padding: 0;
  list-style: none;
}

.answer__event {
  margin-top: 10px;
}

.answer__event:first-child {
  margin-top: 4px;
}

.answer__event-link {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  column-gap: 8px;
  align-items: baseline;
  width: 100%;
  min-height: 40px;
  margin-bottom: 2px;
  padding: 4px 0;
  border: 0;
  background: none;
  font-family: inherit;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.answer__event-link:hover .answer__event-title {
  text-decoration-color: var(--ink);
}

.answer__event-link:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 1px;
}

.answer__event-mark {
  grid-row: span 2;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--era-color);
  box-shadow: inset 0 0 0 1px var(--ink-edge);
}

.answer__event-when {
  font-size: 13px;
  line-height: 1.3;
  color: var(--ink-soft);
}

.answer__event-title {
  grid-column: 2;
  font-family: var(--font-title);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: underline;
  text-decoration-color: var(--rule);
  text-underline-offset: 3px;
}

.answer__extra-list {
  margin: 0;
  padding: 0 0 0 18px;
  font-size: 15px;
  line-height: 1.45;
}

.answer__terms {
  margin: 6px 0 0 18px;
  font-size: 15px;
  line-height: 1.4;
}

.answer__term {
  margin-top: 6px;
  font-weight: 700;
}

.answer__meaning {
  margin: 0;
  color: var(--ink-soft);
}

.answer__note {
  margin: 4px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--grid);
  font-size: 13px;
  line-height: 1.35;
  color: var(--ink-soft);
}
