/*
  Purdue Presidential Search — Community Vote
  呢份 stylesheet 刻意保持細。Header、footer、掣、quote block、排版比例
  同顏色都來自 Purdue hotlink 嘅 production CSS（見 head-meta.html）——
  真 app.css、unitedsans.css 同 purdue-quote block stylesheet，直接由
  purdue.edu/president/search/ load。呢份 file 只 cover Purdue theme 冇嘅
  component：ballot 本身、review/confirmation flow、FAQ accordion，同呢個
  微站自己嘅 secondary wayfinding nav。全部 reuse 真 Purdue 色同字體 token，
  唔自己發明新嘅。
*/

:root {
  --pu-old-gold: #cfb991;
  --pu-black: #000000;
  --pu-aged: #8e6f3e;
  --pu-rush: #daaa00;
  --pu-dust: #ebd99f;
  --pu-steel: #555960;
  --pu-steam: #c4bfc0;
  --pu-cool-gray: #6f727b;
  --pu-warm-gray: #9d9795;
  --pu-white: #ffffff;
  --pu-bg-light: #f7f7f7;
  --pu-border-light: #ededed;

  --font-sans: acumin-pro, "Franklin Gothic Medium", "Franklin Gothic", Arial, Helvetica, sans-serif;
  --font-display: "United Sans Condensed", Impact, "Arial Narrow Bold", "Arial Black", sans-serif;
}

body { font-family: var(--font-sans); }

/*
  [hidden] attribute 會輸俾 author rule 如果 specificity 一樣但 display 寫死
  （例如 .no-preference-row{display:flex}），JS toggle el.hidden=true 會靜靜
  冇反應。所以 site-wide 加呢條，唔逐個 case patch。
*/
[hidden] { display: none !important; }

:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(207, 185, 145, 0.55), 0 0 0 5px rgba(0, 0, 0, 0.85);
  border-radius: 1px;
}

.visually-hidden,
.screen-reader-text {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--pu-black); color: var(--pu-old-gold);
  padding: 0.85rem 1.25rem; z-index: 3000; font-weight: 700;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

/* ---------------------------------------------------------------------
   VOTE SUB-NAV — 呢個微站自己嘅 wayfinding，唔係真 Purdue header 一部份。
   刻意整細同 visually distinct。
--------------------------------------------------------------------- */

/*
  真 Purdue app.js 控制 .navbar-find-info 開關 animation；我哋拎唔到嗰個 file
  （唔係可以 hotlink 嘅 standalone stylesheet），所以 ballot.js 用 .is-open
  class 模仿 open state。真 base rule 已經有 position:fixed、inset 0、height:100%
  同 padding——呢度只補 transform 同 transition，因為 base rule 關閉狀態係
  translateY(-100%) 但本身冇 transition。
*/
.navbar-find-info {
  transition: transform 0.35s ease;
}
.navbar-find-info.is-open {
  transform: translateY(0) !important;
}
body.has-open-overlay { overflow: hidden; }

.vote-subnav {
  background: var(--pu-black);
  border-bottom: 3px solid var(--pu-old-gold);
}
.vote-subnav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  padding: 0.55rem 1.5rem;
}
.vote-subnav__crumb {
  font-size: 0.78rem;
  color: var(--pu-old-gold);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.vote-subnav__unlisted {
  color: var(--pu-warm-gray);
  font-weight: 400;
}
.vote-subnav__links {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.vote-subnav__links a {
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  padding: 0.15rem 0.1rem;
  border-bottom: 2px solid transparent;
}
.vote-subnav__links a:hover,
.vote-subnav__links a[aria-current="page"] {
  border-bottom-color: var(--pu-old-gold);
  color: var(--pu-old-gold);
}

.faq-hero { background: var(--pu-black); padding: 3.25rem 0 2.75rem; }

/* ---------------------------------------------------------------------
   HERO — reuse Purdue 真 .purdue-home-cta-banner / .second-level-page-heading
   class（見 home.html / candidate pages）做 image、overlay 同大字 uppercase
   title，所以 hero 嗰 part 唔使 custom CSS。呢度只加 real lede 下面嘅 meta row。
--------------------------------------------------------------------- */

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem 2.5rem;
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255,255,255,0.25);
  max-width: 950px;
  margin-left: auto;
  margin-right: auto;
}
.hero__meta-item { text-align: center; min-width: 140px; }
.hero__meta-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pu-old-gold);
  font-weight: 700;
  margin-bottom: 0.2rem;
}
.hero__meta-value { color: #fff; font-weight: 600; font-size: 1rem; }

/* ---------------------------------------------------------------------
   掣——extend Purdue 真 .purdue-home-button，唔重新發明。
--------------------------------------------------------------------- */

.purdue-home-button--outline {
  background: transparent;
  color: var(--pu-black);
  border: 1px solid var(--pu-black);
  box-shadow: none;
}
.purdue-home-button--outline:hover { background: var(--pu-black); color: var(--pu-white); }

.purdue-home-button--outline-light {
  background: transparent;
  color: var(--pu-white);
  border: 1px solid rgba(255,255,255,0.7);
  box-shadow: none;
}
.purdue-home-button--outline-light:hover { background: var(--pu-white); color: var(--pu-black); }

.purdue-home-button:disabled,
.purdue-home-button[aria-disabled="true"] {
  background: var(--pu-border-light);
  color: var(--pu-warm-gray);
  border-color: var(--pu-border-light);
  box-shadow: none;
  cursor: not-allowed;
}

.btn-full { width: 100%; justify-content: center; }
.btn-sm { font-size: 0.85rem; padding: 0.4rem 1rem; }

/* ---------------------------------------------------------------------
   區塊
--------------------------------------------------------------------- */

.section { padding: 3.25rem 0; }
.section--alt { background: var(--pu-bg-light); }
.section--black { background: var(--pu-black); color: var(--pu-white); }
.section--black h2 { color: var(--pu-white); }
#ballot { padding-bottom: 1.75rem; }
#about { padding-top: 2rem; }
.section-head { max-width: 74ch; margin-bottom: 2rem; }
.section-head .kicker {
  display: block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pu-aged);
  font-weight: 900;
  margin-bottom: 0.6rem;
}

