.ideas-article {
  padding-block: clamp(20px, 3vw, 40px) clamp(40px, 6vw, 88px);
}

.idea-intro {
  max-width: 840px;
  margin-bottom: clamp(24px, 4vw, 50px);
}

.idea-intro h1 {
  margin: 0;
  font-size: clamp(36px, 5.2vw, 72px);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -.052em;
  text-wrap: balance;
}

.idea-intro p {
  max-width: 66ch;
  margin-top: 16px;
  font-size: clamp(16px, 1.65vw, 21px);
  font-weight: 500;
  line-height: 1.55;
}

.idea-largest {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 3px 16px;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 18px;
  padding: 12px 16px;
  background: #fff4a9;
  border-radius: 12px;
  line-height: 1.35;
}
.idea-largest strong { font-size: 15px; font-weight: 750; }
.idea-largest span:nth-child(2) { grid-column: 1; font-size: 14px; }
.idea-largest span:last-child { grid-column: 2; grid-row: 1 / 3; font-size: 22px; }
.idea-largest:hover { background: #ffec7e; }
.idea-largest:focus-visible, .idea-section h2[tabindex]:focus-visible { outline: 2px solid #76530c; outline-offset: 3px; }

.idea-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(20px, 5vw, 74px);
  padding-block: clamp(25px, 3.5vw, 46px);
  align-items: start;
  border-top: 1px solid #dedbd1;
}

.idea-section h2 {
  max-width: 20ch;
  margin: 0;
  font-size: clamp(25px, 2.7vw, 40px);
  font-weight: 750;
  line-height: 1.1;
  letter-spacing: -.038em;
  text-wrap: balance;
}

.idea-copy > p:not(.idea-total), .idea-unavailable {
  max-width: 53ch;
  margin: 13px 0 0;
  color: #3d3932;
  font-size: clamp(15px, 1.22vw, 18px);
  line-height: 1.6;
}
.idea-copy > .idea-change-note {
  border-inline-start: 2px solid #d4c780;
  padding-inline-start: 12px;
}

.idea-total[hidden] { display: none; }
.idea-add-bundle {
  display: block;
  max-width: 100%;
  min-height: 44px;
  margin: 13px 0 0 auto;
  padding: 9px 15px;
  border-radius: 11px;
  background: #201e19;
  color: #fff;
  text-align: left;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}
.idea-add-bundle:hover { background: #49432e; }
.idea-add-bundle[aria-disabled="true"] { background: #efeee7; color: #494638; cursor: default; }
.idea-add-bundle:focus-visible { outline: 3px solid #a57212; outline-offset: 3px; }

.idea-products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(10px, 1.5vw, 20px);
  max-width: 500px;
  width: 100%;
}

.idea-products .pcard__img { background: #f8f5ec; }
.idea-products > .pcard:only-child {
  grid-column: 1 / -1;
  justify-self: center;
  width: min(100%, 300px);
}
.idea-products .pcard__body { min-width: 0; }
.idea-products .stock-note { display: block; }
.idea-products .idea-unavailable { grid-column: 1 / -1; margin: 0; }
.idea-products.idea-receipt {
  --idea-paper: #f7f3e7;
  position: relative;
  container-type: inline-size;
  display: block;
  max-width: none;
  margin-bottom: 7px;
  padding: clamp(12px, 2vw, 22px);
  background: var(--idea-paper);
  border-radius: 16px 16px 0 0;
}
.idea-receipt::after {
  content: "";
  position: absolute;
  inset: 100% 0 auto;
  height: 7px;
  background: conic-gradient(from 315deg at 50% 100%, var(--idea-paper) 90deg, transparent 0) 0 0 / 14px 100% round no-repeat;
  pointer-events: none;
}
.idea-receipt ul { margin: 0; padding: 0; list-style: none; }
.idea-receipt li + li {
  background: radial-gradient(circle, #aaa28b .65px, transparent .9px) left top / 4px 2px repeat-x;
}
.idea-receipt-row {
  display: grid;
  grid-template-columns: clamp(84px, 10vw, 128px) minmax(0, 1fr) auto;
  align-items: center;
  column-gap: clamp(8px, 1.3vw, 15px);
  padding-block: 12px;
  font-variant-numeric: tabular-nums;
}
.idea-receipt-row img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
}
.idea-receipt-item { display: grid; gap: 2px; font-size: 14px; line-height: 1.35; }
.idea-receipt-item strong { overflow-wrap: anywhere; font-weight: 650; }
.idea-receipt-row:hover .idea-receipt-item strong { text-decoration: underline; }
.idea-receipt-row:focus-visible { outline: 2px solid #76530c; outline-offset: 2px; }
.idea-receipt-item small { color: #5d594c; font-size: 12px; }
.idea-line-amount { font-size: 15px; font-weight: 750; white-space: nowrap; }
@container (max-width: 410px) {
  .idea-receipt-row {
    grid-template-columns: clamp(84px, 10vw, 128px) minmax(0, 1fr);
    row-gap: 5px;
  }
  .idea-receipt-row img { grid-row: 1 / 3; }
  .idea-receipt-item { align-self: end; }
  .idea-line-amount { grid-column: 2; align-self: start; justify-self: end; }
}
.idea-receipt-row:not(:has(img)) {
  grid-template-columns: minmax(0, 1fr) auto;
}
.idea-receipt-row:not(:has(img)) .idea-line-amount { align-self: center; }
.idea-line-amount .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.idea-total {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 8px;
  margin: 5px 0 0;
  padding-top: 12px;
  border-top: 2px solid #c7c1ad;
  font-variant-numeric: tabular-nums;
}
.idea-total strong { font-size: 18px; font-weight: 750; }
.idea-total strong:nth-child(2) { text-align: right; }
.idea-total > span { grid-column: 1 / -1; color: #484538; font-size: 14px; }
.idea-fallback { grid-column: 1 / -1; padding-left: 1.25em; }
.idea-fallback li + li { margin-top: .6em; }
.idea-fallback a, .idea-all { text-decoration: underline; text-underline-offset: .2em; }
/* The budget article turns these same linked products into illustrated receipt rows and a total. */
@media (scripting: enabled) {
  [data-idea="budget"] article:has(.idea-section .idea-fallback) > .idea-intro {
    margin-bottom: calc(clamp(24px, 4vw, 50px) + 84px);
  }
  [data-budget] .idea-fallback {
    margin: 0;
    padding-block: clamp(12px, 2vw, 22px) 9rem;
  }
  [data-budget] .idea-fallback li {
    align-content: center;
    min-block-size: calc(clamp(84px, 10vw, 128px) + 24px);
    margin: 0;
  }
}
.idea-all { display: inline-block; margin-top: 24px; font-size: 17px; font-weight: 700; }
.idea-all:hover, .idea-fallback a:hover { text-decoration-thickness: 2px; }

@media (max-width: 760px) {
  .idea-section { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .idea-section h2 { max-width: none; }
}

@media (max-width: 650px) {
  .idea-products .pcard .stock-note { display: block; }
}
