:root {
  --bg: #ffffff; --text: #1b1f24; --muted: #57606a; --line: #d0d7de; --surface: #f6f8fa; --accent: #0b5cad;
  --web: #eef2f6; --azure: #e3effb; --entra: #ece8fb; --graph: #e6f4f1; --sp: #e5f3ea; --cf: #fdeee3; --pa: #f9e8f1;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1419; --text: #e6e9ec; --muted: #9aa4ae; --line: #343c45; --surface: #171d23; --accent: #6cb2f5;
    --web: #1c232b; --azure: #14273a; --entra: #221d38; --graph: #12302b; --sp: #15301f; --cf: #36231a; --pa: #33192a;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1419; --text: #e6e9ec; --muted: #9aa4ae; --line: #343c45; --surface: #171d23; --accent: #6cb2f5;
  --web: #1c232b; --azure: #14273a; --entra: #221d38; --graph: #12302b; --sp: #15301f; --cf: #36231a; --pa: #33192a;
}

body { font: 1rem/1.5 system-ui, sans-serif; margin: 0; background: var(--bg); color: var(--text); }
header { border-bottom: 1px solid var(--line); background: var(--surface); }
main { max-width: 52rem; margin: 0 auto; padding: 1rem; }
h1 { font-size: 2.25rem; line-height: 1.2; }
h2 { font-size: 1.5rem; margin-top: 2rem; }
label { display: block; margin: 0.75rem 0; }
input, select { display: block; width: 100%; padding: 0.5rem; font: inherit; box-sizing: border-box; }
button { padding: 0.6rem 1.2rem; font: inherit; margin-top: 0.75rem; }
#jobs { padding-left: 1.2rem; }
#apply { max-width: 40rem; }
code { font-size: 0.9em; }

/* Tabs */
.tabs { display: flex; gap: 0.25rem; max-width: 52rem; margin: 0 auto; padding: 0 1rem; }
.tabs button {
  margin: 0; border: 0; border-bottom: 3px solid transparent; background: none; color: var(--muted);
  padding: 0.9rem 1rem; cursor: pointer; font-weight: 600;
}
.tabs button[aria-selected="true"] { color: var(--text); border-bottom-color: var(--accent); }
.tabs button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

/* Process diagram: a row of boxes with arrows, stacked on narrow screens */
.lead { font-size: 1.125rem; color: var(--muted); max-width: 44rem; }
.flow { list-style: none; padding: 0; margin: 1rem 0; display: flex; align-items: stretch; gap: 0.6rem; }
.node {
  flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 0.25rem; position: relative;
  border: 1px solid var(--line); border-radius: 8px; padding: 0.75rem; font-size: 0.875rem;
}
.node strong { font-size: 0.95rem; }
.node span { color: var(--muted); }
.node:not(:last-child)::after {
  content: "→"; position: absolute; right: -0.55rem; top: 50%; transform: translate(50%, -50%);
  color: var(--muted); font-size: 1.1rem; z-index: 1;
}
.web { background: var(--web); } .azure { background: var(--azure); } .entra { background: var(--entra); }
.graph { background: var(--graph); } .sp { background: var(--sp); } .cf { background: var(--cf); } .pa { background: var(--pa); }
.internal { border-style: dashed; border-width: 2px; }
.note { color: var(--muted); font-size: 0.9rem; }

table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th, td { text-align: left; padding: 0.5rem; border-bottom: 1px solid var(--line); vertical-align: top; }

@media (max-width: 48rem) {
  .flow { flex-direction: column; gap: 1.25rem; }
  .node { flex-basis: auto; }
  .node:not(:last-child)::after { content: "↓"; right: 50%; top: auto; bottom: -1.25rem; transform: translateX(50%); }
}
