.detail-page {
  padding-top: 18px;
}

.detail-page .crumbs {
  margin-bottom: 22px;
}

.detail-page .crumbs ol {
  flex-wrap: wrap;
  row-gap: 6px;
}

.detail-page .interior-hero {
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid #d7ddcc;
  border-radius: 14px;
  background: linear-gradient(115deg, #edf0e4, #f5f5ed 82%);
}

.detail-page .hero-copy {
  min-width: 0;
}

.detail-page .interior-hero h1 {
  max-width: 24ch;
  font-size: clamp(36px, 4.65vw, 64px);
  line-height: 1.04;
  overflow-wrap: anywhere;
}

.detail-page .hero-summary {
  max-width: 65ch;
  margin-top: 16px;
  font-size: clamp(15px, 1.55vw, 18px);
  line-height: 1.58;
}

.detail-page .has-hero-image {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 5vw, 64px);
}

.detail-hero-image {
  min-width: 0;
  margin: 0;
}

.detail-hero-image img {
  width: 100%;
  height: auto;
  max-height: 370px;
  object-fit: cover;
  border-radius: 9px;
  background: #fffefa;
}

.detail-hero-image.product-photo img {
  object-fit: contain;
}

.detail-hero-image figcaption {
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.detail-hero-image a {
  text-decoration: underline;
  text-underline-offset: .15em;
}

.printer-gallery {
  margin-top: 30px;
}

.printer-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 215px), 1fr));
  gap: 12px;
}

.printer-gallery figure {
  margin: 0;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel);
}

.printer-photo-link {
  display: block;
  border-radius: inherit;
}

.printer-photo-link:hover {
  color: var(--olive);
}

.printer-gallery img {
  width: 100%;
  aspect-ratio: 3 / 2;
  height: auto;
  object-fit: contain;
  border-radius: 8px 8px 0 0;
  background: #eef0e9;
}

.printer-gallery strong {
  display: block;
  padding: 10px 12px 3px;
  font: 18px/1.3 var(--serif);
}

.printer-gallery figcaption {
  padding: 0 12px 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.printer-gallery figcaption a {
  text-decoration: underline;
  text-underline-offset: .15em;
}

.detail-page .stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 185px), 1fr));
  gap: 8px;
  margin: 12px 0 0;
  border: 0;
}

.detail-page .stat-strip:has(.stat-item:only-child) {
  grid-template-columns: minmax(0, 1fr);
  width: fit-content;
  max-width: 100%;
}

.detail-page .stat-item {
  padding: 12px 15px;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.stat-item dt {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.stat-item dd {
  margin: 0;
  font: 20px/1.25 var(--serif);
  overflow-wrap: anywhere;
}

.detail-page .intro-block {
  max-width: 79ch;
  padding: 23px 0 0;
}

.detail-page .intro-text p {
  color: var(--muted);
  font: 16px/1.65 var(--sans);
  letter-spacing: normal;
}

.detail-page .reference-filter:not([hidden]) {
  margin: 26px 0 0;
}

.detail-page .content-layout {
  grid-template-columns: minmax(170px, 218px) minmax(0, 1fr);
  gap: clamp(22px, 4vw, 55px);
  margin-top: clamp(25px, 4vw, 42px);
}

.detail-page .without-contents {
  grid-template-columns: minmax(0, 1fr);
}

.detail-page .contents-rail {
  position: static;
  padding: 0;
  min-width: 0;
}

.section-jumps {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel);
}

.section-jumps summary {
  padding: 12px 14px;
  color: var(--olive);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.section-jumps ul {
  list-style: none;
  margin: 0;
  padding: 3px 8px 8px;
}

@media (min-width: 801px) and (min-height: 760px) {
  .detail-page .contents-rail:not(.contents-rail-long) {
    position: sticky;
    top: 24px;
    align-self: start;
  }
}

.detail-page .section-jumps li {
  border: 0;
}

.detail-page .section-jumps a {
  display: block;
  padding: 8px 7px;
  border-radius: 5px;
  font-size: 13px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.section-jumps a:hover,
.section-jumps a:focus-visible {
  background: #edf0e4;
}

.detail-page .content-section {
  padding-bottom: 25px;
  margin-bottom: 26px;
}

.detail-page .content-section:last-child {
  margin-bottom: 0;
}

.detail-page .section-heading {
  margin-bottom: 14px;
}

.detail-page :is(.section-heading, .sources-heading) h2 {
  font-size: clamp(24px, 3vw, 33px);
  line-height: 1.17;
  overflow-wrap: anywhere;
}

.detail-page .section-prose {
  max-width: 76ch;
  overflow-wrap: anywhere;
}

.detail-page .link-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 245px), 1fr));
  gap: 9px;
}

