/* Assign Over Automation — shared styles */

:root {
  --bg: #ffffff;
  --surface: #f6f8fa;
  --text: #1c1f23;
  --muted: #5b6570;
  --border: #e1e5ea;
  --accent: #1a56b8;
  --accent-soft: #eaf1fd;
  --max: 44rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14171a;
    --surface: #1c2126;
    --text: #e8eaed;
    --muted: #9aa4ae;
    --border: #2b3238;
    --accent: #7aa9f7;
    --accent-soft: #1b2534;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }

/* ---- header / nav ---- */
header.site {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
header.site .wrap {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 1.25rem;
  padding-top: 1rem; padding-bottom: 1rem;
}
header.site .brand {
  font-weight: 700; letter-spacing: -.01em; color: var(--text);
  text-decoration: none; margin-right: auto;
}
header.site .brand span { color: var(--muted); font-weight: 400; }
header.site nav a {
  color: var(--muted); text-decoration: none; font-size: .9rem;
}
header.site nav a + a { margin-left: 1rem; }
header.site nav a:hover { color: var(--accent); }

/* ---- content ---- */
main { padding: 2.5rem 0 3.5rem; }

h1 { font-size: 1.9rem; line-height: 1.25; letter-spacing: -.02em; margin: 0 0 .5rem; }
h2 { font-size: 1.25rem; letter-spacing: -.01em; margin: 2.25rem 0 .75rem; }
h3 { font-size: 1.02rem; margin: 1.5rem 0 .5rem; }

p, ul, ol { margin: 0 0 1rem; }
li { margin-bottom: .35rem; }

a { color: var(--accent); }

code {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 4px; padding: .1em .35em; font-size: .88em;
  word-break: break-all;
}

.lede { font-size: 1.08rem; color: var(--muted); margin-bottom: 1.5rem; }
.meta { color: var(--muted); font-size: .9rem; }

.note {
  background: var(--accent-soft); border: 1px solid var(--border);
  border-radius: 8px; padding: .9rem 1.1rem; margin: 1.5rem 0;
}
.note p:last-child { margin-bottom: 0; }

/* ---- tables ---- */
.table-scroll { overflow-x: auto; margin: 0 0 1.25rem; }
table { border-collapse: collapse; width: 100%; font-size: .93rem; }
th, td {
  text-align: left; vertical-align: top;
  padding: .55rem .7rem; border-bottom: 1px solid var(--border);
}
th { font-weight: 600; white-space: nowrap; }
tbody tr:last-child td { border-bottom: none; }

/* ---- tool cards on the hub page ---- */
.tools { display: grid; gap: 1rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.tool {
  border: 1px solid var(--border); border-radius: 10px;
  padding: 1.1rem 1.25rem; background: var(--surface);
}
.tool h3 { margin: 0 0 .3rem; }
.tool h3 a { text-decoration: none; }
.tool p { margin: 0 0 .5rem; color: var(--muted); font-size: .95rem; }
.tag {
  display: inline-block; font-size: .74rem; letter-spacing: .04em;
  text-transform: uppercase; padding: .15rem .5rem; border-radius: 999px;
  border: 1px solid var(--border); color: var(--muted);
}
.tag.live { color: #1a7f37; border-color: #1a7f3733; background: #1a7f3714; }

/* ---- footer ---- */
footer.site {
  border-top: 1px solid var(--border); padding: 1.5rem 0 2.5rem;
  color: var(--muted); font-size: .88rem;
}
footer.site a { color: var(--muted); }
footer.site p { margin: 0 0 .5rem; }

@media (max-width: 34rem) {
  h1 { font-size: 1.55rem; }
  main { padding: 1.75rem 0 2.5rem; }
}
