/* Shared with the COMMON INQUIRIES cards. Loaded after legacy overrides. */
body.jd-card-system {
  --jd-card-radius: 14px;
  --jd-card-border: #dfe4ea;
  --jd-card-shadow: 0 8px 22px rgba(9, 30, 52, .045);
  --jd-card-ink: #203148;
}
body.jd-card-system :is(#main-content, #social, .jd-location-links) .jd-unified-card {
  position: relative !important;
  min-width: 0;
  border: 1px solid var(--jd-card-border) !important;
  border-radius: var(--jd-card-radius) !important;
  background: #fff !important;
  box-shadow: var(--jd-card-shadow) !important;
  color: var(--jd-card-ink) !important;
  overflow: hidden !important;
}
body.jd-card-system :is(#main-content, #social, .jd-location-links) .jd-unified-card::before {
  content: none !important;
  display: none !important;
}
/* Small inset panels use the same corners, without stacking heavy shadows. */
body.jd-card-system #main-content .jd-unified-inset {
  border: 1px solid var(--jd-card-border) !important;
  border-radius: var(--jd-card-radius) !important;
  box-shadow: none !important;
}
body.jd-card-system #main-content :is(.jd-inquiry-note, .jd-prep-footer, .jd-equipment-legal, .seo-notice-box) {
  padding: 16px 18px;
  background: #f7f8fa !important;
  border: 1px solid var(--jd-card-border) !important;
  border-left: 1px solid var(--jd-card-border) !important;
  border-radius: var(--jd-card-radius) !important;
  color: #536172 !important;
}
body.jd-card-system #main-content .jd-equipment-legal strong { color: #9b7a36 !important; }
body.jd-card-system #main-content .jd-equipment-legal p { color: #536172 !important; }

/* The checklist becomes one light card with two clear content columns. */
body.jd-card-system #main-content .jd-private-check__intro {
  background: #fff !important;
  border-right: 1px solid #e8ebef !important;
}
body.jd-card-system #main-content .jd-private-check__title { color: #0b2038 !important; text-shadow: none !important; }
body.jd-card-system #main-content .jd-private-check__desc { color: #657182 !important; }
body.jd-card-system #main-content .jd-private-check__eyebrow { color: #9b7a36 !important; }
body.jd-card-system #main-content .jd-private-check__trust span { color: #536172 !important; }
body.jd-card-system #main-content .jd-private-check__trust span::before { color: #b28b39 !important; }
body.jd-card-system #main-content .jd-private-check__content { background: #fff !important; }
body.jd-card-system #main-content .jd-private-check__list li {
  background: #f9fafc !important;
  border: 1px solid var(--jd-card-border) !important;
  border-radius: 9px !important;
}

/* Paper/report content retains its layout inside the shared card shell. */
body.jd-card-system #main-content .news-topline { background: #f7f8fa !important; color: #9b7a36 !important; border-bottom: 1px solid #e8ebef !important; }
body.jd-card-system #main-content .news-keypoint { background: #f7f8fa !important; color: #203148 !important; }
body.jd-card-system #main-content .news-keypoint :is(.key-title, .key-item strong) { color: #9b7a36 !important; }
body.jd-card-system #main-content .news-keypoint .key-item span { color: #657182 !important; }
body.jd-card-system #main-content .news-quote { border-left-color: #b28b39 !important; }
body.jd-card-system #main-content .case-doc { background: #fff !important; box-shadow: none !important; border-radius: 0 !important; }
body.jd-card-system #main-content .case-card-foot {
  border-top: 1px solid #e8ebef !important;
  border-radius: 0 !important;
  background: #f7f8fa !important;
  color: #203148 !important;
}
body.jd-card-system #main-content .case-card-foot span { color: #203148 !important; text-shadow: none !important; }
body.jd-card-system #main-content .case-card-foot em { color: #657182 !important; }
body.jd-card-system #main-content .case-card-foot strong { color: #866628 !important; background: #fff8e7 !important; border-color: #eadbb8 !important; border-radius: 6px !important; }
body.jd-card-system #main-content .news-info-table > div { background: #fff !important; }

/* Card badges and headings share the muted gold / navy palette. */
body.jd-card-system #main-content :is(.stat-caption, .detail-info-label) { color: #9b7a36 !important; }
body.jd-card-system #main-content .detail-info-card::after { content: none !important; }
body.jd-card-system #main-content :is(.stat-number, .detail-info-title, .jd-prep-card h3, .jd-equipment-card h3) { color: #203148 !important; }
body.jd-card-system #main-content :is(.stat-icon, .jd-equipment-icon, .jd-prep-num, .seo-guide-num) {
  border: 1px solid #eadbb8 !important;
  border-radius: 9px !important;
  background: #fff8e7 !important;
  color: #866628 !important;
  box-shadow: none !important;
}
body.jd-card-system #main-content :is(.seo-guide-tag, .network-badge, .nc-tag) { border-radius: 7px !important; }
body.jd-card-system #main-content .network-badge { border-color: var(--jd-card-border) !important; color: #536172 !important; }
body.jd-card-system #main-content .network-tab { border-radius: 9px !important; }
body.jd-card-system #main-content .network-card-name { border-bottom-color: #e8ebef !important; }
body.jd-card-system #main-content :is(.seo-cost-box, .seo-cost-item) { background: #f9fafc !important; }

/* Image cards keep their imagery, with the same border, corners and shadow. */
body.jd-card-system #main-content :is(.svc-imgcard-bg, .svc-imgcard-text) { border-radius: 0 !important; }
body.jd-card-system #main-content .service-image-final { border-radius: 0 !important; }
body.jd-card-system #main-content .service-image-final-wrap:hover { box-shadow: var(--jd-card-shadow) !important; }

/* FAQ controls retain the existing expanded/collapsed behavior. */
body.jd-card-system #main-content .detective-faq-item + .detective-faq-item { margin-top: 10px !important; }
body.jd-card-system #main-content .detective-faq-q { border-radius: 0 !important; background: #fff !important; color: #203148 !important; }
body.jd-card-system #main-content .detective-faq-item.open .detective-faq-q { background: #faf8f2 !important; }
body.jd-card-system #main-content .detective-faq-a { border-radius: 0 !important; background: #fff !important; color: #536172 !important; }
body.jd-card-system #main-content .detective-faq-q:focus-visible { outline: 2px solid #b28b39 !important; outline-offset: -3px; }

/* The legal summary follows the light card palette for readable contrast. */
body.jd-card-system #main-content .legal-summary-box :is(h3, p, strong) { color: #203148 !important; text-shadow: none !important; }
body.jd-card-system #main-content .legal-summary-box::after { content: none !important; }
body.jd-card-system :is(#social, .jd-location-links) :is(.social-name, .jd-location-links__name) { color: #203148 !important; }
body.jd-card-system :is(#social, .jd-location-links) :is(.social-handle, .jd-location-links__eyebrow) { color: #9b7a36 !important; }
body.jd-card-system :is(#social, .jd-location-links) .jd-location-links__arrow { border-radius: 50% !important; }

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  body.jd-card-system :is(#main-content, #social, .jd-location-links) a.jd-unified-card:hover {
    border-color: #c9b37e !important;
    box-shadow: 0 12px 26px rgba(9, 30, 52, .08) !important;
  }
}
@media (max-width: 720px) {
  body.jd-card-system { --jd-card-radius: 11px; }
  body.jd-card-system #main-content .jd-private-check__intro { border-right: 0 !important; border-bottom: 1px solid #e8ebef !important; }
}
