.profile-page-shell { overflow: clip; }
.profile-main { width: min(1240px, calc(100% - 56px)); margin: 0 auto; padding: 28px 0 80px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; margin-bottom: 28px; color: var(--muted); font-size: 12px; }
.breadcrumbs a { color: var(--teal-dark); font-weight: 700; text-decoration: none; }
.profile-hero { display: grid; grid-template-columns: minmax(0, .82fr) minmax(440px, 1.18fr); gap: 30px; align-items: stretch; }
.profile-hero-copy, .boundary-card, .content-section { border: 1px solid var(--line); border-radius: 28px; background: rgba(255,255,255,.76); }
.profile-hero-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(32px, 5vw, 68px); }
.profile-eyebrow, .section-title > p, .section-heading p, .race-heading p { margin: 0 0 12px; color: var(--teal-dark); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.profile-hero h1 { max-width: 650px; margin: 0; font-size: clamp(43px, 5.5vw, 76px); line-height: .96; letter-spacing: -.065em; }
.profile-intro { max-width: 600px; margin: 26px 0 0; color: var(--muted); font-size: 17px; line-height: 1.65; }
.section-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.section-nav a { padding: 9px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: #41505a; font-size: 11px; font-weight: 700; text-decoration: none; }
.boundary-card { min-width: 0; overflow: hidden; padding: 18px; }
.boundary-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 4px 5px 18px; }
.boundary-toolbar div { display: grid; gap: 3px; }
.boundary-toolbar span { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.boundary-toolbar strong { font-size: 17px; }
.boundary-badge { padding: 8px 11px; border-radius: 999px; background: var(--teal-soft); color: var(--teal-dark) !important; }
.boundary-map-frame { position: relative; }
.boundary-map { position: relative; height: clamp(340px, 34vw, 470px); overflow: hidden; border-radius: 22px; background: #f7faf8; isolation: isolate; }
.boundary-map-fallback { position: absolute; z-index: 0; inset: 0; display: grid; place-items: center; background: #f7faf8; transition: opacity 220ms ease; }
.boundary-map[data-map-ready="true"] .boundary-map-fallback { opacity: 0; pointer-events: none; }
.boundary-map .maplibregl-canvas-container { z-index: 1; border-radius: inherit; }
.boundary-map .maplibregl-canvas { border-radius: inherit; }
.boundary-map .maplibregl-control-container { position: relative; z-index: 2; }
.boundary-map .maplibregl-ctrl-bottom-left { bottom: 12px; left: 12px; }
.boundary-map .maplibregl-ctrl-group { overflow: hidden; border: 1px solid rgba(19,32,45,.12); border-radius: 12px; box-shadow: 0 8px 22px rgba(21,42,47,.13); }
.boundary-map .maplibregl-ctrl-group button { width: 34px; height: 34px; }
.boundary-map .maplibregl-ctrl-attrib { color: #68757d; font-size: 9px; }
.boundary-map .maplibregl-ctrl-attrib a { color: #52616a; }
.boundary-map-status { position: absolute; z-index: 3; right: 12px; bottom: 12px; padding: 7px 10px; border-radius: 999px; background: rgba(255,255,255,.92); color: var(--muted); font-size: 9px; font-weight: 700; box-shadow: 0 6px 18px rgba(21,42,47,.1); }
.boundary-svg { display: block; width: 100%; height: 100%; border-radius: 22px; background: #f7faf8; }
.boundary-empty { display: grid; min-height: 380px; place-items: center; border-radius: 22px; background: #f7faf8; color: var(--muted); }
.profile-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; overflow: hidden; margin: 16px 0 54px; border: 1px solid var(--line); border-radius: 22px; background: var(--line); }
.profile-facts div { display: grid; gap: 5px; padding: 22px 24px; background: rgba(255,255,255,.82); }
.profile-facts strong { font-size: clamp(20px, 2vw, 28px); letter-spacing: -.04em; }
.profile-facts span { color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.content-section { margin-top: 18px; padding: clamp(28px, 5vw, 58px); scroll-margin-top: 20px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.section-heading h2, .section-title h2 { margin: 0; font-size: clamp(30px, 4vw, 48px); letter-spacing: -.055em; line-height: 1; }
.section-lede { max-width: 880px; margin: 20px 0 36px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.not-poll { padding: 9px 12px; border-radius: 999px; background: #fff0df; color: #8b4c0b; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.chart-stack { display: grid; gap: 16px; }
.race-chart { padding: 26px; border: 1px solid var(--line); border-radius: 22px; background: #fff; }
.race-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 26px; }
.race-heading h3 { margin: 0; font-size: 22px; letter-spacing: -.035em; }
.race-heading > span { color: var(--muted); font-size: 12px; font-weight: 700; }
.interest-row { display: grid; grid-template-columns: minmax(170px, 1.2fr) minmax(180px, 2fr) 120px; gap: 18px; align-items: center; padding: 13px 0; border-top: 1px solid var(--line); }
.interest-heading { display: grid; gap: 3px; }
.interest-heading strong { font-size: 13px; }
.interest-heading span, .interest-volume span { color: var(--muted); font-size: 9px; line-height: 1.3; }
.interest-track { height: 10px; overflow: hidden; border-radius: 999px; background: var(--teal-soft); }
.interest-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--teal), #53aa9e); }
.interest-volume { display: grid; gap: 2px; text-align: right; }
.interest-volume strong { font-size: 15px; }
.chart-empty { margin: -8px 0 16px; padding: 13px 15px; border-radius: 12px; background: #f5f7f6; color: var(--muted); font-size: 12px; line-height: 1.5; }
.candidate-race { margin-top: 42px; }
.section-title { margin-bottom: 22px; }
.section-title h2 { font-size: 28px; }
.candidate-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.candidate-card { display: flex; min-width: 0; gap: 16px; padding: 20px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.candidate-avatar { display: grid; width: 46px; height: 46px; flex: 0 0 auto; place-items: center; border-radius: 15px; background: var(--teal-soft); color: var(--teal-dark); font-size: 12px; font-weight: 800; }
.candidate-copy { min-width: 0; }
.candidate-copy > p { margin: 0 0 5px; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.candidate-copy h3 { margin: 0; overflow-wrap: anywhere; font-size: 17px; letter-spacing: -.03em; }
.candidate-status { margin: 9px 0 13px; color: var(--muted); font-size: 11px; }
.candidate-links { display: flex; flex-wrap: wrap; gap: 10px 14px; }
.candidate-links a, .source-grid a { color: var(--teal-dark); font-size: 11px; font-weight: 800; text-decoration: none; }
.source-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 32px; }
.source-grid article { padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.source-grid article > span { color: var(--teal); font-size: 11px; font-weight: 800; }
.source-grid h3 { margin: 14px 0 10px; font-size: 18px; }
.source-grid p, .source-note { color: var(--muted); font-size: 12px; line-height: 1.65; }
.source-note { margin: 28px 0 0; padding-top: 22px; border-top: 1px solid var(--line); }
@media (max-width: 960px) {
  .profile-hero { grid-template-columns: 1fr; }
  .candidate-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .source-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .profile-main { width: calc(100% - 28px); padding-top: 10px; }
  .profile-facts { grid-template-columns: 1fr 1fr; }
  .interest-row { grid-template-columns: 1fr; gap: 8px; }
  .interest-volume { text-align: left; }
  .candidate-grid { grid-template-columns: 1fr; }
  .boundary-map { height: 340px; }
}
@media (max-width: 460px) {
  .profile-hero-copy, .content-section { padding: 25px 20px; }
  .boundary-card { padding: 10px; }
  .profile-facts { grid-template-columns: 1fr; }
  .profile-facts div { padding: 18px; }
  .section-heading { align-items: flex-start; flex-direction: column; }
}
