/* Rights After a Hospital Death - standalone dark theme */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/inter-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/source-serif-4-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/source-serif-4-latin-600-normal.woff2') format('woff2');
}

:root {
  --bg: #1a1a1a;
  --surface: #232323;
  --surface-2: #2a2a2a;
  --text: #f5f5f5;
  --muted: #c4c4c4;
  --accent: #8fbac4;
  --accent-hover: #b2d4dc;
  --border: #383838;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { font-size: 18px; scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 1.0625rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Source Serif 4', Georgia, serif;
  color: var(--accent);
  line-height: 1.3;
  font-weight: 600;
}

a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; transition: color 0.2s; }
a:hover { color: var(--accent-hover); }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.skip-link {
  position: absolute; top: -100%; left: 1rem;
  padding: 0.5rem 1rem; background: var(--accent); color: var(--bg);
  font-size: 0.85rem; font-weight: 600; border-radius: 4px; z-index: 200;
  text-decoration: none;
}
.skip-link:focus { top: 0.5rem; }

/* Top bar */
.rad-top {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.rad-top-inner {
  max-width: 760px; margin: 0 auto; padding: 1rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
}
.rad-top-inner .rad-home {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1rem; font-weight: 600; color: var(--text);
  text-decoration: none;
}
.rad-top-inner .rad-home:hover { color: var(--accent); }
.rad-back {
  font-size: 0.8rem; color: var(--muted); text-decoration: none;
  letter-spacing: 0.01em;
}
.rad-back:hover { color: var(--accent); }

/* Main */
.rad-main { max-width: 760px; margin: 0 auto; padding: 3rem 1.5rem 4rem; }

.rad-breadcrumb {
  font-size: 0.8rem; margin-bottom: 1.5rem; color: var(--muted);
  letter-spacing: 0.04em; text-transform: uppercase;
}
.rad-breadcrumb a { color: var(--muted); text-decoration: none; }
.rad-breadcrumb a:hover { color: var(--accent); }

article h1 { font-size: 2.1rem; margin-bottom: 1.25rem; }
article h2 { font-size: 1.4rem; margin: 2.75rem 0 1rem; }
article h3 { font-size: 1.1rem; margin: 2rem 0 0.75rem; color: var(--text); }

.rad-lead { font-size: 1.2rem; color: var(--muted); margin-bottom: 1rem; line-height: 1.6; }

article p { margin-bottom: 1.25rem; }
article ul, article ol { margin: 0 0 1.25rem 1.4rem; }
article li { margin-bottom: 0.6rem; }
article strong { color: var(--text); font-weight: 600; }

.rad-callout {
  background: var(--surface);
  border-left: 3px solid var(--accent);
  border-radius: 0 6px 6px 0;
  padding: 1.1rem 1.4rem;
  margin: 1.75rem 0;
  color: var(--muted);
}
.rad-callout strong { color: var(--text); }
.rad-callout p:last-child { margin-bottom: 0; }

/* Template letters / documents */
.rad-template {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.5rem 1.6rem;
  margin: 1.5rem 0 2rem;
}
.rad-template-label {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--accent);
  display: block; margin-bottom: 1rem;
}
.rad-template pre {
  font-family: 'Inter', -apple-system, sans-serif;
  white-space: pre-wrap;
  word-wrap: break-word;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text);
}

/* Fact list */
.rad-facts {
  list-style: none; margin: 1.75rem 0; padding: 0;
  border-top: 1px solid var(--border);
}
.rad-facts li {
  padding: 0.85rem 0; border-bottom: 1px solid var(--border);
  margin: 0; display: flex; gap: 1rem;
}
.rad-facts .k {
  flex: 0 0 9rem; color: var(--accent); font-size: 0.85rem;
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em;
  padding-top: 0.1rem;
}
.rad-facts .v { flex: 1; color: var(--text); }

/* Guide index (landing + footer of each page) */
.rad-guides {
  margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid var(--border);
}
.rad-guides h2 { font-size: 1.2rem; margin-bottom: 1.25rem; }
.rad-group { margin-bottom: 1.75rem; }
.rad-group:last-child { margin-bottom: 0; }
.rad-group h3 {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 0.25rem;
}
.rad-guide-list { list-style: none; margin: 0; padding: 0; }
.rad-guide-list li {
  margin: 0; border-bottom: 1px solid var(--border);
}
.rad-guide-list li:first-child { border-top: 1px solid var(--border); }
.rad-guide-list a {
  display: block; padding: 1rem 0; text-decoration: none; color: var(--text);
}
.rad-guide-list a:hover { color: var(--accent); }
.rad-guide-list .num {
  color: var(--accent); font-size: 0.8rem; font-weight: 600;
  margin-right: 0.6rem;
}
.rad-guide-list .desc {
  display: block; color: var(--muted); font-size: 0.88rem; margin-top: 0.15rem;
}

/* Board contact blocks */
.rad-board { margin: 0 0 1.5rem; }
.rad-board h3 { font-size: 1.15rem; color: var(--accent); margin: 2rem 0 0.5rem; }
.rad-board .rad-facts { margin: 0; }
.rad-board .rad-facts .k { flex-basis: 7.5rem; }

/* Landing intro */
.rad-intro h1 { font-size: 2.4rem; margin-bottom: 1.5rem; }
.rad-intro .rad-lead { margin-bottom: 1.5rem; }

/* Disclaimer + updated */
.rad-disclaimer {
  margin-top: 3rem; padding: 1.1rem 1.4rem;
  background: var(--surface-2); border-radius: 6px;
  font-size: 0.88rem; color: var(--muted); line-height: 1.6;
}
.rad-updated {
  margin-top: 1.25rem; font-size: 0.8rem; color: var(--muted);
}

/* Footer */
.rad-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
}
.rad-footer-inner {
  max-width: 760px; margin: 0 auto;
  font-size: 0.8rem; color: var(--muted);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.rad-footer a { color: var(--muted); }
.rad-footer a:hover { color: var(--accent); }

@media (max-width: 600px) {
  html { font-size: 16px; }
  .rad-main { padding: 2rem 1.25rem 3rem; }
  article h1 { font-size: 1.75rem; }
  .rad-intro h1 { font-size: 1.9rem; }
  .rad-facts li { flex-direction: column; gap: 0.2rem; }
  .rad-facts .k { flex-basis: auto; }
  .footer-inner, .rad-footer-inner { flex-direction: column; }
}