.two-col { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 2.75rem; align-items: start; }
@media (max-width: 880px) { .two-col { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------------
   資訊 / 保障卡片
--------------------------------------------------------------------- */

.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 880px) { .info-grid { grid-template-columns: 1fr; } }

.info-card {
  background: var(--pu-white);
  border: 1px solid var(--pu-border-light);
  border-top: 4px solid var(--pu-old-gold);
  padding: 1.6rem 1.5rem;
  border-radius: 4px;
}
.info-card h3 { margin-bottom: 0.5rem; }
.info-card p, .info-card ul { font-size: 0.94rem; color: #292929; margin-bottom: 0; }
.info-card ul { padding-left: 1.1rem; }
.info-card a { color: var(--pu-aged); font-weight: 600; }

/* ---------------------------------------------------------------------
   流程 stepper
--------------------------------------------------------------------- */

.stepper { display: flex; list-style: none; margin: 0 0 2.5rem; padding: 0; counter-reset: step; }
.stepper li {
  flex: 1; counter-increment: step; position: relative; padding-top: 2.6rem;
  font-size: 0.85rem; font-weight: 700; color: var(--pu-warm-gray); text-align: center;
}
.stepper li::before {
  content: counter(step);
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--pu-white); border: 2px solid var(--pu-border-light); color: var(--pu-warm-gray);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); z-index: 2;
}
.stepper li::after {
  content: ""; position: absolute; top: 17px; left: -50%; right: 50%;
  height: 2px; background: var(--pu-border-light); z-index: 1;
}
.stepper li:first-child::after { display: none; }
.stepper li.is-active, .stepper li.is-done { color: var(--pu-black); }
.stepper li.is-active::before, .stepper li.is-done::before { border-color: var(--pu-old-gold); background: var(--pu-old-gold); color: var(--pu-black); }
.stepper li.is-done::after { background: var(--pu-old-gold); }

/* ---------------------------------------------------------------------
   選票
--------------------------------------------------------------------- */

.ballot-instructions { margin-bottom: 1.75rem; }
.ballot-instructions p { margin: 0; max-width: 62ch; color: #292929; }

.candidate-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 1.75rem;
}
@media (max-width: 980px) {
  .candidate-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }
}

