/*
 * Shared Shop Guide article styles.
 * shop_guide.php is the visual source of truth; admin preview/editor reuse these
 * selectors so authors see the same typography and media sizing before publish.
 */
.shop-guide-document-title {
  color: #202124;
  font-size: 40px;
  font-weight: 800;
  line-height: 1.22;
  margin: 0 0 28px;
  overflow-wrap: anywhere;
}

.shop-guide-content {
  color: #2f343d;
  font-size: 17px;
  line-height: 1.78;
  min-width: 0;
  overflow-wrap: anywhere;
  width: 100%;
}

.shop-guide-content * {
  box-sizing: border-box;
  max-width: 100%;
}

.shop-guide-content h1,
.shop-guide-content h2,
.shop-guide-content h3,
.shop-guide-content h4,
.shop-guide-content h5,
.shop-guide-content h6 {
  color: #202124;
  line-height: 1.35;
  scroll-margin-top: 20px;
}

.shop-guide-content h1 {
  font-size: 34px;
  margin: 0.9em 0 0.45em;
}

.shop-guide-content h2 {
  border-top: 1px solid #edf0f5;
  font-size: 28px;
  margin: 42px 0 0.45em;
  padding-top: 30px;
}

.shop-guide-content h3 {
  font-size: 23px;
  margin: 1em 0 0.45em;
}

.shop-guide-content h4 {
  font-size: 21px;
  margin: 1em 0 0.45em;
}

.shop-guide-content h5,
.shop-guide-content h6 {
  font-size: 18px;
  margin: 1em 0 0.45em;
}

.shop-guide-content p {
  margin: 0.72em 0;
}

.shop-guide-content p:empty {
  margin: 0;
  min-height: 0;
}

.shop-guide-content p:has(> br:only-child) {
  margin: 0.35em 0;
}

.shop-guide-content a {
  color: var(--main-color, #3f64ed);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.shop-guide-content blockquote {
  background: rgba(63, 100, 237, 0.06);
  border-left: 4px solid var(--main-color, #3f64ed);
  border-radius: 0 8px 8px 0;
  color: #4b5563;
  margin: 1em 0;
  padding: 0.7em 1em;
}

.shop-guide-content pre {
  background: #f6f8fb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 0.9em;
  line-height: 1.55;
  margin: 1em 0;
  overflow-x: auto;
  padding: 1em;
  white-space: pre-wrap;
  word-break: break-word;
}

.shop-guide-content ul,
.shop-guide-content ol {
  list-style-position: outside;
  margin: 0.8em 0 !important;
  margin-inline-start: 0 !important;
  padding-left: 26px !important;
  padding-inline-start: 26px !important;
}

.shop-guide-content ol {
  list-style-type: decimal !important;
}

.shop-guide-content ul {
  list-style-type: disc !important;
}

.shop-guide-content li {
  display: list-item;
  list-style: inherit !important;
  list-style-position: outside !important;
  margin: 0.18em 0;
  padding-left: 2px !important;
  padding-inline-start: 2px !important;
}

.shop-guide-content ol ol {
  list-style-type: lower-alpha !important;
}

.shop-guide-content ul ul {
  list-style-type: circle !important;
}

.shop-guide-content table {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-collapse: collapse;
  border-radius: 8px;
  display: block;
  max-width: 100%;
  overflow-x: auto;
}

.shop-guide-content th,
.shop-guide-content td {
  border: 1px solid #e5e7eb;
  padding: 10px 12px;
}

.shop-guide-content iframe,
.shop-guide-content video,
.shop-guide-content embed,
.shop-guide-content object,
.shop-guide-content audio,
.shop-guide-content .note-video-clip {
  border-radius: 6px;
  display: block;
  margin: 1em 0;
  max-width: 100%;
}

.shop-guide-content iframe,
.shop-guide-content embed,
.shop-guide-content object,
.shop-guide-content .note-video-clip {
  aspect-ratio: 16 / 9;
  height: auto !important;
  width: 100% !important;
}

.shop-guide-content video {
  background-color: #000;
  height: auto !important;
  max-height: 78vh;
  object-fit: contain !important;
}

.shop-guide-content img {
  border-radius: 6px;
  display: block;
  height: auto !important;
  margin: 1em 0;
  max-height: 78vh;
  max-width: 100% !important;
  object-fit: contain !important;
}

.shop-guide-content audio {
  width: 100% !important;
}

.shop-guide-content figure {
  margin: 1.25em 0;
  max-width: 100%;
}

.shop-guide-content figure > img {
  margin-bottom: 0.45em;
}

.shop-guide-content figcaption {
  color: #6b7280;
  font-size: 0.88em;
  line-height: 1.55;
  text-align: center;
}

.shop-guide-content .shop-guide-callout {
  border: 1px solid #dbe4ff;
  border-left: 4px solid #3f64ed;
  border-radius: 8px;
  margin: 1.1em 0;
  padding: 0.85em 1em;
}

.shop-guide-content .shop-guide-callout strong:first-child {
  display: block;
  margin-bottom: 0.25em;
}

.shop-guide-content .shop-guide-callout--note {
  background: #f5f8ff;
}

.shop-guide-content .shop-guide-callout--tip {
  background: #f0fdf4;
  border-color: #bbf7d0;
  border-left-color: #22c55e;
}

.shop-guide-content .shop-guide-callout--warning {
  background: #fff7ed;
  border-color: #fed7aa;
  border-left-color: #f97316;
}

@media only screen and (max-width: 700px) {
  .shop-guide-document-title {
    font-size: 30px;
    line-height: 1.25;
  }

  .shop-guide-content {
    font-size: 16px;
    line-height: 1.68;
  }

  .shop-guide-content h1 {
    font-size: 27px;
  }

  .shop-guide-content h2 {
    font-size: 24px;
    margin-top: 34px;
    padding-top: 24px;
  }

  .shop-guide-content h3 {
    font-size: 20px;
  }

  .shop-guide-content h4,
  .shop-guide-content h5,
  .shop-guide-content h6 {
    font-size: 17px;
  }

  .shop-guide-content img,
  .shop-guide-content video {
    max-height: 70vh;
  }
}
