/* acumen-healthcare.com — theme_08 Minimalist Magazine Calculator
   bg #ffffff / surface #f8fafc / ink #0f172a / accent #6d28d9 / muted #475569 */
:root {
  --bg: #ffffff;
  --surface: #f8fafc;
  --ink: #0f172a;
  --accent: #6d28d9;
  --muted: #475569;
  --line: #e2e8f0;
  --ok: #047857;
  --warn: #b45309;
  --fail: #b91c1c;
  --serif: Charter, Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
}
.wrap { max-width: 960px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; }
h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); margin: 0.2em 0 0.4em; letter-spacing: -0.01em; }
h2 { font-size: 1.9rem; margin: 0 0 0.6em; }
h3 { font-size: 1.25rem; margin: 0 0 0.5em; }
a { color: var(--accent); }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9em; background: var(--surface); padding: 0.1em 0.35em; border-radius: 4px; }
.muted { color: var(--muted); font-size: 0.92rem; }

/* header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.header-row { display: flex; align-items: baseline; justify-content: space-between; padding-top: 18px; padding-bottom: 18px; gap: 16px; flex-wrap: wrap; }
.brand { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; color: var(--ink); text-decoration: none; }
.brand-dot { color: var(--accent); }
.site-nav a { color: var(--muted); text-decoration: none; margin-left: 20px; font-size: 0.95rem; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--accent); }

/* disclosure banner — above the fold */
.disclosure-banner { background: var(--surface); border-bottom: 1px solid var(--line); font-size: 0.88rem; color: var(--muted); }
.disclosure-banner .wrap { padding-top: 10px; padding-bottom: 10px; }
.disclosure-banner strong { color: var(--ink); }

/* hero */
.hero { padding: 64px 24px 40px; }
.kicker { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem; color: var(--accent); font-weight: 600; margin: 0 0 12px; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 46em; margin: 0; }

/* sections */
.section { padding: 40px 24px 24px; }

/* modules */
.module {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px;
  margin: 20px 0;
}
.mod-num { display: inline-block; min-width: 2.6em; color: var(--accent); font-family: var(--sans); font-size: 0.85em; font-weight: 700; letter-spacing: 0.05em; }
.preset-row { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.preset-row label { font-weight: 600; font-size: 0.9rem; color: var(--muted); }
select, input {
  font: inherit;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
}
select { min-width: 22em; max-width: 100%; }
select:focus-visible, input:focus-visible, button:focus-visible, summary:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.config-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px 18px; }
.config-grid label { display: flex; flex-direction: column; gap: 6px; font-size: 0.85rem; color: var(--muted); font-weight: 600; }
.config-grid input, .config-grid select { width: 100%; }
.error-line { min-height: 1.4em; color: var(--fail); font-weight: 600; margin: 14px 0 0; }

/* medical note */
.medical-note {
  background: #fef3c7;
  border: 1px solid #f59e0b;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 0.92rem;
  color: #78350f;
  margin: 0 0 8px;
}

/* metrics strip */
.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  margin: 20px 0;
}
.metric { background: var(--bg); padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.metric-k { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.metric-v { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; }
#m-band[data-band="strong"] { color: var(--ok); }
#m-band[data-band="fair"] { color: var(--accent); }
#m-band[data-band="needs-attention"] { color: var(--warn); }
#m-band[data-band="low"], #m-band[data-band="invalid"] { color: var(--fail); }

/* charts */
.chart { width: 100%; height: auto; display: block; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .axis { fill: var(--muted); font-size: 11px; font-family: var(--sans); }
.chart .legend { font-size: 12px; font-family: var(--sans); }
.legend-s, .series-s { fill: var(--accent); stroke: var(--accent); }
.legend-p, .series-p { fill: var(--muted); stroke: var(--muted); }
.legend-e, .series-e { fill: var(--ok); stroke: var(--ok); }
.series-s { stroke-width: 2.5; }
.series-p { stroke-width: 2; stroke-dasharray: 6 4; }
.series-e { stroke-width: 2.5; }
.dot-e { fill: var(--ok); }

/* schedule day grid */
.day-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin-top: 12px; }
.day-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: center;
}
.day-name { font-family: var(--serif); font-weight: 700; font-size: 1rem; }
.day-focus { font-size: 0.8rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.day-min { font-size: 0.9rem; font-weight: 600; color: var(--accent); }
.day-rest .day-min { color: var(--muted); font-weight: 400; }

/* tables */
.edge-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; margin-top: 10px; }
.edge-table th, .edge-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.edge-table th { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.ref-table td:first-child { font-weight: 600; }
.grade { font-weight: 700; }
.grade-A { color: var(--ok); }
.grade-B { color: var(--accent); }
.edge-pass td:last-child { color: var(--ok); font-weight: 700; }
.edge-fail td:last-child { color: var(--fail); font-weight: 700; }

/* checklist */
.checklist { list-style: none; margin: 0; padding: 0; }
.check {
  display: grid;
  grid-template-columns: 3.5em 1fr auto;
  gap: 4px 14px;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.check:last-child { border-bottom: none; }
.check-id { font-family: ui-monospace, monospace; font-size: 0.85rem; color: var(--accent); font-weight: 700; }
.check-detail { grid-column: 2; color: var(--muted); font-size: 0.88rem; }
.check-status { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; }
.check-pass .check-status { color: var(--ok); }
.check-warn .check-status { color: var(--warn); }
.check-fail .check-status { color: var(--fail); }
.check .check-label { grid-column: 2; }
.check-pass .check-status, .check-warn .check-status, .check-fail .check-status { grid-column: 3; grid-row: 1 / span 2; align-self: center; }

/* export */
.export-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
button {
  font: inherit; font-weight: 600; font-size: 0.92rem;
  background: var(--ink); color: var(--bg);
  border: none; border-radius: 6px; padding: 10px 18px; cursor: pointer;
}
button:hover { background: var(--accent); }
.receipt {
  background: var(--ink); color: #e2e8f0;
  padding: 16px; border-radius: 8px;
  font-size: 0.8rem; line-height: 1.5; overflow-x: auto;
  max-height: 320px; overflow-y: auto;
}
.receipt code, p code { background: transparent; padding: 0; }

/* faq */
details { border-bottom: 1px solid var(--line); padding: 14px 0; }
details summary { cursor: pointer; font-family: var(--serif); font-size: 1.1rem; font-weight: 600; }
details p { color: var(--muted); max-width: 46em; }

/* footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 48px; padding: 28px 0 40px; background: var(--surface); }
.site-footer .wrap p { margin: 6px 0; font-size: 0.9rem; color: var(--muted); }
.site-footer nav a { margin-right: 18px; font-size: 0.9rem; }

@media (max-width: 640px) {
  .check { grid-template-columns: 3em 1fr; }
  .check-detail { grid-column: 1 / -1; }
  select { min-width: 0; width: 100%; }
  .site-nav a { margin-left: 12px; }
}