.candidate-card {
  position: relative;
  background: var(--pu-white);
  border: 1px solid var(--pu-border-light);
  border-radius: 4px;
  padding: 1.35rem;
  display: grid;
  grid-template-columns: minmax(170px, 200px) minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
  column-gap: 1.4rem;
  row-gap: 0.7rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.candidate-card:hover {
  border-color: var(--pu-steam);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.candidate-card.is-selected {
  border-color: var(--pu-old-gold);
  box-shadow: 0 0 0 3px rgba(207,185,145,0.4), 0 8px 24px rgba(0,0,0,0.18);
}

.candidate-card__top { display: contents; }
.candidate-card__photo {
  grid-column: 1;
  grid-row: 1 / 4;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 3px;
  border: 1px solid var(--pu-border-light);
  overflow: hidden;
  background: var(--pu-bg-light);
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}
.candidate-card__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.candidate-card__identity {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
}

.candidate-card__body { display: flex; flex-direction: column; gap: 0.85rem; flex: 1; }

.candidate-card__name { margin: 0 0 0.35rem; font-size: 1.45rem; line-height: 1.15; }
.candidate-card__title { color: var(--pu-steel); font-size: 0.9rem; font-weight: 600; margin: 0; line-height: 1.45; }

.candidate-card__quote {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  font-size: 0.95rem;
  font-style: italic;
  color: #333;
  line-height: 1.55;
  border-left: 3px solid var(--pu-old-gold);
  padding: 0.1rem 0 0.1rem 1rem;
  margin: 0;
}

.candidate-card__actions {
  grid-column: 2;
  grid-row: 3;
  align-self: end;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}
.candidate-card__actions .select-toggle { padding-inline: 0.75rem; }

.select-toggle {
  appearance: none; -webkit-appearance: none;
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-sans); font-weight: 700; font-size: 0.88rem;
  background: var(--pu-white); border: 2px solid var(--pu-black); color: var(--pu-black);
  padding: 0.5rem 1rem; border-radius: 4px; cursor: pointer;
}
.select-toggle:hover { background: #f2f2f2; }
.select-toggle .dot { width: 15px; height: 15px; border-radius: 50%; border: 2px solid var(--pu-black); flex-shrink: 0; position: relative; }
.candidate-card.is-selected .select-toggle { background: var(--pu-black); color: var(--pu-old-gold); }
.candidate-card.is-selected .select-toggle .dot { border-color: var(--pu-old-gold); background: var(--pu-old-gold); }
.candidate-card.is-selected .select-toggle .dot::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--pu-black); }

.profile-link { font-size: 0.8rem; font-weight: 700; white-space: nowrap; }

.selected-flag {
  position: absolute; top: -12px; right: 18px;
  background: var(--pu-old-gold); color: var(--pu-black);
  font-family: var(--font-display); font-size: 0.72rem; font-weight: 900;
  letter-spacing: 0.05em; text-transform: uppercase;
  padding: 0.25rem 0.65rem; border-radius: 2px; display: none;
}
.candidate-card.is-selected .selected-flag { display: inline-block; }

@media (max-width: 600px) {
  .candidate-card {
    grid-template-columns: 112px minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    padding: 1.1rem;
    column-gap: 1rem;
    row-gap: 1rem;
  }
  .candidate-card__photo { grid-row: 1; }
  .candidate-card__name { font-size: 1.2rem; }
  .candidate-card__title { font-size: 0.84rem; }
  .candidate-card__quote {
    grid-column: 1 / -1;
    grid-row: 2;
    font-size: 0.9rem;
  }
  .candidate-card__actions {
    grid-column: 1 / -1;
    grid-row: 3;
  }
}

