.seo-guides {
  --guide-panel: #f8f5ff;
  --guide-ink: #211832;
  --guide-muted: #665b74;
  --guide-border: #e8dff2;
  --guide-link: #6237db;
  color: var(--guide-ink);
  line-height: 1.65;
}
[data-theme="dark"] .seo-guides {
  --guide-panel: #251a37;
  --guide-ink: #f6f0ff;
  --guide-muted: #d0c1df;
  --guide-border: #473858;
  --guide-link: #c7acff;
}
.seo-guides :is(h1, h2, h3, p, figure) { margin: 0; }
.seo-guides :is(h1, h2) { line-height: 1.12; letter-spacing: -.045em; }
.seo-guides h1 { font-size: clamp(2.4rem, 5vw, 4.35rem); }
.seo-guides h2 { font-size: clamp(1.55rem, 3.2vw, 2.45rem); }
.seo-guides h3 { font-size: 1.15rem; line-height: 1.35; }
.seo-guides a { color: var(--guide-link); text-underline-offset: .2em; }
.seo-guides .crumb { padding-top: 24px; display: flex; flex-wrap: wrap; gap: .5em; font-size: .9rem; }
.seo-guides .hero p { max-width: 46ch; margin: 20px 0 24px; font-size: 1.12rem; color: var(--guide-muted); }
.seo-guides .pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.seo-guides .frame {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--guide-panel);
  border: 1px solid var(--guide-border);
  border-radius: 18px;
}
.seo-guides .hero .frame { aspect-ratio: 4 / 4.5; }
.seo-guides .frame img { display: block; width: 100%; height: 100%; object-fit: contain; }
.seo-guides .frame.white { background: #fff; }
.seo-guides .frame.violet { background: #cfbaff; }
.seo-guides .frame.checker { background: repeating-conic-gradient(#e7e2eb 0 25%, #fff 0 50%) 0 0 / 20px 20px; }
.seo-guides figcaption { margin-top: 8px; font-size: .86rem; color: var(--guide-muted); }
.seo-guides :is(.body-copy, .block) { border-top: 1px solid var(--guide-border); }
.seo-guides .block { padding-block: clamp(28px, 5vw, 50px); }
.seo-guides .block h2 { margin-bottom: 20px; }
.seo-guides .showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.seo-guides .showcase h2 { grid-column: 1 / -1; margin-bottom: 0; }
.seo-guides .cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.seo-guides .cards > div, .seo-guides .finish {
  padding: 22px;
  border: 1px solid var(--guide-border);
  border-radius: 18px;
  background: var(--guide-panel);
}
.seo-guides :is(.cards, .qa) p { margin-top: 8px; color: var(--guide-muted); }
.seo-guides .qa details { border-bottom: 1px solid var(--guide-border); padding: 12px 0; }
.seo-guides .qa summary { cursor: pointer; font-weight: 700; }
.seo-guides .related > div { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.seo-guides .finish { padding: 32px 20px; text-align: center; margin-bottom: 40px; }
.seo-guides .finish h2 { margin-bottom: 16px; }
.seo-guides .cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 999px;
  color: white;
  background: #6237db;
  font-weight: 700;
  text-decoration: none;
}
body:has(> .top) .seo-guides a.cta[href]:is(:hover, :focus-visible, :active) {
  color: #fff;
  background: #5026c4;
}
body:has(> .top) .seo-guides a.cta[href]:active { background: #421ca7; }
.seo-guides a.cta:focus-visible { outline: 2px solid currentColor; outline-offset: -4px; }
.seo-guides .guide { padding-block: 48px; min-height: 40vh; }
.seo-guides .guide li { margin-block: 8px; }
@media (max-width: 790px) {
  .seo-guides .showcase { grid-template-columns: 1fr; }
  .seo-guides .hero .pair { max-width: 600px; }
}

.guide-page:has(.editorial-dock) { padding-bottom: 76px; }
.seo-guides .cards { display: block; }
.seo-guides .cards > div { border: 0; background: none; border-radius: 0; padding: 0 0 14px; }
.seo-guides .editorial-group {
  margin: 30px 0 16px;
  padding: 14px 22px;
  background: var(--guide-panel);
  border: 1px solid var(--guide-border);
  border-radius: 16px;
}
.editorial-case {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  align-items: start;
  gap: clamp(14px, 2.5vw, 30px);
  padding: 22px 0;
  border-bottom: 1px solid var(--guide-border);
}
.editorial-case.right { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
.editorial-case.right figure { grid-column: 2; }
.editorial-case.right > div { grid-row: 1; grid-column: 1; }
.editorial-case.wide { grid-template-columns: minmax(0, 1fr); }
.editorial-case.wide figure {
  background: var(--guide-panel);
  border: 1px solid var(--guide-border);
  border-radius: 16px;
  padding: 18px 22px;
}
.editorial-case img { display: block; width: 100%; height: auto; border-radius: 10px; }
.editorial-case.wide img { width: min(100%, 600px); margin-inline: auto; }
.seo-guides .editorial-case h3 { font-size: clamp(1.2rem, 2.3vw, 1.72rem); }
.seo-guides .editorial-case p { margin-top: 8px; color: var(--guide-muted); }
.seo-guides .editorial-case .case-note { font-size: .88rem; }
.seo-guides .editorial-dock {
  position: fixed;
  left: 50%;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 10;
  white-space: nowrap;
  box-shadow: 0 5px 24px #31205d44;
}
@media (max-width: 700px) {
  .editorial-case, .editorial-case.right { grid-template-columns: minmax(0, 1fr); }
  .editorial-case.right figure, .editorial-case.right > div { grid-area: auto; }
}

/* Guide landing pages use the V157 chrome and a shared content grid. */
.seo-guides .wrap { width: min(1160px, calc(100% - 48px)); }
.seo-guides .crumb { padding-top: 25px; color: var(--guide-muted); }
.seo-guides .crumb a { text-decoration: none; }
.seo-guides .hero { display: block; padding-block: 24px 48px; }
.seo-guides .hero-inner {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(24px, 5vw, 68px);
  background: var(--guide-panel);
  border: 1px solid var(--guide-border);
  border-radius: 26px;
  padding: clamp(24px, 4vw, 52px);
}
.seo-guides .hero h1 { font-size: clamp(2.3rem, 4.4vw, 4.15rem); letter-spacing: -.05em; }
.seo-guides .hero p { margin-block: 16px 24px; }
.seo-guides .hero .pair { max-width: none; gap: 10px; }
.seo-guides .hero .frame { aspect-ratio: 4 / 4.4; background-color: #fff; }
.seo-guides .hero .frame img { object-fit: contain; }
.seo-guides .hero .frame.violet { background-color: #cfbaff; }
.seo-guides .hero figcaption { padding-inline: 3px; }
.seo-guides .block h2 { max-width: 32ch; }
.seo-guides .body-copy .cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 225px), 1fr));
  gap: 12px 24px;
}
.seo-guides .body-copy .cards > div {
  min-width: 0;
  padding: 16px 0 4px;
  border-top: 2px solid var(--guide-border);
}
.seo-guides .editorial-group { padding: 15px 0 0; margin: 42px 0 12px; background: none; border: 0; }
.seo-guides .editorial-case {
  align-items: center;
  margin: 0 0 12px;
  padding: clamp(18px, 3vw, 32px);
  border: 1px solid var(--guide-border);
  border-radius: 18px;
}
.seo-guides .editorial-case.wide { grid-template-columns: minmax(0, 1fr); }
.seo-guides .editorial-case.wide figure {
  padding: 14px;
  border: 0;
  background: var(--guide-panel);
}
.seo-guides .editorial-case img {
  width: auto;
  max-width: 100%;
  height: auto;
  margin-inline: auto;
}
.seo-guides .editorial-case.wide figcaption { text-align: center; }
.seo-guides .editorial-case p { max-width: 72ch; }
.seo-guides .editorial-case .case-note { margin-top: 12px; }
.seo-guides .qa { margin-top: 32px; }
.seo-guides .qa details { padding-block: 15px; }
.seo-guides .qa details p { max-width: 74ch; }
.seo-guides .related a {
  border: 1px solid var(--guide-border);
  border-radius: 999px;
  padding: 7px 12px;
  text-decoration: none;
}
.guide-page:has(.editorial-dock) .floating-actions { bottom: 70px; }
.seo-guides .guide ul { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 16px; }
.seo-guides .guide li { padding: 0; }
.seo-guides .guide li a { display: block; padding: 18px; border: 1px solid var(--guide-border); border-radius: 14px; background: var(--guide-panel); font-weight: 650; }
@media (max-width: 780px) {
  .seo-guides .wrap { width: calc(100% - 32px); }
  .seo-guides .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .seo-guides .hero .pair { width: min(100%, 520px); }
  .seo-guides .editorial-case, .seo-guides .editorial-case.right { grid-template-columns: minmax(0, 1fr); }
  .seo-guides .editorial-case.right figure, .seo-guides .editorial-case.right > div { grid-area: auto; }
}
@media (max-width: 430px) {
  .seo-guides .hero-inner { padding: 20px 16px; border-radius: 20px; }
  .seo-guides .hero .frame { border-radius: 12px; }
}
.seo-guides .editorial-dock[hidden] { display: none; }
.guide-page:has(.editorial-dock):not(.guide-dock-visible) .floating-actions { bottom: 16px; }
@media (max-width: 600px) {
  .guide-page .floating-actions button span { display: none; }
}

.seo-guides .hero .frame { aspect-ratio: 1; }
.seo-guides .image-zoom {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 12px;
  cursor: zoom-in;
}
.seo-guides .image-zoom:focus-visible { outline: 3px solid var(--guide-link); outline-offset: -3px; }
.seo-guides .hero .frame .image-zoom { height: 100%; }
.seo-guides .editorial-case { grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); }
.seo-guides .editorial-case.right { grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); }
.seo-guides .editorial-case.wide { grid-template-columns: minmax(0, 1fr); }
.seo-guides .editorial-case.wide figure { padding: 0; background: none; }
.seo-guides .editorial-case.wide .image-zoom { width: min(100%, 930px); margin-inline: auto; }
.seo-guides .editorial-case .image-zoom img { width: 100%; }
.image-zoom-icon {
  position: absolute;
  right: 9px;
  bottom: 9px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid #ffffff4d;
  border-radius: 10px;
  background: #19112de8;
  color: white;
}
.image-zoom-icon svg { width: 19px; height: 19px; }
.seo-guides .image-zoom:hover .image-zoom-icon { background: #6034d8; }
.zoom-dialog {
  box-sizing: border-box;
  width: min(96vw, 1600px);
  max-width: none;
  max-height: min(94dvh, 1000px);
  padding: 0;
  border: 1px solid #ffffff35;
  border-radius: 16px;
  background: #161120;
  color: white;
}
.zoom-dialog::backdrop { background: #130e1de8; }
.zoom-toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 9px 12px;
}
.zoom-toolbar button {
  min-height: 38px;
  padding: 4px 12px;
  border: 1px solid #ffffff66;
  border-radius: 9px;
  background: #30253e;
  color: white;
  font: inherit;
  cursor: pointer;
}
.zoom-toolbar .zoom-close { font-size: 22px; }
.zoom-stage {
  max-height: calc(min(94dvh, 1000px) - 60px);
  overflow: auto;
  overscroll-behavior: contain;
}
.zoom-stage img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(min(94dvh, 1000px) - 60px);
  margin-inline: auto;
  object-fit: contain;
}
.zoom-dialog.actual-size .zoom-stage img { max-width: none; max-height: none; }
html:has(.zoom-dialog[open]) { overflow: hidden; }
@media (max-width: 780px) {
  .seo-guides .editorial-case, .seo-guides .editorial-case.right { grid-template-columns: minmax(0, 1fr); }
}

.seo-guides .hero .marketplace-comparison img {
  display: block;
  width: 100%;
  height: auto;
}

.seo-guides [id^="workflow-"] { scroll-margin-top: 100px; }

.seo-guides #examples, .seo-guides [id^="topic-"] { scroll-margin-top: 100px; }

@media (max-width: 780px) {
  .seo-guides .hero .hero-inner figure,
  .seo-guides .hero .hero-inner .pair { min-width: 0; width: 100%; max-width: none; }
  .seo-guides .hero .hero-inner .frame { aspect-ratio: auto; }
  .seo-guides .hero .hero-inner .image-zoom { width: 100%; height: auto; }
  .seo-guides .hero .hero-inner img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
  }
}
