/* conductor-site.css — the conductor's own public site (internal/site).

   Loaded AFTER switchyard.css, the Ironway design system vendored byte for
   byte, and holding only what that file does not carry: the two-part
   wordmark, the loop diagram, the role and group cards with their mode pills,
   the tables, the dark trust band, and the rendered-document layout of /cloud
   and /configuration. The rules down to the document block came across with
   the site from switchyard's style.css (its `conductor site` block); a
   template emits no class that is not defined in one of the two sheets
   (TestEveryClassTheSiteEmitsIsDefined), and no page carries a <style> or a
   style= attribute. Light theme only, as the design system is. */

/* The marks: Ironway's own SVGs (static/brand/), kept byte for byte. The
   header sits on the dark band, so it shows the wordmark recoloured to the
   icon's cream (ironway-conductor-wordmark-on-dark.svg, the original with its
   fill swapped and nothing else — TestTheOnDarkWordmarkIsOnlyRecoloured); the
   footer's light surface takes the original teal. */
.conductor-logo { display: inline-flex; align-items: center; gap: 0.6rem; }
.conductor-logo:hover { text-decoration: none; opacity: 0.92; }
.conductor-logo-icon { width: 34px; height: 34px; display: block; }
.conductor-logo-wordmark { height: 26px; width: auto; display: block; }
.conductor-footer-logo { display: inline-flex; align-items: center; gap: 0.45rem; }
.conductor-footer-icon { width: 22px; height: 22px; display: block; }
.conductor-footer-wordmark { height: 16px; width: auto; display: block; }
.conductor-footer-ironway { display: inline-flex; align-items: center; }
.conductor-footer-ironway img { height: 18px; width: auto; display: block; }
/* The nav marks the page you are on; aria-current carries it for a reader. */
.landing-header-link.is-current { color: white; text-decoration: underline; text-underline-offset: 0.35em; }

/* A shorter hero for the four interior pages: the overview's is the tall one. */
.conductor-hero-short { padding: 2.75rem 0 3.25rem; }
.conductor-narrow { max-width: 760px; }
.conductor-note { font-size: 0.95rem; line-height: 1.65; color: var(--ballast); margin-top: 1.1rem; max-width: 680px; }
.conductor-note code, .conductor-list code { font-family: var(--font-mono); font-size: 0.88em; color: var(--steel); }
.conductor-section-alt { background: var(--page); }

/* The loop diagram: one mono block, scrollable on a narrow viewport rather
   than reflowed — it is box drawing, and a wrapped box is noise. */
.conductor-loop {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--steel);
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  padding: 1.4rem 1.2rem;
  margin: 1.8rem 0 0;
  overflow-x: auto;
  white-space: pre;
}
.conductor-loop-caption {
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--steel);
  margin-top: 1.1rem;
}

/* The five role-group cards on the overview, each a link into /roles#<group>. */
.conductor-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}
.conductor-group { padding: 1.4rem 1.35rem; color: inherit; display: block; }
.conductor-group:hover { text-decoration: none; border-color: var(--rail-blue); }
.conductor-group-title { font-size: 1.1rem; font-weight: 700; color: var(--steel); margin: 0 0 0.4rem; }
.conductor-group-line { font-size: 0.9rem; line-height: 1.55; color: var(--ballast); margin: 0 0 0.7rem; }
.conductor-group-roles { font-family: var(--font-mono); font-size: 0.78rem; line-height: 1.6; color: var(--rail-blue); margin: 0; }

/* The role cards on /roles, one per role, with the mode pill. */
.conductor-roles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.1rem;
  margin-top: 1.8rem;
}
.conductor-role { padding: 1.25rem 1.3rem; }
.conductor-role-name { font-family: var(--font-mono); font-size: 1rem; font-weight: 700; color: var(--steel); margin: 0 0 0.5rem; }
.conductor-role-formerly { font-family: var(--font-mono); font-size: 0.78rem; color: var(--ballast); margin: -0.35rem 0 0.5rem; }
.conductor-role-line { font-size: 0.9rem; line-height: 1.55; color: var(--ballast); margin: 0.6rem 0 0; }
.conductor-role-row { font-family: var(--font-mono); font-size: 0.78rem; color: var(--ballast); margin: 0.5rem 0 0; }
/* The mode pill. One rule per mode, so the mode is a class and never a colour
   written into the markup (conductorModeSlug). */
