/* Shared styling for every AutomateEdge app policy.
   Edit once here and every app's pages follow. */

:root {
  --bg: #ffffff;
  --surface: #f6f7fb;
  --text: #1a1c25;
  --muted: #5b6072;
  --rule: #e3e6ef;
  --accent: #4f46e5;
  --accent-soft: #eef0ff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1117;
    --surface: #171a23;
    --text: #e8eaf2;
    --muted: #9aa0b4;
    --rule: #262a37;
    --accent: #a5b4fc;
    --accent-soft: #1c2033;
  }
}

* { box-sizing: border-box; }

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

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

.wrap { max-width: 44rem; margin: 0 auto; }

header {
  padding: 3rem 0 1.5rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 2.5rem;
}

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.6rem;
}

h1 { font-size: 2rem; line-height: 1.2; margin: 0 0 0.75rem; letter-spacing: -0.02em; }
h2 {
  font-size: 1.2rem;
  margin: 2.75rem 0 0.75rem;
  letter-spacing: -0.01em;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}
h2:first-of-type { border-top: 0; padding-top: 0; }

.updated { color: var(--muted); font-size: 0.92rem; margin: 0; }

p { margin: 0 0 1.1rem; }
ul { margin: 0 0 1.1rem; padding-left: 1.3rem; }
li { margin-bottom: 0.55rem; }

strong { font-weight: 650; }

a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

.lede {
  background: var(--surface);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: 1.1rem 1.25rem;
  margin: 0 0 2rem;
}
.lede p:last-child { margin-bottom: 0; }

.apps { list-style: none; padding: 0; margin: 0; }
.apps li { margin-bottom: 0.85rem; }
.apps a {
  display: block;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 1rem 1.15rem;
  text-decoration: none;
  color: var(--text);
}
.apps a:hover { border-color: var(--accent); }
.apps .name { font-weight: 650; display: block; }
.apps .desc { color: var(--muted); font-size: 0.93rem; }

footer {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 30rem) {
  body { font-size: 16px; }
  h1 { font-size: 1.6rem; }
  header { padding-top: 2rem; }
}
