.text-link span,
.topic-grid > a > strong,
.list-grid article > a {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-left: 8px;
  border: 2px solid currentColor;
  border-radius: 50%;
  line-height: 1;
  text-decoration: none;
}

.list-grid article > a {
  margin-left: 0;
}

.copy-button,
.citation-button {
  appearance: none;
  color: var(--ink);
  -webkit-text-fill-color: var(--ink);
  background: var(--gold);
}

.citation-button {
  background: var(--paper);
}

.print-button {
  appearance: none;
  border-color: #10291d;
  background: #79aa87;
  color: #10291d;
  -webkit-text-fill-color: #10291d;
}

.print-button:hover,
.print-button:focus-visible {
  background: #9bc7a6;
  color: #10291d;
}

.recipe-controls {
  display: grid;
  grid-template-columns: minmax(210px, .75fr) minmax(260px, 1.25fr);
  gap: 34px;
  align-items: end;
  margin: 0 0 12px;
  padding: 22px;
  border: 2px solid rgba(255, 244, 216, .55);
  background: rgba(255, 255, 255, .08);
}

.unit-switcher {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.unit-switcher legend,
.serving-control label {
  display: block;
  margin-bottom: 9px;
  color: #fff4d8;
  font: 700 11px/1.3 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.segmented-control {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.unit-button {
  appearance: none;
  min-height: 44px;
  border: 2px solid #fff4d8;
  background: #f6eed9;
  color: var(--ink);
  font: 700 12px var(--mono);
  cursor: pointer;
}

.unit-button + .unit-button {
  border-left: 0;
}

.unit-button:hover,
.unit-button:focus-visible {
  background: #d7ead8;
}

.unit-button.is-active {
  background: var(--gold);
  box-shadow: inset 0 -4px 0 #9f6f00;
}

.serving-control input[type="range"] {
  width: 100%;
  accent-color: var(--gold);
  cursor: pointer;
}

.slider-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 3px;
  color: #d6e3d9;
  font: 10px var(--mono);
}

.scaling-note {
  margin: 0 0 34px;
  color: #d6e3d9;
  font-size: 12px;
}

@media (max-width: 700px) {
  .recipe-controls {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}

@media print {
  body {
    background: #fff !important;
    color: #111 !important;
  }

  body > *:not(main),
  main > *:not(.recipe-wrap),
  .print-button,
  .recipe-controls,
  .scaling-note,
  .share-panel {
    display: none !important;
  }

  .recipe-wrap {
    width: 100%;
    padding: 0;
  }

  .recipe-card {
    padding: 18px;
    border: 0;
    box-shadow: none;
    background: #fff !important;
    color: #111 !important;
  }

  .recipe-card h2,
  .recipe-card h3,
  .recipe-card-head p,
  .recipe-stats small,
  .recipe-stats strong,
  .method-list li > span,
  .recipe-note strong,
  .scaling-note {
    color: #111 !important;
  }

  .recipe-stats,
  .recipe-stats div,
  .check-list li,
  .method-list li {
    border-color: #aaa !important;
  }

  .recipe-note {
    border: 1px solid #777;
    background: #fff !important;
  }
}
