/* ===========================================================================
   aznursinghomefails.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;

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

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

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

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

/* Serif headings read as editorial/credible. */
h1, h2, h3, h4 { font-family: var(--anf-serif); color: var(--anf-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 ---------------------------------------------------------- */
.anf-wordmark {
  font-family: var(--anf-serif);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  color: var(--anf-ink);
  text-decoration: none;
  line-height: 1;
  display: inline-block;
}
.anf-wordmark span { color: var(--cnvs-themecolor); }
#header.dark .anf-wordmark, .anf-wordmark-footer { color: #fff; }
.anf-wordmark-footer { font-size: 1.6rem; }
.anf-wordmark-footer span { color: #8fb0da; }

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

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

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

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

/* ---- Status + role badges (semantic only) ----------------------------- */
.anf-badge {
  display: inline-block;
  font-family: var(--anf-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;
}
.anf-badge.is-active     { color: var(--anf-flag); }
.anf-badge.is-escalated  { color: var(--anf-flag); background: rgba(154,42,42,.06); }
.anf-badge.is-monitoring { color: var(--anf-amber); }
.anf-badge.is-resolved   { color: var(--anf-green); }
.anf-role {
  display: inline-block;
  font-family: var(--anf-mono);
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--anf-faint);
  border: 1px solid var(--anf-rule);
  border-radius: .28rem;
  padding: .28em .55em;
  background: var(--anf-soft);
}

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

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

/* ---- s.3.5: documented record vs. assessment, visually distinct -------- */
.anf-record { margin: 1.5rem 0; }
.anf-record-item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--anf-rule);
}
.anf-record-date {
  font-family: var(--anf-mono);
  font-size: .8rem;
  color: var(--anf-muted);
  white-space: nowrap;
}
.anf-source {
  display: block;
  margin-top: .4rem;
  font-size: .8rem;
  color: var(--anf-faint);
}
.anf-source .anf-source-type {
  font-family: var(--anf-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. */
.anf-assessment {
  margin: 2rem 0;
  padding: 1.3rem 1.5rem;
  border: 1px dashed var(--anf-line);
  border-radius: .4rem;
  background: #fffdf7;
}
.anf-assessment .anf-brief-label { color: var(--anf-amber); }
.anf-assessment::before {
  content: "Context — commentary";
  display: block;
  font-family: var(--anf-mono);
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--anf-amber);
  margin-bottom: .6rem;
}

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

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

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

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

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

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

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

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