/* SPARK Pulse Check page, in the site's own look (assets/site.css and the
   navy and gold palette in build.py): white cards, Inter, navy and gold. */
.pc {
  --pc-navy: #1B2559; --pc-navy-900: #141B45; --pc-navy-950: #0B1030; --pc-navy-100: #E4E8F4; --pc-navy-50: #F3F5FB;
  --pc-gold: #D4A53A; --pc-gold-600: #B8892E; --pc-gold-700: #8F6A1E; --pc-gold-50: #FCF8EE; --pc-gold-100: #F8EDD2; --pc-gold-200: #F1DBA3;
  --pc-line: #E2E8F0; --pc-line-soft: #F1F5F9; --pc-ink: #0F172A; --pc-muted: #64748B;
  color: var(--pc-ink);
}
.pc-card { background: #fff; border: 1px solid var(--pc-line); border-radius: 24px; padding: 28px 32px; margin: 0 0 20px; box-shadow: 0 16px 44px rgba(20, 27, 69, .07); }
.pc-card h2 { color: var(--pc-navy-950); font-size: 1.35rem; font-weight: 600; letter-spacing: -0.03em; margin: 0 0 12px; }
.pc-card h3 { color: var(--pc-navy-900); font-size: 1.05rem; font-weight: 600; letter-spacing: -0.02em; margin: 22px 0 10px; }
.pc-card p { color: #475569; line-height: 1.7; margin: 0 0 12px; font-size: 15px; }
.pc-card b { color: var(--pc-navy-900); }
.pc-muted { color: var(--pc-muted) !important; font-size: 14px !important; }
.pc-kicker { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--pc-gold-700) !important; margin: 0 0 6px !important; }
.pc-lenses { display: grid; grid-template-columns: 180px 1fr; margin: 4px 0 14px; border: 1px solid var(--pc-line); border-radius: 18px; overflow: hidden; }
.pc-lenses dt { font-weight: 600; color: var(--pc-navy); background: var(--pc-gold-50); padding: 12px 16px; border-bottom: 1px solid var(--pc-line); font-size: 14px; }
.pc-lenses dd { margin: 0; padding: 12px 16px; border-bottom: 1px solid var(--pc-line); color: #475569; font-size: 14px; line-height: 1.6; }
.pc-lenses dt:last-of-type, .pc-lenses dd:last-of-type { border-bottom: 0; }
fieldset.pc-card { min-width: 0; }
.pc-about legend { padding: 0; float: left; width: 100%; } /* a floated legend sits inside the card */
.pc-about legend + * { clear: both; }
.pc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.pc-grid label { display: flex; flex-direction: column; gap: 8px; font-weight: 600; font-size: 14px; color: var(--pc-navy-900); }
.pc-grid input, .pc-grid select { font: inherit; font-weight: 400; font-size: 15px; color: var(--pc-ink); border: 1px solid var(--pc-line); border-radius: 14px; padding: 0 14px; height: 48px; background: #fff; }
.pc-grid input:focus, .pc-grid select:focus { outline: 3px solid rgba(212, 165, 58, .35); border-color: var(--pc-gold); }
.pc-req { color: var(--pc-gold-600); }
.pc-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* The five pillars: the letter tile and title, as on the home page's SPARK cards */
.pc-pillar { padding: 0; overflow: hidden; }
.pc-pillar header { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 22px 28px; border-bottom: 1px solid var(--pc-line); background: linear-gradient(to bottom, #fff, var(--pc-gold-50)); }
.pc-letter { display: flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 12px; background: var(--pc-navy); color: #E8C567; font-size: 18px; font-weight: 700; }
.pc-pillar header h2 { margin: 0; font-size: 1.2rem; }
.pc-pillar header h2 span { display: block; margin-top: 2px; font-size: 14px; font-weight: 500; letter-spacing: 0; color: var(--pc-gold-700); }
.pc-pillar header p { margin: 4px 0 0; font-size: 14px; color: var(--pc-muted); }
.pc-pillar header .pc-scale { margin: 0; font-size: 12px; font-weight: 600; color: var(--pc-muted); text-align: right; }
.pc-pillar header .pc-scale span { display: block; }
.pc-q { border: 0; border-bottom: 1px solid var(--pc-line-soft); margin: 0; padding: 16px 28px; display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; min-width: 0; }
.pc-q:last-child { border-bottom: 0; }
.pc-q legend { display: contents; }
.pc-q legend span { display: block; line-height: 1.5; font-size: 15px; color: var(--pc-navy-900); font-weight: 500; }
.pc-n { color: var(--pc-gold-700); font-weight: 600; margin-right: 2px; }
.pc-q small { display: block; color: var(--pc-muted); font-size: 12.5px; font-weight: 400; margin-top: 4px; }
.pc-q.pc-missing { background: var(--pc-gold-50); box-shadow: inset 4px 0 0 var(--pc-gold); }
.pc-dots { display: flex; gap: 8px; }
.pc-dots label { position: relative; cursor: pointer; }
.pc-dots input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.pc-dots span { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 999px; border: 1px solid var(--pc-line); background: #fff; color: var(--pc-navy); font-weight: 600; font-size: 15px; transition: background .2s, border-color .2s, color .2s; }
.pc-dots label:hover span { border-color: var(--pc-gold-200); background: var(--pc-gold-50); }
.pc-dots input:checked + span { background: var(--pc-navy); border-color: var(--pc-navy); color: #fff; box-shadow: 0 8px 18px rgba(27, 37, 89, .22); }
.pc-dots input:focus-visible + span { outline: 3px solid var(--pc-gold); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.pc-consent { display: flex; gap: 12px; align-items: flex-start; line-height: 1.6; font-size: 14px; color: #475569; }
.pc-consent input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--pc-navy); }
.pc a:not(.btn) { color: var(--pc-gold-700); text-decoration: underline; text-underline-offset: 3px; }
.pc-progress { color: var(--pc-muted) !important; margin: 16px 0 12px !important; font-size: 14px !important; }
.pc-alert { background: var(--pc-gold-50); border: 1px solid var(--pc-gold-200); color: var(--pc-navy-900) !important; border-radius: 16px; padding: 12px 16px; }

/* Results */
.pc-result:focus { outline: none; }
.pc-overall { display: flex; gap: 24px; align-items: center; margin: 12px 0 4px; }
.pc-score { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 132px; height: 132px; border-radius: 28px; background: linear-gradient(145deg, #1B2559, #141B45); color: #fff; box-shadow: 0 18px 38px rgba(27, 37, 89, .28); }
.pc-score b { color: #E8C567; font-size: 3rem; font-weight: 600; letter-spacing: -0.05em; line-height: 1; }
.pc-score span { margin-top: 6px; font-size: 12px; color: rgba(255, 255, 255, .7); }
.pc-overall h2 { font-size: 2rem; margin-bottom: 6px; }
.pc-sent { background: var(--pc-navy-50); border-radius: 16px; padding: 12px 16px; margin: 14px 0 0 !important; font-size: 14px !important; }
.pc-sent.pc-warn { background: var(--pc-gold-50); }
.pc-bar { display: grid; grid-template-columns: 150px 1fr 44px; gap: 14px; align-items: center; margin: 10px 0; font-size: 15px; color: var(--pc-navy-900); font-weight: 500; }
.pc-bar span small { display: block; color: var(--pc-muted); font-size: 12px; font-weight: 400; }
.pc-bar i { display: block; height: 10px; border-radius: 999px; background: var(--pc-line-soft); overflow: hidden; }
.pc-bar i b { display: block; height: 100%; border-radius: 999px; background: var(--pc-navy); }
.pc-bar em { font-style: normal; font-weight: 600; text-align: right; color: var(--pc-navy-950); }
.pc-bar.low span, .pc-bar.low em { color: var(--pc-gold-700); font-weight: 600; }
.pc-bar.low i b { background: var(--pc-gold); }
.pc-moves { padding-left: 0; margin: 0; list-style: none; }
.pc-moves li { margin: 10px 0; padding: 14px 16px; border: 1px solid var(--pc-line); border-radius: 16px; line-height: 1.6; font-size: 15px; color: #475569; }
.pc-moves b { display: block; color: var(--pc-navy-900); margin-bottom: 2px; }
.pc-callout { background: var(--pc-gold-50); border: 1px solid var(--pc-gold-200); border-radius: 20px; padding: 16px 20px; margin-top: 16px; }
.pc-callout p:last-child { margin-bottom: 0; }
.pc-split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px 0 12px; }
.pc-split div { border: 1px solid var(--pc-line); border-radius: 18px; padding: 14px 18px; display: flex; justify-content: space-between; align-items: center; color: var(--pc-muted); font-size: 14px; }
.pc-split b { color: var(--pc-navy-950); font-size: 1.8rem; font-weight: 600; letter-spacing: -0.04em; }
.pc-two { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.pc-two h2 { font-size: 1.2rem; }
.pc-two ol { padding-left: 20px; margin: 0; } .pc-two li { margin: 10px 0; line-height: 1.55; font-size: 15px; color: #475569; }
.pc-note { text-align: center; margin: 6px 0 20px !important; }
.pc-cta { position: relative; overflow: hidden; border-radius: 28px; padding: 32px; color: #fff; display: flex; flex-wrap: wrap; gap: 22px; align-items: center; justify-content: space-between; }
.pc-cta > :not(.grid-tex-dark) { position: relative; z-index: 1; }
.pc-cta h2 { color: #fff; font-size: 1.6rem; font-weight: 600; letter-spacing: -0.04em; margin: 0 0 8px; }
.pc-cta h2 span { color: #E8C567; }
.pc-cta p { margin: 0; color: rgba(255, 255, 255, .7); line-height: 1.7; max-width: 520px; }
.pc-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.pc-link { background: none; border: 0; color: rgba(255, 255, 255, .75); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font: inherit; font-size: 14px; padding: 8px; }
.pc-link:focus-visible { outline: 3px solid var(--pc-gold); outline-offset: 2px; }

@media (max-width: 680px) {
  .pc-card { padding: 22px 20px; }
  .pc-card.pc-pillar { padding: 0; }
  .pc-grid, .pc-two, .pc-lenses { grid-template-columns: 1fr; }
  .pc-lenses dt { border-bottom: 0; padding-bottom: 4px; }
  .pc-pillar header { grid-template-columns: auto 1fr; padding: 18px 20px; }
  .pc-pillar header .pc-scale { grid-column: 1 / -1; text-align: left; }
  .pc-pillar header .pc-scale span { display: inline; margin-right: 12px; }
  .pc-q { grid-template-columns: 1fr; padding: 16px 20px; }
  .pc-dots { justify-content: space-between; }
  .pc-dots span { width: 48px; height: 48px; }
  .pc-bar { grid-template-columns: 100px 1fr 36px; gap: 10px; }
  .pc-overall { flex-direction: column; align-items: flex-start; }
  .pc-cta { padding: 26px 22px; }
}
@media print {
  header, footer, #pulseForm, .pc-actions, .pc-sent, .cross { display: none !important; }
  main > section:first-child { display: none; }
  .pc-card { box-shadow: none; break-inside: avoid; }
  .pc-cta { color: var(--pc-ink); border: 1px solid var(--pc-line); background: #fff !important; }
  .pc-cta h2 { color: var(--pc-navy-950); } .pc-cta p { color: #475569; }
}
