/* Shared, scoped specifications for collection cards and product details. */
.device-comparison-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}
.device-comparison-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #dbe5ec;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(15, 23, 42, .035);
}
.device-group-header { padding: 16px 18px; background: #eaf5f3; }
.device-group-heading { margin: 0 0 6px; color: #134e4a; font-size: 1rem; line-height: 1.45; }
.device-group-note { margin: 0; color: #334155; font-size: .85rem; line-height: 1.55; }
.device-offer { padding: 20px; }
.device-offer + .device-offer { border-top: 2px solid #dbe5ec; }
.device-product-link { display: block; color: #0f172a; text-decoration: none; }
.device-product-link:hover .device-offer-title { color: #0f766e; }
.device-product-link:focus-visible,
.device-view-link:focus-visible,
.device-department-link:focus-visible { outline: 3px solid #0f766e; outline-offset: 4px; border-radius: 4px; }
.device-product-image { display: block; width: 100%; height: 170px; object-fit: contain; margin: 0 0 18px; }
.device-offer-title { margin: 0; color: inherit; font-size: 1rem; font-weight: 750; line-height: 1.5; overflow-wrap: anywhere; }
.device-offer-source { margin: 12px 0 5px; color: #0f766e; font-size: .86rem; font-weight: 700; line-height: 1.5; }
.device-condition { margin: 0; color: #475569; font-size: .82rem; line-height: 1.55; }
.device-condition span { font-weight: 600; }
.device-specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 18px 0; }
.device-spec { min-width: 0; padding: 10px 11px; border: 1px solid #e6edf2; border-radius: 8px; background: #f5f8fa; }
.device-spec dt { margin: 0 0 4px; color: #526173; font-size: .75rem; font-weight: 500; line-height: 1.35; }
.device-spec dd { margin: 0; color: #172b3a; font-size: .88rem; font-weight: 700; line-height: 1.45; overflow-wrap: anywhere; }
.device-spec-unknown dd { color: #64748b; font-weight: 500; }
.device-offer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding-top: 4px; }
.device-price { color: #0f172a; font-size: 1.4rem; line-height: 1.4; }
.device-view-link { display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 8px 12px; border: 1px solid #bfddd7; border-radius: 7px; background: #edf7f4; color: #0f615a; font-size: .86rem; font-weight: 700; text-decoration: none; }
.device-view-link:hover { background: #dff1eb; color: #134e4a; }
.device-comparison-note { max-width: 90ch; margin: 0 0 22px; color: #526173; font-size: .9rem; line-height: 1.7; }
.device-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.device-detail-host { max-width: 1400px; margin: 24px auto; padding: 0 20px; }
.product-info .device-detail-host { margin: 0 0 24px; padding: 0; }
.device-spec-details { border: 1px solid #dbe5ec; border-radius: 12px; background: #fff; }
.device-spec-summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 18px 22px; cursor: pointer; list-style: none; border-radius: 12px; }
.device-spec-summary::-webkit-details-marker { display: none; }
.device-spec-summary::after { content: ''; flex: 0 0 9px; width: 9px; height: 9px; margin-right: 3px; border-right: 2px solid #0f766e; border-bottom: 2px solid #0f766e; transform: rotate(45deg); }
.device-spec-details[open] > .device-spec-summary::after { transform: rotate(225deg); }
.device-spec-summary:hover { background: #f5f8fa; }
.device-spec-summary:focus-visible { outline: 3px solid #0f766e; outline-offset: -3px; }
.device-spec-summary h2 { margin: 0; color: #0f172a; font-size: 1.15rem; line-height: 1.45; }
.device-spec-content { padding: 0 22px 22px; }
.device-spec-note { margin: 0; color: #526173; font-size: .86rem; line-height: 1.65; }
.device-spec-details .device-specs { margin: 16px 0; }
.device-department-link { display: inline-block; padding: 6px 0; color: #0f766e; font-size: .9rem; font-weight: 700; line-height: 1.5; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 1050px) {
  .device-comparison-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .device-comparison-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .device-offer { padding: 18px; }
  .device-product-image { height: 180px; }
  .device-spec-summary { padding: 16px 18px; }
  .device-spec-content { padding: 0 18px 18px; }
}
