/* ============================================================
   DCD Pronouncement Team Interest Survey
   Palette: maroon + gray, white background, white bubbles
   ============================================================ */

:root {
  --maroon: #7A1E2B;
  --maroon-dark: #5E1520;
  --maroon-tint: #F5EBEC;
  --gray-bg: #EDEDEF;
  --gray-line: #D8D8DC;
  --gray-text: #55565B;
  --ink: #24252A;
  --white: #FFFFFF;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 6px 20px rgba(0,0,0,.06);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--gray-bg);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------------- Header ---------------- */
.site-header {
  background: var(--maroon);
  color: var(--white);
  padding: 44px 0 40px;
  border-bottom: 5px solid var(--maroon-dark);
}
.eyebrow {
  margin: 0 0 10px;
  font-size: .8rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 600;
  color: #E8C9CE;
}
.site-header h1 {
  margin: 0;
  font-family: "EB Garamond", Georgia, serif;
  font-weight: 600;
  font-size: 2.1rem;
  line-height: 1.2;
}
.subtitle {
  margin: 14px 0 0;
  color: #EAD3D7;
  font-size: 1.02rem;
}

/* ---------------- Cards ---------------- */
main.wrap { padding-top: 32px; padding-bottom: 48px; }

.card {
  background: var(--white);
  border: 1px solid var(--gray-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px 32px;
  margin-bottom: 26px;
}

.card h2 {
  margin: 0 0 18px;
  font-family: "EB Garamond", Georgia, serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--maroon);
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--maroon-tint);
}
.card h2 .num {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: var(--maroon);
  color: var(--white);
  border-radius: 50%;
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  font-weight: 700;
}

.card p { margin: 0 0 14px; }
.card p:last-child { margin-bottom: 0; }

.callout {
  background: var(--maroon-tint);
  border-left: 4px solid var(--maroon);
  border-radius: 8px;
  padding: 16px 18px;
  margin-top: 18px;
  color: var(--ink);
}

/* space under the policy callout, before the links */
.callout + .policy-link { margin-top: 22px; }

/* ---------------- Lists ---------------- */
.role-list {
  margin: 6px 0 4px;
  padding: 0;
  list-style: none;
}
.role-list li {
  position: relative;
  padding: 8px 0 8px 28px;
  border-bottom: 1px solid var(--maroon-tint);
}
.role-list li:last-child { border-bottom: none; }
.role-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 16px;
  width: 8px;
  height: 8px;
  background: var(--maroon);
  border-radius: 50%;
}

/* ---------------- Policy figure & quote ---------------- */
.policy-figure {
  margin: 0 0 20px;
  background: var(--white);
}
.policy-figure img { display: block; width: 100%; height: auto; }

blockquote {
  margin: 0 0 16px;
  padding: 14px 20px;
  background: var(--gray-bg);
  border-left: 4px solid var(--maroon);
  border-radius: 6px;
  font-style: italic;
  color: var(--ink);
}

.subhead {
  margin: 26px 0 12px;
  padding-top: 18px;
  border-top: 1px solid var(--gray-line);
  font-family: "EB Garamond", Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--maroon);
}

.policy-link { margin-top: 4px; }
.policy-link a {
  color: var(--maroon);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.policy-link a:hover { border-bottom-color: var(--maroon); }

/* ---------------- Chips ---------------- */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 4px 0 4px;
}
.chip {
  background: var(--white);
  border: 1.5px solid var(--maroon);
  color: var(--maroon);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: .92rem;
  font-weight: 600;
}

/* ---------------- Questions ---------------- */
.questions .question {
  border: none;
  margin: 0 0 26px;
  padding: 0 0 22px;
  border-bottom: 1px dashed var(--gray-line);
}
.questions .question:last-of-type { border-bottom: none; }

.questions legend {
  padding: 0;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: 14px;
}
.q-num { color: var(--maroon); font-weight: 700; margin-right: 4px; }
.hint {
  display: inline-block;
  font-weight: 500;
  font-size: .85rem;
  color: var(--gray-text);
  font-style: italic;
}

