/* Panda content adapters to native Supertree components.
   Identity comes from panda-identity.css; do not build another boxed UI here. */
.panda-skip-link {
  position: fixed;
  top: 12px;
  left: 16px;
  z-index: 10000;
  transform: translateY(-180%);
  padding: 12px 20px;
  border-radius: 12px;
  background: var(--panda-paper);
  color: var(--panda-ink);
  font-weight: 700;
}
.panda-skip-link:focus { transform: translateY(0); }

/* Explicit sizes prevent the theme's fluid 1rem fallback from shrinking
   nested Gutenberg prose. Values follow .media-split .ms-text. */
.panda-prose p,
.panda-prose li { font-size: 17px; line-height: 1.7; }

/* The explanatory diagrams retain the native image-slot geometry. The text
   and arrows explain relationships, without a second layer of mini-cards. */
.panda-diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  background: var(--icon-bg);
}
.panda-diagram > p {
  position: relative;
  z-index: 2;
  max-width: 244px;
  margin: 0;
  padding: 0;
  color: var(--panda-ink);
  text-align: center;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
}
.panda-diagram > span { color: var(--panda-green-700); line-height: 1; }

/* Reuse Supertree's actual .btn-primary / .btn-outline / .btn-text styles.
   Only the surrounding Gutenberg action row needs a layout adapter. */
.panda-prose .wp-block-buttons.panda-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin: 28px 0;
}

/* A short process summary is ordinary editorial content, not a form panel. */
.panda-prose .panda-flow { margin: 28px 0 40px; }
.panda-flow .panda-flow__label {
  margin: 0 0 14px;
  color: var(--panda-muted);
  font-size: 14px;
  line-height: 1.5;
}
.panda-flow__steps {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.panda-flow__steps .panda-flow__step {
  flex: 1 1 130px;
  margin: 0;
  padding: 0;
  color: var(--panda-ink);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
}
.panda-service-section + .panda-service-section { margin-top: 72px; }
.panda-prose .panda-service-section > h2 { margin-top: 0; }
.panda-prose .panda-service-section h3 { font-size: 18px; }

/* Product previews use native card tokens and the blog grid's 28px gap.
   These are real product cards, not a frame around the page's reading area. */
.panda-prose .panda-product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin: 32px 0;
}
.panda-prose .panda-product-card {
  min-width: 0;
  overflow: hidden;
  padding: 24px;
  border-radius: var(--card-radius);
  background: var(--card-bg);
  box-shadow: var(--card-shadow);
}
.panda-product-card .panda-product-card__image {
  height: 200px;
  margin: 0 0 20px;
}
.panda-product-card__image img {
  width: 100%;
  height: 100% !important;
  object-fit: contain;
}
.panda-product-card h3 { margin: 0 0 12px; }
.panda-product-card p { margin: 0 0 18px; font-size: 14px; }
.panda-product-card .panda-actions { margin: 0; }

/* Authentic game and notation assets: responsive media, no invented frames. */
.panda-product-feature img {
  width: 100%;
  max-height: 580px;
  object-fit: contain;
}
.panda-notation img { width: 100%; max-height: 110px; object-fit: contain; }

/* A safety notice stays distinct, without pretending to be another card. */
.panda-prose .panda-preview-note {
  padding-left: 20px;
  border-left: 3px solid var(--panda-green-600);
  font-size: 16px;
}
.panda-preview-fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.panda-contact-form .cta-form-submit:disabled { opacity: 1; cursor: not-allowed; }
.panda-contact-preview .cta-form-submit { width: 100%; }
.panda-contact-preview .form-consent { font-size: 13px; line-height: 1.65; color: var(--panda-muted); }
.cta-card .form-consent a { color: var(--panda-green-700); text-underline-offset: 3px; }

/* Native CF7 markup inside the existing shared contact card. */
.pandasystems-contact-form .cta-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
/* Feedback is inside a white card, even when its CTA section has white text. */
.wpcf7 .pandasystems-contact-form .wpcf7-response-output { color: var(--panda-ink); }
.pandasystems-contact-form .field { min-width: 0; }
.pandasystems-contact-form .field label { display: flex; flex-direction: column; gap: 6px; }
.wpcf7 .pandasystems-contact-form input[type="submit"] {
  background: var(--panda-green-600) !important;
  color: #fff !important;
  border-color: var(--panda-green-600) !important;
}
.wpcf7 .pandasystems-contact-form input[type="submit"]:hover {
  background: var(--panda-green-700) !important;
  border-color: var(--panda-green-700) !important;
}
@media (max-width: 640px) {
  .pandasystems-contact-form .cta-form-row { grid-template-columns: 1fr; }
}
.footer-legal > span { color: rgba(255,255,255,.72); font-size: 12px; }

@media (max-width: 760px) {
  .panda-prose .panda-product-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .panda-prose p, .panda-prose li { font-size: 16px; }
  .panda-flow__steps { flex-direction: column; gap: 14px; }
  .panda-flow__steps .panda-flow__step { flex: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  .pillar-card, .blog-card, .panda-index-card { transition: none; }
}
