/* Topic header, inquiry and media adjustments for the shared detail design. */
body:has(.pd-grinding) .contact-dock { display: none !important; }
body:has(.pd-grinding) .back-to-top { bottom: 26px; }
.pd-grinding .p62-section { position: relative; }
.pd-grinding { --p-header: 0px; }
.pd-grinding .p62-legacy-anchor {
  position: absolute;
  inset: 0 auto auto 0;
  scroll-margin-top: calc(var(--p-header) + var(--p-nav-height, 0px) + 12px);
}
.pd-grinding .p62-inquiry-tel { color: #d9e9ff; }
.pd-grinding .p62-form .challenge {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
  margin-block: 12px;
}
.pd-grinding .p62-form .challenge label { margin: 0; }
.pd-grinding .p62-form .refresh {
  display: flex;
  flex-direction: column-reverse;
  gap: 3px;
  background: #f1f6fd;
  border: 1px solid var(--p-line);
  border-radius: 6px;
  padding: 4px 7px;
  color: var(--p-blue);
  font-size: 12px;
}
.pd-grinding .p62-form .refresh img { width: 95px; }
.pd-grinding .p62-form .status { margin-top: 10px; }
.pd-grinding .p62-form .status:empty { display: none; }
.pd-grinding .p62-form .submit:disabled { opacity: .58; cursor: wait; }
.pd-grinding .p62-thumbnails { scroll-snap-type: none; }
.pd-grinding .p62-sample-options button {
  padding: 8px 16px;
  border: 1px solid var(--p-line);
  border-radius: 7px;
  background: #fff;
  color: var(--p-ink);
  font-size: 13px;
}
.pd-grinding .p62-sample-options button[aria-pressed="true"] {
  background: var(--p-blue);
  color: #fff;
}
@media (max-width: 780px) {
  body:has(.pd-grinding) { padding-bottom: calc(66px + env(safe-area-inset-bottom, 0px)); }
  body:has(.pd-grinding) .back-to-top { bottom: calc(77px + env(safe-area-inset-bottom, 0px)); }
  body:has(.pd-grinding) .premium-footer { padding-bottom: 30px; }
  .pd-grinding .p62-summary-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    text-align: center;
  }
  .pd-grinding .p62-summary-facts > div {
    margin: 0;
    padding-inline: 5px;
  }
  .pd-grinding .p62-summary-facts strong {
    font-size: clamp(12px, 4vw, 17px);
    white-space: nowrap;
  }
}
@media (max-width: 375px) {
  .pd-grinding .p62-selection-layout { padding: 16px; }
}