.no-preference-row {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--pu-bg-light);
  border: 1px dashed var(--pu-steam);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.no-preference-row p { margin: 0; max-width: 46ch; font-size: 0.92rem; color: #333; }

.ballot-help-note { margin-top: 1.25rem; font-size: 0.85rem; color: var(--pu-steel); }
.ballot-help-note a { color: var(--pu-aged); font-weight: 600; }

.ballot-bar {
  position: fixed; left: 0; right: 0; bottom: 0; background: var(--pu-black); color: var(--pu-white);
  padding: 1rem 0; margin: 0;
  transform: translateY(110%); transition: transform 0.25s ease, visibility 0.25s; z-index: 500;
  box-shadow: 0 -4px 18px rgba(0,0,0,0.25);
  visibility: hidden;
}
.ballot-bar.is-visible { transform: translateY(0); visibility: visible; }
.ballot-bar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.ballot-bar__choice { font-size: 0.95rem; margin: 0; }
.ballot-bar__choice strong { color: var(--pu-old-gold); }

/* ---------------------------------------------------------------------
   選票步驟
--------------------------------------------------------------------- */

.ballot-step { display: none; }
.ballot-step.is-active { display: block; }

.review-card {
  background: var(--pu-white); border: 2px solid var(--pu-old-gold); border-radius: 4px;
  padding: 2rem; display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap;
}
.review-card__photo { width: 96px; aspect-ratio: 4 / 5; border-radius: 3px; border: 1px solid var(--pu-border-light); overflow: hidden; flex-shrink: 0; background: var(--pu-bg-light); }
.review-card__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.review-card__name { margin-bottom: 0.1rem; }
.review-card__title { color: var(--pu-steel); font-weight: 600; margin: 0; }

.verification-block,
.affiliation-block {
  margin-top: 1.75rem;
  background: var(--pu-bg-light);
  border: 1px solid var(--pu-border-light);
  padding: 1.4rem 1.5rem;
  border-radius: 4px;
}
.verification-block h3,
.affiliation-block h3 { margin-bottom: 0.3rem; font-size: 1.05rem; }
.verification-block > p,
.affiliation-block > p { font-size: 0.88rem; color: #444; margin-bottom: 1rem; }

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.25rem;
}
.form-field--full { grid-column: 1 / -1; }
.form-field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.88rem;
  font-weight: 700;
}
.required-label { color: var(--pu-steel); font-size: 0.78rem; font-weight: 500; }
.form-field input[type="text"] {
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  padding: 0.65rem 0.75rem;
  border: 1.5px solid var(--pu-steam);
  border-radius: 3px;
  background: var(--pu-white);
  color: var(--pu-black);
  font: inherit;
}
.form-field input[type="text"]:focus { border-color: var(--pu-aged); }
.form-field input[aria-invalid="true"] { border-color: #b21f2d; }
.field-help {
  margin: 0.4rem 0 0;
  color: var(--pu-steel);
  font-size: 0.8rem;
}
.field-error {
  margin: 0.4rem 0 0;
  color: #9d1024;
  font-size: 0.82rem;
  font-weight: 700;
}
.field-error:empty { display: none; }

.affiliation-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.6rem;
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}
.affiliation-options > li { list-style: none !important; }
.affiliation-options > li::marker { content: ""; font-size: 0; }
.affiliation-options li::before,
.affiliation-options li::after { content: none !important; display: none !important; }
.affiliation-options label {
  display: flex; align-items: center; gap: 0.5rem;
  background: var(--pu-white); border: 1.5px solid var(--pu-border-light); border-radius: 4px;
  padding: 0.6rem 0.75rem; cursor: pointer; font-size: 0.92rem; font-weight: 600;
}
.affiliation-options input:checked ~ span,
.affiliation-options label:has(input:checked) {
  border-color: var(--pu-old-gold);
  background: #fbf7ee;
}
.affiliation-options input { accent-color: var(--pu-black); width: 16px; height: 16px; }

.face-verification-block {
  margin-top: 1.75rem;
  padding: 1.4rem 1.5rem;
  border: 1px solid var(--pu-border-light);
  border-radius: 4px;
  background: var(--pu-bg-light);
}
.face-verification-block h3 { margin-bottom: 0.3rem; font-size: 1.05rem; }
.face-verification-block > p:first-of-type {
  margin-bottom: 1rem;
  color: #444;
  font-size: 0.88rem;
}
.camera-layout {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(220px, 1fr);
  gap: 1.25rem;
  align-items: center;
}
.camera-frame {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 2px solid var(--pu-steam);
  border-radius: 4px;
  background: #202020;
}
.camera-frame video,
.camera-frame > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.camera-frame video { transform: scaleX(-1); }
.camera-empty {
  display: flex;
  position: absolute;
  inset: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.5rem;
  color: var(--pu-white);
  text-align: center;
  font-size: 0.88rem;
}
.camera-empty svg { width: 42px; height: 42px; fill: var(--pu-old-gold); }
.face-guide {
  position: absolute;
  top: 10%;
  left: 50%;
  width: 45%;
  height: 78%;
  transform: translateX(-50%);
  border: 3px solid rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.32);
}
.camera-instructions ul {
  margin: 0;
  padding-left: 1.15rem;
  color: #333;
  font-size: 0.88rem;
}
.camera-instructions li + li { margin-top: 0.45rem; }
.camera-status {
  margin: 1rem 0 0;
  color: var(--pu-steel);
  font-size: 0.84rem;
  font-weight: 700;
}
.camera-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}
.upload-photo-label { cursor: pointer; }

.attestation { margin-top: 1.25rem; }
.attestation label { display: flex; gap: 0.75rem; align-items: flex-start; font-size: 0.92rem; cursor: pointer; }
.attestation input[type="checkbox"] { width: 20px; height: 20px; flex-shrink: 0; margin-top: 0.15rem; accent-color: var(--pu-black); }

.step-actions { margin-top: 1.75rem; display: flex; gap: 1rem; flex-wrap: wrap; }

