/* chrome.css: the DecisionIndex site chrome (tokens, base type, nav, buttons, footer).
   Copied verbatim from the inline <style> blocks in index.html on 2026-10-04 so other pages wear the
   same header, type and buttons. Linked from /decide today; the home can adopt it later by replacing
   the same rules in its inline styles with <link rel="stylesheet" href="/chrome.css" />. */

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

:root {
  --navy: #1B2A4A;
  --navy-deep: #131f38;
  --navy-mid: #1e3050;
  --navy-card: #22355a;
  --teal: #0D7377;
  --teal-light: #14a4a9;
  --teal-muted: rgba(13, 115, 119, 0.15);
  --teal-border: rgba(13, 115, 119, 0.3);
  --white: #ffffff;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 12px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--navy-deep);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: 'Manrope', Manrope, Arial, sans-serif; }

/* ─── NAV ─── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(19, 31, 56, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-mark {
  width: 36px;
  height: 36px;
  background: var(--teal);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  color: #fff;
  flex-shrink: 0;
}

.logo-text {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.logo-text span { color: var(--teal-light); }

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--teal-light); }

.nav-cta {
  background: var(--teal);
  color: #fff;
  padding: 8px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  transition: background 0.2s;
}

.nav-cta:hover { background: var(--teal-light); }

/* ─── BUTTONS ─── */
/* .btn and .btn.ghost are the class names the /decide tool renders (decide.js builds its Print and Copy
   buttons with them), listed beside the home's own classes so both wear this one look. */
.btn-primary,
.btn:not(.ghost) {
  background: var(--teal);
  color: #fff;
  padding: 13px 28px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary:hover,
.btn:not(.ghost):hover { background: var(--teal-light); transform: translateY(-1px); }

.btn-ghost,
.btn.ghost {
  background: transparent;
  color: var(--text-muted);
  padding: 13px 24px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.12);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-ghost:hover,
.btn.ghost:hover { color: var(--text); border-color: rgba(255,255,255,0.25); }

/* ─── FOOTER ─── */
footer {
  background: var(--navy-deep);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 3rem 2rem 2rem;
}

/* ─── RESPONSIVE (nav lines only) ─── */
@media (max-width: 900px) {
  .nav-links { display: none; }
}

@media (max-width: 580px) {
  /* Keep the nav CTA on one line and vertically centred in the 64px bar */
  nav { padding: 0 16px; gap: 8px; }
  .logo-mark { width: 32px; height: 32px; font-size: 16px; }
  .nav-logo { gap: 8px; min-width: 0; }
  .logo-text { font-size: 1rem; }
  .nav-cta { white-space: nowrap; flex-shrink: 0; min-height: 44px; display: inline-flex; align-items: center; padding: 0 10px; font-size: 0.78rem; }
}

/* tap targets >= 44px (from the second <style> block in index.html) */
.nav-logo,.logo,nav a:first-child{min-height:44px;display:inline-flex;align-items:center}
footer a{display:inline-block;padding:14px 6px}
