/*
 * Styling for CyvoDocOps standalone guide pages (/guides/*).
 *
 * These pages are deliberately self-contained publisher content: they do NOT
 * boot the Flutter app (no flutter_bootstrap.js), so they cannot inherit the
 * app's runtime styling. This stylesheet keeps them readable and on-brand on
 * its own. Served statically from /guides/guides.css.
 */

:root {
  --ink: #16181d;
  --ink-soft: #4a4f59;
  --line: #e4e6eb;
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --brand: #1f6feb;
  --brand-ink: #0d4ec0;
  --radius: 12px;
  --maxw: 760px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

header.site {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
header.site a.brand {
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  font-size: 18px;
}
header.site nav a {
  color: var(--ink-soft);
  text-decoration: none;
  margin-left: 18px;
  font-size: 15px;
}
header.site nav a:hover { color: var(--brand-ink); }

main { padding: 8px 0 56px; }

nav.crumbs {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 22px 0 10px;
}
nav.crumbs a { color: var(--ink-soft); text-decoration: none; }
nav.crumbs a:hover { color: var(--brand-ink); text-decoration: underline; }

h1 { font-size: 2rem; line-height: 1.22; margin: 10px 0 6px; letter-spacing: -0.01em; }
h2 { font-size: 1.35rem; margin: 36px 0 10px; letter-spacing: -0.01em; }
h3 { font-size: 1.08rem; margin: 24px 0 6px; }

p { margin: 0 0 16px; }
.lede { font-size: 1.15rem; color: var(--ink-soft); margin: 6px 0 22px; }

ul, ol { margin: 0 0 18px; padding-left: 22px; }
li { margin: 6px 0; }

a { color: var(--brand-ink); }

.cta {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: var(--radius);
  margin: 6px 0 8px;
}
.cta:hover { background: var(--brand-ink); }

.note {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 22px 0;
}
.note strong { color: var(--ink); }

.steps { counter-reset: step; list-style: none; padding-left: 0; }
.steps > li {
  counter-increment: step;
  position: relative;
  padding: 2px 0 2px 44px;
  margin: 14px 0;
}
.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 30px; height: 30px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

.cards { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; margin: 18px 0; }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  text-decoration: none;
  color: var(--ink);
  background: var(--bg);
  transition: border-color .15s ease;
}
.card:hover { border-color: var(--brand); }
.card h3 { margin: 0 0 6px; }
.card p { margin: 0; color: var(--ink-soft); font-size: 15px; }

.faq h3 { margin-top: 20px; }

footer.site {
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 14px;
  padding: 24px 0 40px;
}
footer.site a { color: var(--ink-soft); text-decoration: none; }
footer.site a:hover { color: var(--brand-ink); }
footer.site .links a { margin-right: 14px; }
footer.site .fine { margin-top: 12px; color: #8a8f99; }

/*
 * Phase 2 only: in-article ad slot. Intentionally has no AdSense script yet.
 * After the AdSense site review passes, a single manual ad unit may be placed
 * inside an element with this class on these standalone guide pages (never on
 * any page that loads flutter_bootstrap.js). See docs/SEO/ADSENSE_COMPLIANCE.md.
 */
.ad-slot { margin: 28px 0; min-height: 0; }
