/* FME Flow Connector — documentation site */

:root {
  --accent: #3d7fd4;
  --accent-hover: #2a6bc0;
  --success: #2d9a6e;
  --warning: #c47d00;
  --error: #c94444;
  --bg: #ffffff;
  --panel: #f8f9fb;
  --card: #f0f2f6;
  --border: #d8dce6;
  --text: #1a1a2e;
  --muted: #5a5a72;
  --sidebar-width: 240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
  background: var(--panel);
  border-right: 1px solid var(--border);
  padding: 24px 16px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.sidebar-logo img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.sidebar-logo h1 {
  margin: 0;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 700;
}

.sidebar-logo .version {
  display: block;
  font-size: 11px;
  color: var(--muted);
  font-weight: normal;
  margin-top: 2px;
}

.sidebar nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar nav li {
  margin-bottom: 4px;
}

.sidebar nav a {
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
}

.sidebar nav a:hover,
.sidebar nav a.active {
  background: var(--card);
  color: var(--accent);
  text-decoration: none;
}

.sidebar nav a.active {
  font-weight: 600;
  border-left: 3px solid var(--accent);
  padding-left: 9px;
}

.emph-underline {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.content {
  flex: 1;
  max-width: 860px;
  padding: 40px 48px 80px;
}

.hero {
  margin-bottom: 48px;
}

.hero img {
  width: 140px;
  height: 140px;
  object-fit: contain;
  margin-bottom: 20px;
}

.hero h2 {
  margin: 0 0 8px;
  font-size: 32px;
  font-weight: 700;
}

.hero .tagline {
  color: var(--muted);
  font-size: 17px;
  margin: 0 0 20px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--muted);
}

.badge.accent {
  background: rgba(61, 127, 212, 0.1);
  border-color: var(--accent);
  color: var(--accent);
}

section {
  margin-bottom: 48px;
  scroll-margin-top: 24px;
}

section h2 {
  font-size: 22px;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  color: var(--accent);
}

section h3 {
  font-size: 16px;
  margin: 24px 0 10px;
  color: var(--text);
}

p {
  margin: 0 0 14px;
  color: var(--text);
}

ul, ol {
  margin: 0 0 16px;
  padding-left: 22px;
}

li {
  margin-bottom: 6px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px 24px;
  margin-bottom: 16px;
}

.card h3 {
  margin-top: 0;
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

@media (max-width: 900px) {
  .layout {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
  }

  .content {
    padding: 24px 20px 60px;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }
}

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 44px;
  margin-bottom: 18px;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

code, .path {
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 6px;
}

pre {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 20px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.5;
  margin: 0 0 16px;
}

pre code {
  background: none;
  border: none;
  padding: 0;
}

.flow-diagram {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  line-height: 2;
}

.flow-diagram .arrow {
  color: var(--accent);
  font-weight: bold;
}

.tip {
  border-left: 3px solid var(--success);
  background: rgba(45, 154, 110, 0.08);
  padding: 12px 16px;
  border-radius: 0 6px 6px 0;
  margin: 16px 0;
  font-size: 14px;
  color: var(--text);
}

.warn {
  border-left: 3px solid var(--warning);
  background: rgba(196, 125, 0, 0.08);
  padding: 12px 16px;
  border-radius: 0 6px 6px 0;
  margin: 16px 0;
  font-size: 14px;
  color: var(--text);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
  font-size: 14px;
}

th, td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}

th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}

.about-block {
  text-align: center;
  margin: 24px 0 8px;
  padding: 32px 24px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.about-block img {
  width: 128px;
  height: 128px;
  object-fit: contain;
  margin-bottom: 16px;
}

.about-block h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 600;
}

.about-developer {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 15px;
}
