/* LocalOps Studio - how-to guide article styles (standalone pages) */
/* Brand tokens match src/style.css so guide pages feel like part of the product. */

:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-soft: #f1f5f9;
  --ink: #0f172a;
  --ink-2: #1e293b;
  --ink-3: #475569;
  --muted: #64748b;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --brand: #0d9488;
  --brand-dark: #0f766e;
  --brand-strong: #115e59;
  --brand-light: #14b8a6;
  --brand-soft: #d1fae5;
  --brand-tint: #ecfdf5;
  --brand-border: #99f6e4;
  --accent: #315fd5;
  --accent-soft: #edf2ff;
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.08);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.011em;
}

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

.guide-page {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px 64px;
}

/* ---------- header ---------- */
.guide-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}

.guide-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.guide-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(180deg, #14b8a6 0%, #0d9488 100%);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
}

.guide-brand small {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.8rem;
}

.guide-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.86rem;
}

.guide-breadcrumb a {
  color: var(--muted-strong, #334155);
  text-decoration: none;
  font-weight: 600;
}

.guide-breadcrumb a:hover {
  color: var(--brand-dark);
  text-decoration: underline;
}

/* ---------- hero ---------- */
.guide-hero {
  padding: 52px 0 34px;
}

.guide-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--brand-tint);
  border: 1px solid var(--brand-border);
  color: var(--brand-strong);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.guide-h1 {
  max-width: 820px;
  margin: 0 0 16px;
  font-size: clamp(2rem, 4.6vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--ink);
}

.guide-lede {
  max-width: 720px;
  margin: 0 0 20px;
  color: var(--ink-3);
  font-size: 1.1rem;
  line-height: 1.7;
}

.guide-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.85rem;
}

.guide-meta-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--surface-soft);
  color: var(--ink-3);
  font-weight: 600;
  font-size: 0.8rem;
}

.guide-meta-tag svg {
  width: 14px;
  height: 14px;
}

/* ---------- body ---------- */
.guide-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.guide-article {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 44px;
  box-shadow: var(--shadow-sm);
}

.guide-h2 {
  margin: 38px 0 14px;
  font-size: 1.35rem;
  font-weight: 750;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.guide-article > .guide-h2:first-child {
  margin-top: 0;
}

.guide-p {
  margin: 0 0 16px;
  color: var(--ink-3);
  line-height: 1.75;
}

.guide-ul {
  margin: 0 0 16px;
  padding-left: 4px;
  list-style: none;
}

.guide-ul li {
  position: relative;
  margin: 8px 0;
  padding-left: 26px;
  color: var(--ink-3);
  line-height: 1.65;
}

.guide-ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-light);
  box-shadow: 0 0 0 3px var(--brand-tint);
}

.guide-ol {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  counter-reset: gstep;
}

.guide-ol li {
  counter-increment: gstep;
  position: relative;
  margin: 12px 0;
  padding: 14px 16px 14px 52px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--ink-3);
  line-height: 1.65;
}

.guide-ol li::before {
  content: counter(gstep);
  position: absolute;
  left: 14px;
  top: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(180deg, #14b8a6 0%, #0d9488 100%);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
}

.guide-tip {
  margin: 22px 0;
  padding: 16px 18px;
  border: 1px solid var(--accent-soft);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: #1e3a8a;
  font-size: 0.94rem;
  line-height: 1.6;
}

.guide-tip strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---------- CTA ---------- */
.guide-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin: 34px 0 8px;
  padding: 22px 24px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(255, 255, 255, 0.16), transparent 50%),
    linear-gradient(135deg, #0f766e 0%, #0d9488 100%);
  color: #fff;
}

.guide-cta strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.guide-cta p {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.92rem;
}

.guide-cta a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 11px 20px;
  border-radius: var(--radius);
  background: #fff;
  color: var(--brand-strong);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 16px -6px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

.guide-cta a:hover {
  transform: translateY(-1px);
}

/* ---------- FAQ ---------- */
.guide-faq {
  margin: 12px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  overflow: hidden;
}

.guide-faq summary {
  padding: 15px 18px;
  color: var(--ink);
  font-weight: 650;
  font-size: 0.97rem;
  cursor: pointer;
  list-style: none;
}

.guide-faq summary::-webkit-details-marker {
  display: none;
}

.guide-faq summary::after {
  content: "+";
  float: right;
  color: var(--brand);
  font-weight: 700;
  font-size: 1.1rem;
}

.guide-faq[open] summary::after {
  content: "\2013";
}

.guide-faq p {
  margin: 0;
  padding: 0 18px 16px;
  color: var(--ink-3);
  line-height: 1.7;
  font-size: 0.94rem;
}

/* ---------- related ---------- */
.guide-related {
  width: 100%;
  max-width: 100%;
  margin: 8px auto 0;
}

.guide-related h2 {
  margin: 0 0 14px;
  font-size: 1.2rem;
  font-weight: 750;
}

.guide-related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.guide-related-grid a {
  display: grid;
  gap: 5px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s var(--ease);
}

.guide-related-grid a:hover {
  border-color: var(--brand-border);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.guide-related-grid strong {
  color: var(--ink);
  font-size: 0.98rem;
}

.guide-related-grid span {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

/* ---------- guides index page ---------- */
.guides-hero {
  padding: 56px 0 28px;
}

.guides-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(1.9rem, 4.2vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.guides-hero p {
  max-width: 680px;
  margin: 0;
  color: var(--ink-3);
  font-size: 1.08rem;
  line-height: 1.7;
}

.guides-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.guides-list li {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s var(--ease);
}

.guides-list li:hover {
  border-color: var(--brand-border);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.guides-list a {
  display: grid;
  gap: 8px;
  padding: 22px 24px;
  color: inherit;
  text-decoration: none;
}

.guides-list small {
  color: var(--brand-dark);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.guides-list strong {
  color: var(--ink);
  font-size: 1.08rem;
  letter-spacing: -0.01em;
}

.guides-list span {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* ---------- footer ---------- */
.guide-footer {
  margin-top: 56px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.86rem;
}

.guide-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.guide-footer nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.guide-footer nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}

.guide-footer nav a:hover {
  color: var(--brand-dark);
  text-decoration: underline;
}

@media (max-width: 760px) {
  .guide-page {
    padding: 0 16px 48px;
  }

  .guide-article {
    padding: 26px 22px;
  }

  .guide-related-grid,
  .guides-list {
    grid-template-columns: 1fr;
  }

  .guide-h1 {
    font-size: 1.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
