/* Improvement Core: "the notice board". Pale sage paper, leaf green and saffron, a literary serif for headings and quotations, soft rounded sheets.
   Loaded after the suite kit and app.css; it replaces the Care Plans look this app started with. */
@font-face { font-family: 'Newsreader'; font-weight: 500; font-style: normal; font-display: swap; src: url('/assets/fonts/newsreader-500.woff2') format('woff2'); }
@font-face { font-family: 'Newsreader'; font-weight: 600; font-style: normal; font-display: swap; src: url('/assets/fonts/newsreader-600.woff2') format('woff2'); }
@font-face { font-family: 'Newsreader'; font-weight: 600; font-style: italic; font-display: swap; src: url('/assets/fonts/newsreader-600i.woff2') format('woff2'); }
@font-face { font-family: 'Newsreader'; font-weight: 400; font-style: italic; font-display: swap; src: url('/assets/fonts/newsreader-400i.woff2') format('woff2'); }

:root {
  --ink: #14261f; --ink-soft: #2e4238; --muted: #4f6157;
  --paper: #f1f5ea; --surface: #ffffff; --rule: #d2dcc6; --rule-soft: #e3eadb; --field-border: #6f8576;
  --brand: #1b6a48; --brand-deep: #114833; --brand-tint: #e0efe4;
  --saffron: #e8a817; --saffron-tint: #fcf0cd; --saffron-deep: #8a5d00;
  --font-body: 'IBM Plex Sans', system-ui, sans-serif; --font-display: 'Newsreader', Georgia, serif;
  --radius: 10px; --radius-lg: 18px;
}
html { font-size: 106.25%; }
body { background: var(--paper); font-family: var(--font-body); color: var(--ink); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -.005em; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.3rem); line-height: 1.04; }
h2 { font-size: 1.5rem; line-height: 1.15; }
a { color: var(--brand); }
.eyebrow, .page-head .eyebrow { font-family: var(--font-body); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-size: .78rem; color: var(--brand); margin: 0 0 .5rem; }
.eyebrow a { text-decoration: none; }

