/* tmgmt static site — shared styles.
   Matches the existing api.html header treatment (dark navy nav, system UI).
   Minimal by design: one purpose per page, essentials first, no decoration. */

:root {
  --ink: #111827;
  --muted: #4b5563;
  --navy: #0f172a;
  --navy-ink: #e2e8f0;
  --line: #e2e8f0;
  --wash: #f8fafc;
  --accent: #1d4ed8;
  --accent-ink: #ffffff;
  --code-bg: #eef2f7;
  --radius: 8px;
}

* { box-sizing: border-box; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  margin: 0;
  color: var(--ink);
  line-height: 1.6;
  background: #ffffff;
}

/* ---- Header / nav (Jakob: same placement on every page) ---- */
.site-header {
  background: var(--navy);
  padding: 0.9rem 1.5rem;
}

.site-header nav {
  max-width: 70rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.5rem;
}

.site-header .brand {
  color: #ffffff;
  font-weight: 800;
  font-size: 1.15rem;
  margin-right: 1rem;
}

.site-header nav a {
  color: var(--navy-ink);
  text-decoration: none;
  font-weight: 600;
}

.site-header nav a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* ---- Main layout (Prägnanz: 70ch prose column) ---- */
main {
  max-width: 70rem;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

.prose { max-width: 70ch; }

h1 { font-size: 1.9rem; line-height: 1.25; margin: 0 0 1rem; }
h2 { font-size: 1.35rem; margin: 2.25rem 0 0.75rem; }
h3 { font-size: 1.1rem; margin: 1.5rem 0 0.5rem; }

p, li { color: var(--ink); }
.muted { color: var(--muted); }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
  background: var(--code-bg);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  word-break: break-all;
}

/* ---- Primary CTA (Von Restorff: one dominant action) ---- */
.cta {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  text-decoration: none;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius);
  margin-top: 1.25rem;
}

.cta:hover { background: #1e40af; }

/* Secondary, quieter link action */
.quiet-link { font-weight: 600; }

/* ---- Offering cards (Miller: 8 items chunked, grouped by proximity) ---- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.cards li {
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
}

.cards h3 { margin: 0 0 0.4rem; font-size: 1.05rem; }
.cards h3 a { color: var(--ink); text-decoration: none; }
.cards h3 a:hover { color: var(--accent); text-decoration: underline; }
.cards p { margin: 0.25rem 0 0; font-size: 0.95rem; color: var(--muted); }
.cards code { display: inline-block; margin-top: 0.5rem; font-size: 0.8rem; }

/* ---- Offering detail sections ---- */
.offering { margin-bottom: 2.5rem; }
.offering h2 { margin-bottom: 0.25rem; }
.offering .wid { color: var(--muted); font-size: 0.95rem; margin-bottom: 0.75rem; }
.offering ul { margin: 0.5rem 0 0; padding-left: 1.25rem; }
.offering li { margin-bottom: 0.25rem; }

/* ---- Route table ---- */
.route-table-wrap { overflow-x: auto; margin-top: 1rem; }

table.routes {
  border-collapse: collapse;
  width: 100%;
  max-width: 60rem;
  font-size: 0.95rem;
}

table.routes th, table.routes td {
  text-align: left;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--line);
}

table.routes th { background: var(--wash); }

.method {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 700;
  font-size: 0.85rem;
  color: #166534;
}

.method.post { color: #92400e; }

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.25rem 1.5rem 2rem;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

/* ---- Small screens ---- */
@media (max-width: 40rem) {
  h1 { font-size: 1.55rem; }
  main { padding: 1.5rem 1rem 2.5rem; }
  .site-header nav { gap: 0.25rem 1rem; }
}
