@import url("https://fonts.googleapis.com/css2?family=Permanent+Marker&display=swap");

:root {
  --ink: #111111;
  --purple: #6e18f5;
  --purple-light: #efe5ff;
  --lime: #c8ff00;
  --yellow: #ffc31a;
  --paper: #fcfcfb;
  --muted: #5e5e66;
  --border: #e8e8e8;
  --shadow: 0 18px 45px rgba(28, 18, 54, 0.10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[hidden] { display: none !important; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 7% 48%, rgba(110, 24, 245, .08), transparent 18%),
    radial-gradient(circle at 95% 26%, rgba(200, 255, 0, .16), transparent 20%),
    var(--paper);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button, input, select { font: inherit; }
a { color: inherit; text-decoration: none; }
mark { color: inherit; background: var(--lime); padding: 0 .12em; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 3px;
}

.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;
}

.site-header {
  width: min(1400px, calc(100% - 48px));
  min-height: 88px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  position: relative;
  z-index: 20;
}
.header-brand-group { display: flex; min-width: 0; align-items: center; gap: 18px; }

.brand {
  display: inline-flex;
  flex-direction: column;
  transform: rotate(-2deg);
  font-family: "Permanent Marker", cursive;
  line-height: .94;
}
.brand-sticker {
  align-self: flex-start;
  background: var(--ink);
  color: white;
  padding: 7px 14px;
  box-shadow: -8px -5px 0 var(--lime);
  font-size: 1.05rem;
}
.brand-name { margin-top: 5px; font-size: 1.25rem; }

.main-nav { display: flex; align-items: center; gap: clamp(22px, 3vw, 54px); font-weight: 700; }
.main-nav a { position: relative; padding: 16px 0; }
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 6px;
  height: 4px; border-radius: 10px;
  background: var(--purple);
  transition: right .2s ease;
}
.main-nav a:hover::after, .main-nav a.active::after { right: 0; }
.menu-button { display: none; border: 0; background: transparent; font-size: 2rem; cursor: pointer; }
.support-nav-button {
  padding: 9px 13px;
  border: 1px solid var(--ink);
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}
.support-nav-button:hover { background: var(--purple-light); }
.support-header-button {
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid var(--purple);
  border-radius: 999px;
  background: var(--purple-light);
  color: var(--purple);
  font-size: .84rem;
  font-weight: 850;
  white-space: nowrap;
  cursor: pointer;
}
.support-header-button:hover { background: var(--lime); color: var(--ink); }

body.support-modal-open { overflow: hidden; }
.support-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; }
.support-modal-backdrop { position: absolute; inset: 0; background: rgba(14, 14, 16, .68); }
.support-modal-dialog {
  position: relative;
  width: min(760px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: clamp(24px, 5vw, 42px);
  border: 1px solid var(--ink);
  border-radius: 22px;
  background: var(--paper);
  box-shadow: 8px 9px 0 var(--ink);
}
.support-modal-dialog h2 { margin: 12px 44px 12px 0; font-size: clamp(2rem, 6vw, 3.2rem); letter-spacing: -1.5px; line-height: 1; }
.support-modal-intro { color: var(--muted); line-height: 1.55; }
.support-modal-intro p { margin: 0 0 10px; }
.support-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: white;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}
.support-modal-close:hover { background: var(--lime); }
.support-pix-layout { display: grid; grid-template-columns: minmax(180px, 240px) 1fr; gap: 28px; align-items: center; margin-top: 24px; }
.support-qr-wrap { aspect-ratio: 1; width: 100%; }
.support-qr-image { display: block; width: 100%; height: auto; border: 1px solid var(--border); border-radius: 16px; background: white; }
.support-qr-placeholder {
  width: 100%;
  height: 100%;
  padding: 20px;
  display: grid;
  place-content: center;
  gap: 10px;
  border: 2px dashed var(--purple);
  border-radius: 16px;
  background: var(--purple-light);
  text-align: center;
}
.support-qr-placeholder span { color: var(--muted); font-size: .78rem; line-height: 1.45; }
.support-qr-placeholder code { overflow-wrap: anywhere; }
.support-pix-copy { min-width: 0; }
.support-pix-copy h3 { margin: 0 0 10px; }
.support-pix-code { display: block; max-height: 112px; overflow: auto; padding: 14px; border: 1px solid var(--border); border-radius: 11px; background: white; overflow-wrap: anywhere; word-break: break-all; line-height: 1.45; }
.support-copy-button { min-height: 46px; margin-top: 14px; padding: 10px 16px; border: 1px solid var(--ink); border-radius: 11px; background: var(--lime); box-shadow: 3px 3px 0 var(--ink); font-weight: 850; cursor: pointer; }
.support-copy-button:hover { transform: translate(1px, 1px); box-shadow: 2px 2px 0 var(--ink); }
.support-copy-status { min-height: 20px; margin: 10px 0 0; color: var(--purple); font-size: .86rem; font-weight: 750; }
.support-value-note { margin: 24px 0 8px; color: var(--purple); }
.support-transparency { margin: 0; padding-top: 13px; border-top: 1px solid var(--border); color: var(--muted); font-size: .82rem; line-height: 1.45; }

.hero {
  width: min(1440px, calc(100% - 36px));
  margin: 20px auto 0;
  min-height: 760px;
  position: relative;
  display: grid;
  grid-template-columns: 41% 59%;
  align-items: start;
  padding: 70px 58px 310px;
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 999px;
  filter: saturate(1.15);
}
.hero::before { width: 360px; height: 360px; right: -110px; top: 50px; background: var(--purple); }
.hero::after { width: 420px; height: 160px; right: -60px; top: 230px; background: var(--lime); transform: rotate(-10deg); }

.hero-copy { z-index: 2; }
.eyebrow {
  display: inline-block;
  padding: 8px 13px;
  margin-bottom: 20px;
  background: var(--ink);
  color: white;
  font-family: "Permanent Marker", cursive;
  transform: rotate(-2deg);
}
.hero-copy h1 {
  margin: 0;
  font-family: "Permanent Marker", cursive;
  font-style: normal;
  font-weight: 400;
  font-size: clamp(4rem, 7vw, 7.6rem);
  line-height: .83;
  letter-spacing: -3px;
}
.hero-copy h1 strong { color: var(--purple); text-shadow: 0 9px 0 rgba(200, 255, 0, .85); }
.hero-copy p { margin: 42px 0 0; font-weight: 700; line-height: 1.55; font-size: clamp(1rem, 1.3vw, 1.25rem); }