/* header: light, with a saffron bar and a speech-bubble mark; the page you are on is highlighted like a marker pen */
header, .navbar { background: var(--surface); color: var(--ink); border-bottom: 1px solid var(--rule); }
header { border-top: 6px solid var(--saffron); }
.navbar a, header a { color: var(--ink); }
.logo { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; letter-spacing: -.01em; display: inline-flex; align-items: center; gap: .55rem; color: var(--brand-deep); }
.logo::before { content: ''; width: 1.75rem; height: 1.4rem; background: var(--brand); border-radius: 8px 8px 8px 2px; display: inline-block; box-shadow: inset -.45rem -.35rem 0 -.1rem var(--saffron); }
.nav-menu a { color: var(--ink-soft); border-radius: 999px; font-size: .92rem; }
.nav-menu a:hover { background: var(--brand-tint); color: var(--brand-deep); }
.nav-menu a[aria-current="page"] { background: var(--saffron-tint); color: var(--ink); font-weight: 600; text-decoration: none; box-shadow: inset 0 -3px 0 var(--saffron); border-radius: 8px 8px 2px 2px; }
.who, .who a { color: var(--ink-soft); }
.who .btn.btn-secondary { background: transparent; color: var(--brand-deep); border: 1.5px solid var(--brand); border-radius: 999px; }
.who .btn.btn-secondary:hover { background: var(--brand); color: #fff; }
.nav-toggle { background: #fff; color: var(--ink); border: 1.5px solid var(--field-border); border-radius: 999px; }
.navbar a:focus-visible, header a:focus-visible, .nav-toggle:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; box-shadow: none; }
.demo-bar { background: var(--brand-tint); border-bottom: 1px solid var(--rule); } .demo-bar, .demo-bar * { color: var(--ink); } .demo-bar a { text-decoration: underline; }

.page-head { border-bottom: 0; padding: .75rem 0 1rem; margin-bottom: 1rem; position: relative; }
.page-head::after { content: ''; display: block; width: 5rem; height: 5px; background: var(--saffron); border-radius: 3px; margin-top: 1rem; }
.page-head h1 { margin: 0 0 .35rem; }
.page-head p { max-width: 60ch; } .muted { color: var(--muted); }

/* sheets: soft, rounded, quietly lifted */
.card, .info-box { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-lg); box-shadow: 0 2px 0 var(--rule-soft), 0 8px 20px -14px rgb(20 38 31 / .35); }
.card > h2:first-child { font-size: 1.3rem; margin-bottom: .8rem; color: var(--brand-deep); }
.card .card { box-shadow: none; border-radius: var(--radius); }
.alert { border-radius: var(--radius); border: 1px solid var(--rule); }
.alert-warning { background: var(--saffron-tint); color: #4a3200; border-color: #e1c26a; }
.alert-error { background: #fbe9e6; color: #6a1d12; border-color: #e0a99e; }
.alert-success { background: var(--brand-tint); color: #0e3a28; border-color: #96c3a9; }
.alert-info { background: #ecf1f6; color: #1c2f45; border-color: #aebfd1; }

.btn { border-radius: 999px; font-weight: 600; }
.btn-primary, button.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-deep); border-color: var(--brand-deep); }
.btn.btn-secondary { background: transparent; color: var(--brand-deep); border: 1.5px solid var(--brand); }
.btn.btn-secondary:hover { background: var(--brand-tint); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
input, select, textarea { border-radius: var(--radius); border: 1.5px solid var(--field-border); background: #fff; }
label, legend { font-weight: 600; color: var(--ink-soft); }
details > summary { color: var(--brand-deep); }

.table { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); border-collapse: separate; border-spacing: 0; overflow: hidden; }
.table th { background: var(--brand-tint); color: var(--brand-deep); font-weight: 600; font-size: .85rem; letter-spacing: .04em; border-bottom: 1px solid var(--rule); }
.table td { border-bottom: 1px solid var(--rule-soft); }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #f7faf2; }
.badge { border-radius: 999px; font-weight: 600; font-size: .75rem; padding: .15rem .65rem; background: var(--brand-tint); color: var(--brand-deep); border: 0; }
.badge-secondary { background: #e9eee3; color: var(--ink-soft); } .badge-success { background: #d4ebdc; color: #0f4a2c; } .badge-warning { background: var(--saffron-tint); color: #5a3d00; } .badge-danger { background: #fbdcd6; color: #7a1d10; }
.stats { gap: 1rem; margin: 1.25rem 0; } .stat { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: 1rem 1.4rem; min-width: 9rem; }
.stat .figure { display: block; font-family: var(--font-display); font-weight: 600; font-size: 2.8rem; line-height: 1; color: var(--brand); }
.bar-cell progress { accent-color: var(--brand); }
.entry { position: relative; padding: .8rem 0 .8rem 1.5rem; }
.entry::before { content: ''; position: absolute; left: .2rem; top: 1.15rem; width: .6rem; height: .6rem; background: var(--saffron); border-radius: 50%; }
.entry::after { content: ''; position: absolute; left: .45rem; top: 1.9rem; bottom: -.3rem; width: 2px; background: var(--rule); } .entry:last-child::after { display: none; }

/* a voice is a quotation: a large serif mark, the words as written */
.quote { position: relative; padding: .4rem 0 .4rem 3rem; font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: 1.3rem; line-height: 1.4; color: var(--ink); }
.quote::before { content: '\201C'; position: absolute; left: 0; top: -.35rem; font-size: 4.5rem; line-height: 1; color: var(--saffron); font-style: normal; font-weight: 600; }
.card.voice-body { border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) 4px; }

/* the grade ladder: six steps, filled to the grade, the target marked */
.ladder { display: inline-flex; gap: 3px; vertical-align: middle; margin-right: .5rem; }
.ladder i { width: 1.15rem; height: .8rem; border-radius: 3px; background: #fff; border: 1.5px solid var(--field-border); display: block; position: relative; }
.ladder i.on { background: var(--brand); border-color: var(--brand); }
.ladder i.tgt::after { content: ''; position: absolute; left: 50%; top: -.45rem; width: .4rem; height: .4rem; background: var(--saffron); border-radius: 50%; transform: translateX(-50%); }
.grade { border-radius: 999px; background: transparent; padding: 0; font-weight: 600; }

/* the improvement stepper: where an improvement has got to */
.stepper { display: flex; list-style: none; margin: 1rem 0 0; padding: 0; gap: 0; }
.stepper li { flex: 1; position: relative; text-align: center; font-size: .85rem; color: var(--muted); padding-top: 1.7rem; }
.stepper li::before { content: ''; position: absolute; top: .35rem; left: 50%; width: .9rem; height: .9rem; margin-left: -.45rem; background: #fff; border: 2px solid var(--field-border); border-radius: 50%; z-index: 1; }
.stepper li::after { content: ''; position: absolute; top: .72rem; left: -50%; right: 50%; height: 2px; background: var(--rule); }
.stepper li:first-child::after { display: none; }
.stepper li.done { color: var(--ink); } .stepper li.done::before { background: var(--brand); border-color: var(--brand); } .stepper li.done::after { background: var(--brand); }
.stepper li.now { color: var(--brand-deep); font-weight: 700; } .stepper li.now::before { background: var(--saffron); border-color: var(--saffron-deep); box-shadow: 0 0 0 4px var(--saffron-tint); }
.stepper li.stopped::before { background: #b6422d; border-color: #b6422d; }

footer { background: var(--ink); color: #c9d8cd; margin-top: 3rem; } footer a { color: #fff; } footer p { color: #c9d8cd; }
.hp { position: absolute; left: -9999px; }

.nav-collapse { display: contents; }
.nav-toggle { display: none; }
@media (max-width: 64rem) {
  .bar { flex-wrap: wrap; }
  .js .nav-toggle { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem; font: inherit; font-weight: 600; cursor: pointer; }
  .nav-collapse { display: block; width: 100%; } .js .nav-collapse { display: none; } .js .nav-collapse.nav-open { display: block; }
  .nav-menu { flex-direction: column; gap: 0; width: 100%; } .nav-menu a { display: block; } .who { padding: .75rem 0; border-top: 1px solid var(--rule); }
}
@media (min-width: 64.01rem) { .bar { flex-wrap: nowrap; } .nav-menu a { padding: .45rem .7rem; } .nav-menu { gap: .1rem; } .who { flex: none; } .logo { flex: none; } }

.narrow-wide { max-width: 56rem; margin-inline: auto; }
.wedid { display: grid; grid-template-columns: 1fr 2.5rem 1fr; gap: 0; align-items: stretch; margin: 1.25rem 0; }
.wedid-said, .wedid-did { background: var(--surface); border: 1px solid var(--rule); padding: 1.4rem 1.6rem; }
.wedid-said { border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) 4px; background: var(--saffron-tint); border-color: #ecd48f; }
.wedid-did { border-radius: var(--radius-lg) var(--radius-lg) 4px var(--radius-lg); border-color: #9cc9ad; background: #f4faf5; }
.wedid-arrow { display: grid; place-items: center; font-size: 1.6rem; color: var(--brand); }
.wedid-label { font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .75rem; color: var(--brand-deep); margin: 0 0 .5rem; }
.wedid .quote { font-size: 1.15rem; padding-left: 2.4rem; } .wedid .quote::before { font-size: 3.4rem; }
@media (max-width: 40rem) { .wedid { grid-template-columns: 1fr; } .wedid-arrow { transform: rotate(90deg); padding: .4rem 0; } }

.navbar .logo, header .logo { color: var(--brand-deep); }
section > h2, .card > h2:first-child { text-transform: none; letter-spacing: -.005em; font-size: 1.4rem; font-weight: 600; border-bottom: 1px solid var(--rule-soft); padding-bottom: .5rem; margin: 0 0 1rem; color: var(--brand-deep); }
.stepper { margin: 1.25rem 0 1.75rem; }
fieldset { border: 0; padding: 0; margin: 0 0 1rem; min-width: 0; }
legend { padding: 0; margin-bottom: .4rem; }
.row2 > .form-group { margin-top: 0; margin-bottom: 0; }
@media (min-width: 64.01rem) { .nav-menu a { padding: .4rem .5rem; font-size: .88rem; } .logo { font-size: 1.4rem; } }
