/* Current Suite help only; native blocks remain editable in WordPress. */
.am-suite-help { max-width: 1280px !important; margin-inline: auto !important; padding: clamp(32px, 6vw, 88px) 24px; }
.am-suite-help > h1, .am-suite-help > p { max-width: 860px; margin-inline: 0 !important; }
.am-suite-help > h1 { font-size: clamp(32px, 4.5vw, 60px); line-height: 1.08; }
.am-suite-help > h2 { margin: 56px 0 26px !important; font-size: clamp(28px, 3vw, 40px); }
.am-suite-help-grid { max-width: none !important; gap: 20px; align-items: stretch; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
.am-suite-help-card { border: 1px solid #40334e; border-radius: 20px; padding: 26px; background: linear-gradient(140deg, #211b30, #161824); }
.am-suite-help-card h3 { font-size: 22px; line-height: 1.3; margin-top: 0; }
.am-suite-help-preview { margin: 0 0 24px; border-radius: 10px; overflow: hidden; background: #f0f0f1; }
.am-suite-help-preview img { display: block; width: 100%; height: 190px; object-fit: contain; }
.am-suite-help-card .am-suite-help-preview { margin: 0 0 24px; }
.am-suite-help-preview video { height: 210px; object-fit: contain; border: 0; border-radius: 10px; }
.am-suite-help-card p { font-size: 15px; line-height: 1.75; }
.am-suite-help-card p:last-child { margin-top: 22px; }
.am-suite-recording { margin-block: 32px; }
.am-suite-recording video { display: block; width: 100%; height: auto; border: 1px solid #40334e; border-radius: 16px; background: #f0f0f1; }
.am-suite-recording figcaption { font-size: 13px; line-height: 1.5; margin-top: 12px; color: #c2b7de; }
/* Borderless screens retain the complete UI; guides use the editorial overlap. */
.am-insights-polish .ad-article-card .wp-block-post-featured-image.am-suite-card-preview,
.ad-tutorials-hub .am-insights-polish .ad-article-card .wp-block-post-featured-image.am-suite-card-preview,
.am-suite-help-card .am-suite-help-preview {
  position: relative; box-sizing: border-box; margin: -16px 0 20px 18px; width: auto;
  padding: 0; border: 0; border-radius: 16px;
  overflow: hidden; background: #0e101b; box-shadow: 0 12px 24px #0003;
}
.ad-tutorials-hub .am-insights-polish .ad-article-card .wp-block-post-featured-image.am-suite-card-preview {
  margin: 12px 12px 0; width: calc(100% - 24px); border-radius: 12px; box-shadow: none;
}
.am-suite-help-card .am-suite-help-preview { margin: 0 0 18px; width: 100%; box-shadow: none; }
.am-insights-polish .ad-article-card .am-suite-card-preview video,
.am-insights-polish .ad-article-card .am-suite-card-preview img,
.am-suite-help-card .am-suite-help-preview video,
.am-suite-help-card .am-suite-help-preview img {
  display: block; width: 100%; height: auto; aspect-ratio: auto;
  object-fit: contain; max-height: none; border: 0; border-radius: inherit; background: #0e101b;
}
.am-suite-card-preview::after, .am-suite-help-preview::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: #080b19; opacity: .32; pointer-events: none; transition: opacity .22s ease;
}
.ad-article-card:hover .am-suite-card-preview::after,
.ad-article-card:focus-within .am-suite-card-preview::after,
.am-suite-help-card:hover .am-suite-help-preview::after,
.am-suite-help-card:focus-within .am-suite-help-preview::after { opacity: 0; }
@media (hover: none) { .am-suite-card-preview::after, .am-suite-help-preview::after { opacity: .12; } }
@media (prefers-reduced-motion: reduce) { .am-suite-card-preview::after, .am-suite-help-preview::after { transition: none; } }
/* Hub tutorials share a clear media slot whether the visual is a screen or an illustration. */
.ad-tutorials-hub .am-insights-polish .ad-article-card .am-hub-card-preview {
  display: grid; place-items: center; box-sizing: border-box;
  aspect-ratio: 16 / 10; padding: 14px; overflow: hidden;
  background: linear-gradient(135deg, #241b35, #111522);
}
.ad-tutorials-hub .am-insights-polish .ad-article-card .am-hub-card-preview > a {
  display: grid; place-items: center; width: 100%; height: 100%;
}
.ad-tutorials-hub .am-insights-polish .ad-article-card .am-hub-card-preview :is(img, video) {
  display: block; width: 100%; height: 100%; max-height: 100%;
  aspect-ratio: auto; object-fit: contain; border-radius: 8px;
  background: transparent;
}
.ad-tutorials-hub .am-insights-polish .ad-article-card .am-hub-static-preview::after { display: none; }
/* Real UI images in Hub/Writer help retain the whole screen instead of the editorial cover crop. */
.ad-single-reading.am-product-help-doc .ad-article-lead {
  display: flex; justify-content: center; align-items: center;
  box-sizing: border-box; padding: clamp(12px, 2vw, 24px);
  background: linear-gradient(135deg, #241b35, #111522);
}
.ad-single-reading.am-product-help-doc .ad-article-lead img {
  display: block; width: auto; max-width: 100%; height: auto; max-height: 420px;
  aspect-ratio: auto; object-fit: contain; border-radius: 8px;
}
.ad-single-reading.am-product-help-doc .am-hub-inline-screen {
  margin-block: 28px; padding: 14px; border-radius: 16px;
  background: linear-gradient(135deg, #241b35, #111522);
}
.ad-single-reading.am-product-help-doc .am-hub-inline-screen img {
  display: block; width: 100%; height: auto; border-radius: 8px;
}
.ad-single-reading.am-product-help-doc .am-hub-inline-screen figcaption { margin-top: 10px; color: #c2b7de; font-size: 13px; }
.ad-tutorials-hub .am-insights-polish .ad-article-card .ad-card-content { padding: 20px 22px 22px; }
.ad-tutorials-hub .am-insights-polish .ad-article-card .ad-card-content h3 { font-size: 21px; margin-bottom: 10px; }
.ad-tutorials-hub .am-insights-polish .ad-article-card .wp-block-post-date { margin-bottom: 12px; }
.ad-tutorials-hub .am-insights-polish .ad-article-card .wp-block-post-excerpt { font-size: 14px; line-height: 1.6; margin-bottom: 18px; }
@media (max-width: 650px) {
  .am-insights-polish .ad-article-card .wp-block-post-featured-image.am-suite-card-preview { margin: 12px 12px 0; }
}
/* Keep the related-reading screen-reader label inside its scrolling card. */
.ad-article-card { position: relative; }
@media (min-width: 651px) and (max-width: 1000px) {
  .am-suite-help-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 650px) {
  .am-suite-help { padding-inline: 18px; }
  .am-suite-help-grid { grid-template-columns: minmax(0, 1fr) !important; }
  .am-suite-help-card { padding: 22px; }
  .ad-single-reading.am-product-help-doc .ad-article-lead img { width: 100%; max-height: none; }
}