.hero-visual { position: relative; min-height: 430px; align-self: end; }
.hero-visual img {
  width: 112%;
  max-width: none;
  position: absolute;
  right: -7%;
  bottom: -32px;
  mix-blend-mode: multiply;
  border-radius: 40px;
  -webkit-mask-image: linear-gradient(to bottom, #000 84%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 84%, transparent 100%);
}
.question {
  position: absolute;
  z-index: 3;
  font-family: "Permanent Marker", cursive;
  font-size: 4.5rem;
  line-height: 1;
}
.question-one { left: 20%; top: -15px; color: var(--purple); }
.question-two { left: 57%; top: 30px; color: var(--lime); text-shadow: 1px 1px 0 #333; }
.question-three { right: 8%; top: 85px; color: var(--ink); }

.home-intro {
  width: min(1120px, calc(100% - 48px));
  margin: 26px auto 34px;
  padding: 24px clamp(24px, 4vw, 42px);
  border-left: 6px solid var(--lime);
  border-radius: 0 18px 18px 0;
  background: white;
  box-shadow: 0 10px 30px rgba(28, 18, 54, .07);
}
.home-intro h2 { margin: 7px 0 8px; font-size: clamp(1.45rem, 3vw, 2.15rem); letter-spacing: -.7px; }
.home-intro p { max-width: 940px; margin: 0; color: var(--muted); line-height: 1.6; }

.search-card {
  position: absolute;
  left: 5%; right: 5%; bottom: 22px;
  padding: 28px 36px 20px;
  background: rgba(255,255,255,.96);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  z-index: 6;
}
.search-selectors { display: flex; justify-content: center; align-items: start; gap: clamp(24px, 5vw, 70px); margin: 0 0 22px; }
.search-selector-group { min-width: 0; margin: 0; padding: 0; border: 0; text-align: center; }
.search-selector-group legend { width: 100%; margin-bottom: 8px; color: var(--muted); font-size: .72rem; font-weight: 850; letter-spacing: .06em; }
.search-choice-group { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(120px, auto); gap: 8px; }
.search-choice {
  min-height: 38px;
  padding: 7px 18px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: white;
  color: var(--ink);
  font: inherit;
  font-size: .82rem;
  font-weight: 850;
  text-transform: uppercase;
  cursor: pointer;
}
.search-choice:hover { border-color: var(--purple); color: var(--purple); }
.search-choice:focus-visible { outline: 3px solid rgba(110,24,245,.22); outline-offset: 2px; }
.search-choice.is-selected { background: var(--purple); color: white; box-shadow: 3px 3px 0 var(--lime); }
.search-choice small { display: block; font-size: .58rem; font-weight: 750; opacity: .8; }
.search-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.15fr) 64px minmax(230px, .9fr) minmax(220px, .75fr);
  align-items: end;
  gap: 18px;
}
.field-group { display: grid; gap: 8px; }
.field-label {
  width: max-content;
  font-family: "Permanent Marker", cursive;
  font-size: 1.35rem;
  text-decoration: underline 5px var(--lime);
  text-underline-offset: 4px;
}
.field-label.purple { text-decoration-color: #b88cff; }
.field-label.lime { text-decoration-color: var(--lime); }
.input-wrap { position: relative; display: flex; align-items: center; }
.input-icon { position: absolute; left: 16px; z-index: 1; font-weight: 800; }
.input-wrap input, .input-wrap select {
  width: 100%;
  height: 56px;
  border: 1px solid #d8d8dd;
  border-radius: 14px;
  padding: 0 42px 0 46px;
  background: white;
  color: var(--ink);
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.input-wrap input:focus, .input-wrap select:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 4px rgba(110,24,245,.12);
}
.autocomplete { z-index: 8; }
.autocomplete-list {
  position: absolute;
  top: calc(100% + 7px);
  left: 0;
  right: 0;
  z-index: 30;
  max-height: 280px;
  overflow-y: auto;
  padding: 7px;
  border: 1px solid #d8d8dd;
  border-radius: 14px;
  background: white;
  box-shadow: 0 14px 32px rgba(28, 18, 54, .16);
}
.autocomplete-option { display: grid; width: 100%; gap: 2px; padding: 10px 12px; border: 0; border-radius: 9px; background: transparent; color: var(--ink); text-align: left; cursor: pointer; }
.autocomplete-option:hover, .autocomplete-option.is-active { background: var(--purple-light); }
.autocomplete-option strong { font-size: .92rem; }
.autocomplete-option small { color: var(--muted); font-size: .75rem; }
.autocomplete-empty { display: block; padding: 12px; color: var(--muted); font-size: .86rem; }
.or-badge {
  align-self: center;
  justify-self: center;
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--ink);
  color: white;
  font-family: "Permanent Marker", cursive;
  transform: rotate(-4deg);
}
.search-actions { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 22px; }
.search-button {
  min-width: 250px;
  border: 3px solid var(--ink);
  border-radius: 12px;
  padding: 12px 30px;
  background: var(--lime);
  box-shadow: 5px 6px 0 var(--ink);
  font-size: 1.35rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.search-button:hover { transform: translate(2px, 2px); box-shadow: 3px 4px 0 var(--ink); }
.search-button:disabled { cursor: wait; opacity: .7; transform: none; box-shadow: 3px 4px 0 var(--ink); }
.action-note { color: var(--purple); font-family: "Permanent Marker", cursive; }
.search-message { margin: 14px 0 0; text-align: center; min-height: 24px; font-weight: 700; }
.search-message.is-coming-soon { color: var(--purple); }

.search-results {
  width: min(1320px, calc(100% - 48px));
  margin: 34px auto 58px;
  padding: 34px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: rgba(255,255,255,.92);
  box-shadow: var(--shadow);
  scroll-margin-top: 24px;
}
.results-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 28px;
  margin-bottom: 22px;
}
.results-heading h2 { margin: 3px 0 0; font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -2px; }
.results-heading p { max-width: 340px; margin: 0; color: var(--muted); text-align: right; line-height: 1.5; }
.results-status, .profile-state {
  min-height: 52px;
  display: flex;
  align-items: center;
  padding: 14px 17px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #f7f7f8;
  color: var(--muted);
  font-weight: 700;
}
.results-status.is-loading, .profile-state.is-loading { border-color: #d9c4ff; background: #f4efff; color: var(--purple); }
.results-status.is-success, .profile-state.is-success { min-height: 0; padding-block: 10px; border-color: #d9ef98; background: #f5ffdb; color: #376f00; }
.results-status.is-empty { border-color: #ead587; background: #fff8dd; color: #745300; }
.results-status.is-error, .profile-state.is-error { border-color: #f3b9b6; background: #fff0ef; color: #8a211d; }
.results-status.is-loading::before, .profile-state.is-loading::before {
  content: "";
  width: 18px;
  height: 18px;
  margin-right: 11px;
  border: 3px solid rgba(110,24,245,.2);
  border-top-color: var(--purple);
  border-radius: 50%;
  animation: loading-spin .75s linear infinite;
}
@keyframes loading-spin { to { transform: rotate(360deg); } }
.parliamentarian-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}
.parliamentarian-card {
  min-width: 0;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 22px;
  background: white;
  box-shadow: 6px 7px 0 var(--ink);
  transition: transform .18s ease, box-shadow .18s ease;
}
.parliamentarian-card:hover, .parliamentarian-card:focus-within {
  transform: translate(-2px, -3px);
  box-shadow: 9px 10px 0 var(--ink);
}
.parliamentarian-card-link { display: flex; height: 100%; flex-direction: column; }
.result-photo-wrap {
  position: relative;
  width: 100%;
  height: 160px;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background: #fff;
}
.result-photo { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; object-position: center top; }
.result-photo-fallback {
  position: absolute;
  display: grid;
  width: 88px;
  height: 88px;
  place-items: center;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--lime);
  font-family: "Permanent Marker", cursive;
  font-size: 2rem;
}
.result-card-content { display: flex; flex: 1; flex-direction: column; padding: 20px; }
.result-card-content h3 { margin: 0; font-size: 1.32rem; line-height: 1.15; }
.result-card-content p { margin: 9px 0 22px; color: var(--muted); font-size: 1.02rem; font-weight: 750; }
.result-card-action { margin-top: auto; color: var(--purple); font-size: 1.02rem; font-weight: 900; }
.results-pagination { display: flex; justify-content: center; gap: 14px; margin-top: 30px; }
.pagination-button {
  min-width: 140px;
  padding: 11px 18px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: white;
  box-shadow: 4px 5px 0 var(--ink);
  font-weight: 850;
  cursor: pointer;
}
.pagination-next { background: var(--lime); }
.pagination-button:hover { transform: translate(1px, 2px); box-shadow: 3px 3px 0 var(--ink); }

.support-card {
  width: min(1320px, calc(100% - 48px));
  margin: 0 auto 42px;
  padding: clamp(24px, 4vw, 38px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  border: 1px solid #d9c4ff;
  border-radius: 24px;
  background: var(--purple-light);
  box-shadow: 6px 7px 0 rgba(17, 17, 17, .1);
}
.support-card-copy { min-width: 0; }
.support-card h2 { max-width: 760px; margin: 5px 0 8px; font-size: clamp(1.55rem, 3vw, 2.45rem); letter-spacing: -1px; line-height: 1.08; }
.support-card p { margin: 0; color: var(--muted); line-height: 1.55; }
.support-card-button {
  flex: 0 0 auto;
  min-height: 48px;
  padding: 12px 20px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: var(--lime);
  color: var(--ink);
  box-shadow: 4px 5px 0 var(--ink);
  font-weight: 850;
  cursor: pointer;
}
.support-card-button:hover { transform: translate(1px, 2px); box-shadow: 3px 3px 0 var(--ink); }

.features {
  width: min(1320px, calc(100% - 48px));
  margin: 32px auto;
  display: grid;
  grid-template-columns: .75fr repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}
.features-heading {
  padding: 20px 6px;
  font-family: "Permanent Marker", cursive;
  font-size: 1.45rem;
}
.features-heading p { margin: 0; }
.features-heading span { color: var(--purple); font-size: 3rem; }
.feature-card {
  display: flex;
  gap: 18px;
  padding: 25px;
  min-height: 170px;
  border: 1px solid rgba(0,0,0,.04);
  border-radius: 22px;
}
.feature-card > div:last-child { min-width: 0; }
.feature-card h2 { margin: 2px 0 8px; font-size: 1.12rem; }
.feature-card p { margin: 0; line-height: 1.55; font-size: .98rem; }
.feature-icon {
  flex: 0 0 70px;
  width: 70px; height: 70px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: white;
  font-size: 2rem;
  background: var(--purple);
}
.card-purple { background: #f1e9ff; }
.card-lime { background: #f1ffd8; }
.card-lime .feature-icon { background: var(--lime); color: var(--ink); }
.card-yellow { background: #fff5d8; }
.card-yellow .feature-icon { background: var(--yellow); color: var(--ink); }

.manifesto {
  width: min(1320px, calc(100% - 48px));
  margin: 22px auto 0;
  padding: 25px 38px;
  border: 1px solid #ececec;
  border-radius: 24px 24px 0 0;
  background-image: linear-gradient(#ececec 1px, transparent 1px), linear-gradient(90deg, #ececec 1px, transparent 1px);
  background-size: 22px 22px;
  display: grid;
  grid-template-columns: 100px 1.4fr 1px 1fr 1.2fr;
  align-items: center;
  gap: 30px;
}
.megaphone { font-size: 4rem; }
.manifesto-main { font-family: "Permanent Marker", cursive; font-size: 1.55rem; }
.manifesto-divider { height: 80px; background: var(--purple); }
.manifesto p { line-height: 1.5; }
.manifesto strong { color: var(--purple); }
.manifesto-callout { font-family: "Permanent Marker", cursive; font-size: 1.35rem; transform: rotate(-2deg); }
.manifesto-callout span { background: var(--ink); color: white; padding: 4px 9px; }

.site-footer {
  background: #0e0e10;
  color: white;
  padding: 28px max(32px, calc((100vw - 1320px)/2));
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: center;
  gap: 30px;
  font-size: .88rem;
}
.site-footer strong { color: var(--lime); }
.site-footer nav { display: flex; gap: 22px; }
.site-footer a:hover { color: var(--lime); }

/* Perfil parlamentar */
.profile-page { background-color: #f7f5fb; }
.profile-main { width: min(1320px, calc(100% - 48px)); margin: 28px auto 72px; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  color: var(--purple);
  font-weight: 800;
}
.back-link:hover { text-decoration: underline; }
.profile-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) auto;
  align-items: center;
  gap: 36px;
  min-height: 310px;
  padding: 38px 44px;
  border: 1px solid var(--border);
  border-radius: 30px;
  background: white;
  box-shadow: var(--shadow);
}
.profile-hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  width: 300px;
  height: 300px;
  right: -110px;
  bottom: -180px;
  border-radius: 50%;
  background: var(--lime);
}
.profile-photo-wrap {
  position: relative;
  z-index: 1;
  width: 180px;
  aspect-ratio: 1;
  overflow: hidden;
  border: 4px solid var(--ink);
  border-radius: 50%;
  background: var(--purple-light);
  box-shadow: 9px 10px 0 var(--lime);
}
.profile-photo { width: 100%; height: 100%; object-fit: contain; object-position: center top; }
.profile-summary { position: relative; z-index: 1; }
.profile-summary, .compact-profile > div { min-width: 0; }
.profile-summary h1 { margin: 12px 0 4px; font-size: clamp(2.6rem, 5vw, 5rem); line-height: .95; letter-spacing: -3px; }
.profile-role { margin: 0; color: var(--purple); font-size: 1.2rem; font-weight: 800; }
.senator-position { margin: 5px 0 0; color: var(--muted); font-weight: 750; }
.profile-facts { display: flex; flex-wrap: wrap; gap: 12px 32px; margin: 26px 0 0; }
.profile-facts div { display: grid; gap: 3px; }
.profile-facts dt { color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.profile-facts dd { margin: 0; font-weight: 750; }
.mandate-status {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 180px;
  padding: 16px 18px;
  border: 1px solid #d9ef98;
  border-radius: 16px;
  background: #f5ffdb;
}
.status-dot { width: 12px; height: 12px; border-radius: 50%; background: #4f9f00; box-shadow: 0 0 0 5px rgba(79,159,0,.14); }
.mandate-status div { display: grid; gap: 3px; }
.mandate-status small { color: var(--muted); }
.mandate-status strong { color: #376f00; }
.profile-state { margin-bottom: 18px; }
.mandate-accordion { position: relative; z-index: 1; grid-column: 2 / -1; width: 100%; min-width: 0; border-top: 1px solid var(--border); }
.mandate-accordion-trigger {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 17px 2px 8px;
  border: 0;
  background: transparent;
  color: var(--purple);
  font: inherit;
  font-weight: 850;
  text-align: left;
  cursor: pointer;
}
.mandate-accordion-trigger:hover { color: #4d2090; }
.mandate-accordion-trigger:focus-visible { outline: 3px solid rgba(101, 45, 190, .28); outline-offset: 5px; border-radius: 8px; }
.mandate-accordion-chevron { display: grid; flex: 0 0 30px; width: 30px; height: 30px; place-items: center; border-radius: 50%; background: #efe5ff; transition: transform .2s ease, background .2s ease; }
.mandate-accordion-trigger[aria-expanded="true"] .mandate-accordion-chevron { background: var(--lime); transform: translateY(-1px); }
.mandate-accordion-panel { display: grid; grid-template-rows: 0fr; visibility: hidden; opacity: 0; transition: grid-template-rows .24s ease, opacity .18s ease, visibility .24s; }
.mandate-accordion-panel.is-open { grid-template-rows: 1fr; visibility: visible; opacity: 1; }
.mandate-accordion-inner { min-height: 0; overflow: hidden; }
.mandate-accordion-panel.is-open .mandate-accordion-inner { padding-top: 16px; }
.profile-data-accordion .profile-facts { margin: 0; }
.profile-data-accordion .profile-facts div { min-width: 0; }
.profile-data-accordion .profile-facts dd { overflow-wrap: anywhere; }
.profile-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.profile-detail-card {
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: white;
  box-shadow: 0 10px 28px rgba(28,18,54,.06);
}
.profile-detail-card:nth-child(2) { background: #f7f1ff; }
.profile-detail-card:nth-child(3) { background: #f7ffe5; }
.profile-detail-card h3 { margin: 0 0 20px; font-size: 1.3rem; }
.profile-detail-card dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 0; }
.profile-detail-card dl div { display: grid; gap: 4px; min-width: 0; }
.profile-detail-card dt { color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.profile-detail-card dd { min-width: 0; margin: 0; overflow-wrap: anywhere; font-weight: 750; }
.profile-detail-card a { color: var(--purple); text-decoration: underline; text-underline-offset: 3px; }
.profile-social-links { display: flex; flex-wrap: wrap; gap: 10px; }
.profile-social-links a {
  padding: 9px 12px;
  border: 1px solid #bde168;
  border-radius: 999px;
  background: white;
  color: #426f00;
  font-weight: 800;
  text-decoration: none;
}
.mandate-accordion .profile-detail-card { padding: 20px; box-shadow: none; }
.mandate-accordion .profile-detail-card h3 { margin-bottom: 15px; }

.activity-section { padding-top: 62px; scroll-margin-top: 20px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 22px; }
.section-kicker { color: var(--purple); font-family: "Permanent Marker", cursive; font-size: .92rem; }
.section-heading h2 { margin: 2px 0 0; font-size: clamp(2rem, 4vw, 3.3rem); letter-spacing: -2px; }
.section-count { padding: 7px 12px; border: 1px solid var(--border); border-radius: 999px; background: white; color: var(--muted); font-size: .82rem; font-weight: 700; }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.activity-card {
  border: 1px solid var(--border);
  border-radius: 22px;
  background: white;
  box-shadow: 0 10px 28px rgba(28,18,54,.06);
}
.project-card { display: flex; flex-direction: column; min-height: 330px; padding: 24px; }
.project-card:nth-child(2) { background: #f7f1ff; }
.project-card:nth-child(3) { background: #f7ffe5; }
.card-topline { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 9px; }
.record-number { font-size: 1rem; font-weight: 900; letter-spacing: .05em; }
.record-status, .role-tag, .vote-tag { display: inline-flex; align-items: center; width: max-content; max-width: 100%; overflow-wrap: anywhere; border-radius: 999px; font-weight: 850; }
.record-status { padding: 6px 9px; font-size: .94rem; }
.role-tag, .vote-tag { font-size: .74rem; }
.status-progress { background: #fff1bd; color: #765400; }
.status-approved { background: #def5d4; color: #276a11; }
.status-analysis { background: #e9deff; color: #5820a6; }
.project-card h3 { margin: 25px 0 12px; font-size: 1.65rem; line-height: 1.15; }
.project-type-description { display: grid; gap: 3px; margin-top: 1px; }
.project-type-description strong { color: var(--purple); font-size: 1rem; line-height: 1.3; }
.project-type-description span { color: var(--muted); font-size: .94rem; line-height: 1.4; }
.role-tag { padding: 6px 10px; background: var(--purple); color: white; }
.role-coauthor { background: var(--ink); }
.role-reporter { background: var(--lime); color: var(--ink); }
.project-card p { flex: 1; margin: 18px 0; color: #47474f; font-size: 1.12rem; line-height: 1.45; }
.detail-link { display: inline-flex; align-items: center; gap: 7px; width: max-content; max-width: 100%; overflow-wrap: anywhere; color: var(--purple); font-size: 1.02rem; font-weight: 850; }
.detail-link:hover { text-decoration: underline; }
.project-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; width: 100%; overflow: visible; visibility: visible; }
.project-analysis-link { display: inline-flex; min-height: 44px; align-items: center; width: max-content; max-width: 100%; padding: 9px 14px; border: 2px solid var(--ink); border-radius: 10px; background: var(--lime); color: var(--ink); box-shadow: 3px 4px 0 var(--ink); font-size: 1.05rem; font-weight: 900; visibility: visible; }
.project-analysis-link:hover { transform: translate(1px, 1px); box-shadow: 2px 3px 0 var(--ink); }
.project-analysis-link[aria-disabled="true"] { opacity: .55; pointer-events: none; }
.project-original-link { color: var(--muted); font-size: 1.02rem; font-weight: 800; }
.project-original-link:hover { color: var(--purple); text-decoration: underline; }
.analysis-page-header { margin: 24px 0 8px; }
.analysis-page-header h1 { margin: 7px 0 3px; font-size: clamp(2.5rem, 7vw, 5.2rem); letter-spacing: -3px; line-height: .98; }
.analysis-page-header p { margin: 8px 0 0; color: var(--purple); font-size: 1.08rem; font-weight: 850; }
.analysis-page-header .analysis-type-meaning { color: var(--text); font-weight: 600; }
.analysis-page-header .analysis-type-description { color: var(--muted); font-weight: 500; }
.analysis-official { margin-top: 30px; padding: clamp(22px, 4vw, 34px); border: 1px solid var(--border); border-radius: 24px; background: white; box-shadow: 0 10px 28px rgba(28,18,54,.06); }
.analysis-official-header h2 { margin: 3px 0 0; font-size: clamp(1.45rem, 3vw, 2rem); }
.analysis-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 24px 0 0; }
.analysis-facts div { min-width: 0; padding: 18px; border: 1px solid var(--border); border-radius: 16px; background: #faf9fc; }
.analysis-facts dt { color: var(--muted); font-size: .72rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.analysis-facts dd { margin: 7px 0 0; overflow-wrap: anywhere; font-weight: 800; line-height: 1.45; }
.official-accordion { margin-top: 16px; border-top: 1px solid var(--border); }
.official-accordion-trigger { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 2px 4px; border: 0; background: transparent; color: var(--purple); font: inherit; font-weight: 850; text-align: left; cursor: pointer; }
.official-accordion-trigger:hover { color: #4d2090; }
.official-accordion-trigger:focus-visible { outline: 3px solid rgba(101,45,190,.28); outline-offset: 5px; border-radius: 8px; }
.official-accordion-chevron { display: grid; flex: 0 0 30px; width: 30px; height: 30px; place-items: center; border-radius: 50%; background: #efe5ff; transition: transform .2s ease, background .2s ease; }
.official-accordion-trigger[aria-expanded="true"] .official-accordion-chevron { background: var(--lime); transform: translateY(-1px); }
.official-accordion-panel { display: grid; grid-template-rows: 0fr; visibility: hidden; opacity: 0; transition: grid-template-rows .24s ease, opacity .18s ease, visibility .24s; }
.official-accordion-panel.is-open { grid-template-rows: 1fr; visibility: visible; opacity: 1; }
.official-accordion-inner { min-height: 0; overflow: hidden; }
.official-accordion-panel.is-open .official-accordion-inner { padding-top: 16px; }
.analysis-more-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 28px; margin: 0; padding: 18px; border-radius: 16px; background: #faf9fc; }
.analysis-more-facts div { min-width: 0; }
.analysis-more-facts dt { color: var(--muted); font-size: .72rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.analysis-more-facts dd { margin: 6px 0 0; overflow-wrap: anywhere; font-weight: 800; }
.analysis-detail-section { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); }
.analysis-detail-section h3 { margin: 0 0 12px; font-size: 1.1rem; }
.analysis-detail-section p { margin: 0; color: #47474f; line-height: 1.65; }
.analysis-summary-section p { font-size: 1.04rem; line-height: 1.72; }
.analysis-dispatch { margin-top: 10px !important; color: var(--muted) !important; }
.analysis-theme-list { display: flex; flex-wrap: wrap; gap: 9px; margin: 0; padding: 0; list-style: none; }
.analysis-theme-list li { padding: 8px 11px; border: 1px solid #d9c4ff; border-radius: 999px; background: #f7f1ff; color: var(--purple); font-size: .84rem; font-weight: 800; }
.analysis-document-link { margin-top: 28px; padding: 10px 13px; border: 1px solid var(--purple); border-radius: 11px; }
.analysis-source { margin: 24px 0 0; color: var(--muted); font-size: .8rem; }
.analysis-official .votes-warning { margin: 18px 0 0; }
.senate-type-line { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 .3em; }
.senate-matter-card { margin-top: 24px; }
.senate-matter-summary { max-width: 78ch; margin: 18px 0 28px; color: var(--text); font-size: clamp(1.08rem, 2vw, 1.25rem); line-height: 1.65; }
.senate-project-identification { grid-template-columns: minmax(0, 1fr); }
.senate-official-facts { margin-top: 0; }
.senate-current-procedure { margin: 28px 0 8px; padding: 20px; border-radius: 16px; background: var(--soft-purple); }
.senate-current-procedure h3 { margin-top: 0; }
.senate-official-links { display: flex; flex-wrap: wrap; gap: 10px; }
.senator-navigation-link { color: inherit; text-decoration: none; }
.senator-matters-header .senator-matters-prefix { margin: 18px 0 -2px; color: var(--muted); font-size: 1rem; font-weight: 700; }
.senator-matters-filters { grid-template-columns: repeat(2, minmax(0, 220px)); margin: 30px 0 18px; }
.listing-count { margin: 0 0 18px; color: var(--muted); font-weight: 750; }
.senator-matter-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.senator-matter-card { display: flex; min-width: 0; flex-direction: column; padding: 24px; border: 1px solid var(--border); border-radius: 20px; background: #fff; box-shadow: 6px 7px 0 rgba(22, 18, 28, .09); }
.senator-matter-card h2 { margin: 0; color: var(--purple); font-size: clamp(1.45rem, 3vw, 2rem); }
.senator-matter-type { margin: 6px 0 0; font-weight: 800; }
.senator-matter-summary { display: -webkit-box; overflow: hidden; margin: 18px 0; color: #47474f; font-size: 1.02rem; line-height: 1.6; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.senator-matter-facts { display: grid; gap: 6px; margin-top: auto; color: var(--muted); font-size: .96rem; }
.senator-matter-link { align-self: flex-start; min-height: 44px; margin-top: 20px; padding: 11px 14px; border: 1px solid var(--purple); border-radius: 11px; font-size: 1.02rem; }
.analysis-fulltext { margin-top: 30px; padding: clamp(24px, 4vw, 38px); }
.analysis-fulltext header h2 { margin: 4px 0 8px; font-size: clamp(1.7rem, 4vw, 2.5rem); }
.analysis-fulltext header p { margin: 0 0 22px; color: var(--muted); line-height: 1.6; }
.analysis-fulltext-content { max-height: 420px; margin: 20px 0 0; padding: clamp(18px, 3vw, 28px); overflow: auto; border: 1px solid var(--border); border-radius: 16px; background: #fbfafc; color: #29272f; font: 500 .94rem/1.72 system-ui, sans-serif; white-space: pre-wrap; overflow-wrap: anywhere; transition: max-height .2s ease; }
.analysis-fulltext-content.is-expanded { max-height: none; }
.analysis-fulltext-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 18px; }
.analysis-expand-button { min-height: 42px; padding: 9px 14px; border: 1px solid var(--ink); border-radius: 11px; background: white; color: var(--ink); font: inherit; font-weight: 800; cursor: pointer; }
.analysis-expand-button:hover { border-color: var(--purple); color: var(--purple); }
.analysis-document-meta { margin: 14px 0 0; color: var(--muted); font-size: .78rem; }
.analysis-ai { margin-top: 30px; padding: clamp(24px, 4vw, 38px); border: 2px solid #cdb5f3; background: #f7f1ff; }
.analysis-ai > header h2 { margin: 3px 0 8px; font-size: clamp(1.7rem, 4vw, 2.5rem); }
.analysis-ai > header p { margin: 0 0 22px; color: #52505a; line-height: 1.6; }
.analysis-ai-content { display: grid; gap: 26px; }
.analysis-ai-content[hidden] { display: none; }
.analysis-ai-content section { padding-top: 24px; border-top: 1px solid #d9c4ff; }
.analysis-ai-content h3 { margin: 0 0 12px; font-size: 1.2rem; }
.analysis-ai-content p, .analysis-ai-content li { color: #403d48; line-height: 1.65; }
.analysis-ai-content ul { display: grid; gap: 9px; margin: 0; padding-left: 22px; }
.analysis-ai-warning { margin: 0; padding: 16px 18px; border: 1px solid #d7b94e; border-radius: 14px; background: #fff8dd; color: #654c00 !important; font-weight: 750; }
.analysis-impact-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.analysis-impact-card { padding: 18px; border: 1px solid #d9c4ff; border-radius: 15px; background: white; }
.analysis-impact-card h4 { margin: 0 0 8px; color: var(--purple); font-size: 1rem; }
.analysis-impact-card p { margin: 0; }
.analysis-impact-condition { margin-top: 10px !important; color: var(--muted) !important; font-size: .88rem; }
.analysis-ai-transparency { display: grid; gap: 5px; color: var(--muted) !important; font-size: .8rem; }
.analysis-ai-transparency p { margin: 0; color: inherit; }

.vote-legend { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.vote-tag { padding: 7px 11px; border: 1px solid transparent; }
.vote-favor { background: #ddf7cf; color: #245f10; border-color: #bce7a7; }
.vote-against { background: #ffe0df; color: #93201b; border-color: #f3b9b6; }
.vote-abstention { background: #fff0c2; color: #745300; border-color: #ead587; }
.vote-absent { background: #e9e9ed; color: #52525a; border-color: #d4d4d9; }
.vote-list { display: grid; gap: 14px; }
.vote-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 28px; padding: 22px 26px; }
.vote-content time { color: var(--muted); font-size: .78rem; font-weight: 750; text-transform: uppercase; }
.vote-content h3 { margin: 7px 0 16px; font-size: 1.42rem; }
.vote-content p { margin: 0 0 13px; color: var(--muted); font-size: 1.02rem; }
.vote-detail-section { margin: 0 0 17px; }
.vote-proposal-context { margin: 0 0 16px; padding-left: 14px; border-left: 3px solid #d9c4ff; }
.vote-proposal-label { display: block; margin-bottom: 5px; color: var(--muted); font-size: .7rem; font-weight: 850; letter-spacing: .06em; }
.vote-proposal-title { color: var(--purple); font-weight: 850; }
.vote-proposal-title:hover { text-decoration: underline; }
.vote-content .vote-proposal-summary { display: -webkit-box; margin-bottom: 0; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; }
.parliamentary-vote { display: grid; justify-items: end; gap: 7px; min-width: 130px; }
.parliamentary-vote small { color: var(--muted); font-weight: 700; }
.vote-tooltip-wrap { position: relative; }
.vote-tooltip-trigger { max-width: 100%; padding: 11px 18px; border-style: solid; font: inherit; font-size: 1.25rem; font-weight: 700; white-space: nowrap; cursor: pointer; transition: transform .15s ease, filter .15s ease; }
.vote-tooltip-trigger:hover { transform: translateY(-2px); filter: saturate(1.12); }
.vote-tooltip-trigger:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; }
.vote-tooltip {
  position: absolute;
  z-index: 20;
  right: 0;
  bottom: calc(100% + 13px);
  width: min(380px, calc(100vw - 48px));
  padding: 18px;
  border: 2px solid var(--ink);
  border-radius: 16px;
  background: white;
  color: var(--ink);
  box-shadow: 6px 7px 0 var(--ink);
  text-align: left;
  visibility: hidden;
  opacity: 0;
  transform: translateY(5px);
  pointer-events: none;
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.vote-tooltip::after { content: ""; position: absolute; right: 22px; bottom: -8px; width: 12px; height: 12px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); background: white; transform: rotate(45deg); }
.vote-tooltip strong { display: block; margin-bottom: 9px; color: var(--purple); font-size: .95rem; line-height: 1.25; }
.vote-tooltip p { margin: 0 0 11px; color: #3f3f47; font-size: .87rem; font-weight: 500; line-height: 1.55; }
.vote-tooltip small { display: block; color: var(--muted); font-size: .72rem; font-weight: 650; }
.vote-tooltip-wrap:hover .vote-tooltip,
.vote-tooltip-wrap:focus-within .vote-tooltip,
.vote-tooltip-wrap.is-open .vote-tooltip { visibility: visible; opacity: 1; transform: translateY(0); pointer-events: auto; }

.commission-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.commission-card { display: flex; align-items: center; gap: 18px; padding: 24px; border-radius: 20px; background: var(--ink); color: white; }
.commission-card > div:last-child { min-width: 0; }
.commission-card:nth-child(2) { background: var(--purple); }
.commission-icon { display: grid; flex: 0 0 54px; width: 54px; height: 54px; place-items: center; border-radius: 14px; background: var(--purple); color: white; font-size: 1.55rem; }
.commission-card:nth-child(2) .commission-icon { background: var(--lime); color: var(--ink); }
.commission-card h3 { margin: 0 0 7px; font-size: 1.14rem; }
.commission-card p { margin: 0; color: rgba(255,255,255,.76); font-size: .96rem; line-height: 1.45; }
.profile-footer { margin-top: 0; }
.profile-navigation { padding-top: 62px; }
.profile-supplementary { margin-top: 40px; }
.profile-supplementary .mandate-accordion { grid-column: auto; }
.navigation-card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.senator-navigation-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.navigation-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 310px;
  padding: 28px;
  border: 2px solid var(--ink);
  border-radius: 24px;
  background: white;
  box-shadow: 7px 8px 0 var(--ink);
  transition: transform .18s ease, box-shadow .18s ease;
}
.navigation-projects { cursor: pointer; }
.navigation-card:hover, .navigation-card:focus-visible { transform: translate(-2px, -3px); box-shadow: 10px 12px 0 var(--ink); }
.navigation-projects { background: #f1e9ff; }
.navigation-votes { background: #f1ffd8; }
.navigation-committees { background: #fff5d8; }
.navigation-speeches { background: #f3edff; }
.navigation-amendments { background: #dff7f4; }
.navigation-icon { display: grid; width: 58px; height: 58px; place-items: center; border-radius: 16px; background: var(--purple); color: white; font-size: 1.8rem; font-weight: 900; }
.navigation-votes .navigation-icon { background: var(--lime); color: var(--ink); }
.navigation-committees .navigation-icon { background: var(--yellow); color: var(--ink); }
.navigation-speeches .navigation-icon { background: var(--purple); color: white; }
.navigation-amendments .navigation-icon { background: #087f76; color: white; font-size: 1.25rem; }
.navigation-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-top: 24px; }
.navigation-card h3 { min-width: 0; margin: 0; font-size: 1.65rem; }
.navigation-card p { flex: 1; margin: 9px 0 0; color: #47474f; font-size: 1.02rem; line-height: 1.55; }
.navigation-action { display: inline-flex; flex: 0 0 auto; min-height: 44px; align-items: flex-start; justify-content: flex-end; padding-block: 3px; color: var(--purple); font-size: 1.02rem; font-weight: 900; text-align: right; white-space: nowrap; }
.navigation-votes .navigation-action { color: #426f00; }
.navigation-committees .navigation-action { color: #765400; }
.navigation-speeches .navigation-action { color: var(--purple); }
.navigation-amendments .navigation-action { color: #086a63; }

.discourse-list { display: grid; gap: 18px; }
.discourse-card { padding: clamp(20px, 3vw, 28px); }
.discourse-card h3 { margin: 14px 0 8px; font-size: clamp(1.28rem, 2.5vw, 1.6rem); line-height: 1.25; }
.discourse-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.discourse-meta span { padding: 6px 9px; border-radius: 999px; background: var(--purple-light); color: #4f278a; font-size: .78rem; font-weight: 800; }
.discourse-official-label { display: block; margin-top: 16px; color: var(--purple); font-size: .72rem; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
.discourse-summary { margin: 5px 0 0; overflow-wrap: anywhere; color: #47474f; font-size: 1.02rem; line-height: 1.6; }
.discourse-links { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 18px; }
.discourse-links a { display: inline-flex; min-height: 44px; align-items: center; color: var(--purple); font-size: 1.02rem; font-weight: 850; }
.discourse-links a:hover { text-decoration: underline; }
.discourse-links .speech-full-link { padding: 9px 14px; border: 2px solid var(--ink); border-radius: 10px; background: var(--lime); color: var(--ink); box-shadow: 3px 4px 0 var(--ink); text-decoration: none; }
.discourse-links .speech-full-link:hover { transform: translate(1px, 1px); box-shadow: 2px 3px 0 var(--ink); text-decoration: none; }
.discourse-ai-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; }
.discourse-ai-button:disabled { cursor: not-allowed; opacity: .58; }
.discourse-ai-result { margin-top: 20px; padding: 18px; border: 1px solid #d9c4ff; border-radius: 14px; background: #f8f4ff; color: #36303f; line-height: 1.6; }
.discourse-ai-result.is-loading { color: var(--purple); font-weight: 750; }
.discourse-ai-result.is-error { border-color: #f3b9b6; background: #fff0ef; color: #8a211d; }
.discourse-ai-label { color: var(--purple); font-size: .72rem; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
.discourse-ai-result h4 { margin: 10px 0 4px; font-size: 1rem; }
.discourse-ai-result p { margin: 0; }
.discourse-ai-result ul { margin: 6px 0 14px; padding-left: 22px; }
.discourse-ai-result li + li { margin-top: 4px; }
.discourse-ai-result small { display: block; padding-top: 12px; border-top: 1px solid #dfd0f5; color: var(--muted); font-size: .75rem; }
.projects-filters.speeches-filters { grid-template-columns: minmax(190px, 300px); margin-bottom: 18px; }

.amendment-list { display: grid; gap: 18px; }
.amendment-card { padding: 26px; }
.amendment-card h3 { margin: 22px 0 18px; font-size: 1.38rem; line-height: 1.25; }
.amendment-details { display: grid; grid-template-columns: .65fr 1fr 1.25fr; gap: 18px; margin: 0; padding: 18px 0; border-block: 1px solid var(--border); }
.amendment-details div { display: grid; align-content: start; gap: 5px; }
.amendment-details dt { color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.amendment-details dd { margin: 0; font-size: 1.02rem; font-weight: 750; line-height: 1.45; }
.amendment-purpose { margin: 18px 0 0; color: #47474f; font-size: 1.02rem; line-height: 1.6; }
.mock-notice { margin: -6px 0 22px; padding: 12px 15px; border: 1px solid #e2c66c; border-radius: 12px; background: #fff7d7; color: #654c00; font-size: .9rem; }

.listing-main { min-height: calc(100vh - 210px); }
.page-actions { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 18px; }
.page-actions .back-link { margin-bottom: 0; }
.page-actions-secondary { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.home-link { display: inline-flex; min-height: 44px; align-items: center; gap: 7px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 12px; background: white; color: var(--ink); font-weight: 800; cursor: pointer; }
.home-link:hover { border-color: var(--purple); color: var(--purple); }
.top-support-link { background: var(--purple-light); }
.top-support-link span { color: var(--purple); }
.compact-profile {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 22px 28px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: white;
  box-shadow: 0 10px 28px rgba(28,18,54,.06);
}
.compact-avatar { width: 88px; height: 88px; flex: 0 0 88px; overflow: hidden; border: 3px solid var(--ink); border-radius: 50%; background: var(--purple-light); }
.compact-avatar img { width: 220%; height: 100%; object-fit: cover; object-position: 13% center; mix-blend-mode: multiply; }
#projectsProfilePhoto { width: 100%; object-position: center top; mix-blend-mode: normal; }
body[data-page="discursos"] #speechesProfilePhoto { width: 100%; height: 100%; object-fit: cover; object-position: center top; mix-blend-mode: normal; }
body[data-page="discurso"] #speechProfilePhoto { width: 100%; height: 100%; object-fit: cover; object-position: center top; mix-blend-mode: normal; }
body[data-page="votacoes"] .compact-avatar { width: 104px; height: 104px; flex-basis: 104px; }
body[data-page="votacoes"] #votesProfilePhoto { width: 100%; height: 100%; object-fit: cover; object-position: center top; mix-blend-mode: normal; }
.compact-profile span { color: var(--purple); font-size: .78rem; font-weight: 850; text-transform: uppercase; letter-spacing: .05em; }
.compact-profile h1 { margin: 3px 0; font-size: clamp(1.7rem, 3vw, 2.45rem); letter-spacing: -1px; }
.compact-profile p { margin: 0; color: var(--muted); }
.compact-profile h1, .compact-profile p { overflow-wrap: anywhere; }
.speech-detail-main { min-height: calc(100vh - 210px); }
.speech-detail-card { max-width: 920px; margin: 42px auto 0; padding: clamp(24px, 5vw, 48px); border: 1px solid var(--border); border-radius: 24px; background: white; box-shadow: var(--shadow); }
.speech-detail-header h2 { margin: 5px 0 12px; font-size: clamp(2rem, 5vw, 3.4rem); letter-spacing: -2px; line-height: 1; }
.speech-detail-date { margin: 0 0 14px; color: var(--muted); font-weight: 800; }
.speech-keywords { margin: 15px 0 0; overflow-wrap: anywhere; color: var(--muted); font-size: .82rem; line-height: 1.5; }
.speech-source-note { margin: 28px 0 12px; color: var(--purple); font-size: .9rem; font-weight: 850; }
.speech-transcript { max-width: 76ch; white-space: pre-line; overflow-wrap: anywhere; color: #29292f; font-size: clamp(1rem, 1.6vw, 1.12rem); line-height: 1.85; }
.speech-source { margin: 28px 0 0; padding-top: 18px; border-top: 1px solid var(--border); color: var(--muted); font-size: .86rem; }
.speech-source a { color: var(--purple); font-weight: 850; }
.listing-section { padding-top: 46px; }
.records-summary { margin: -12px 0 20px; color: var(--muted); font-size: .9rem; }
.projects-filters {
  display: grid;
  grid-template-columns: minmax(150px, .6fr) minmax(210px, 1fr) auto auto;
  align-items: end;
  gap: 14px;
  margin: -6px 0 22px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: white;
}
.projects-filters label { display: grid; gap: 7px; color: var(--muted); font-size: .78rem; font-weight: 850; text-transform: uppercase; }
.projects-filters input { min-width: 0; padding: 12px 13px; border: 1px solid var(--border); border-radius: 11px; background: #faf9fc; color: var(--ink); font: inherit; }
.projects-filters select { min-width: 0; padding: 12px 13px; border: 1px solid var(--border); border-radius: 11px; background: #faf9fc; color: var(--ink); font: inherit; }
.projects-filters input:focus, .projects-filters select:focus { outline: 3px solid rgba(101, 45, 190, .18); border-color: var(--purple); }
.projects-filters button { min-height: 44px; padding: 10px 17px; border: 1px solid var(--ink); border-radius: 11px; font: inherit; font-weight: 850; cursor: pointer; }
.projects-filters .primary-button { background: var(--lime); box-shadow: 3px 3px 0 var(--ink); }
.projects-filters .secondary-button { background: white; }
.projects-filters button:disabled { cursor: wait; opacity: .65; }
.senate-committees-filters { grid-template-columns: repeat(3, minmax(150px, 1fr)) auto auto; }
.votes-filters { grid-template-columns: repeat(3, minmax(160px, 1fr)) auto; }
.votes-filters.is-general { grid-template-columns: repeat(2, minmax(160px, 1fr)) auto; }
.votes-warning, .votes-note { padding: 14px 16px; border: 1px solid #ead587; border-radius: 13px; background: #fff8dd; color: #654c00; line-height: 1.5; }
.votes-warning { margin: 0 0 18px; font-weight: 700; }
.votes-note { margin: 28px 0 0; font-size: .88rem; }
.vote-result { padding: 11px 16px; font-size: 1rem; }
.vote-neutral { border-color: #d4d4d9; background: #f0f0f3; color: #44444c; }
.vote-content { min-width: 0; }
.vote-content h3, .vote-content p { overflow-wrap: anywhere; }
.commission-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.commission-detail-card { display: flex; min-width: 0; flex-direction: column; padding: 28px; border: 1px solid var(--border); border-radius: 22px; background: white; box-shadow: 0 10px 28px rgba(28,18,54,.06); }
.commission-detail-card:nth-child(2) { background: #f7f1ff; }
.commission-detail-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.commission-detail-card h3 { margin: 25px 0 20px; font-size: 1.42rem; line-height: 1.2; }
.commission-detail-card dl { display: flex; flex-wrap: wrap; gap: 18px 40px; margin: 0 0 20px; padding: 18px 0; border-block: 1px solid var(--border); }
.commission-detail-card dl div { display: grid; gap: 4px; }
.commission-detail-card dt { color: var(--muted); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.commission-detail-card dd { margin: 0; font-weight: 800; }
.commission-detail-card > p { margin: 0; color: #47474f; font-size: 1.02rem; line-height: 1.6; }
.commission-detail-card .detail-link { margin-top: auto; padding-top: 22px; }
.commission-sigla { color: var(--purple); font-size: 1rem; font-weight: 900; letter-spacing: .05em; }
.filter-note { margin: -12px 0 20px; color: var(--muted); font-size: .8rem; }
.commission-hero { padding: clamp(26px, 5vw, 48px); }
.commission-hero > strong { display: block; margin-top: 12px; color: var(--purple); font-size: 1.1rem; letter-spacing: .08em; }
.commission-hero h1 { max-width: 900px; margin: 8px 0 12px; font-size: clamp(2rem, 5vw, 3.7rem); letter-spacing: -2px; line-height: 1.05; }
.commission-hero > p { color: var(--muted); font-size: 1.05rem; }
.commission-hero-facts { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
.commission-hero-facts span { padding: 7px 11px; border-radius: 999px; background: var(--purple-light); font-size: .82rem; font-weight: 800; }
.commission-member-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.commission-member-card { display: flex; align-items: center; min-width: 0; gap: 15px; padding: 17px; border: 1px solid var(--border); border-radius: 17px; background: white; }
.commission-member-card img { flex: 0 0 62px; width: 62px; height: 62px; border: 2px solid var(--ink); border-radius: 50%; object-fit: cover; object-position: center top; }
.commission-member-card div { min-width: 0; }.commission-member-card h3 { margin: 0 0 4px; overflow-wrap: anywhere; font-size: 1.06rem; }.commission-member-card p { margin: 0 0 6px; color: var(--muted); font-size: .88rem; }.commission-member-card strong { color: var(--purple); font-size: .88rem; }
.activity-subtitle { margin: 28px 0 14px; font-size: 1.35rem; }.commission-event-list { display: grid; gap: 15px; }
.commission-event-card { padding: 22px; border: 1px solid var(--border); border-radius: 18px; background: white; }.commission-event-card time { color: var(--purple); font-size: .84rem; font-weight: 850; }.commission-event-card h3 { margin: 7px 0 10px; font-size: 1.18rem; }.commission-event-card p { display: -webkit-box; overflow: hidden; color: var(--muted); font-size: 1.02rem; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 4; }.commission-event-card small { color: var(--muted); }.commission-agenda-button { display: block; min-height: 44px; margin-top: 16px; padding: 9px 13px; border: 1px solid var(--ink); border-radius: 10px; background: white; font-size: 1.02rem; font-weight: 800; cursor: pointer; }
.commission-agenda { display: grid; gap: 10px; margin-top: 15px; }.commission-agenda-item { padding: 14px; border-radius: 12px; background: #f7f1ff; }.commission-agenda-item h4,.commission-agenda-item p { margin: 0 0 7px; }.commission-agenda-item a { color: var(--purple); }
.official-description { max-width: 900px; margin: 0; white-space: pre-line; color: #47474f; line-height: 1.75; }

@media (max-width: 1100px) {
  .home-page .site-header { gap: 18px; }
  .home-page .main-nav { gap: 14px; font-size: .9rem; }
  .hero { grid-template-columns: 1fr 1fr; padding-inline: 34px; }
  .search-grid { grid-template-columns: 1fr 50px 1fr; }
  .search-selectors { gap: 18px; }
  .state-field { grid-column: 1 / -1; }
  .features { grid-template-columns: repeat(3, 1fr); }
  .features-heading { grid-column: 1 / -1; }
  .manifesto { grid-template-columns: 70px 1.2fr 1px 1fr; }
  .manifesto-callout { grid-column: 2 / -1; }
  .profile-hero { grid-template-columns: 190px 1fr; }
  .profile-photo-wrap { width: 170px; }
  .mandate-status { grid-column: 2; width: max-content; }
  .mandate-accordion { grid-column: 2; }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-card:last-child { grid-column: 1 / -1; min-height: 260px; }
  .navigation-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .parliamentarian-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 781px) and (max-width: 900px) {
  .support-header-button { display: none; }
}

@media (max-width: 780px) {
  .site-header { width: calc(100% - 28px); min-height: 74px; gap: 10px; }
  .header-brand-group { gap: 10px; }
  .support-header-button { min-height: 34px; padding: 6px 9px; font-size: .76rem; }
  .menu-button { display: block; flex: 0 0 auto; padding-inline: 4px; }
  .main-nav {
    display: none;
    position: absolute;
    top: 72px; right: 0;
    width: min(300px, 88vw);
    padding: 18px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px; }
  .support-nav-button { min-height: 44px; text-align: left; }
  .support-modal { padding: 12px; }
  .support-modal-dialog { max-height: calc(100vh - 24px); padding: 24px 18px; border-radius: 17px; box-shadow: 5px 6px 0 var(--ink); }
  .support-modal-close { top: 13px; right: 13px; }
  .support-pix-layout { grid-template-columns: 1fr; gap: 20px; }
  .support-qr-wrap { width: min(240px, 100%); margin-inline: auto; }
  .support-copy-button { width: 100%; min-height: 48px; }

  .hero {
    width: calc(100% - 20px);
    display: block;
    min-height: auto;
    padding: 36px 20px 30px;
  }
  .hero-copy h1 { font-size: clamp(3.5rem, 18vw, 6rem); }
  .hero-copy p { margin-top: 28px; }
  .hero-visual { height: 350px; margin-top: 10px; }
  .hero-visual { min-height: 0; overflow: hidden; border-radius: 24px; }
  .hero-visual img { width: 100%; max-width: 100%; height: 100%; right: 0; bottom: 0; object-fit: cover; object-position: center; }
  .search-card { position: relative; left: auto; right: auto; bottom: auto; margin-top: -20px; padding: 24px 18px; }
  .search-selectors { display: grid; gap: 18px; }
  .search-choice-group { grid-auto-columns: minmax(0, 1fr); }
  .search-choice { min-width: 0; padding-inline: 10px; }
  .search-grid { grid-template-columns: 1fr; }
  .or-badge { margin: -4px auto; }
  .state-field { grid-column: auto; }
  .search-actions { flex-direction: column; }
  .action-note { transform: rotate(-2deg); }
  .search-results { width: calc(100% - 28px); padding: 24px 18px; }
  .results-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
  .results-heading p { text-align: left; }
  .parliamentarian-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .result-photo-wrap { height: 140px; }

  .support-card { width: calc(100% - 28px); align-items: flex-start; flex-direction: column; gap: 22px; }
  .support-card-button { width: 100%; }

  .home-intro { width: calc(100% - 28px); margin-block: 24px 30px; padding: 22px 20px; }

  .features { width: calc(100% - 28px); grid-template-columns: 1fr; }
  .features-heading { grid-column: auto; }
  .manifesto { width: calc(100% - 28px); grid-template-columns: 1fr; text-align: center; }
  .manifesto-divider { width: 100%; height: 1px; }
  .manifesto-callout { grid-column: auto; }
  .site-footer { grid-template-columns: 1fr; text-align: center; }
  .site-footer nav { justify-content: center; flex-wrap: wrap; }

  .profile-main { width: calc(100% - 28px); margin-top: 18px; }
  .profile-hero { grid-template-columns: 1fr; justify-items: center; gap: 26px; padding: 32px 22px; text-align: center; }
  .profile-photo-wrap { width: min(190px, 65vw); }
  .profile-summary h1 { letter-spacing: -2px; }
  .profile-facts { justify-content: center; }
  .profile-facts div { min-width: 120px; }
  .mandate-status { grid-column: auto; width: auto; }
  .mandate-accordion { grid-column: 1; text-align: left; }
  .activity-section { padding-top: 48px; }
  .section-heading { align-items: flex-start; }
  .section-heading:has(.vote-legend) { flex-direction: column; }
  .vote-legend { justify-content: flex-start; }
  .project-grid, .commission-grid, .senator-matter-grid { grid-template-columns: 1fr; }
  .commission-member-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-card:last-child { grid-column: auto; min-height: 330px; }
  .vote-card { grid-template-columns: 1fr; gap: 20px; }
  .parliamentary-vote { justify-items: start; padding-top: 17px; border-top: 1px solid var(--border); }
  .vote-tooltip { right: auto; left: 0; }
  .vote-tooltip::after { right: auto; left: 22px; }
  .vote-tooltip-trigger { white-space: normal; text-align: left; line-height: 1.25; }
  .profile-navigation { padding-top: 48px; }
  .navigation-card-grid, .commission-detail-grid, .profile-detail-grid { grid-template-columns: 1fr; }
  .navigation-card { min-height: 310px; }
  .amendment-details { grid-template-columns: 1fr; }
  .page-actions { align-items: flex-start; }
  .compact-profile { padding: 18px; }
  .projects-filters { grid-template-columns: 1fr 1fr; }
  .senator-matters-filters { grid-template-columns: 1fr 1fr; }
  .votes-filters { grid-template-columns: 1fr 1fr; }
  .analysis-facts, .analysis-more-facts { grid-template-columns: 1fr; }

  body[data-page="parlamentar"] .profile-summary h1 { font-size: clamp(2.15rem, 5vw, 3rem); line-height: 1; }
  body[data-page="parlamentar"] .profile-role { font-size: 1rem; }
  body[data-page="parlamentar"] .profile-hero .eyebrow { font-size: .88rem; }
  body[data-page="parlamentar"] .mandate-status small { font-size: .76rem; }
  body[data-page="parlamentar"] .mandate-status strong { font-size: .92rem; }
  body[data-page="parlamentar"] .mandate-accordion-trigger { font-size: .92rem; }
  body[data-page="parlamentar"] .profile-facts dt,
  body[data-page="parlamentar"] .profile-detail-card dt { font-size: .68rem; }
  body[data-page="parlamentar"] .profile-facts dd,
  body[data-page="parlamentar"] .profile-detail-card dd { font-size: .9rem; line-height: 1.4; }
  body[data-page="parlamentar"] .profile-detail-card h3 { font-size: 1.12rem; }
  body[data-page="parlamentar"] .profile-navigation .section-heading h2 { font-size: clamp(1.8rem, 5vw, 2.35rem); }
  body[data-page="parlamentar"] .navigation-card h3 { font-size: 1.52rem; }
  body[data-page="parlamentar"] .navigation-card p { font-size: .98rem; }
  body[data-page="parlamentar"] .navigation-count { font-size: .74rem; }
  body[data-page="parlamentar"] .navigation-action { font-size: .96rem; }

  body[data-page="parlamentar"] .profile-main { margin-bottom: 48px; }
  body[data-page="parlamentar"] .back-link { margin-bottom: 8px; }
  body[data-page="parlamentar"] .profile-state { margin-bottom: 8px; }
  body[data-page="parlamentar"] .profile-hero {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 10px;
    min-height: 0;
    padding: 16px 18px;
    text-align: center;
  }
  body[data-page="parlamentar"] .profile-photo-wrap { width: min(180px, 58vw); border-width: 3px; box-shadow: 6px 7px 0 var(--lime); }
  body[data-page="parlamentar"] .profile-summary h1 { margin: 0 0 3px; }
  body[data-page="parlamentar"] .mandate-status { grid-column: 1; width: 100%; min-width: 0; gap: 10px; padding: 8px 12px; text-align: left; }
  body[data-page="parlamentar"] .mandate-status div { display: flex; flex: 1; min-width: 0; align-items: center; justify-content: space-between; gap: 10px; }
  body[data-page="parlamentar"] .mandate-status small,
  body[data-page="parlamentar"] .mandate-status strong { white-space: nowrap; }
  body[data-page="parlamentar"] .profile-navigation { padding-top: 18px; }
  body[data-page="parlamentar"] .profile-navigation .section-heading { margin-bottom: 10px; }
  body[data-page="parlamentar"] .profile-navigation .section-heading h2 { margin-top: 0; }
  body[data-page="parlamentar"] .navigation-card-grid { gap: 14px; }
  body[data-page="parlamentar"] .navigation-card { min-height: 0; padding: 20px; border-radius: 20px; box-shadow: 5px 6px 0 var(--ink); }
  body[data-page="parlamentar"] .navigation-icon { width: 48px; height: 48px; border-radius: 13px; font-size: 1.45rem; }
  body[data-page="parlamentar"] .navigation-card-header { gap: 10px; margin-top: 14px; }
  body[data-page="parlamentar"] .navigation-card p { margin-top: 5px; }
  body[data-page="parlamentar"] .navigation-action { min-height: 44px; }
  body[data-page="parlamentar"] .profile-supplementary { margin-top: 30px; }
  body[data-page="parlamentar"] .mandate-accordion-trigger { min-height: 48px; padding: 10px 2px 6px; }

  body[data-page="senador"] .profile-main { margin-bottom: 48px; }
  body[data-page="senador"] .back-link,
  body[data-page="senador"] .profile-state { margin-bottom: 8px; }
  body[data-page="senador"] .profile-hero { gap: 14px; min-height: 0; padding: 20px 18px; }
  body[data-page="senador"] .profile-summary h1 { margin: 0 0 3px; }
  body[data-page="senador"] .senator-position { margin-top: 3px; }
  body[data-page="senador"] .mandate-status { grid-column: 1; width: 100%; min-width: 0; gap: 10px; padding: 8px 12px; text-align: left; }
  body[data-page="senador"] .mandate-status div { display: flex; flex: 1; min-width: 0; align-items: center; justify-content: space-between; gap: 10px; }
  body[data-page="senador"] .mandate-status small,
  body[data-page="senador"] .mandate-status strong { white-space: nowrap; }
  body[data-page="senador"] .profile-navigation { padding-top: 24px; }
  body[data-page="senador"] .profile-supplementary { margin-top: 30px; }
  body[data-page="senador"] .mandate-accordion-trigger { min-height: 48px; padding: 10px 2px 6px; }
}

@media (max-width: 480px) {
  .hero { padding: 30px 16px 24px; }
  .hero-copy h1 { font-size: clamp(3rem, 17vw, 4.6rem); letter-spacing: -2px; }
  .hero-visual { height: 280px; }
  .search-card { padding-inline: 14px; }
  .search-button { width: 100%; min-width: 0; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
  .profile-facts { display: grid; grid-template-columns: 1fr; width: 100%; }
  .vote-legend { justify-content: flex-start; }
  .page-actions { flex-direction: column; }
  .page-actions-secondary { justify-content: flex-start; width: 100%; }
  .compact-profile { align-items: flex-start; }
  .compact-avatar { width: 72px; height: 72px; flex-basis: 72px; }
  body[data-page="votacoes"] .compact-avatar { width: 88px; height: 88px; flex-basis: 88px; }
  .vote-tooltip-trigger { padding: 10px 14px; font-size: 1.05rem; }
  .parliamentarian-grid { grid-template-columns: 1fr; }
  .result-photo-wrap { height: 130px; }
  .results-pagination { align-items: stretch; flex-direction: column; }
  .profile-detail-card dl { grid-template-columns: 1fr; }
  .projects-filters { grid-template-columns: 1fr; }
  .senator-matters-filters { grid-template-columns: 1fr; }
  .votes-filters { grid-template-columns: 1fr; }
  .analysis-impact-list { grid-template-columns: 1fr; }
  .commission-member-grid { grid-template-columns: 1fr; }
  .commission-detail-top { flex-wrap: wrap; }

  body[data-page="parlamentar"] .profile-hero { gap: 9px; padding: 14px 16px; }
  body[data-page="parlamentar"] .navigation-card-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  body[data-page="parlamentar"] .profile-summary h1 { font-size: clamp(1.95rem, 9vw, 2.4rem); letter-spacing: -1.5px; }
  body[data-page="parlamentar"] .profile-role { font-size: .92rem; }
  body[data-page="parlamentar"] .profile-hero .eyebrow { font-size: .78rem; }
  body[data-page="parlamentar"] .mandate-accordion-trigger { font-size: .875rem; }
  body[data-page="parlamentar"] .profile-navigation .section-heading h2 { font-size: 1.7rem; letter-spacing: -1px; }
  body[data-page="parlamentar"] .navigation-card h3 { font-size: 1.42rem; }
  body[data-page="parlamentar"] .navigation-card p { font-size: .96rem; line-height: 1.48; }
  body[data-page="parlamentar"] .navigation-action { font-size: .94rem; }
  body[data-page="projetos"] .project-actions { align-items: stretch; flex-direction: column; }
  body[data-page="projetos"] .project-analysis-link { justify-content: center; width: 100%; min-height: 46px; }
  body[data-page="projetos"] .project-original-link { display: inline-flex; min-height: 44px; align-items: center; }
}

@media (min-width: 1024px) {
  .hero {
    min-height: 0;
    padding: 70px clamp(34px, 4vw, 58px) 40px;
  }

  .hero-visual {
    min-height: 0;
    aspect-ratio: 3 / 2;
    align-self: start;
  }

  .hero-visual img {
    width: 100%;
    max-width: 100%;
    height: auto;
    top: 0;
    right: 0;
    bottom: auto;
  }

  .search-card {
    position: relative;
    grid-column: 1 / -1;
    left: auto;
    right: auto;
    bottom: auto;
    width: min(92%, 1200px);
    margin: 48px auto 0;
  }
}
