/* BCCA Decisions — shared styles.
   Terracotta matches the app's accent colour (Assets/BCCATerracotta). */
:root {
  --accent: #B04A2F;
  --accent-soft: rgba(176, 74, 47, 0.10);
  --ink: #1c1917;
  --body: #44403c;
  --muted: #78716c;
  --bg: #ffffff;
  --surface: #faf8f7;
  --line: #e7e2df;
  --radius: 14px;
  --measure: 42rem;
}
@media (prefers-color-scheme: dark) {
  :root {
    --accent: #E08060;
    --accent-soft: rgba(224, 128, 96, 0.14);
    --ink: #f5f5f4;
    --body: #d6d3d1;
    --muted: #a8a29e;
    --bg: #16130f;
    --surface: #1f1b17;
    --line: #332c26;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  text-rendering: optimizeLegibility;
}
h1, h2, h3 { color: var(--ink); line-height: 1.2; letter-spacing: -0.02em; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
.wrap { max-width: var(--measure); margin: 0 auto; padding: 0 22px; }
.wide { max-width: 60rem; }

/* Header */
.masthead { border-bottom: 1px solid var(--line); background: var(--bg); }
.masthead .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-top: 18px; padding-bottom: 18px;
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 650; color: var(--ink); text-decoration: none; }
.brand .mark {
  width: 30px; height: 30px; border-radius: 8px; flex: none;
  background: var(--accent); color: #fff;
  display: grid; place-items: center; font-size: 12px; font-weight: 700; letter-spacing: 0.02em;
}
.masthead nav { display: flex; gap: 20px; font-size: 15px; }
.masthead nav a { color: var(--muted); text-decoration: none; }
.masthead nav a:hover { color: var(--accent); }

/* Hero */
.hero { padding: 76px 0 60px; text-align: center; }
.hero h1 { font-size: clamp(2.1rem, 6vw, 3.1rem); margin: 0 0 18px; }
.hero .lede { font-size: 1.15rem; color: var(--body); margin: 0 auto 30px; max-width: 34rem; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--accent);
  background: var(--accent-soft); padding: 6px 13px; border-radius: 999px; margin-bottom: 22px;
}
.cta {
  display: inline-block; background: var(--accent); color: #fff; text-decoration: none;
  font-weight: 600; padding: 13px 30px; border-radius: 999px;
}
.cta:hover { filter: brightness(1.07); }
.cta.pending { background: var(--surface); color: var(--muted); border: 1px solid var(--line); cursor: default; }
.cta.pending:hover { filter: none; }

/* Stats */
.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px; margin: 46px 0;
}
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 18px; text-align: center; }
.stat b { display: block; color: var(--accent); font-size: 1.75rem; letter-spacing: -0.02em; }
.stat span { font-size: 14px; color: var(--muted); }

/* Features */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 16px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.feature h3 { margin: 0 0 8px; font-size: 1.05rem; }
.feature p { margin: 0; font-size: 15px; color: var(--muted); }
section { padding: 30px 0; }
section > .wrap > h2 { font-size: 1.5rem; margin: 0 0 22px; }

/* Prose (privacy page) */
.prose { padding: 48px 0 20px; }
.prose h1 { font-size: 2.1rem; margin: 0 0 8px; }
.prose h2 { font-size: 1.2rem; margin: 38px 0 10px; padding-top: 4px; }
.prose .updated { color: var(--muted); font-size: 15px; margin: 0 0 8px; }
.prose ul { padding-left: 22px; }
.prose li { margin: 7px 0; }
.callout {
  background: var(--accent-soft); border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0; padding: 16px 18px; margin: 26px 0;
  color: var(--ink); font-size: 15.5px;
}
table { border-collapse: collapse; width: 100%; font-size: 15px; margin: 14px 0; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--ink); font-weight: 600; }
.scroller { overflow-x: auto; }

/* Footer */
footer { border-top: 1px solid var(--line); margin-top: 60px; padding: 30px 0 46px; font-size: 14px; color: var(--muted); }
footer .row { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; }
footer nav { display: flex; gap: 18px; }

/* Narrow screens: let the masthead breathe instead of clipping the nav. */
@media (max-width: 640px) {
  .masthead .wrap { flex-wrap: wrap; row-gap: 10px; justify-content: center; }
  .masthead nav { width: 100%; justify-content: center; gap: 22px; }
  .brand { font-size: 15px; }
  .hero { padding: 48px 0 40px; }
  body { font-size: 16px; }
  th, td { padding: 9px 8px; }
}
