/* Page-specific styles for /cli-agents-on-windows/.
   Layout primitives (page-section, section-inner, eyebrow) come from /css/site.css. */

/* --- Hero --- */

.hero {
  padding: 40px 0 26px;
}

.hero h1 {
  margin: 6px 0 12px;
  max-width: 28ch;
  font-size: 2.2rem;
}

.lead {
  font-size: 1.08rem;
  color: var(--text);
  line-height: 1.55;
}

.lead-soft {
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: "Montserrat", sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.15s ease;
}

.button.primary {
  background: var(--accent);
  color: #fff;
}
.button.primary:hover { color: #fff; filter: brightness(1.08); }

.button.ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}
.button.ghost:hover { background: #f3f3f3; }

.button.danger {
  background: #b8761c;
  color: #fff;
}
.button.danger:hover { color: #fff; filter: brightness(1.08); }

/* --- Section heading --- */

.section-heading {
  margin-bottom: 28px;
}

.section-heading h2 {
  margin: 6px 0 8px;
  font-size: 1.65rem;
}

.section-note {
  color: var(--muted);
  max-width: 64ch;
  margin: 6px 0 0;
}

/* --- Step blocks --- */

.step-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
  counter-reset: step;
}

.step {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 22px 24px;
  box-shadow: var(--shadow);
  position: relative;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -14px;
  left: 22px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
}

.step h3 {
  margin: 4px 0 8px;
  font-size: 1.18rem;
}

.step p { margin: 0 0 12px; }
.step p:last-child { margin-bottom: 0; }

.step .step-meta {
  font-family: "Montserrat", sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* --- Code blocks --- */

pre {
  background: #1f1f1f;
  color: #f4f4f4;
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 0.92rem;
  line-height: 1.5;
  overflow-x: auto;
  margin: 12px 0;
}

pre code {
  font-family: "JetBrains Mono", "SF Mono", Menlo, monospace;
  background: transparent;
  color: inherit;
  font-size: inherit;
}

code {
  background: #f0f0f0;
  padding: 1px 6px;
  border-radius: 4px;
  font-family: "JetBrains Mono", "SF Mono", Menlo, monospace;
  font-size: 0.9em;
}

/* --- Callouts --- */

.callout {
  border-radius: 8px;
  padding: 14px 16px;
  margin: 16px 0;
  border: 1px solid;
}

.callout-title {
  margin: 0 0 6px;
  font-family: "Montserrat", sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
}

.callout p { margin: 0; }
.callout p + p { margin-top: 8px; }

.callout-warn {
  border-color: #d8a44b;
  background: #fdf5e3;
}
.callout-warn .callout-title { color: #8a5a05; }

.callout-info {
  border-color: #99c0e0;
  background: #eef5fa;
}
.callout-info .callout-title { color: #205f88; }

.callout-tip {
  border-color: #b3d2a7;
  background: #f0f6ec;
}
.callout-tip .callout-title { color: #3e6b29; }

/* --- Image placeholder + figure --- */

.figure {
  margin: 14px 0 6px;
}

.figure img {
  display: block;
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.figure figcaption {
  margin-top: 8px;
  font-size: 0.88rem;
  color: var(--muted);
  font-style: italic;
}

.image-pending {
  width: 100%;
  min-height: 200px;
  border-radius: 8px;
  border: 2px dashed #c8a85a;
  background: repeating-linear-gradient(
    45deg,
    #fffaee,
    #fffaee 12px,
    #fff5dc 12px,
    #fff5dc 24px
  );
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.image-pending-label {
  font-family: "Montserrat", sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a5a05;
  font-weight: 700;
}

.image-pending-id {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  color: #6a4a14;
  background: rgba(255,255,255,0.7);
  padding: 2px 8px;
  border-radius: 4px;
  align-self: flex-start;
}

.image-pending-prompt {
  margin: 0;
  color: #4a3a14;
  line-height: 1.5;
  font-size: 0.95rem;
}

/* --- Decision tree (Section 2) --- */

.choice-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 18px;
}

@media (min-width: 800px) {
  .choice-grid { grid-template-columns: 1fr 1fr 1fr; }
}

.choice-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
}

.choice-card.recommended {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(34, 113, 178, 0.08);
}

.choice-tag {
  align-self: flex-start;
  background: var(--accent);
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.choice-tag.muted {
  background: #888;
}

.choice-card h3 {
  margin: 0 0 8px;
  font-size: 1.12rem;
}

.choice-bullets {
  list-style: none;
  padding: 0;
  margin: 6px 0 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.95rem;
}

.choice-bullets li::before {
  content: "›";
  color: var(--accent);
  margin-right: 6px;
}

.choice-anchor {
  margin-top: auto;
  font-family: "Montserrat", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
}


/* --- Auto-rendered content (cc-editor → HTML). Matches sister page:
       no max-width on text, content fills the .section-inner (1200px) container. --- */

.section-inner > h2 {
  font-family: "Montserrat", sans-serif;
  font-size: 1.55rem;
  line-height: 1.25;
  margin: 0 0 18px;
  font-weight: 700;
}

.section-inner > p {
  margin: 0 0 14px;
  line-height: 1.72;
  color: var(--text);
}

.section-inner > ul,
.section-inner > ol {
  margin: 0 0 16px;
  padding-left: 1.5em;
  line-height: 1.72;
  color: var(--text);
}

.section-inner > ul li,
.section-inner > ol li {
  margin-bottom: 6px;
}

.section-inner > ul li:last-child,
.section-inner > ol li:last-child {
  margin-bottom: 0;
}

.section-inner > pre {
  margin: 0 0 18px;
}

.section-inner > table.compat-grid {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  font-size: 0.95rem;
}

.section-inner > table.compat-grid thead th {
  background: #f5efe0;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  text-align: left;
  padding: 10px 14px;
  border-bottom: 2px solid var(--line);
  font-size: 0.85rem;
}

.section-inner > table.compat-grid tbody td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  line-height: 1.55;
}

.section-inner > table.compat-grid tbody tr:last-child td {
  border-bottom: none;
}

.section-inner > table.compat-grid tbody tr:nth-child(even) {
  background: #fafaf7;
}
