/* ScaleNP Operating Diagnostics — shared styles (brand kit: navy #0C2D50, gold #D4A259) */
:root {
  --navy: #0C2D50;
  --navy-deep: #071D35;
  --gold: #D4A259;
  --gold-soft: #F3E6CC;
  --ink: #1B2430;
  --muted: #5B6670;
  --line: #E3E7EC;
  --bg: #F7F8FA;
  --white: #FFFFFF;
  --green: #2E7D5B;
  --amber: #C98A1A;
  --red: #B9432F;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(12, 45, 80, 0.08);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Source Sans 3", "Source Sans Pro", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: "Montserrat", system-ui, sans-serif; color: var(--navy); margin: 0 0 .4em; line-height: 1.2; }
h1 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 700; }
h2 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--navy); }

.topbar {
  background: var(--navy);
  color: var(--white);
  padding: 14px 20px;
}
.topbar-inner { max-width: 960px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.wordmark { font-family: "Montserrat", sans-serif; font-weight: 800; letter-spacing: .02em; font-size: 1.15rem; color: var(--white); text-decoration: none; display: flex; align-items: center; gap: 10px; }
.wordmark .np { background: var(--gold); color: var(--navy); border-radius: 6px; padding: 2px 7px; font-size: .85rem; }
.topbar .tag { font-size: .85rem; color: rgba(255,255,255,.75); }

.wrap { max-width: 960px; margin: 0 auto; padding: 32px 20px 64px; }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
  margin-bottom: 24px;
}
@media (max-width: 640px) { .card { padding: 22px 18px; } .wrap { padding: 20px 16px 48px; } }

