/* OceanCloud lightweight guide compatibility layer.
   Makes simple guide HTML match the established article visual system. */

.guide-article-page {
  background: var(--bg);
}

.guide-content {
  width: min(100% - 64px, 800px);
  margin: 24px auto 100px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.guide-content section {
  scroll-margin-top: 96px;
}

.guide-content section + section {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.guide-content h2 {
  margin: 48px 0 14px;
  color: var(--white);
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -.03em;
}

.guide-content h3 {
  margin: 30px 0 10px;
  color: #c8daea;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
}

.guide-content p {
  margin: 0 0 18px;
  color: var(--text-mid);
  line-height: 1.85;
}

.guide-content strong {
  color: var(--white);
  font-weight: 700;
}

.guide-content a {
  color: #00b4d8;
}

.guide-content a:hover {
  text-decoration: underline;
}

.guide-content ul,
.guide-content ol {
  margin: 0 0 18px;
  padding-left: 22px;
  color: var(--text-mid);
  line-height: 1.85;
}

.guide-content ul { list-style: disc; }
.guide-content ol { list-style: decimal; }

.guide-content li {
  display: list-item;
  margin-bottom: 7px;
}

.guide-content .toc {
  margin: 0 0 34px;
  padding: 0 0 24px;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
  border-radius: 0;
  background: transparent;
}

.guide-content .toc h2 {
  margin: 0 0 16px;
  color: var(--white);
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  font-weight: 800;
  letter-spacing: -.03em;
  text-transform: none;
}

.guide-content .toc ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 6px 18px;
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.guide-content .toc li {
  margin: 0;
  list-style: none;
}

.guide-content .toc a {
  display: block;
  padding: 3px 0;
  color: var(--text-mid);
  font-size: .9rem;
  line-height: 1.55;
}

.guide-content .toc a:hover {
  color: var(--accent);
  text-decoration: none;
}

body.guide-article-page #toc-sidebar {
  z-index: 120;
}

body.guide-article-page #back-top {
  z-index: 9500;
}

.guide-content .use-case-cards,
.guide-content .benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  margin: 24px 0 18px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,.07);
}

.guide-content .use-case,
.guide-content .benefit-card {
  padding: 20px 22px;
  border: 0;
  border-radius: 0;
  background: rgba(13,18,32,.96);
}

.guide-content .use-case h3,
.guide-content .benefit-card h3 {
  margin-top: 0;
  color: var(--white);
}

.guide-content .use-case p,
.guide-content .benefit-card p {
  margin-bottom: 0;
  font-size: .92rem;
}

.guide-content table {
  width: 100%;
  margin: 24px 0;
  border-collapse: collapse;
  font-size: .87rem;
}

.guide-content th {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(0,180,216,.25);
  background: rgba(0,180,216,.12);
  color: var(--accent);
  font-weight: 700;
  text-align: left;
}

.guide-content td {
  padding: 9px 14px;
  border-bottom: 1px solid rgba(255,255,255,.05);
  color: var(--text-mid);
  vertical-align: top;
}

.guide-content tr:last-child td {
  border-bottom: 0;
}

.guide-content pre {
  margin: 24px 0;
  padding: 18px 20px;
  overflow-x: auto;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  background: rgba(5,9,19,.96);
  color: #d8e9ff;
  line-height: 1.65;
}

.guide-content code {
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: .9em;
}

.guide-content figure {
  margin: 28px 0 !important;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  background: rgba(255,255,255,.03);
}

.guide-content figure img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 10px;
}

.guide-content figure figcaption {
  margin-top: 10px !important;
  color: var(--text-dim) !important;
  font-size: .78rem !important;
  line-height: 1.6;
}

.guide-content .official-ms-refs {
  margin: 56px 0 0;
  padding: 28px;
  border: 1px solid rgba(0,180,216,.22);
  border-radius: 16px;
  background: rgba(0,180,216,.055);
}

.guide-content .official-ms-refs h2 {
  margin-top: 0;
}

.guide-content .official-ms-refs p {
  margin-bottom: 18px;
}

.guide-content .official-ms-refs ul {
  margin-bottom: 0;
}

.guide-content .official-ms-refs li {
  margin-bottom: 10px;
}

.guide-content .official-ms-refs a {
  font-weight: 700;
}

.guide-content .official-ms-refs .source-note {
  color: var(--text-dim);
  font-size: .86rem;
}

.guide-content .official-ms-inline {
  margin: 20px 0 26px;
  padding: 16px 18px;
  border-left: 3px solid var(--accent);
  border-radius: 0 12px 12px 0;
  background: rgba(0,180,216,.06);
  color: var(--text-mid);
  line-height: 1.75;
}

.guide-content .faq-item {
  padding: 20px 0;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
  border-radius: 0;
  background: transparent;
}

.guide-content .faq-item h3 {
  margin-top: 0;
  color: var(--white);
}

.guide-content .faq-item p {
  margin-bottom: 0;
}

.guide-content .cta-section {
  margin-top: 56px;
  padding: 36px;
  border: 1px solid rgba(0,180,216,.2);
  border-radius: 16px;
  background: rgba(0,180,216,.07);
  text-align: center;
}

.guide-content .cta-section h2 {
  margin: 0 0 10px;
  color: var(--white);
  font-size: 1.2rem;
}

.guide-content .cta-section p {
  margin: 0 0 22px;
}

.guide-content .cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border: none;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--bg);
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: -.01em;
  text-decoration: none;
  transition: background var(--t), transform var(--t), box-shadow var(--t);
}

.guide-content .cta-button:hover {
  background: #00cef5;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0,180,216,.3);
  text-decoration: none;
}

@media (max-width: 720px) {
  .guide-content {
    width: min(100% - 40px, 800px);
  }

  .guide-content {
    margin-bottom: 72px;
  }

  .guide-content .toc ul,
  .guide-content .use-case-cards,
  .guide-content .benefits-grid {
    grid-template-columns: 1fr;
  }

  .guide-content table {
    display: block;
    overflow-x: auto;
  }

  .guide-content th,
  .guide-content td {
    min-width: 170px;
  }

  .guide-content .cta-section {
    padding: 28px 22px;
  }

  .guide-content .official-ms-refs {
    padding: 22px 18px;
  }
}