.confirmation { text-align: center; padding: 2rem 0 1rem; }
.confirmation__badge {
  width: 74px; height: 74px; border-radius: 50%; background: var(--pu-old-gold);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem;
}
.confirmation__badge svg { width: 34px; height: 34px; }
.confirmation__receipt {
  display: inline-block; margin-top: 1.25rem; padding: 0.9rem 1.4rem;
  background: var(--pu-bg-light); border: 1px dashed var(--pu-steam);
  font-family: monospace; font-size: 0.85rem; color: var(--pu-steel);
}
.already-voted { text-align: center; padding: 3rem 0; }

@media (max-width: 700px) {
  .form-grid,
  .camera-layout { grid-template-columns: 1fr; }
  .camera-frame { max-width: 420px; }
}

/* ---------------------------------------------------------------------
   時間線
--------------------------------------------------------------------- */

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 190px 1fr; gap: 1.25rem; padding: 1.1rem 0; border-bottom: 1px solid var(--pu-border-light); }
.timeline li:last-child { border-bottom: none; }
.timeline .when { font-family: var(--font-display); font-weight: 900; color: var(--pu-aged); }
.timeline .what strong { display: block; margin-bottom: 0.15rem; }
.timeline li.is-current .when { color: var(--pu-black); }
.timeline li.is-current .what strong::after {
  content: "IN PROGRESS"; display: inline-block; margin-left: 0.6rem;
  font-family: var(--font-display); font-size: 0.65rem;
  background: var(--pu-old-gold); color: var(--pu-black);
  padding: 0.15rem 0.45rem; vertical-align: middle; letter-spacing: 0.04em;
}
@media (max-width: 620px) { .timeline li { grid-template-columns: 1fr; gap: 0.25rem; } }

/* ---------------------------------------------------------------------
   常見問題
--------------------------------------------------------------------- */

.faq-list { border-top: 1px solid var(--pu-border-light); }
.faq-item { border-bottom: 1px solid var(--pu-border-light); }
.faq-item summary {
  cursor: pointer; padding: 1.25rem 0.25rem; font-weight: 700; font-size: 1.08rem;
  display: flex; justify-content: space-between; align-items: center; list-style: none; gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.6rem; color: var(--pu-aged); flex-shrink: 0; line-height: 1; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p, .faq-item ul { padding: 0 0.25rem; color: #292929; }
.faq-item .faq-answer { padding-bottom: 1.4rem; max-width: 76ch; }
.faq-item a { color: var(--pu-aged); font-weight: 600; }

/* ---------------------------------------------------------------------
   候選人 profile 頁
--------------------------------------------------------------------- */

.profile-hero {
  background: var(--pu-black); color: var(--pu-white); position: relative;
}
.profile-hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 6px; background: linear-gradient(90deg, var(--pu-old-gold), var(--pu-rush)); }
.profile-hero__inner { padding: 2.75rem 0 3rem; display: flex; gap: clamp(2rem, 4vw, 3.5rem); align-items: center; flex-wrap: wrap; }
.profile-hero__photo {
  width: clamp(200px, 19vw, 260px); aspect-ratio: 4 / 5; border-radius: 3px;
  border: 1px solid rgba(255,255,255,0.25); box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  overflow: hidden; flex-shrink: 0; background: #111;
}
.profile-hero__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.profile-hero__inner > div:not(.profile-hero__photo) { flex: 1 1 420px; min-width: 0; }
.profile-hero__name {
  color: var(--pu-white); margin-bottom: 0.25rem; font-family: var(--font-sans);
  font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.02;
}
.profile-hero__title { color: var(--pu-dust); font-size: 1.05rem; font-weight: 600; margin: 0; }
.profile-hero__back { display: inline-block; margin-bottom: 1.25rem; font-size: 0.85rem; font-weight: 700; color: var(--pu-old-gold); text-decoration: none; }
.profile-hero__back:hover { color: var(--pu-white); }

.profile-body { display: grid; grid-template-columns: 1.4fr 0.9fr; gap: 3rem; }
@media (max-width: 880px) { .profile-body { grid-template-columns: 1fr; } }

.fact-list { list-style: none; margin: 0; padding: 0; }
.fact-list li { padding: 0.9rem 0; border-bottom: 1px solid var(--pu-border-light); font-size: 0.92rem; }
.fact-list .label { display: block; font-family: var(--font-display); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--pu-steel); font-weight: 900; margin-bottom: 0.2rem; }

.candidate-vote-cta { background: var(--pu-bg-light); border-radius: 4px; padding: 1.5rem; margin-top: 1.5rem; }
.candidate-vote-cta p { font-size: 0.9rem; color: #333; }

/* ---------------------------------------------------------------------
   頭像 placeholder fallback
--------------------------------------------------------------------- */
.avatar-fallback {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: var(--pu-old-gold); color: var(--pu-black); font-family: var(--font-display); font-weight: 800;
}