.eyebrow { font-family: "Montserrat", sans-serif; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: 8px; }
.lead { font-size: 1.1rem; color: var(--muted); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: "Montserrat", sans-serif; font-weight: 600; font-size: .95rem;
  padding: 12px 22px; border-radius: 10px; border: 2px solid var(--navy);
  background: var(--navy); color: var(--white); cursor: pointer; text-decoration: none;
  transition: transform .08s ease, background .15s ease;
}
.btn:hover { background: var(--navy-deep); }
.btn:active { transform: translateY(1px); }
.btn.gold { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.btn.gold:hover { background: #C8954A; }
.btn.ghost { background: transparent; color: var(--navy); }
.btn.ghost:hover { background: var(--bg); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }

.progress { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; margin: 8px 0 24px; }
.progress > span { display: block; height: 100%; background: var(--gold); width: 0; transition: width .3s ease; }
.step-label { display: flex; justify-content: space-between; font-size: .85rem; color: var(--muted); font-family: "Montserrat", sans-serif; }

.domain-intro { color: var(--muted); margin-bottom: 20px; }
.q { padding: 18px 0; border-top: 1px solid var(--line); }
.q:first-of-type { border-top: 0; padding-top: 0; }
.q-text { font-weight: 600; font-size: 1.05rem; margin-bottom: 10px; color: var(--ink); }
.q-num { color: var(--gold); font-family: "Montserrat", sans-serif; font-weight: 700; margin-right: 8px; }
.scale { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
@media (max-width: 640px) { .scale { grid-template-columns: repeat(2, 1fr); } }
.scale label {
  display: block; text-align: center; padding: 10px 8px; border: 1.5px solid var(--line);
  border-radius: 10px; cursor: pointer; font-size: .9rem; background: var(--white); user-select: none;
  transition: all .12s ease;
}
.scale label:hover { border-color: var(--gold); }
.scale input { position: absolute; opacity: 0; pointer-events: none; }
.scale input:checked + span { color: var(--navy); font-weight: 600; }
.scale label.on { background: var(--gold-soft); border-color: var(--gold); }
.scale label.on span { font-weight: 600; color: var(--navy); }
.scale label:focus-within { outline: 2px solid var(--gold); outline-offset: 2px; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .grid2 { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.field input, .field select {
  width: 100%; padding: 11px 12px; border: 1.5px solid var(--line); border-radius: 10px;
  font: inherit; color: var(--ink); background: var(--white);
}
.field input:focus, .field select:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.fine { font-size: .82rem; color: var(--muted); }
.error { color: var(--red); font-size: .9rem; margin-top: 8px; display: none; }

/* Results */
.score-hero { display: grid; grid-template-columns: 180px 1fr; gap: 28px; align-items: center; }
@media (max-width: 640px) { .score-hero { grid-template-columns: 1fr; text-align: center; } }
.ring { width: 180px; height: 180px; margin: 0 auto; position: relative; }
.ring svg { transform: rotate(-90deg); }
.ring .track { fill: none; stroke: var(--line); stroke-width: 14; }
.ring .fill { fill: none; stroke: var(--gold); stroke-width: 14; stroke-linecap: round; transition: stroke-dashoffset 1s ease; }
.ring .num { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; font-family: "Montserrat", sans-serif; }
.ring .num b { font-size: 2.6rem; color: var(--navy); line-height: 1; }
.ring .num small { font-size: .75rem; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; margin-top: 4px; }
.band { display: inline-block; font-family: "Montserrat", sans-serif; font-weight: 700; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; padding: 6px 12px; border-radius: 99px; margin-bottom: 10px; }
.band.b4 { background: #DDF0E6; color: var(--green); }
.band.b3 { background: var(--gold-soft); color: #8A6321; }
.band.b2 { background: #FBE9D0; color: var(--amber); }
.band.b1 { background: #F8DDD8; color: var(--red); }

.bars { display: grid; gap: 14px; margin-top: 8px; }
.bar-row { display: grid; grid-template-columns: 200px 1fr 48px; gap: 14px; align-items: center; }
@media (max-width: 640px) { .bar-row { grid-template-columns: 1fr 48px; } .bar-row .bar-name { grid-column: 1 / -1; } }
.bar-name { font-weight: 600; font-size: .95rem; }
.bar-name small { display: block; color: var(--muted); font-weight: 400; font-size: .8rem; }
.bar { height: 12px; background: var(--line); border-radius: 99px; overflow: hidden; }
.bar > span { display: block; height: 100%; width: 0; border-radius: 99px; transition: width .8s ease; }
.bar > span.g { background: var(--green); } .bar > span.y { background: var(--gold); } .bar > span.o { background: var(--amber); } .bar > span.r { background: var(--red); }
.bar-val { font-family: "Montserrat", sans-serif; font-weight: 700; text-align: right; color: var(--navy); }

.priority { border-left: 4px solid var(--gold); padding: 14px 18px; background: var(--bg); border-radius: 0 10px 10px 0; margin-bottom: 14px; }
.priority h4 { margin: 0 0 4px; font-size: 1rem; }
.priority .dom { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-family: "Montserrat", sans-serif; font-weight: 600; }
.priority p { margin: 6px 0 0; color: var(--ink); }

.path { background: var(--navy); color: var(--white); border-radius: var(--radius); padding: 28px 32px; }
.path h2, .path h3 { color: var(--white); }
.path .eyebrow { color: var(--gold); }
.path p { color: rgba(255,255,255,.85); }
.path .pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 18px 0; }
@media (max-width: 640px) { .path .pillars { grid-template-columns: 1fr; } }
.path .pill { border: 1px solid rgba(255,255,255,.18); border-radius: 10px; padding: 12px 14px; font-size: .9rem; }
.path .pill b { display: block; font-family: "Montserrat", sans-serif; font-size: .85rem; color: var(--gold); margin-bottom: 4px; }
.path .pill.lead-sol { background: rgba(212,162,89,.14); border-color: var(--gold); }

.footer { text-align: center; color: var(--muted); font-size: .85rem; padding: 24px 0 0; }
.footer a { color: var(--muted); }
.hidden { display: none !important; }

@media print {
  .topbar, .actions, .no-print { display: none !important; }
  body { background: #fff; }
  .card { box-shadow: none; border: 1px solid #ccc; page-break-inside: avoid; }
  .path { background: #0C2D50 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
