/* AIPM Award interest-capture form: STAGING scaffold styles.
   Brand tokens mirror the live pmairevolution.com palette (and the award-page
   preview). On integration into the master site, bind to the site's own tokens
   and apply per-instance heading sizes; do NOT add a global heading size ramp
   (that was the June 2026 regression). House style: ASCII only, no em/en-dash. */

:root {
  --green: #009966;
  --green-700: #00734d;
  --green-800: #005c3e;
  --orange: #ed7406;
  --red: #ef3b39;
  --gold: #ffcb05;
  --ink: #2b2a29;
  --body: #4b5563;
  --muted: #6a7282;
  --bg: #f5f5f4;
  --card: #ffffff;
  --line: #e7e5e4;
  --pink: #fdeceb;
  --gradient: linear-gradient(90deg, var(--green) 0%, var(--gold) 50%, var(--red) 100%);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
}

.brand-gradient { height: 5px; background: var(--gradient); }

.wrap { max-width: 40rem; margin: 0 auto; padding: 2rem 1.25rem 4rem; }

.intro { margin-bottom: 1.75rem; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--green-700);
  margin: 0 0 0.4rem;
}
.intro h1 { color: var(--ink); font-size: 1.9rem; line-height: 1.15; margin: 0 0 0.75rem; }
.lede { font-size: 1.05rem; margin: 0 0 0.75rem; }
.privacy-line { font-size: 0.9rem; color: var(--muted); margin: 0; }
a { color: var(--green-700); }

form { display: grid; gap: 1.1rem; }

.field { display: grid; gap: 0.35rem; }
label { font-weight: 600; color: var(--ink); font-size: 0.95rem; }
.req { color: var(--red); }
.opt { color: var(--muted); font-weight: 400; font-size: 0.85rem; }

input[type="text"], input[type="email"], textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  color: var(--ink);
  background: var(--card);
}
input:focus-visible, textarea:focus-visible, .check input:focus-visible, button:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
}
textarea { resize: vertical; }

.segments { border: 1px solid var(--line); border-radius: 10px; padding: 0.9rem 1rem; background: var(--card); }
.segments legend { font-weight: 700; color: var(--ink); padding: 0 0.4rem; }
.check { display: flex; gap: 0.55rem; align-items: flex-start; font-weight: 400; color: var(--body); margin: 0.4rem 0; cursor: pointer; }
.check input { margin-top: 0.2rem; flex: none; }
.hint { font-size: 0.85rem; color: var(--muted); margin: 0.6rem 0 0; }

.consent .check { font-size: 0.95rem; }

.actions { margin-top: 0.4rem; }
.btn {
  display: inline-block;
  border: none;
  border-radius: 999px;
  padding: 0.75rem 1.8rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}
/* green-700 clears WCAG AA contrast for white text (award-page UX fix). */
.btn-primary { background: var(--green-700); color: #fff; }
.btn-primary:hover { background: var(--green-800); }
.btn-primary[disabled] { opacity: 0.6; cursor: default; }

.form-status { margin: 0.4rem 0 0; font-weight: 600; min-height: 1.2em; }
.form-status.is-error { color: var(--red); }
.form-status.is-ok { color: var(--green-700); }

/* Document pages (the privacy notice). Browser-default heading sizes give a real
   ramp here, which is fine for a document; only color and spacing are tuned. */
.doc { max-width: 48rem; margin: 0 auto; padding: 2rem 1.25rem 4rem; }
.doc h1, .doc h2, .doc h3 { color: var(--ink); line-height: 1.2; }
.doc h1 { margin: 0.5rem 0 0.25rem; }
.doc h2 { margin: 2rem 0 0.5rem; border-top: 1px solid var(--line); padding-top: 1.25rem; }
.doc h3 { margin: 1.5rem 0 0.4rem; font-size: 1.05rem; }
.doc .doc-meta { color: var(--muted); font-size: 0.9rem; }
.doc .callout { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--green); border-radius: 8px; padding: 0.9rem 1.1rem; }
.doc .draft-banner { background: var(--pink); border: 1px solid var(--red); border-radius: 8px; padding: 0.75rem 1rem; color: var(--ink); font-weight: 600; }
.doc table { border-collapse: collapse; width: 100%; margin: 1rem 0; font-size: 0.95rem; }
.doc th, .doc td { border: 1px solid var(--line); padding: 0.5rem 0.7rem; text-align: left; vertical-align: top; }
.doc th { background: var(--bg); }
.doc .back { display: inline-block; margin-bottom: 1rem; font-weight: 600; }

/* Primary navigation across the reference surfaces (interest / nominate / privacy). */
.topnav { max-width: 40rem; margin: 0 auto; padding: 1rem 1.25rem 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; align-items: center; }
.topnav a { color: var(--green-700); font-weight: 600; font-size: 0.9rem; text-decoration: none; padding: 0.2rem 0; border-bottom: 2px solid transparent; }
.topnav a:hover { border-bottom-color: var(--green-700); }
.topnav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--gold); }
.nav-cta { margin: 0.75rem 0 0; font-size: 0.95rem; font-weight: 600; color: var(--ink); }
