/* ===========================================================================
 * Leadership Now PAC — candidate detail page (/candidate/<slug>/)
 *
 * Loaded only on is_singular('candidate') by inc/candidate-template.php.
 * Brand tokens match the [pac_candidates] card system so a detail page reads
 * as the same family as the /candidates/ grid.
 * ======================================================================== */

.pac-cd {
  --cream: #F8F6F1;
  --navy:  #0E2344;
  --tan:   #BDAA77;
  --gray:  #DAD7CF;
  font-family: "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--navy);
}

/* --- Hero band --------------------------------------------------------- */
.pac-cd__hero {
  background: var(--cream);
  padding: 56px 24px 64px;
}

.pac-cd__frame {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 400px) minmax(0, 1fr);
  gap: 0 48px;
  align-items: start;
}

/* --- Photo ------------------------------------------------------------- */
.pac-cd__media {
  position: relative;
  line-height: 0;
}

.pac-cd__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 25%;
  filter: grayscale(100%);
}

.pac-cd__ph {
  aspect-ratio: 4 / 5;
  background: var(--gray);
}

/* Badges reuse the card treatment (.pac-badge is defined by the shortcode's
   inline CSS, which also prints on this page via the More Candidates grid;
   these rules only restate the geometry so the detail page is self-sufficient
   if that grid is ever removed). */
.pac-cd__media .pac-badge {
  position: absolute;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 10px 18px;
  line-height: 1;
  border-radius: 0;
}
.pac-cd__media .pac-badge--status { top: 12px; left: 12px; background: rgba(189,170,119,.88); color: #0E2344; }
.pac-cd__media .pac-badge--flip   { bottom: 12px; right: 12px; background: rgba(242,240,234,.92); color: #0E2344; }

/* --- Content card ------------------------------------------------------ */
.pac-cd__card {
  background: #fff;
  padding: 40px 44px 44px;
}

.pac-cd .pac-cd__eyebrow {
  font-family: "Manrope", "Nunito Sans", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(14,35,68,.6);
  margin: 0 0 14px;
}
.pac-cd .pac-cd__eyebrow a { color: inherit; text-decoration: none; }
.pac-cd .pac-cd__eyebrow a:hover,
.pac-cd .pac-cd__eyebrow a:focus { color: var(--navy); text-decoration: underline; }

.pac-cd .pac-cd__name {
  font-family: "Manrope", "Nunito Sans", sans-serif;
  font-weight: 700;
  font-size: 44px;
  line-height: 1.1;
  letter-spacing: -.01em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0 0 10px;
}

.pac-cd .pac-cd__tags {
  font-size: 17px;
  font-style: italic;
  line-height: 1.4;
  color: rgba(14,35,68,.75);
  margin: 0 0 22px;
}

.pac-cd .pac-cd__flip {
  font-size: 15px !important;
  line-height: 1.5;
  color: var(--navy);
  background: rgba(189,170,119,.22);
  border-left: 4px solid var(--tan);
  padding: 12px 16px;
  margin: 0 0 22px;
}
.pac-cd .pac-cd__flip strong { text-transform: uppercase; letter-spacing: .04em; }

.pac-cd .pac-cd__bio p {
  font-size: 17px !important;
  line-height: 1.7;
  color: var(--navy);
  margin: 0 0 1em;
}
.pac-cd .pac-cd__bio p:last-child { margin-bottom: 0; }

/* --- CTAs -------------------------------------------------------------- */
.pac-cd__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.pac-cd .pac-cd__cta {
  flex: 1 1 240px;
  display: block;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 17px 22px;
  text-decoration: none;
  border-radius: 0;
  transition: opacity .15s ease;
}
.pac-cd .pac-cd__cta--primary   { background: var(--tan); color: var(--navy); }
.pac-cd .pac-cd__cta--secondary { background: #333; color: #fff; }
.pac-cd .pac-cd__cta:hover,
.pac-cd .pac-cd__cta:focus { opacity: .85; }
.pac-cd .pac-cd__cta--primary:hover,
.pac-cd .pac-cd__cta--primary:focus { color: var(--navy); }
.pac-cd .pac-cd__cta--secondary:hover,
.pac-cd .pac-cd__cta--secondary:focus { color: #fff; }

.pac-cd .pac-cd__back {
  margin: 26px 0 0;
  font-size: 14px !important;
}
.pac-cd .pac-cd__back a { color: rgba(14,35,68,.7); text-decoration: none; }
.pac-cd .pac-cd__back a:hover,
.pac-cd .pac-cd__back a:focus { color: var(--navy); text-decoration: underline; }

/* --- More Candidates --------------------------------------------------- */
/* The band itself (navy background, white type) comes from the shortcode's
   .pac-band--dark rules; this only keeps the 100vw band from producing a
   horizontal scrollbar inside the single-post wrapper. */
.pac-cd__more { overflow-x: hidden; }

/* --- Responsive -------------------------------------------------------- */
@media (max-width: 1024px) {
  .pac-cd__frame { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 0 32px; }
  .pac-cd .pac-cd__name { font-size: 38px; }
  .pac-cd__card { padding: 32px 32px 36px; }
}

@media (max-width: 820px) {
  .pac-cd__hero { padding: 32px 20px 44px; }
  .pac-cd__frame { grid-template-columns: 1fr; gap: 0; }
  .pac-cd__media { max-width: 420px; margin: 0 auto; width: 100%; }
  /* Echo the c4 overlap gesture once the layout stacks. */
  .pac-cd__card { position: relative; z-index: 2; margin: -32px 0 0; padding: 28px 24px 32px; }
  .pac-cd .pac-cd__name { font-size: 30px; }
  .pac-cd .pac-cd__tags { font-size: 16px; }
  .pac-cd .pac-cd__bio p { font-size: 16px !important; }
  .pac-cd__ctas { flex-direction: column; }
  .pac-cd .pac-cd__cta { flex: 1 1 auto; }
}

@media (max-width: 480px) {
  .pac-cd__hero { padding: 24px 16px 36px; }
  .pac-cd__card { padding: 24px 20px 28px; }
  .pac-cd .pac-cd__name { font-size: 26px; }
}