.conductor-pill {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.conductor-pill-claims { background: #d1fae5; color: #065f46; }
.conductor-pill-proposes { background: #e0e7ff; color: #3730a3; }
.conductor-pill-acts { background: #fef3c7; color: #92400e; }
.conductor-pill-nollm { background: #f1f5f9; color: #475569; }

/* Tables: the download/release/split tables share one style. */
.conductor-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.6rem;
  font-size: 0.92rem;
}
.conductor-table th {
  text-align: left;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ballast);
  border-bottom: 1px solid #e5e7eb;
  padding: 0 0.8rem 0.6rem 0;
}
.conductor-table td {
  border-bottom: 1px solid #eef2f7;
  padding: 0.7rem 0.8rem 0.7rem 0;
  color: var(--steel);
  line-height: 1.55;
  vertical-align: top;
}
.conductor-split td { width: 50%; }
.conductor-cmd code { font-family: var(--font-mono); font-size: 0.85rem; white-space: nowrap; }
.conductor-mono-dim { font-family: var(--font-mono); font-size: 0.75rem; color: var(--ballast); }
.conductor-sha code { font-family: var(--font-mono); font-size: 0.7rem; color: var(--ballast); overflow-wrap: anywhere; }
.conductor-sidecar { font-family: var(--font-mono); font-size: 0.72rem; color: var(--ballast); margin-left: 0.5rem; }
.conductor-list { margin: 1.2rem 0 0; padding-left: 1.3rem; font-size: 0.97rem; line-height: 1.7; color: var(--ballast); }
.conductor-list li { margin-bottom: 0.5rem; }
.conductor-list strong { color: var(--steel); }


/* The install one-liner: snippet plus copy button, side by side where there is
   room. The snippet itself is the shared .dispatch-snippet. */
.conductor-command { display: flex; align-items: flex-start; gap: 0.75rem; margin-top: 1.5rem; flex-wrap: wrap; }
.conductor-command .dispatch-snippet { flex: 1 1 320px; min-width: 0; margin: 0; font-size: 0.82rem; padding: 0.85rem 1rem; }

/* The dark trust band. The front page's trust cards sit on the light surface,
   so everything here is the dark-surface variant of them — same grid, same card
   geometry, inverted ink. */
.conductor-trust { background: var(--sleeper); color: white; }
.conductor-h2-dark { color: white; }
.conductor-sub-dark { color: rgba(255,255,255,0.75); }
.conductor-eyebrow-light { color: var(--signal-green); }
.conductor-trust-point {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-top: 3px solid var(--signal-green-bright);
  box-shadow: none;
}
.conductor-trust-title { color: white; }
.conductor-trust-body { color: rgba(255,255,255,0.75); }
.conductor-trust-body code { font-family: var(--font-mono); color: var(--signal-green-bright); }

@media (max-width: 860px) {
  .conductor-split td { width: auto; }
}

/* ── rendered documents: /cloud and /configuration ─────────────────────────
   The body is this repository's Markdown rendered by markdown.go, so these
   rules style the plain elements it emits, scoped under .doc-body; the
   contents list is the page's h2 and h3 headings. */
.doc-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.doc-toc { position: sticky; top: 1.5rem; font-size: 0.82rem; line-height: 1.5; max-height: calc(100vh - 3rem); overflow-y: auto; }
.doc-toc-title { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ballast); margin: 0 0 0.6rem; }
.doc-toc ul { list-style: none; margin: 0; padding: 0; }
.doc-toc li { margin: 0 0 0.35rem; }
.doc-toc .doc-toc-sub { padding-left: 0.85rem; }
.doc-toc a { color: var(--ballast); }
.doc-toc a:hover { color: var(--rail-blue); }
.doc-body { min-width: 0; max-width: 820px; color: var(--steel); }
.doc-body > h1:first-child { display: none; }
.doc-body h2 { font-size: 1.45rem; margin: 2.4rem 0 0.8rem; padding-top: 0.4rem; border-top: 1px solid #e5e7eb; }
.doc-body h3 { font-size: 1.1rem; margin: 1.8rem 0 0.6rem; }
.doc-body h4 { font-size: 0.98rem; margin: 1.4rem 0 0.5rem; }
.doc-body h2:first-of-type { border-top: 0; margin-top: 0.5rem; }
.doc-body p, .doc-body li { font-size: 0.97rem; line-height: 1.7; }
.doc-body p { margin: 0 0 1rem; }
.doc-body ul, .doc-body ol { margin: 0 0 1rem; padding-left: 1.4rem; }
.doc-body li { margin-bottom: 0.4rem; }
.doc-body code { font-family: var(--font-mono); font-size: 0.86em; background: #f1f5f9; border-radius: 4px; padding: 0.05rem 0.3rem; overflow-wrap: anywhere; }
.doc-body blockquote { margin: 0 0 1.4rem; padding: 0.9rem 1.1rem; background: #f0f9ff; border-left: 4px solid #0369a1; border-radius: var(--radius); }
.doc-body blockquote p { margin: 0; color: var(--steel); }
.doc-code { font-family: var(--font-mono); font-size: 0.8rem; line-height: 1.55; background: var(--sleeper); color: #e2e8f0; border-radius: var(--radius); padding: 0.9rem 1.1rem; margin: 0 0 1.2rem; overflow-x: auto; white-space: pre; }
.doc-body .doc-code code { background: none; padding: 0; color: inherit; font-size: inherit; overflow-wrap: normal; }
.doc-table-wrap { overflow-x: auto; margin: 0 0 1.4rem; }
.doc-table { border-collapse: collapse; width: 100%; font-size: 0.86rem; }
.doc-table th { text-align: left; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ballast); border-bottom: 1px solid #e5e7eb; padding: 0 0.8rem 0.5rem 0; white-space: nowrap; }
.doc-table td { border-bottom: 1px solid #eef2f7; padding: 0.6rem 0.8rem 0.6rem 0; vertical-align: top; line-height: 1.55; }
.doc-table td:first-child code { white-space: nowrap; }
@media (max-width: 860px) {
  .doc-layout { grid-template-columns: 1fr; }
  .doc-toc { position: static; max-height: none; }
}

/* A link inside a rendered document reads as one: the design system leaves
   body links to the surface they sit on. */
.doc-body a { color: var(--rail-blue); text-decoration: underline; text-underline-offset: 2px; }

/* The header on a narrow screen: the nav takes its own row and wraps, so six
   links and two buttons never push the page wider than the phone. */
@media (max-width: 860px) {
  .landing-header-inner { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .landing-header-nav { flex-wrap: wrap; gap: 0.5rem 1rem; }
  /* The footer's marks and links wrap rather than run off the edge. */
  .site-footer-inner { flex-wrap: wrap; row-gap: 0.6rem; }
  /* A table scrolls inside itself rather than widening the page. */
  .conductor-table { display: block; overflow-x: auto; }
}
