/* Service Jam Toolkit: teal palette from the original logo and icons, system fonts, no third parties. */
:root {
  --bg: #f6f8f7;
  --surface: #ffffff;
  --text: #1c2b29;
  --muted: #55615f;
  --line: #dde5e3;
  --brand: #00796b;      /* logo teal (dark) */
  --brand-2: #009688;    /* logo teal */
  --accent: #1de9b6;     /* logo mint */
  --tint: #e0f2f1;
  --focus: #00796b;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(0 0 0 / .05), 0 4px 16px rgb(0 0 0 / .04);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1716; --surface: #16211f; --text: #e6efed; --muted: #a3b3b0; --line: #26342f;
    --brand: #4db6ac; --brand-2: #64d8cb; --tint: #173a36; --focus: #64ffda;
    --shadow: none;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 1.0625rem/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--brand); text-underline-offset: .15em; }
a:hover { color: var(--brand-2); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
img { max-width: 100%; height: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--surface); padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; }

/* shell: sidebar on wide screens (like the original), top bar on phones */
.shell { max-width: 1200px; margin: 0 auto; padding: 1.25rem; display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .shell { grid-template-columns: 220px minmax(0, 1fr); gap: 3rem; padding: 2.5rem 2rem; } }
.side { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; }
@media (min-width: 900px) { .side { position: sticky; top: 2.5rem; align-self: start; flex-direction: column; align-items: center; text-align: center; } }
.brand { display: flex; align-items: center; gap: .75rem; color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.125rem; letter-spacing: .01em; }
.brand img { width: 34px; }
@media (min-width: 900px) { .brand { flex-direction: column; font-size: 1.375rem; } .brand img { width: 72px; } }
.side ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; }
.side nav a { display: inline-block; padding: .35rem .85rem; border-radius: 999px; text-decoration: none; color: var(--muted); font-weight: 500; }
.side nav a:hover { background: var(--tint); color: var(--brand); }
.side nav a[aria-current="page"] { background: var(--brand); color: #fff; }
.foot p { margin: 0 0 .35rem; }
.credits { font-size: .8125rem; }

main { min-width: 0; }
h1 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.4rem); line-height: 1.2; margin: .5rem 0 .75rem; letter-spacing: -.01em; display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
h1 .sep { color: var(--muted); font-weight: 400; }
.h1-icon { width: 48px; height: 48px; }
h2 { font-size: 1.25rem; margin: 2rem 0 1rem; }
.lead { font-size: 1.125rem; color: var(--muted); max-width: 46rem; margin: 0 0 1rem; }
.note { font-size: .9375rem; color: var(--muted); background: var(--tint); border-left: 4px solid var(--brand-2); padding: .75rem 1rem; border-radius: 0 10px 10px 0; max-width: 46rem; }
blockquote { margin: 1.5rem 0; padding: .25rem 1.25rem; border-left: 4px solid var(--accent); color: var(--muted); font-style: italic; max-width: 46rem; }
main > p { max-width: 46rem; }

/* stepper 1-2-3 (the original wizard's circles) */
.stepper { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; gap: .5rem; align-items: center; counter-reset: none; }
.stepper li { display: flex; align-items: center; gap: .5rem; color: var(--muted); font-size: .9375rem; }
.stepper li + li::before { content: ""; width: clamp(1rem, 4vw, 3rem); height: 2px; background: var(--line); margin-right: .25rem; }
.stepper a { display: flex; align-items: center; gap: .5rem; color: inherit; text-decoration: none; }
.stepper .dot { width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center; font-weight: 700; border: 2px solid var(--line); background: var(--surface); }
.stepper .done .dot { border-color: var(--brand-2); color: var(--brand); }
.stepper .done a:hover .label { text-decoration: underline; }
.stepper .current { color: var(--text); font-weight: 600; }
.stepper .current .dot { background: var(--brand); border-color: var(--brand); color: #fff; }

/* sector / field choices */
.choices { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.choice { display: flex; flex-direction: column; align-items: center; gap: .75rem; padding: 1.5rem 1rem 1.25rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); text-decoration: none; color: var(--text); font-weight: 600; font-size: 1.0625rem; transition: transform .15s ease, border-color .15s ease; }
.choice img { width: 96px; height: 96px; }
@media (max-width: 480px) { .choice { padding: 1.1rem .75rem 1rem; } .choice img { width: 72px; height: 72px; } }
.choice:hover { border-color: var(--brand-2); transform: translateY(-2px); color: var(--brand); }
@media (prefers-reduced-motion: reduce) { .choice { transition: none; } .choice:hover { transform: none; } }

/* legend */
.legend { margin: 1rem 0 0; max-width: 46rem; font-size: .9375rem; color: var(--muted); }
.legend summary { cursor: pointer; color: var(--brand); font-weight: 500; }

/* phases + tool cards */
.phase { margin-top: 2.5rem; }
.phase h3 { display: flex; align-items: center; gap: .75rem; font-size: 1.3rem; margin: 0 0 1rem; padding-bottom: .5rem; border-bottom: 2px solid var(--line); }
.phase h3 img { width: 44px; height: 44px; }
.phase .count { margin-left: auto; font-size: .875rem; font-weight: 500; color: var(--muted); }
.tools { list-style: none; margin: 0; padding: 0; display: grid; gap: .875rem; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.tool { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--brand-2); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1rem 1.1rem .9rem; }
.tool h4 { margin: 0 0 .6rem; font-size: 1.0625rem; line-height: 1.3; }
.tool dl { margin: 0; display: grid; gap: .2rem; }
.tool dl div { display: flex; justify-content: space-between; gap: 1rem; font-size: .9rem; padding: .15rem 0; border-bottom: 1px dashed var(--line); }
.tool dl div:last-child { border-bottom: 0; }
.tool dt { color: var(--muted); }
.tool dd { margin: 0; font-variant-numeric: tabular-nums; font-weight: 600; }
.empty { color: var(--muted); font-style: italic; }
.again { margin-top: 2.5rem; }

.foot { max-width: 1200px; margin: 1rem auto 0; padding: 1.5rem 1.25rem 2.5rem; color: var(--muted); font-size: .875rem; border-top: 1px solid var(--line); }
@media (min-width: 900px) { .foot { padding-left: calc(2rem + 220px + 3rem); } }