.detail-page .link-card {
  min-height: 64px;
  justify-content: center;
  padding: 12px 34px 12px 14px;
  border-radius: 8px;
  gap: 4px;
  overflow-wrap: anywhere;
}

.detail-page .link-card strong {
  font-size: 18px;
}

.detail-page .link-card:hover,
.detail-page .link-card:focus-visible {
  transform: none;
  background: #f2f4eb;
}

.detail-page .card-arrow {
  top: 12px;
  right: 12px;
}

.detail-page .link-list {
  gap: 0 24px;
  margin-top: 12px;
}

.link-row {
  position: relative;
  display: flex;
  min-height: 44px;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding: 9px 26px 9px 3px;
  border-top: 1px solid var(--line);
  overflow-wrap: anywhere;
}

.link-row:hover,
.link-row:focus-visible {
  background: #edf0e4;
  color: var(--olive);
}

.link-row strong {
  font: 17px/1.3 var(--serif);
}

.link-row > span:not(.card-arrow) {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.detail-page .link-row .card-arrow {
  top: 10px;
  right: 5px;
}

.detail-page .table-scroll {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.detail-page .table-scroll:focus-visible {
  outline: 3px solid var(--olive);
  outline-offset: 2px;
}

.detail-page .long-table {
  max-height: min(66vh, 560px);
}

.detail-page .spec-table thead th {
  background: #edf0e4;
}

.detail-page .long-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
}

.detail-page .spec-table tbody tr:nth-child(even) {
  background: #f9faf5;
}

.detail-page .sources-section,
.detail-page .offer-section {
  margin: 31px 0 0;
  padding: 22px clamp(15px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.detail-page .sources-section {
  background: var(--panel);
}

.detail-page .source-list li {
  display: block;
  overflow-wrap: anywhere;
}

.detail-page .article-end {
  justify-content: flex-end;
}

@media (max-width: 800px) {
  .detail-page .content-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .detail-page .section-jumps summary {
    min-height: 44px;
  }
}

@media (max-width: 570px) {
  .printer-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-page .has-hero-image {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .detail-page .stat-strip {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 132px), 1fr));
  }

  .detail-page .stat-item {
    padding: 10px;
  }

  .detail-page .stat-item dd {
    font-size: 18px;
  }

  .detail-page .sources-heading {
    flex-wrap: wrap;
    align-items: start;
    gap: 4px 16px;
  }
}

/* Make retailer actions easy to spot on detail pages. */
.detail-page .hero-affiliate {
  max-width: 65ch;
  margin-top: 22px;
}

.detail-page .hero-affiliate-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  min-width: 0;
}

.detail-page .offer-button {
  box-sizing: border-box;
  display: inline-flex;
  min-width: 0;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 17px;
  border: 1px solid #667b4d;
  border-radius: 6px;
  background: #fffefa;
  color: #293522;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}

.detail-page .offer-button:hover {
  border-color: #40572f;
  background: #eef2e6;
  color: #24321d;
}

.detail-page .offer-button:focus-visible {
  outline: 3px solid #637e40;
  outline-offset: 3px;
}

.detail-page .offer-button-paid {
  border-color: #293522;
  background: #293522;
  color: #fffefa;
  box-shadow: 0 2px 5px #29352220;
}

.detail-page .offer-button-paid:hover {
  border-color: #495b3b;
  background: #495b3b;
  color: #fffefa;
}

.detail-page .hero-affiliate .offer-button {
  min-height: 50px;
  padding: 13px 19px;
  font-size: 15px;
}

.detail-page .hero-affiliate-disclosure {
  margin: 9px 0 0;
  color: #555d4d;
  font-size: 12px;
  line-height: 1.5;
}

.detail-page .offer-section .offer-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px 22px;
}

.detail-page .offer-section .offer-row > .offer-merchant {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
  overflow-wrap: anywhere;
}

.detail-page .offer-section .offer-row > .offer-merchant strong {
  overflow-wrap: anywhere;
}

