/* ===========================================================================
   azhealthfail.com project styles — Canvas 8 override
   Tone (Work Order s.3.6): sober, document-forward, credible — accountability
   journalism, NOT advocacy-group fundraising or sensationalism. Serif
   headings, hairline rules, footnote-style source citations. The sourced
   "documented record" and the opinion "assessment" are given visually
   distinct treatments (s.3.5). Loaded AFTER Canvas core — overrides only.
   =========================================================================== */

:root {
  /* Sober slate-blue primary — institutional, not alarmist. */
  --cnvs-themecolor: #26456b;
  --cnvs-themecolor-rgb: 38, 69, 107;
  --bs-primary: #26456b;
  --bs-primary-rgb: 38, 69, 107;
  --bs-link-color: #26456b;
  --bs-link-hover-color: #17304e;

  --hf-ink:    #171c22;   /* near-black slate body text */
  --hf-muted:  #55606c;
  --hf-faint:  #7a848f;
  --hf-rule:   #e2e6ea;
  --hf-soft:   #f5f7f9;   /* soft section background */
  --hf-dark:   #10161f;   /* dark hero / footer base */
  --hf-line:   #cfd6dd;

  /* Used sparingly, only for status semantics — never decoratively. */
  --hf-flag:   #9a2a2a;   /* escalated / unresolved */
  --hf-amber:  #8a6d17;   /* monitoring */
  --hf-green:  #2f6b43;   /* resolved */

  --hf-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --hf-mono:  ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

body { color: var(--hf-ink); font-family: "Inter", system-ui, -apple-system, sans-serif; }

/* Serif headings read as editorial/credible. */
h1, h2, h3, h4 { font-family: var(--hf-serif); color: var(--hf-ink); letter-spacing: -0.005em; }
h1 { font-weight: 700; }
h2, h3 { font-weight: 600; }

a { color: var(--bs-link-color); }
a:hover { color: var(--bs-link-hover-color); }

/* ---- Wordmark ---------------------------------------------------------- */
.hf-wordmark {
  font-family: var(--hf-serif);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  color: var(--hf-ink);
  text-decoration: none;
  line-height: 1;
  display: inline-block;
}
.hf-wordmark span { color: var(--cnvs-themecolor); }
#header.dark .hf-wordmark, .hf-wordmark-footer { color: #fff; }
.hf-wordmark-footer { font-size: 1.6rem; }
.hf-wordmark-footer span { color: #8fb0da; }

/* ---- Hero / dark sections --------------------------------------------- */
.hf-hero { background: var(--hf-dark); color: #eef2f6; }
.hf-hero h1, .hf-hero h2 { color: #fff; }
.hf-lead { font-size: 1.16rem; line-height: 1.7; color: #c6d0da; max-width: 46rem; }

.hf-eyebrow, .hf-kicker {
  font-family: var(--hf-mono);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .74rem;
  color: var(--hf-faint);
}
.hf-hero .hf-eyebrow { color: #8fb0da; }

.hf-section-soft { background: var(--hf-soft); }
.hf-rule { border: 0; border-top: 1px solid var(--hf-rule); margin: 2rem 0; }
.hf-muted { color: var(--hf-muted); }

/* ---- Cards (cases, officials, resources) ------------------------------ */
.hf-card {
  display: block;
  height: 100%;
  padding: 1.5rem 1.6rem;
  border: 1px solid var(--hf-rule);
  border-radius: .4rem;
  background: #fff;
  color: var(--hf-ink);
  text-decoration: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.hf-card:hover { border-color: var(--hf-line); box-shadow: 0 6px 22px rgba(16,22,31,.07); color: var(--hf-ink); }
.hf-card h3 { margin: 0 0 .35rem; font-size: 1.24rem; }
.hf-card p { color: var(--hf-muted); margin-bottom: .8rem; }
.hf-more { font-family: var(--hf-mono); font-size: .78rem; letter-spacing: .03em; color: var(--cnvs-themecolor); }
.hf-meta { font-family: var(--hf-mono); font-size: .76rem; color: var(--hf-faint); text-transform: uppercase; letter-spacing: .06em; }

/* ---- Status + role badges (semantic only) ----------------------------- */
.hf-badge {
  display: inline-block;
  font-family: var(--hf-mono);
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: .3em .6em;
  border-radius: .28rem;
  border: 1px solid currentColor;
  line-height: 1;
  vertical-align: middle;
}
.hf-badge.is-active     { color: var(--hf-flag); }
.hf-badge.is-escalated  { color: var(--hf-flag); background: rgba(154,42,42,.06); }
.hf-badge.is-monitoring { color: var(--hf-amber); }
.hf-badge.is-resolved   { color: var(--hf-green); }
.hf-role {
  display: inline-block;
  font-family: var(--hf-mono);
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--hf-faint);
  border: 1px solid var(--hf-rule);
  border-radius: .28rem;
  padding: .28em .55em;
  background: var(--hf-soft);
}

/* ---- Case / official reading layout ----------------------------------- */
.hf-brief { max-width: 48rem; }
.hf-brief-section { margin: 1.8rem 0; }
.hf-brief-label {
  display: block;
  font-family: var(--hf-mono);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .72rem;
  color: var(--hf-faint);
  margin-bottom: .5rem;
}
.hf-brief-section p, .hf-brief-section li { line-height: 1.75; color: #22303c; }

/* The "regulatory gap" callout — the accountability thesis of a case. */
.hf-gap {
  border-left: 3px solid var(--cnvs-themecolor);
  background: var(--hf-soft);
  padding: 1.1rem 1.3rem;
  border-radius: 0 .35rem .35rem 0;
  margin: 1.6rem 0;
}
.hf-gap .hf-brief-label { color: var(--cnvs-themecolor); }

/* ---- s.3.5: documented record vs. assessment, visually distinct -------- */
.hf-record { margin: 1.5rem 0; }
.hf-record-item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--hf-rule);
}
.hf-record-date {
  font-family: var(--hf-mono);
  font-size: .8rem;
  color: var(--hf-muted);
  white-space: nowrap;
}
.hf-source {
  display: block;
  margin-top: .4rem;
  font-size: .8rem;
  color: var(--hf-faint);
}
.hf-source .hf-source-type {
  font-family: var(--hf-mono);
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: .68rem;
  color: var(--cnvs-themecolor);
  margin-right: .4rem;
}

/* The assessment block is deliberately set apart as opinion. */
.hf-assessment {
  margin: 2rem 0;
  padding: 1.3rem 1.5rem;
  border: 1px dashed var(--hf-line);
  border-radius: .4rem;
  background: #fffdf7;
}
.hf-assessment .hf-brief-label { color: var(--hf-amber); }
.hf-assessment::before {
  content: "Assessment — opinion / fair comment";
  display: block;
  font-family: var(--hf-mono);
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--hf-amber);
  margin-bottom: .6rem;
}

/* ---- Response log ------------------------------------------------------ */
.hf-response-status {
  font-family: var(--hf-mono);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: .25em .5em;
  border-radius: .25rem;
  background: var(--hf-soft);
  border: 1px solid var(--hf-rule);
  color: var(--hf-muted);
}
.hf-response-status.is-none { color: var(--hf-flag); border-color: rgba(154,42,42,.3); }

/* ---- Timeline ---------------------------------------------------------- */
.hf-timeline { list-style: none; padding: 0; margin: 1.2rem 0; }
.hf-timeline li { padding: .7rem 0 .7rem 1.2rem; border-left: 2px solid var(--hf-rule); position: relative; }
.hf-timeline li::before { content: ""; position: absolute; left: -5px; top: 1.05rem; width: 8px; height: 8px; border-radius: 50%; background: var(--cnvs-themecolor); }
.hf-timeline .hf-record-date { display: block; margin-bottom: .2rem; }

/* ---- Documents list ---------------------------------------------------- */
.hf-docs { list-style: none; padding: 0; margin: 1rem 0; }
.hf-docs li { padding: .7rem 0; border-bottom: 1px solid var(--hf-rule); }
.hf-docs a { font-weight: 500; }
.hf-doc-meta { font-family: var(--hf-mono); font-size: .74rem; color: var(--hf-faint); }

/* ---- Tags (entities named / statutes cited) --------------------------- */
.hf-tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.hf-tag {
  font-family: var(--hf-mono);
  font-size: .76rem;
  line-height: 1;
  padding: .42em .7em;
  border: 1px solid var(--hf-rule);
  border-radius: .3rem;
  background: var(--hf-soft);
  color: var(--hf-muted);
  white-space: nowrap;
}

/* ---- Callouts / notes -------------------------------------------------- */
.hf-note {
  border: 1px solid var(--hf-rule);
  border-radius: .4rem;
  background: var(--hf-soft);
  padding: 1.1rem 1.3rem;
  color: var(--hf-muted);
}

/* ---- Empty states ------------------------------------------------------ */
.hf-empty { color: var(--hf-faint); font-style: italic; }

/* ---- Page title band --------------------------------------------------- */
.page-title.hf-title-band { background: var(--hf-soft); border-bottom: 1px solid var(--hf-rule); }

@media (max-width: 767px) {
  .hf-lead { font-size: 1.05rem; }
  .hf-card { padding: 1.25rem 1.3rem; }
}
