.guide-header {
  border-bottom: 1px solid var(--line);
}

.guide-header-inner,
.guide-footer {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  min-height: 68px;
}

.guide-header .wordmark img {
  height: 32px;
  width: 32px;
}

.guide-header-inner > .text-link {
  text-decoration: underline;
  text-underline-offset: 4px;
  white-space: nowrap;
}

.guide {
  padding-block: clamp(30px, 6vw, 84px) clamp(32px, 6vw, 80px);
}

.guide-intro {
  margin-bottom: clamp(22px, 3.5vw, 40px);
}

.guide-intro h1 {
  font: 400 clamp(42px, 6vw, 78px)/1 var(--serif);
  letter-spacing: -.048em;
}

.guide-intro p {
  color: var(--muted);
  font-size: clamp(16px, 1.5vw, 20px);
  margin-top: 12px;
  max-width: 58ch;
}

.receipt {
  background: #293c30;
  border-radius: 10px;
  color: #fffbf3;
  padding: clamp(14px, 3vw, 32px);
}

.receipt-offers {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.receipt fieldset {
  border: 1px solid #89968a;
  border-radius: 6px;
  margin: 0;
  min-width: 0;
  padding: 11px clamp(10px, 1.3vw, 18px) 15px;
}

.receipt legend {
  font-weight: 800;
  padding-inline: 5px;
}

.receipt label {
  display: block;
  font-size: .875rem;
  margin-bottom: 4px;
}

.receipt select,
.receipt input {
  background: #f8f4eb;
  border: 1px solid transparent;
  border-radius: 5px;
  color: var(--ink);
  display: block;
  min-height: 42px;
  padding: 6px 9px;
  width: 100%;
}

.receipt select:focus-visible,
.receipt input:focus-visible,
.compare-preview:focus-visible {
  outline-color: #fbe1bf;
}

.compare-card:not(:empty) {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-block: 16px;
}

.compare-card > div {
  min-width: 0;
}

.compare-photo {
  display: grid;
  place-items: center;
  flex: 0 0 clamp(72px, 8vw, 122px);
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 5px;
  background: #f8f4eb;
}

.compare-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.compare-shop,
.compare-details,
.compare-low {
  font-size: .86rem;
  color: #e3e7dc;
}

.compare-title {
  margin-block: 2px 3px;
  font: 400 clamp(19px, 2vw, 25px)/1.13 var(--serif);
  overflow-wrap: anywhere;
}

.compare-price {
  font-size: 1.2rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.compare-preview {
  display: inline-block;
  margin-top: 6px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.compare-extras {
  border-top: 1px solid #89968a;
  padding-top: 11px;
}

.receipt output:not([hidden]) {
  display: block;
  font-weight: 800;
  margin-top: 8px;
}

.receipt-result:not(:empty) {
  font-weight: 800;
  margin-top: 13px;
}

#compare-notice:not(:empty) {
  margin-bottom: 10px;
}

.guide-layout {
  align-items: start;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 32px clamp(24px, 6vw, 88px);
  grid-template-columns: minmax(155px, .28fr) minmax(0, 1fr);
  margin-top: clamp(30px, 6vw, 70px);
  padding-top: 24px;
}

.guide-nav {
  display: grid;
  gap: 7px;
  justify-items: start;
}

.guide-nav a {
  font-size: .93rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.guide-nav a:hover {
  color: var(--orange);
}

.guide-content {
  max-width: 65ch;
}

.guide-content section + section {
  border-top: 1px solid var(--line);
  margin-top: 27px;
  padding-top: 25px;
}

.guide-content h2 {
  font: 400 clamp(28px, 4.1vw, 42px)/1.13 var(--serif);
  letter-spacing: -.025em;
  margin-bottom: 9px;
}

.guide-content ul,
.guide-price-notes {
  margin: 0;
}

.guide-content ul {
  padding-left: 1.15em;
}

.guide-content li + li,
.guide-price-notes dt:not(:first-child) {
  margin-top: 10px;
}

.guide-price-notes dt {
  font-weight: 800;
}

.guide-price-notes dd {
  margin: 2px 0 0;
}

.guide-content .primary {
  margin-top: 17px;
}

.guide-footer {
  border-top: 1px solid var(--line);
}

@media (max-width: 780px) {
  .receipt-offers,
  .guide-layout {
    grid-template-columns: 1fr;
  }

  .guide-layout {
    gap: 24px;
  }

  .guide-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