/* White bubbles where the text is */
.bubble {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border: 1.5px solid var(--gray-line);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.bubble:hover {
  border-color: var(--maroon);
  box-shadow: 0 2px 8px rgba(122,30,43,.10);
}
.bubble input { accent-color: var(--maroon); width: 18px; height: 18px; flex: 0 0 auto; cursor: pointer; }
.bubble span { color: var(--ink); }

/* selected state */
.bubble:has(input:checked) {
  border-color: var(--maroon);
  background: var(--maroon-tint);
}

.bubble--other { flex-wrap: wrap; }
.other-text {
  flex: 1 1 200px;
  min-width: 160px;
  border: none;
  border-bottom: 1.5px solid var(--gray-line);
  padding: 4px 4px;
  font: inherit;
  color: var(--ink);
  background: transparent;
}
.other-text:focus { outline: none; border-bottom-color: var(--maroon); }

/* ---------------- Actions ---------------- */
.actions { margin-top: 26px; }
.submit-btn {
  background: var(--maroon);
  color: var(--white);
  border: none;
  border-radius: 10px;
  padding: 14px 34px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s ease, transform .05s ease;
}
.submit-btn:hover { background: var(--maroon-dark); }
.submit-btn:active { transform: translateY(1px); }
.privacy-note {
  margin: 12px 0 0;
  font-size: .85rem;
  color: var(--gray-text);
}

.thankyou {
  margin-top: 22px;
  background: var(--maroon-tint);
  border: 1px solid var(--maroon);
  border-radius: 10px;
  padding: 22px 24px;
}
.thankyou h3 { margin: 0 0 8px; color: var(--maroon); font-family: "EB Garamond", Georgia, serif; font-size: 1.4rem; }
.thankyou p { margin: 0; }

/* ---------------- Footer ---------------- */
.site-footer {
  background: var(--ink);
  color: #C9CACE;
  padding: 26px 0;
  text-align: center;
}
.site-footer p { margin: 0 0 6px; font-size: .9rem; }
.site-footer .fine { font-size: .78rem; color: #8A8B90; margin-bottom: 0; }

/* ---------------- Responsive ---------------- */
@media (max-width: 560px) {
  .site-header { padding: 34px 0 30px; }
  .site-header h1 { font-size: 1.6rem; }
  .card { padding: 22px 20px; }
  .card h2 { font-size: 1.35rem; }
}

/* ---------------- Password gate ---------------- */
body.locked { overflow: hidden; height: 100vh; }
body.locked .site-header,
body.locked main,
body.locked .site-footer { display: none; }

.gate { display: none; }
body.locked .gate {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  background: var(--maroon);
  padding: 20px;
}
.gate-card {
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 10px 40px rgba(0,0,0,.25);
  padding: 40px 36px;
  width: 100%;
  max-width: 420px;
  text-align: center;
}
.gate-eyebrow {
  margin: 0 0 10px;
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--maroon);
}
.gate-title {
  margin: 0 0 6px;
  font-family: "EB Garamond", Georgia, serif;
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
}
.gate-sub { margin: 0 0 26px; color: var(--gray-text); font-size: .95rem; }
.gate-label {
  display: block;
  text-align: left;
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}
.gate-input {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  border: 1.5px solid var(--gray-line);
  border-radius: 10px;
  margin-bottom: 16px;
}
.gate-input:focus { outline: none; border-color: var(--maroon); }
.gate-btn {
  width: 100%;
  background: var(--maroon);
  color: var(--white);
  border: none;
  border-radius: 10px;
  padding: 13px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s ease;
}
.gate-btn:hover { background: var(--maroon-dark); }
.gate-error { margin: 14px 0 0; color: var(--maroon); font-weight: 600; font-size: .9rem; }

/* ---------------- Print / PDF ---------------- */
@media print {
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  @page { margin: 0.5in; }
  body { background: var(--white); }
  /* Bypass the password gate when printing / exporting to PDF */
  .gate, body.locked .gate { display: none !important; }
  body.locked { overflow: visible; height: auto; }
  body.locked .site-header,
  body.locked .site-footer { display: block !important; }
  body.locked main { display: block !important; }
  .site-header { border-radius: 10px; }
  .card { box-shadow: none; break-inside: auto; }
  .question, .bubble, .callout, .role-list li, .policy-figure, blockquote {
    break-inside: avoid;
  }
  .card h2, legend { break-after: avoid; }
  .actions, .thankyou { display: none; }
  .site-footer { background: none; color: var(--gray-text); }
  .site-footer .fine { color: var(--gray-text); }
}