.detail-page .offer-row [data-amazon-offer-title] {
  max-width: 100%;
  color: var(--ink);
  font: 600 17px/1.25 var(--serif);
  overflow-wrap: anywhere;
  word-break: normal;
}

.detail-page .offer-row .amazon-offer-asin {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.detail-page .offer-row [data-amazon-pack] {
  color: var(--olive);
  font: inherit;
  font-weight: 700;
}

.detail-page .decision-panel {
  margin: 26px 0;
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #eef2e6;
  overflow-wrap: anywhere;
}

.detail-page .decision-panel h2 {
  margin: 0 0 10px;
  font: 600 clamp(24px, 3vw, 34px)/1.16 var(--serif);
}

.detail-page .decision-panel p,
.detail-page .decision-items li p {
  max-width: 78ch;
  margin: 0;
  line-height: 1.55;
}

.detail-page .decision-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 14px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.detail-page .decision-items li {
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
}

.detail-page .decision-items li strong {
  display: block;
  margin-bottom: 5px;
  color: var(--olive);
}

.detail-page .decision-more {
  margin-top: 14px;
  color: var(--olive);
  font-size: 14px;
}

.detail-page .decision-more summary {
  cursor: pointer;
  font-weight: 650;
}

.detail-page .decision-items li a,
.detail-page .contextual-store-link,
.detail-page .decision-navigation {
  display: inline-flex;
  gap: 5px;
  margin-top: 8px;
  color: #435832;
  font-size: 14px;
  font-weight: 650;
  text-underline-offset: 3px;
}

.detail-page .decision-navigation {
  display: flex;
  width: fit-content;
  min-height: 40px;
  align-items: center;
}

.detail-page :is(#offers-title, #contextual-products-title, #decision-title) {
  scroll-margin-top: 86px;
}

.detail-page .purchase-group + .purchase-group {
  margin-top: 20px;
}

.detail-page .purchase-search-only {
  margin: 26px 0 34px;
  padding: clamp(16px, 2vw, 22px);
  background: #eef2e6;
}

.detail-page .purchase-search-only .section-heading {
  margin-bottom: 5px;
}

.detail-page .purchase-search-only h2 {
  font-size: clamp(24px, 2.7vw, 30px);
}

.detail-page .purchase-search-only .offer-list {
  border-top: 0;
}

.detail-page .purchase-search-only .offer-row {
  padding: 10px 0;
  background: transparent;
}

.detail-page .purchase-search-only .affiliate-note {
  margin: 8px 0 0;
}

.detail-page .purchase-group h3 {
  margin: 14px 0 9px;
  color: var(--olive);
  font: 700 14px/1.35 var(--sans);
}

.detail-page .purchase-variants {
  max-width: 100%;
  color: var(--olive);
  font-size: 13px;
}

.detail-page .purchase-variants summary {
  cursor: pointer;
  text-underline-offset: 3px;
}

.detail-page .purchase-variants ul {
  margin: 5px 0;
  padding-left: 21px;
  color: var(--muted);
}

.detail-page .contextual-reason {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.material-series [hidden] {
  display: none !important;
}

.material-series-controls {
  padding: 15px 16px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #eef2e6;
}

.material-series-inputs {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
}

.material-series-inputs label {
  display: grid;
  min-width: 0;
  gap: 5px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.material-series-inputs input,
.material-series-inputs select,
.material-series button {
  min-width: 0;
  min-height: 44px;
  padding: 8px 11px;
  border: 1px solid #aeb7a4;
  border-radius: 6px;
  background: var(--panel);
  color: var(--ink);
  font: 500 15px/1.3 var(--sans);
}

.material-series button {
  color: #435832;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
}

.material-series button:disabled {
  border-color: var(--line);
  color: var(--muted);
  cursor: default;
  opacity: .72;
}

.material-series :is(a, button, input, select, summary):focus-visible {
  outline: 2px solid var(--olive);
  outline-offset: 2px;
}

.material-series-status {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.material-series-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 18px;
  margin-top: 14px;
  scroll-margin-top: 88px;
}

.material-series-row {
  display: flex;
  min-width: 0;
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 9px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}

.material-series-row:hover {
  background: #eef2e6;
  color: #435832;
}

.material-series-row-main {
  display: grid;
  min-width: 0;
  gap: 3px;
  overflow-wrap: anywhere;
}

.material-series-row-main strong {
  font: 600 16px/1.3 var(--sans);
}

.material-series-row-meta {
  color: var(--muted);
  font: 13px/1.4 var(--sans);
}

.material-series-arrow { color: var(--olive); }

.material-series-fallback {
  margin-top: 15px;
  color: var(--olive);
}

.material-series-fallback summary {
  padding: 8px 0;
  font-weight: 650;
  cursor: pointer;
}

.material-series-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 760px) {
  .material-series-inputs { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .material-series-inputs button { justify-self: start; }
  .material-series-results { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 420px) {
  .material-series-inputs { grid-template-columns: minmax(0, 1fr); }
  .material-series-pagination button { padding-inline: 7px; }
}

.detail-page .offer-section .offer-row > .offer-row-actions {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.detail-page .offer-row-actions .offer-button {
  max-width: 100%;
}

.detail-page .offer-row-actions .offer-button span {
  color: inherit;
  font-size: 1em;
}

.detail-page .offer-row-sponsored {
  background: #f5f7ef;
}

.detail-page .offer-link-meta {
  color: #4e5f3d;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1.35;
  text-transform: none;
}

.detail-page .contextual-offer-section {
  margin: 34px 0 46px;
  padding: clamp(18px, 3vw, 26px);
}

.detail-page .contextual-offer-section .contextual-offer-disclosure {
  margin: 0 0 13px;
}

.detail-page .contextual-offer-merchant {
  min-width: 0;
  overflow-wrap: anywhere;
}

.detail-page .contextual-product-page-link {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  color: inherit;
  text-decoration: none;
}

.detail-page .contextual-product-page-link strong {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.detail-page .contextual-product-page-link span {
  color: var(--olive);
  font-size: 12px;
  line-height: 1.4;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.detail-page .contextual-product-page-link:hover span {
  color: #293522;
}

.detail-page .amazon-product[hidden] {
  display: none !important;
}

.detail-page .amazon-product {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 240px);
  align-items: center;
  gap: clamp(18px, 3vw, 32px);
  max-width: 900px;
  padding: clamp(18px, 3vw, 28px);
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
}

.detail-page .amazon-product-content {
  min-width: 0;
}

.detail-page .amazon-product-source {
  margin: 0 0 7px;
  color: var(--olive);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.detail-page .amazon-product h2 {
  margin: 0;
  font: 25px/1.22 var(--serif);
  overflow-wrap: anywhere;
}

.detail-page .amazon-product-features {
  display: grid;
  gap: 6px;
  margin: 14px 0 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.detail-page .amazon-product-note,
.detail-page .amazon-product-disclosure {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.detail-page .amazon-product-disclosure {
  color: #46523a;
}

.detail-page .amazon-product-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  min-height: 42px;
  margin-top: 13px;
  padding: 9px 13px;
  border-radius: 6px;
  background: #34432b;
  color: #fff;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.detail-page .amazon-product-link:hover {
  background: #293522;
  color: #fff;
}

.detail-page .amazon-product-link span {
  flex: 0 0 auto;
}

.detail-page .amazon-product-image-link {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 170px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.detail-page .amazon-product-image-link[hidden] {
  display: none !important;
}

.detail-page .amazon-product-image-link img {
  display: block;
  width: 100%;
  max-height: 240px;
  object-fit: contain;
}

@media (max-width: 570px) {
  .detail-page .hero-affiliate {
    margin-top: 18px;
  }

  .detail-page .hero-affiliate-links {
    align-items: stretch;
    flex-direction: column;
    gap: 5px;
  }

  .detail-page .hero-affiliate .offer-button {
    width: 100%;
  }

  .detail-page .offer-section .offer-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .detail-page .offer-row [data-amazon-offer-title] {
    font-size: 16px;
  }

  .detail-page .offer-section .offer-row > .offer-row-actions {
    align-items: flex-start;
  }

  .detail-page .offer-row-actions .offer-button {
    min-height: 46px;
    max-width: 100%;
  }

  .detail-page .contextual-offer-section {
    margin: 28px 0 38px;
    padding: 19px 16px;
  }

  .detail-page .contextual-offer-section .offer-row {
    overflow-wrap: anywhere;
  }

  .detail-page .amazon-product {
    grid-template-columns: minmax(0, 1fr);
  }

  .detail-page .amazon-product-image-link {
    grid-row: 1;
    min-height: 145px;
  }

  .detail-page .amazon-product-image-link img {
    max-height: 210px;
  }
}
