/* Autoponix product wiki — Elemental-first */
:root {
  --navy: #0b1e2d;
  --navy-2: #132a3d;
  --teal: #0d8a8a;
  --teal-soft: #e6f4f4;
  --accent: #c45c26;
  --ink: #1c2430;
  --muted: #5a6570;
  --line: #d7dee5;
  --paper: #f7f9fb;
  --white: #ffffff;
  --warn: #b45309;
  --ok: #0f766e;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(11, 30, 45, 0.08);
  --font: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(13, 138, 138, 0.12), transparent 60%),
    radial-gradient(900px 400px at 100% 0%, rgba(196, 92, 38, 0.08), transparent 55%),
    var(--paper);
  line-height: 1.55;
}

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
}

/* Header */
.site-header {
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  color: var(--white);
  border-bottom: 3px solid var(--teal);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}
.brand {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.brand strong {
  font-size: 1.15rem;
  letter-spacing: 0.04em;
}
.brand span {
  font-size: 0.8rem;
  opacity: 0.75;
}
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
  font-size: 0.92rem;
}
.nav a { color: #d7ecec; }
.nav a:hover { color: #fff; text-decoration: none; }
.nav a.active { color: #fff; border-bottom: 2px solid var(--teal); }

/* Layout */
.layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}
@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; }
}

.sidebar {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  height: fit-content;
  position: sticky;
  top: 1rem;
}
.sidebar h2 {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.sidebar a {
  display: block;
  padding: 0.45rem 0.55rem;
  border-radius: 6px;
  color: var(--ink);
  font-size: 0.92rem;
}
.sidebar a:hover,
.sidebar a.active {
  background: var(--teal-soft);
  color: var(--navy);
  text-decoration: none;
}
.sidebar .soon {
  opacity: 0.55;
  font-size: 0.85rem;
  padding: 0.35rem 0.55rem;
}

.content {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem 2rem;
  box-shadow: var(--shadow);
  min-width: 0;
}
.content h1 {
  margin: 0 0 0.35rem;
  color: var(--navy);
  font-size: 1.85rem;
  line-height: 1.2;
}
.content .lead {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0 0 1.25rem;
}
.content h2 {
  margin: 1.75rem 0 0.6rem;
  color: var(--navy);
  font-size: 1.25rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.35rem;
}
.content h3 {
  margin: 1.2rem 0 0.4rem;
  color: var(--teal);
  font-size: 1.05rem;
}
.content p, .content li { font-size: 0.98rem; }
.content ol, .content ul { padding-left: 1.25rem; }
.content li { margin: 0.3rem 0; }

.figure {
  margin: 1.1rem 0 1.4rem;
  text-align: center;
}
.figure img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.figure figcaption {
  margin-top: 0.45rem;
  font-size: 0.85rem;
  color: var(--muted);
  font-style: italic;
}

/* Numbered annotation tables under screenshots */
.anno-table th:first-child,
.anno-table td:first-child {
  width: 3.2rem;
  text-align: center;
  font-weight: 700;
  color: var(--navy);
}
.anno-table td:first-child {
  background: var(--teal-soft);
}
.figure + .table-wrap {
  margin-top: 0.35rem;
}


.callout {
  border-left: 4px solid var(--teal);
  background: var(--teal-soft);
  padding: 0.85rem 1rem;
  border-radius: 0 8px 8px 0;
  margin: 1rem 0;
}
.callout.warn {
  border-left-color: var(--accent);
  background: #fff4ec;
}
.callout strong {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--navy);
}

.table-wrap { overflow-x: auto; margin: 1rem 0; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
th, td {
  border: 1px solid var(--line);
  padding: 0.55rem 0.65rem;
  text-align: left;
  vertical-align: top;
}
th {
  background: var(--navy);
  color: #fff;
}
tr:nth-child(even) td { background: #f3f6f8; }

/* Product hub cards */
.hero {
  padding: 1.8rem 0 0.5rem;
}
.hero h1 {
  margin: 0;
  color: var(--navy);
  font-size: 2rem;
}
.hero p {
  color: var(--muted);
  max-width: 40rem;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.card h2 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--navy);
  border: none;
}
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.card .badge {
  align-self: flex-start;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--ok);
  font-weight: 700;
}
.card .badge.soon {
  background: #eee;
  color: var(--muted);
}
.card .actions { margin-top: auto; padding-top: 0.5rem; }
.btn {
  display: inline-block;
  background: var(--teal);
  color: #fff !important;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none !important;
}
.btn:hover { filter: brightness(1.05); }
.btn.ghost {
  background: transparent;
  color: var(--teal) !important;
  border: 1px solid var(--teal);
}

.crumbs {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}
.crumbs a { color: var(--muted); }

.pager {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.pager a {
  font-weight: 600;
}

.site-footer {
  margin-top: 2rem;
  padding: 1.25rem 0 2rem;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}
