[data-letter-metadata] { flex-wrap: wrap; row-gap: 4px; }

[data-payer-logo] {
  box-sizing: border-box;
  display: inline-block;
  width: 34px;
  height: 20px;
  flex: none;
  border: 1px solid #e3e0df;
  border-radius: 5px;
  background: #fff url("https://handwiki.org/wiki/images/thumb/4/43/Anthem_Blue_Cross_Blue_Shield_Logo.svg/420px-Anthem_Blue_Cross_Blue_Shield_Logo.svg.png") right 2px center / 78px auto no-repeat;
}

[data-policy-research] {
  box-sizing: border-box;
  width: 100%;
  padding: 16px;
  border: 1px solid #dbd8d7;
  border-radius: 8px;
  background: #fff;
  color: #221f1e;
  font: 13px/19px Lexend, system-ui, sans-serif;
}

[data-policy-research] h2 { margin: 0 0 12px; font-size: 16px; font-weight: 600; }
[data-policy-research] > div:first-of-type {
  padding: 10px 12px;
  border: 0;
  border-radius: 6px;
}
[data-policy-link] {
  box-sizing: border-box;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-top: 6px;
  padding: 4px 9px;
  border: 1px solid #dbd8d7;
  border-radius: 5px;
  background: #fff;
  color: #221f1e;
  font-size: 12px;
  text-decoration: none;
}
[data-policy-link]:hover { background: #f1efee; }
[data-research-attribution] { margin: 10px 0 0; color: #656362; font-size: 12px; }

[data-question-list] { padding-inline: 0; }

[data-question] {
  appearance: none;
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  column-gap: 6px;
  align-items: start;
  align-self: stretch;
  width: 100%;
  margin: 0;
  padding-inline: 16px;
  border: 0;
  border-bottom: 1px solid #e9e7e7;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
  scroll-margin-block: 24px;
}

[data-question-label], [data-question-answer] { grid-column: 2; }
[data-question-number] { grid-row: 1; grid-column: 1; }

[data-question]:last-child { border-bottom: 0; }

[data-question][data-evidence-active] { background: #fff6f5; }
[data-question]:focus-visible, [data-source-marker]:focus-visible {
  outline: 2px solid #980009;
  outline-offset: 2px;
}

[data-question]:focus-visible { outline-offset: -2px; }

[data-evidence-sentence] {
  border-radius: 3px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  scroll-margin-block: 32px;
}

[data-evidence-sentence][data-evidence-active] { background: #ffe9e4; }

[data-source-marker] {
  display: inline-grid;
  place-items: center;
  box-sizing: border-box;
  width: 16px;
  height: 16px;
  margin: 0 2px 0 4px;
  padding: 0;
  border: 1px solid #e3e0df;
  border-radius: 50%;
  background: #fff;
  color: #656362;
  cursor: pointer;
  font: 600 10px/1 Lexend, system-ui, sans-serif;
  vertical-align: 1px;
}

[data-source-marker]::before { content: attr(data-source-number); }

[data-question-number] {
  display: inline-grid;
  place-items: center;
  box-sizing: border-box;
  width: 16px;
  height: 16px;
  border: 1px solid #e3e0df;
  border-radius: 50%;
  background: #fff;
  color: #656362;
  font: 600 10px/1 Lexend, system-ui, sans-serif;
  vertical-align: 1px;
}

[data-question-number]::before { content: attr(data-question-number); }
[data-question][data-evidence-active] [data-question-number] {
  border-color: #ffcac1;
  background: #ffe9e4;
  color: #980009;
}
[data-source-marker][data-evidence-active] {
  border-color: #ffcac1;
  background: #ffe9e4;
  color: #980009;
}

@media (min-width: 1161px) and (min-height: 980px) {
  [data-view="cover-letter"] [data-secondary-column] {
    position: sticky;
    top: 16px;
    align-self: start;
  }
}

@media print {
  [data-source-marker] { display: none; }
}
