/*
 * Injury Lifeline public site. Colours are the organisation's own brand row
 * (drizzle/0164_tenant_brand.sql), so the site and the app look the same.
 * No web fonts, no scripts, nothing loaded from anywhere else.
 */
:root {
  --ground: #000000;
  --panel: #0b1117;
  --line: #1c2733;
  --ink: #ffffff;
  --ink-muted: #93a6b5;
  --accent: #059cf0;
  --accent-fill: #0a63ae;
  --accent-ink: #ffffff;
  --hold: #f5b942;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent-fill); color: var(--accent-ink); padding: 8px 12px;
}
.skip:focus { left: 16px; }

.wrap { max-width: 46rem; margin: 0 auto; padding: 0 16px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px 16px; padding-top: 12px; padding-bottom: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; }
.brand img { width: 40px; height: 40px; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; font-size: 15px; }
.site-nav a { color: var(--ink-muted); text-decoration: none; padding: 6px 0; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); }
.site-nav .lang {
  color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px;
}

/* Main */
main { padding: 32px 0 48px; }
h1 { font-size: 2rem; line-height: 1.2; margin: 0 0 12px; }
h2 { font-size: 1.3rem; line-height: 1.3; margin: 40px 0 8px; }
h3 { font-size: 1.05rem; margin: 20px 0 4px; }
p, ul { margin: 0 0 14px; }
ul { padding-left: 1.25rem; }
li { margin-bottom: 6px; }
.lede { font-size: 1.15rem; color: var(--ink); }
.muted { color: var(--ink-muted); }

.hero { text-align: center; padding: 8px 0 8px; }
.hero img { width: min(280px, 70vw); height: auto; }
.tagline { color: var(--ink-muted); letter-spacing: 0.04em; margin: 4px 0 0; }
.tagline strong { color: var(--accent); letter-spacing: normal; }

.cards { display: grid; gap: 12px; margin: 16px 0 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .cards { grid-template-columns: 1fr 1fr; } }
.cards li, .panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; margin: 0;
}
.cards h3 { margin-top: 0; color: var(--accent); }
.cards p { margin: 0; color: var(--ink-muted); }

.contact dt { color: var(--ink-muted); font-size: 0.9rem; margin-top: 12px; }
.contact dt:first-child { margin-top: 0; }
.contact dd { margin: 0; font-size: 1.1rem; overflow-wrap: anywhere; }

.button {
  display: inline-block; background: var(--accent-fill); color: var(--accent-ink);
  text-decoration: none; font-weight: 600; border-radius: 999px; padding: 10px 20px;
}

/*
 * A decision nobody has made yet. Loud on purpose: it must never reach the
 * live site. None is on a page today; kept so a held part pasted back from
 * docs/injury-lifeline/site-placeholders.md shows yellow at once.
 */
.placeholder {
  border: 2px dashed var(--hold); border-radius: 12px; padding: 12px 16px; margin: 0 0 14px;
  color: var(--hold); background: rgba(245, 185, 66, 0.08);
}
.placeholder strong { display: block; letter-spacing: 0.05em; }
span.placeholder { display: inline-block; padding: 2px 10px; margin: 0; border-width: 1px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); color: var(--ink-muted); font-size: 14px; }
.site-footer .wrap { padding-top: 20px; padding-bottom: 32px; }
.site-footer p { margin: 0 0 6px; }
.site-footer a { color: var(--ink-muted); }
.panel > h2:first-child { margin-top: 0; }
