.lw-citation {
  width: min(calc(100% - 32px), 760px);
  margin: 24px auto;
  color: #243e31;
  font-size: .94rem;
  line-height: 1.55;
  scroll-margin-top: 100px;
}

.lw-citation > summary {
  box-sizing: border-box;
  width: fit-content;
  min-height: 44px;
  padding: 10px 0;
  cursor: pointer;
  font-weight: 650;
}

.lw-citation > summary::marker {
  color: #506a58;
}

.lw-citation__body {
  padding: 16px clamp(12px, 3vw, 20px);
  border: 1px solid #c9d9ca;
  border-radius: 12px;
  background: #f8fbf7;
}

.lw-citation .lw-citation__body p {
  margin: 0 0 12px;
  color: #243e31;
  font-size: inherit;
  overflow-wrap: anywhere;
}

.lw-citation .lw-citation__body a {
  color: #2c5541;
  text-decoration: underline;
  text-underline-offset: .15em;
}

.lw-citation .lw-citation__copy:not([hidden]) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  max-width: 100%;
  padding: 8px 14px;
  border: 1px solid #284638;
  border-radius: 8px;
  background: #284638;
  color: #fff;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.lw-citation__copy::before {
  content: '';
  flex: 0 0 9px;
  height: 11px;
  margin-inline-end: 3px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
  box-shadow: 2px -2px 0 -1px #284638, 3px -3px 0 -1px currentColor;
}

.lw-citation .lw-citation__copy:hover {
  background: #193529;
}

.lw-citation :focus-visible {
  outline: 2px solid #2c5541;
  outline-offset: 3px;
}

.lw-citation [role="status"]:not(:empty) {
  display: block;
  margin-top: 8px;
  color: #243e31;
}
