:root {
  --navy: #103968;
  --navy-deep: #082b52;
  --blue: #1f5fae;
  --blue-light: #eaf2fb;
  --red: #c9252d;
  --green: #2d7d4f;
  --yellow: #f2c526;
  --ink: #132238;
  --muted: #5e6a78;
  --line: #d7e0e9;
  --surface: #ffffff;
  --surface-subtle: #f4f7fa;
  --focus: #005fcc;
  --shadow: 0 8px 22px rgba(19, 34, 56, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--surface-subtle);
  color: var(--ink);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

button,
input {
  font: inherit;
}

.site-header {
  min-height: 100px;
  padding: 10px max(28px, calc((100% - 1520px) / 2));
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}

.brand {
  min-width: 460px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--navy);
  text-decoration: none;
}

.brand img {
  width: 78px;
  height: 78px;
  flex: 0 0 78px;
  object-fit: contain;
}

.brand-institution {
  width: 190px;
  display: flex;
  flex-direction: column;
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.08;
}

.brand-institution strong {
  font-size: 1.5rem;
}

.brand-divider {
  width: 1px;
  height: 48px;
  background: #aebdcd;
}

.brand-product {
  white-space: nowrap;
  font-size: 1.45rem;
  font-weight: 800;
}

.brand-product b {
  color: var(--red);
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
}

.primary-nav a,
.logout-form button {
  padding: 11px 1px 8px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--navy);
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.primary-nav a:hover,
.logout-form button:hover {
  border-bottom-color: var(--red);
}

.primary-nav .account-link {
  padding: 10px 16px;
  border: 1px solid var(--navy);
  border-radius: 4px;
  background: var(--navy);
  color: white;
}

.primary-nav .account-link:hover {
  border-bottom-color: var(--navy);
  background: var(--blue);
}

.primary-nav .account-signup-link {
  background: white;
  color: var(--navy);
}

.primary-nav .account-signup-link:hover {
  background: var(--blue-light);
}

.primary-nav .account-avatar-link {
  width: 42px;
  height: 42px;
  padding: 0;
  position: relative;
  flex: 0 0 42px;
  border: 2px solid var(--navy);
  border-radius: 50%;
  background: white;
  color: var(--navy);
  display: grid;
  place-items: center;
  font-weight: 900;
  text-decoration: none;
}

.primary-nav .account-avatar-link:hover {
  border-bottom-color: var(--navy);
  background: var(--blue-light);
}

.primary-nav .account-avatar-link b {
  min-width: 19px;
  height: 19px;
  padding: 0 4px;
  position: absolute;
  top: -7px;
  right: -7px;
  border: 2px solid white;
  border-radius: 10px;
  background: var(--red);
  color: white;
  display: grid;
  place-items: center;
  font-size: 0.65rem;
  line-height: 1;
}

.logout-form {
  margin: 0;
}

#main-content {
  width: 100%;
  min-height: calc(100vh - 260px);
  background: var(--surface);
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  line-height: 1.12;
}

h1 {
  margin-bottom: 18px;
  font-size: 3.75rem;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  color: var(--navy);
  font-size: 2rem;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.35rem;
}

h4 {
  margin-bottom: 8px;
  font-size: 1.08rem;
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow-light {
  color: var(--yellow);
}

.button {
  min-height: 46px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.button:hover {
  filter: brightness(0.94);
}

.button-primary {
  background: var(--red);
  color: white;
}

.button-secondary {
  border-color: var(--blue);
  background: white;
  color: var(--navy);
}

.button-light {
  border-color: white;
  background: white;
  color: var(--navy);
}

.button-dark {
  background: var(--navy);
  color: white;
}

.hero {
  min-height: 430px;
  padding: 58px max(36px, calc((100% - 1440px) / 2));
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: white;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(330px, 0.75fr);
  align-items: center;
  gap: 72px;
  border-bottom: 8px solid var(--red);
}

.hero::before {
  width: 14px;
  height: 100%;
  position: absolute;
  top: 0;
  left: max(18px, calc((100% - 1510px) / 2));
  background: var(--yellow);
  content: "";
}

.hero-mark {
  width: 360px;
  height: 360px;
  position: absolute;
  top: 36px;
  right: max(24px, calc((100% - 1510px) / 2));
  object-fit: contain;
  opacity: 0.14;
}

.hero-content {
  max-width: 760px;
  position: relative;
  z-index: 1;
}

.hero h1 {
  max-width: 720px;
  color: white;
}

.hero-content > p:not(.eyebrow) {
  max-width: 700px;
  margin-bottom: 28px;
  color: #e7eff9;
  font-size: 1.22rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-benefits {
  padding-left: 36px;
  position: relative;
  z-index: 1;
  border-left: 1px solid rgba(255, 255, 255, 0.42);
  display: grid;
  gap: 0;
}

.hero-benefits div {
  min-height: 86px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  display: grid;
  align-content: center;
  gap: 3px;
}

.hero-benefits div:last-child {
  border-bottom: 0;
}

.hero-benefits strong {
  color: var(--yellow);
  font-size: 1.08rem;
}

.hero-benefits span {
  color: #eef4fb;
}

.home-band {
  padding: 50px max(28px, calc((100% - 1440px) / 2));
}

.home-band-audiences {
  background: var(--surface);
}

.home-band-projects {
  background: var(--blue-light);
  border-top: 1px solid #d4e2f2;
  border-bottom: 1px solid #d4e2f2;
}

.band-heading {
  margin-bottom: 24px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
}

.text-link {
  padding-bottom: 3px;
  border-bottom: 2px solid var(--red);
  color: var(--navy);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.text-link:hover {
  color: var(--red);
}

.audience-overview {
  display: grid;
  grid-template-columns: minmax(290px, 0.75fr) minmax(0, 1.25fr);
  gap: 24px;
}

.live-panel {
  min-height: 260px;
  padding: 34px;
  background: var(--navy);
  color: white;
  border-left: 7px solid var(--red);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.live-panel h3 {
  color: white;
  font-size: 1.65rem;
}

.live-panel > p:not(.status-label) {
  color: #dce8f5;
}

.status-label,
.card-kicker {
  margin-bottom: 10px;
  color: var(--yellow);
  font-size: 0.75rem;
  font-weight: 850;
  text-transform: uppercase;
}

.status-label.is-live::before {
  width: 9px;
  height: 9px;
  margin-right: 7px;
  border-radius: 50%;
  background: #ff5961;
  display: inline-block;
  content: "";
}

.home-list {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 12px;
}

.home-list > h3 {
  margin-bottom: 2px;
  color: var(--navy);
}

.home-audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.home-audience-grid .audience-card {
  min-height: 100%;
}

.home-audience-grid .card-body {
  padding: 16px;
}

.home-audience-grid .card-body h3 {
  font-size: 1.05rem;
  line-height: 1.25;
}

.home-audience-grid .card-body > p:not(.card-kicker) {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  font-size: 0.9rem;
}

.home-audience-grid .card-meta {
  font-size: 0.76rem;
}

.home-audience-grid .card-action {
  font-size: 0.86rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.content-card {
  min-width: 0;
  min-height: 220px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  box-shadow: var(--shadow);
  display: flex;
  overflow: hidden;
}

.card-accent {
  width: 8px;
  flex: 0 0 8px;
  background: var(--red);
}

.card-body {
  min-width: 0;
  padding: 22px;
  display: flex;
  flex: 1;
  flex-direction: column;
}

.card-body h2,
.card-body h3,
.card-body h4 {
  color: var(--navy);
}

.card-body h2 {
  font-size: 1.4rem;
}

.card-body a {
  text-decoration: none;
}

.card-body > p:not(.card-kicker) {
  color: var(--muted);
}

.card-meta {
  margin-top: auto;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 15px;
  font-size: 0.84rem;
}

.card-action {
  margin-top: 14px;
  color: var(--blue);
  font-weight: 800;
}

.card-action:hover {
  color: var(--red);
}

.project-symbol {
  width: 72px;
  flex: 0 0 72px;
  background: var(--yellow);
  color: var(--navy-deep);
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  font-weight: 900;
}

.section-empty {
  min-height: 150px;
  padding: 30px;
  border: 1px dashed #a9b8c7;
  background: rgba(255, 255, 255, 0.62);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.section-empty-wide {
  grid-column: 1 / -1;
}

.section-empty p {
  margin: 5px 0 0;
  color: var(--muted);
}

.participation-page > h1 {
  margin-bottom: 9px;
  font-size: 2.75rem;
}

.participation-page > .page-lead {
  margin-bottom: 28px;
}

.participation-metrics {
  margin-bottom: 28px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.participation-metric {
  min-height: 112px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
}

.participation-metric:hover {
  border-color: var(--blue);
  box-shadow: 0 5px 14px rgba(19, 34, 56, 0.08);
}

.participation-metric:not(.participation-metric-secondary) {
  border-top: 4px solid var(--navy);
}

.participation-metric-secondary {
  background: var(--surface-subtle);
}

.participation-metric-symbol,
.participation-activity-symbol {
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  font-weight: 900;
}

.participation-metric-symbol {
  width: 58px;
  height: 58px;
  background: var(--blue-light);
  color: var(--navy);
  font-size: 1.45rem;
}

.participation-metric-symbol.metric-suggestion {
  background: #fff5d6;
  color: #745400;
}

.participation-metric-symbol.metric-support {
  background: #e5f5ec;
  color: #185c38;
}

.participation-metric strong,
.participation-metric small {
  display: block;
}

.participation-metric strong {
  color: var(--navy);
  font-size: 2rem;
  line-height: 1;
}

.participation-metric small {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.participation-tabs {
  margin-bottom: 30px;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 34px;
  overflow-x: auto;
}

.participation-tabs a {
  padding: 12px 4px 11px;
  border-bottom: 4px solid transparent;
  color: var(--muted);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.participation-tabs a:hover,
.participation-tabs a.is-active {
  border-bottom-color: var(--red);
  color: var(--navy);
}

.participation-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(320px, 0.8fr);
  gap: 30px;
  align-items: start;
}

.participation-main-panel,
.participation-updates,
.participation-browser,
.participation-supported-panel {
  min-width: 0;
  border-top: 5px solid var(--navy);
}

.participation-updates {
  border-top-color: var(--yellow);
}

.participation-supported-panel {
  border-top-color: var(--yellow);
}

.participation-panel-heading {
  min-height: 88px;
  padding: 18px 0 14px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.participation-panel-heading .eyebrow {
  margin-bottom: 5px;
}

.participation-panel-heading h2 {
  font-size: 1.45rem;
}

.participation-timeline {
  position: relative;
}

.participation-timeline::before {
  content: "";
  position: absolute;
  top: 31px;
  bottom: 31px;
  left: 25px;
  width: 2px;
  background: var(--line);
}

.participation-activity,
.participation-list-row {
  position: relative;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 17px;
}

.participation-activity {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.participation-activity-symbol {
  position: relative;
  z-index: 1;
  width: 52px;
  height: 52px;
  border: 5px solid var(--surface);
  background: var(--blue-light);
  color: var(--navy);
  font-size: 1.12rem;
}

.participation-activity-suggestion .participation-activity-symbol,
.participation-list-row-suggestion .participation-activity-symbol {
  background: #fff5d6;
  color: #745400;
}

.participation-activity-body,
.participation-list-content {
  min-width: 0;
}

.participation-activity-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.participation-activity-heading > div:first-child {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 3px 12px;
}

.participation-relation,
.participation-update-kind {
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.participation-activity-heading time,
.participation-update-item time {
  color: var(--muted);
  font-size: 0.78rem;
}

.participation-activity-body > a,
.participation-list-content > a,
.participation-update-item > a {
  color: var(--navy);
  font-weight: 850;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.participation-activity-body > a,
.participation-list-content > a {
  margin-top: 5px;
  display: inline-block;
  font-size: 1.02rem;
}

.participation-activity-body > a:hover,
.participation-list-content > a:hover,
.participation-update-item > a:hover {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.participation-activity-body > p,
.participation-list-content > p {
  margin: 5px 0 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.participation-reference {
  margin-top: 3px;
  color: var(--muted);
  display: block;
  font-size: 0.8rem;
  font-weight: 750;
}

.participation-support-count {
  margin-top: 8px;
  color: var(--blue);
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
}

.participation-response {
  margin-top: 11px;
  padding: 10px 12px;
  border-left: 4px solid var(--green);
  background: #f0f8f4;
  color: #234c37;
  font-size: 0.88rem;
}

.participation-update-list {
  display: grid;
}

.participation-update-item {
  padding: 19px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 6px;
}

.participation-update-item > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.participation-update-item > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  overflow-wrap: anywhere;
}

.participation-browser {
  border-top-color: var(--red);
}

.participation-total {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 750;
}

.participation-full-list {
  display: grid;
}

.participation-supported-list {
  display: grid;
}

.participation-supported-item {
  padding: 19px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 6px;
}

.participation-supported-item > a {
  color: var(--navy);
  font-weight: 850;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.participation-supported-item > a:hover {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.participation-supported-item > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  overflow-wrap: anywhere;
}

.participation-supported-item > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.participation-supported-item .participation-support-count {
  margin-top: 0;
  text-align: right;
}

.participation-list-row {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.participation-pagination {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
}

.participation-pagination a {
  color: var(--navy);
  font-weight: 850;
  text-underline-offset: 4px;
}

.participation-pagination span {
  color: var(--muted);
  font-size: 0.88rem;
}

.results-band {
  min-height: 190px;
  padding: 40px max(28px, calc((100% - 1440px) / 2));
  background: var(--navy-deep);
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.results-band h2 {
  color: white;
}

.result-list {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: 0;
}

.result-list div {
  min-height: 96px;
  padding: 10px 32px;
  border-left: 1px solid rgba(255, 255, 255, 0.28);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.result-list dt {
  color: var(--yellow);
  font-size: 2rem;
  font-weight: 900;
}

.result-list dd {
  margin: 0;
  color: #dce8f5;
}

.personal-band {
  padding: 34px max(28px, calc((100% - 1440px) / 2));
  background: white;
  border-bottom: 6px solid var(--yellow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}

.personal-band p:last-child {
  margin: 6px 0 0;
  color: var(--muted);
}

.site-footer {
  min-height: 150px;
  padding: 30px max(28px, calc((100% - 1440px) / 2));
  background: var(--navy);
  color: white;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  align-items: center;
  gap: 48px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-brand img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.footer-brand div,
.footer-meta {
  display: grid;
  gap: 3px;
}

.site-footer nav {
  display: grid;
  gap: 5px;
}

.site-footer a {
  color: #edf4fb;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.site-footer span {
  color: #cfdaea;
}

.page-shell {
  min-height: 560px;
  padding: 56px max(28px, calc((100% - 1320px) / 2)) 70px;
}

.page-shell > h1 {
  max-width: 900px;
  color: var(--navy);
}

.page-lead {
  max-width: 780px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 1.15rem;
}

.guide-hero {
  min-height: 310px;
  padding: 58px max(28px, calc((100% - 1440px) / 2));
  border-bottom: 8px solid var(--yellow);
  background: var(--navy);
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.guide-hero > div:first-child {
  max-width: 820px;
}

.guide-hero h1,
.guide-cta h2 {
  color: white;
}

.guide-hero p:last-child {
  max-width: 720px;
  margin: 0;
  color: #e7eff9;
  font-size: 1.2rem;
}

.guide-hero-actions {
  flex: 0 0 auto;
}

.guide-access {
  padding: 44px max(28px, calc((100% - 1440px) / 2));
  border-bottom: 1px solid var(--line);
  background: var(--surface-subtle);
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr);
  align-items: start;
  gap: 70px;
}

.guide-access-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.guide-access-columns > div {
  min-height: 120px;
  padding: 8px 28px;
  border-left: 5px solid var(--blue);
}

.guide-access-columns > div:last-child {
  border-left-color: var(--green);
}

.guide-access-columns p {
  margin-bottom: 0;
  color: var(--muted);
}

.guide-content {
  padding: 10px max(28px, calc((100% - 1320px) / 2)) 54px;
  background: white;
}

.guide-step {
  padding: 42px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 92px minmax(0, 850px);
  justify-content: center;
  gap: 30px;
}

.guide-step:last-child {
  border-bottom: 0;
}

.guide-step-number {
  width: 64px;
  height: 64px;
  border: 3px solid var(--red);
  border-radius: 50%;
  color: var(--navy);
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  font-weight: 900;
}

.guide-step:nth-child(2) .guide-step-number {
  border-color: var(--yellow);
}

.guide-step:nth-child(3) .guide-step-number {
  border-color: var(--green);
}

.guide-step:nth-child(4) .guide-step-number {
  border-color: var(--blue);
}

.guide-step h2 {
  margin-bottom: 14px;
}

.guide-step p:not(.eyebrow) {
  max-width: 820px;
  color: var(--muted);
}

.guide-step .text-link {
  display: inline-block;
  margin-top: 6px;
}

.guide-options {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
}

.guide-options li {
  padding-left: 18px;
  position: relative;
  color: var(--navy);
  font-weight: 800;
}

.guide-options li::before {
  width: 8px;
  height: 8px;
  position: absolute;
  top: 0.5em;
  left: 0;
  border-radius: 50%;
  background: var(--green);
  content: "";
}

.guide-notice {
  padding: 12px 14px;
  border-left: 5px solid var(--yellow);
  background: #fff8df;
}

.guide-cta {
  padding: 42px max(28px, calc((100% - 1440px) / 2));
  background: var(--navy-deep);
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}

.guide-cta > div:last-child {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.account-page {
  max-width: none;
}

.account-summary {
  margin: 10px 0 42px;
  padding: 24px 28px;
  border-left: 7px solid var(--yellow);
  background: var(--navy);
  color: white;
  display: flex;
  align-items: center;
  gap: 20px;
}

.account-summary-avatar {
  width: 66px;
  height: 66px;
  flex: 0 0 66px;
  border: 3px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.55rem;
  font-weight: 900;
}

.account-summary > div {
  display: grid;
  gap: 2px;
}

.account-summary strong {
  font-size: 1.25rem;
}

.account-summary span,
.account-summary small {
  color: #dce8f5;
}

.account-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 56px;
}

.account-section {
  padding-top: 24px;
  border-top: 6px solid var(--red);
}

.account-section:nth-child(2) {
  border-top-color: var(--blue);
}

.account-section > p:not(.eyebrow) {
  max-width: 660px;
  color: var(--muted);
}

.account-preferences-form,
.account-email-form {
  margin-top: 24px;
}

.account-preferences-form {
  display: grid;
  gap: 0;
}

.account-checkbox {
  min-height: 54px;
  padding: 11px 4px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.account-checkbox input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--green);
}

.account-checkbox span {
  color: var(--ink);
  font-weight: 700;
}

.account-preferences-form .button,
.account-email-form .button {
  margin-top: 20px;
}

.account-email-form .form-field {
  margin-bottom: 15px;
  display: grid;
  gap: 6px;
}

.account-email-form input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #9cabb9;
  border-radius: 3px;
}

.account-managed-note {
  margin-top: 24px;
  padding: 20px;
  border-left: 5px solid var(--green);
  background: #edf8f1;
}

.account-managed-note p {
  margin: 5px 0 0;
  color: var(--muted);
}

.account-notifications {
  margin-top: 56px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.account-notification-list {
  margin-top: 20px;
  border-top: 1px solid var(--line);
}

.account-notification {
  min-height: 78px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--navy);
  display: grid;
  align-content: center;
  gap: 3px;
  text-decoration: none;
}

.account-notification:hover {
  background: var(--surface-subtle);
}

.account-notification.is-unread {
  border-left: 5px solid var(--red);
  background: #fff7f7;
}

.account-notification span {
  font-weight: 850;
}

.account-notification small {
  color: var(--muted);
}

.detail-shell {
  min-height: 620px;
  background: var(--surface);
}

.detail-header {
  padding: 56px max(28px, calc((100% - 1200px) / 2));
  background: var(--navy);
  color: white;
  border-bottom: 7px solid var(--red);
}

.detail-header-project {
  background: var(--navy-deep);
  border-bottom-color: var(--yellow);
}

.detail-header h1 {
  max-width: 1000px;
  color: white;
  font-size: 3rem;
}

.detail-header > p:not(.eyebrow) {
  max-width: 900px;
  color: #e3edf7;
  font-size: 1.12rem;
}

.detail-reference {
  color: var(--yellow) !important;
  font-weight: 800;
}

.detail-meta {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-weight: 700;
}

.detail-content {
  max-width: 1200px;
  min-height: 280px;
  margin: 0 auto;
  padding: 44px 28px 70px;
  font-size: 1.06rem;
  overflow-wrap: anywhere;
}

.notice {
  margin-top: 28px;
  padding: 22px;
  border-left: 6px solid var(--yellow);
  background: var(--blue-light);
  display: grid;
  gap: 4px;
}

.auth-shell {
  min-height: calc(100vh - 260px);
  padding: 60px max(28px, calc((100% - 1100px) / 2));
  background: var(--navy);
  color: white;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  align-items: center;
  gap: 80px;
}

.auth-intro h1 {
  color: white;
}

.auth-intro > p:last-child {
  color: #dce8f5;
  font-size: 1.15rem;
}

.auth-form {
  padding: 32px;
  border-radius: 6px;
  background: white;
  color: var(--ink);
  box-shadow: var(--shadow);
  display: grid;
  gap: 18px;
}

.auth-email-form,
.social-login-options,
.auth-secondary-links {
  display: grid;
  gap: 14px;
}

.social-login-button {
  width: 100%;
  min-height: 50px;
  padding: 9px 16px;
  border: 1px solid #9cabb9;
  border-radius: 4px;
  background: white;
  color: var(--navy);
  display: grid;
  grid-template-columns: 62px 1fr 62px;
  align-items: center;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}

.social-login-form {
  margin: 0;
}

.social-login-button > span:first-child {
  justify-self: start;
}

.social-login-button > span:last-child {
  grid-column: 2;
}

.govbr-login-button {
  border-color: #1351b4;
  background: #1351b4;
  color: white;
}

.govbr-login-button:hover {
  background: #0c326f;
}

.govbr-wordmark {
  font-size: 0.95rem;
  font-style: normal;
}

.govbr-wordmark b,
.govbr-wordmark i {
  font-style: normal;
}

.govbr-wordmark i {
  color: #ffcd07;
}

.google-login-button:hover {
  border-color: #4285f4;
  background: #f3f7ff;
}

.google-mark {
  color: #4285f4;
  font-size: 1.35rem;
  font-weight: 900;
}

.auth-divider {
  position: relative;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
  text-align: center;
}

.auth-divider::before {
  content: "";
  height: 1px;
  position: absolute;
  inset: 50% 0 auto;
  background: var(--line);
}

.auth-divider span {
  padding: 0 12px;
  position: relative;
  background: white;
}

.auth-secondary-links {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  font-size: 0.85rem;
}

.auth-secondary-links a,
.auth-return-link a {
  color: var(--blue);
  font-weight: 750;
}

.auth-secondary-links a:last-child {
  grid-column: 1 / -1;
}

.auth-return-link {
  margin: 0;
  text-align: center;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  color: var(--navy);
  font-weight: 800;
}

.field input {
  width: 100%;
  min-height: 46px;
  padding: 9px 11px;
  border: 1px solid #9cabb9;
  border-radius: 3px;
}

.field-help {
  color: var(--muted);
  font-size: 0.78rem;
}

.field-help ul {
  margin: 5px 0 0;
  padding-left: 20px;
}

.auth-status-shell {
  min-height: calc(100vh - 260px);
  padding: 70px 28px;
  background: var(--blue-light);
  display: grid;
  place-items: center;
}

.auth-status-panel {
  width: min(100%, 680px);
  padding: 38px;
  border-top: 7px solid var(--red);
  background: white;
  box-shadow: var(--shadow);
}

.auth-status-panel h1 {
  color: var(--navy);
  font-size: 2.6rem;
}

.g-recaptcha {
  min-height: 78px;
  overflow: hidden;
}

.errorlist,
.form-error {
  margin: 0;
  color: #a3151b;
}


.sr-only {
  width: 1px;
  height: 1px;
  padding: 0;
  position: absolute;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.message-stack {
  padding: 12px max(28px, calc((100% - 1200px) / 2)) 0;
  background: var(--surface);
  display: grid;
  gap: 8px;
}

.site-message {
  padding: 12px 16px;
  border-left: 5px solid var(--blue);
  background: var(--blue-light);
  color: var(--navy);
  font-weight: 700;
}

.site-message-error {
  border-left-color: var(--red);
  background: #fff0f1;
  color: #8e1b21;
}

.hero-photo,
.hero-photo-overlay {
  width: 48%;
  height: 100%;
  position: absolute;
  inset: 0 0 0 auto;
}

.hero-photo {
  object-fit: cover;
  object-position: center;
}

.hero-photo-overlay {
  background: rgba(8, 43, 82, 0.58);
}

.hero-photo-credit {
  position: absolute;
  right: max(24px, calc((100% - 1510px) / 2));
  bottom: 14px;
  z-index: 2;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.72rem;
}

.hero-photo-credit a {
  color: inherit;
}

.audience-section + .audience-section {
  margin-top: 46px;
}

.section-heading {
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.audience-card {
  min-height: 360px;
  flex-direction: column;
}

.audience-thumbnail {
  width: 100%;
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: white;
  display: block;
  text-decoration: none;
}

.audience-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.audience-thumbnail-placeholder {
  width: 100%;
  height: 100%;
  padding: 22px;
  background: var(--navy);
  border-bottom: 7px solid var(--red);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.audience-thumbnail-placeholder strong {
  max-width: 220px;
  color: white;
  font-size: 1.25rem;
}

.audience-thumbnail-placeholder small {
  color: #dce8f5;
}

.thumbnail-live {
  padding: 5px 9px;
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--red);
  color: white;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.audience-card-compact {
  min-height: 146px;
  flex-direction: row;
}

.audience-card-compact .audience-thumbnail {
  width: 210px;
  flex: 0 0 210px;
  aspect-ratio: auto;
}

.audience-card-compact .audience-thumbnail-placeholder {
  border-right: 6px solid var(--red);
  border-bottom: 0;
}

.audience-card-compact .card-body {
  padding: 17px 20px;
}

.audience-card-compact .card-body > p:not(.card-kicker) {
  margin-bottom: 10px;
}

.audience-detail-layout {
  max-width: 1440px;
  min-height: 460px;
  margin: 0 auto;
  padding: 38px 28px 70px;
  background: var(--surface);
}

.audience-detail-layout.has-chat {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
  grid-template-areas: "media chat";
  align-items: start;
  gap: 28px;
}

.audience-detail-layout.has-chat .audience-main {
  grid-area: media;
}

.audience-detail-layout.has-chat .chat-panel {
  grid-area: chat;
}

.audience-main {
  min-width: 0;
}

.video-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.external-video {
  min-height: 220px;
  padding: 32px;
  background: var(--navy);
  color: white;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 18px;
}

.audience-detail-cover {
  width: 100%;
  max-height: 680px;
  object-fit: cover;
  display: block;
}

.audience-main .detail-content {
  max-width: none;
  min-height: 180px;
  margin: 0;
  padding: 28px 0 0;
}

.questions-panel {
  margin-top: 32px;
  border-top: 6px solid var(--red);
  background: white;
  box-shadow: var(--shadow);
}

.questions-heading {
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.questions-heading h2 {
  color: var(--navy);
  font-size: 1.6rem;
}

.question-total {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.question-form {
  padding: 22px 24px;
  background: var(--blue-light);
  display: grid;
  gap: 10px;
}

.question-form label {
  color: var(--navy);
  font-weight: 850;
}

.question-form textarea {
  width: 100%;
  min-height: 96px;
  padding: 14px;
  border: 1px solid #9fb0c2;
  border-radius: 3px;
  background: white;
  color: var(--ink);
  resize: vertical;
}

.question-form textarea:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(35, 101, 174, 0.2);
}

.question-form-footer,
.question-login,
.question-footer,
.question-support,
.question-author {
  display: flex;
  align-items: center;
}

.question-form-footer,
.question-login,
.question-footer {
  justify-content: space-between;
  gap: 18px;
}

.question-form-footer small {
  color: var(--muted);
}

.question-login {
  padding: 20px 24px;
  background: var(--blue-light);
  color: var(--navy);
  font-weight: 700;
}

.question-list {
  display: grid;
}

.question-item {
  padding: 22px 24px;
  border-top: 1px solid var(--line);
}

.question-item:first-child {
  border-top: 0;
}

.question-author {
  flex-wrap: wrap;
  gap: 6px 12px;
}

.question-author strong {
  color: var(--navy);
}

.question-author time {
  color: var(--muted);
  font-size: 0.8rem;
}

.question-pending {
  padding: 4px 8px;
  background: #fff3c4;
  color: #705500;
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.question-body {
  margin: 14px 0 18px;
  overflow-wrap: anywhere;
  font-size: 1.04rem;
}

.question-response {
  margin: 16px 0;
  padding: 16px;
  border-left: 5px solid var(--yellow);
  background: var(--surface-subtle);
}

.question-response p {
  margin: 5px 0 0;
}

.question-footer {
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}

.question-support {
  gap: 12px;
}

.question-support-button {
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid var(--blue);
  border-radius: 3px;
  background: white;
  color: var(--blue);
  cursor: pointer;
  font: inherit;
  font-weight: 850;
}

.question-support-button:hover,
.question-support-button.is-active {
  background: var(--blue);
  color: white;
}

.action-feedback {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
}

.action-feedback:empty {
  display: none;
}

.action-feedback.is-success {
  color: #146b3c;
}

.action-feedback.is-error {
  color: #a3151b;
}

.question-response-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.question-response-heading time {
  color: var(--muted);
  font-size: 0.76rem;
}

.question-staff-actions {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}

.question-answer-toggle {
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid var(--navy);
  border-radius: 3px;
  background: white;
  color: var(--navy);
  cursor: pointer;
  font: inherit;
  font-weight: 850;
}

.question-answer-toggle:hover {
  background: var(--navy);
  color: white;
}

.question-answer-form {
  margin-top: 12px;
  padding: 16px;
  background: var(--surface-subtle);
  display: grid;
  gap: 10px;
}

.question-answer-form[hidden] {
  display: none;
}

.question-answer-form label {
  color: var(--navy);
  font-weight: 850;
}

.question-answer-form textarea {
  width: 100%;
  min-height: 110px;
  padding: 12px;
  border: 1px solid #9fb0c2;
  border-radius: 3px;
  color: var(--ink);
  resize: vertical;
}

.question-answer-actions {
  display: flex;
  gap: 10px;
}

.question-form button:disabled,
.question-support-form button:disabled,
.question-answer-form button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.question-empty {
  min-height: 130px;
  padding: 28px 24px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.chat-panel {
  min-height: 520px;
  border: 1px solid var(--line);
  border-top: 6px solid var(--red);
  background: white;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.chat-heading {
  min-height: 88px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.chat-heading h2 {
  font-size: 1.45rem;
}

.chat-open {
  padding: 5px 9px;
  background: #e5f5ec;
  color: #146b3c;
  font-size: 0.73rem;
  font-weight: 900;
  text-transform: uppercase;
}

.chat-messages {
  min-height: 310px;
  max-height: 560px;
  padding: 14px 18px;
  overflow-y: auto;
  display: grid;
  align-content: start;
  gap: 10px;
}

.chat-message {
  padding: 12px;
  background: var(--surface-subtle);
  border-left: 3px solid var(--blue);
}

.chat-message strong {
  color: var(--navy);
}

.chat-message time {
  margin-left: 6px;
  color: var(--muted);
  font-size: 0.76rem;
}

.chat-message p {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
}

.chat-empty {
  min-height: 150px;
  color: var(--muted);
  display: grid;
  place-items: center;
  text-align: center;
}

.chat-form {
  padding: 14px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.chat-form input {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #9cabb9;
  border-radius: 3px;
}

.chat-login {
  margin: 14px;
}

.chat-closed {
  margin: auto 18px 20px;
  padding: 16px;
  background: var(--surface-subtle);
  color: var(--muted);
  text-align: center;
}


@media (min-width: 981px) {
  .audience-detail-layout.has-questions.has-chat {
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr) minmax(280px, 340px);
    grid-template-areas: "questions media chat";
  }

  .audience-detail-layout.has-questions:not(.has-chat) {
    display: grid;
    grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
    grid-template-areas: "questions media";
    align-items: start;
    gap: 28px;
  }

  .audience-detail-layout.has-questions .questions-panel {
    grid-area: questions;
    margin-top: 0;
  }

  .audience-detail-layout.has-questions .audience-main {
    grid-area: media;
  }

  .audience-detail-layout.has-questions .chat-panel {
    grid-area: chat;
  }
}

/* Usa melhor monitores Full HD sem esticar a interface em QHD e 4K. */
@media (min-width: 1440px) {
  .site-header {
    padding-right: max(28px, calc((100% - 1920px) / 2));
    padding-left: max(28px, calc((100% - 1920px) / 2));
  }

  .hero,
  .home-band,
  .results-band,
  .personal-band,
  .site-footer {
    padding-right: max(28px, calc((100% - 1920px) / 2));
    padding-left: max(28px, calc((100% - 1920px) / 2));
  }

  .hero {
    padding-left: max(48px, calc((100% - 1920px) / 2));
    grid-template-columns: minmax(0, 1.12fr) minmax(480px, 0.88fr);
    gap: 56px;
  }

  .hero::before {
    left: max(18px, calc((100% - 1990px) / 2));
  }

  .hero-mark,
  .hero-photo-credit {
    right: max(24px, calc((100% - 1990px) / 2));
  }

  .page-shell {
    padding-right: max(28px, calc((100% - 1920px) / 2));
    padding-left: max(28px, calc((100% - 1920px) / 2));
  }

  .guide-hero,
  .guide-access,
  .guide-cta {
    padding-right: max(28px, calc((100% - 1920px) / 2));
    padding-left: max(28px, calc((100% - 1920px) / 2));
  }

  .detail-header-audience {
    padding-right: max(28px, calc((100% - 1920px) / 2));
    padding-left: max(28px, calc((100% - 1920px) / 2));
  }

  .audience-overview {
    grid-template-columns: minmax(360px, 0.65fr) minmax(0, 1.35fr);
  }

  .home-band .card-grid,
  .page-shell .card-grid {
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  }

  .audience-detail-layout {
    max-width: none;
    padding-right: max(28px, calc((100% - 1920px) / 2));
    padding-left: max(28px, calc((100% - 1920px) / 2));
  }

  .audience-detail-layout.has-questions.has-chat {
    grid-template-columns: minmax(340px, 360px) minmax(0, 1fr) minmax(280px, 300px);
  }

  .audience-detail-layout.has-questions:not(.has-chat) {
    grid-template-columns: minmax(360px, 420px) minmax(0, 1fr);
  }

  .audience-detail-layout.has-questions .questions-heading,
  .audience-detail-layout.has-questions .question-form-footer,
  .audience-detail-layout.has-questions .question-login,
  .audience-detail-layout.has-questions .question-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .audience-detail-layout.has-questions .questions-heading {
    gap: 8px;
  }

  .audience-detail-layout.has-questions .question-support {
    width: 100%;
    justify-content: space-between;
  }

  .audience-detail-layout.has-questions .question-support-button {
    width: 100%;
  }
}

@media (min-width: 1700px) {
  .audience-detail-layout.has-questions.has-chat {
    grid-template-columns: minmax(390px, 420px) minmax(0, 1fr) minmax(300px, 340px);
  }
}

@media (max-width: 1240px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .primary-nav {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 36px;
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  h1 {
    font-size: 2.65rem;
  }

  .brand {
    min-width: 0;
  }

  .brand img {
    width: 66px;
    height: 66px;
    flex-basis: 66px;
  }

  .brand-institution {
    width: 165px;
  }

  .brand-institution strong {
    font-size: 1.25rem;
  }

  .brand-product {
    font-size: 1.2rem;
  }

  .primary-nav {
    gap: 18px;
  }

  .hero {
    min-height: 600px;
    grid-template-columns: 1fr;
    align-content: center;
  }

  .hero-mark {
    right: -50px;
    bottom: 10px;
    top: auto;
  }

  .hero-benefits {
    padding-left: 0;
    border-left: 0;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }

  .hero-benefits div {
    border-bottom: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.28);
  }

  .audience-overview,
  .auth-shell {
    grid-template-columns: 1fr;
  }

  .participation-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .participation-dashboard {
    grid-template-columns: 1fr;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .results-band,
  .personal-band {
    align-items: stretch;
    flex-direction: column;
  }

  .guide-access {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .account-layout {
    grid-template-columns: 1fr;
  }

  .result-list {
    width: 100%;
  }

  .site-footer {
    grid-template-columns: 1fr 1fr;
  }

  .footer-meta {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 15px;
  }

  h1 {
    font-size: 2.25rem;
  }

  h2 {
    font-size: 1.6rem;
  }

  .site-header {
    padding: 10px 16px;
  }

  .brand {
    width: 100%;
    gap: 9px;
  }

  .brand img {
    width: 58px;
    height: 58px;
    flex-basis: 58px;
  }

  .brand-institution {
    width: auto;
    flex: 1;
    font-size: 0.78rem;
  }

  .brand-institution strong {
    font-size: 1.06rem;
  }

  .brand-divider {
    height: 38px;
  }

  .brand-product {
    font-size: 1rem;
  }

  .primary-nav {
    padding-bottom: 5px;
    flex-wrap: wrap;
    gap: 2px 14px;
    overflow-x: visible;
  }

  .primary-nav a,
  .logout-form button {
    font-size: 0.86rem;
  }

  .primary-nav .account-avatar-link {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .hero {
    min-height: 650px;
    padding: 46px 24px;
  }


  .hero::before {
    left: 8px;
    width: 7px;
  }

  .hero-content > p:not(.eyebrow) {
    font-size: 1.05rem;
  }

  .hero-actions {
    display: grid;
  }

  .hero-benefits {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .hero-benefits div {
    min-height: 70px;
  }

  .band-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-band,
  .page-shell {
    padding: 38px 18px;
  }

  .guide-hero,
  .guide-access,
  .guide-cta {
    padding: 38px 18px;
    align-items: stretch;
    flex-direction: column;
  }

  .account-summary {
    padding: 20px;
  }

  .account-summary-avatar {
    width: 54px;
    height: 54px;
    flex-basis: 54px;
  }

  .account-layout {
    gap: 42px;
  }

  .guide-hero {
    min-height: 0;
  }

  .guide-hero-actions .button {
    width: 100%;
  }

  .guide-access-columns {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .guide-access-columns > div {
    min-height: 0;
    padding: 4px 0 4px 20px;
  }

  .guide-content {
    padding: 0 18px 30px;
  }

  .guide-step {
    padding: 34px 0;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 16px;
  }

  .guide-step-number {
    width: 46px;
    height: 46px;
    font-size: 0.86rem;
  }

  .guide-cta > div:last-child {
    display: grid;
    justify-content: stretch;
  }

  .live-panel {
    padding: 26px;
  }

  .content-card {
    min-height: 200px;
  }

  .project-symbol {
    width: 54px;
    flex-basis: 54px;
  }

  .results-band {
    padding: 36px 18px;
  }

  .result-list {
    grid-template-columns: 1fr;
  }

  .result-list div {
    min-height: 76px;
    border-top: 1px solid rgba(255, 255, 255, 0.28);
    border-left: 0;
  }

  .personal-band {
    padding: 30px 18px;
  }

  .site-footer {
    padding: 30px 18px;
    grid-template-columns: 1fr;
  }

  .footer-meta {
    grid-column: auto;
  }

  .auth-shell {
    padding: 40px 18px;
    gap: 28px;
  }

  .auth-form {
    padding: 24px;
  }

  .social-login-button {
    grid-template-columns: 52px 1fr 52px;
  }

  .auth-secondary-links {
    grid-template-columns: 1fr;
  }

  .auth-secondary-links a:last-child {
    grid-column: auto;
  }

  .auth-status-shell {
    padding: 40px 18px;
  }

  .auth-status-panel {
    padding: 26px;
  }

  .auth-status-panel h1 {
    font-size: 2rem;
  }

  .participation-page > h1 {
    font-size: 2.25rem;
  }

  .participation-metrics {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .participation-metric {
    min-height: 86px;
  }

  .participation-tabs {
    gap: 22px;
  }

  .participation-panel-heading,
  .participation-activity-heading,
  .participation-update-item > div,
  .participation-supported-item > div {
    align-items: flex-start;
    flex-direction: column;
  }

  .participation-activity,
  .participation-list-row {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
  }

  .participation-activity-symbol {
    width: 42px;
    height: 42px;
  }

  .participation-timeline::before {
    left: 20px;
  }

  .detail-header h1 {
    font-size: 2.25rem;
  }
}

@media (max-width: 980px) {
  .audience-detail-layout.has-questions {
    display: flex;
    flex-direction: column;
  }

  .audience-detail-layout.has-questions .audience-main {
    order: 1;
  }

  .audience-detail-layout.has-questions .questions-panel {
    grid-area: auto;
    order: 2;
    margin-top: 32px;
  }

  .audience-detail-layout.has-questions .chat-panel {
    grid-area: auto;
    order: 3;
  }

  .audience-detail-layout.has-chat:not(.has-questions) {
    grid-template-columns: 1fr;
    grid-template-areas:
      "media"
      "chat";
  }

  .chat-panel {
    min-height: 420px;
  }

  .chat-messages {
    min-height: 220px;
    max-height: 420px;
  }
}

@media (max-width: 700px) {
  .hero-photo,
  .hero-photo-overlay {
    width: 100%;
  }

  .hero-photo {
    opacity: 0.42;
  }

  .hero-photo-overlay {
    background: rgba(8, 43, 82, 0.72);
  }

  .hero-photo-credit {
    right: 18px;
  }

  .audience-card-compact {
    min-height: 0;
    flex-direction: column;
  }

  .audience-card-compact .audience-thumbnail {
    width: 100%;
    flex-basis: auto;
    aspect-ratio: 16 / 9;
  }

  .audience-card-compact .audience-thumbnail-placeholder {
    border-right: 0;
    border-bottom: 6px solid var(--red);
  }

  .audience-detail-layout {
    padding: 24px 18px 48px;
  }

  .questions-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .question-form,
  .question-item,
  .question-login {
    padding-right: 18px;
    padding-left: 18px;
  }

  .question-form-footer,
  .question-login,
  .question-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .question-support {
    justify-content: space-between;
  }

  .question-support-button {
    width: 100%;
  }

  .chat-form {
    grid-template-columns: 1fr;
  }
}


/* Projetos colaborativos */
.detail-header-project {
  padding-right: max(28px, calc((100% - 1920px) / 2));
  padding-left: max(28px, calc((100% - 1920px) / 2));
}

.project-detail-heading {
  width: min(100%, 1864px);
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}

.project-detail-heading > div {
  min-width: 0;
}

.project-detail-heading .button {
  flex: 0 0 auto;
  margin-bottom: 4px;
}

.project-detail-layout {
  width: min(100%, 1920px);
  margin: 0 auto;
  padding: 42px 28px 76px;
  display: grid;
  grid-template-columns: minmax(240px, 290px) minmax(0, 1fr);
  align-items: start;
  gap: 44px;
}

.project-summary-panel {
  position: sticky;
  top: 22px;
  padding: 4px 0 26px;
  border-top: 7px solid var(--red);
  border-bottom: 1px solid var(--line);
}

.project-summary-panel .eyebrow {
  margin-top: 22px;
}

.project-summary-count {
  color: var(--navy);
  display: block;
  font-size: 3.25rem;
  line-height: 1;
}

.project-summary-panel > span {
  color: var(--muted);
  font-weight: 750;
}

.project-summary-data {
  margin: 26px 0 0;
  border-top: 1px solid var(--line);
}

.project-summary-data div {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.project-summary-data dt {
  color: var(--muted);
}

.project-summary-data dd {
  margin: 0;
  color: var(--navy);
  font-weight: 800;
  text-align: right;
}

.topic-list {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.topic-list span {
  padding: 5px 8px;
  border: 1px solid #b9c9da;
  color: var(--navy);
  background: white;
  font-size: 0.78rem;
  font-weight: 750;
}

.project-local-nav {
  margin-top: 24px;
  display: grid;
}

.project-local-nav a {
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  color: var(--navy);
  font-weight: 750;
  text-decoration: none;
}

.project-local-nav a:hover {
  color: var(--red);
}

.project-open-note,
.project-closed-note {
  margin: 22px 0 0;
  padding: 12px;
  border-left: 5px solid #2f8b57;
  background: #e9f6ef;
  color: #185c38;
  font-weight: 800;
}

.project-closed-note {
  border-left-color: #7b8794;
  background: #eef1f4;
  color: #4e5a66;
}

.project-main-content {
  min-width: 0;
}

.project-introduction {
  max-width: 1120px;
  margin-bottom: 46px;
  color: #27394b;
  font-size: 1.04rem;
  line-height: 1.7;
}

.project-introduction h2,
.legislative-text h2,
.consolidated-text h2 {
  color: var(--navy);
}

.project-section-title {
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 4px solid var(--red);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}

.project-section-title h2 {
  margin: 0;
}

.project-section-title > span {
  color: var(--muted);
  font-weight: 700;
}

.legislative-section-heading {
  margin: 42px 0 12px;
  padding: 18px 22px;
  border-left: 7px solid var(--yellow);
  background: var(--navy);
  color: white;
}

.legislative-section-heading > span {
  color: var(--yellow);
  display: block;
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.legislative-section-heading h3 {
  margin: 3px 0 0;
  color: white;
  font-size: 1.45rem;
}

.legislative-section-heading small {
  margin-top: 5px;
  color: #d5e2ef;
  display: block;
}

.project-article {
  padding: 30px 0 40px;
  border-bottom: 2px solid #c7d3df;
  scroll-margin-top: 24px;
}

.project-article-heading {
  margin-bottom: 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.project-article-heading > div {
  min-width: 0;
}

.project-article-label {
  color: var(--red);
  display: block;
  font-size: 1.2rem;
  font-weight: 900;
}

.project-article-heading h3 {
  margin: 4px 0 0;
  color: var(--navy);
}

.project-article-total {
  color: var(--muted);
  flex: 0 0 auto;
  font-size: 0.84rem;
  font-weight: 700;
}

.project-article-total b {
  color: var(--navy);
  font-size: 1rem;
}

.project-article-body {
  max-width: 1180px;
  color: #1f3041;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.12rem;
  line-height: 1.72;
}

.project-article-body p {
  margin: 0 0 12px;
}

.project-article-actions {
  margin: 24px 0 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-article-actions button {
  min-height: 46px;
  border: 0;
  border-right: 1px solid var(--line);
  background: white;
  color: var(--navy);
  cursor: pointer;
  font: inherit;
  font-weight: 850;
}

.project-article-actions button:last-child {
  border-right: 0;
}

.project-article-actions button:hover,
.project-article-actions button[aria-expanded="true"] {
  background: var(--navy);
  color: white;
}

.project-article-actions button span {
  min-width: 26px;
  margin-left: 7px;
  padding: 2px 6px;
  border: 1px solid currentColor;
  display: inline-block;
  font-size: 0.76rem;
}

.project-contribution-forms {
  border-bottom: 1px solid var(--line);
}

.project-contribution-form,
.general-addition form {
  padding: 24px;
  background: #edf4fb;
  border-left: 6px solid var(--blue);
}

.project-contribution-form[hidden] {
  display: none;
}

.project-contribution-form label,
.general-addition label,
.suggestion-comment-form label,
.suggestion-review-panel label {
  margin-bottom: 7px;
  color: var(--navy);
  display: block;
  font-weight: 800;
}

.project-contribution-form label span,
.general-addition label span {
  color: var(--muted);
  font-weight: 500;
}

.project-contribution-form textarea,
.general-addition textarea,
.suggestion-comment-form textarea,
.suggestion-review-panel textarea,
.suggestion-review-panel select {
  width: 100%;
  margin-bottom: 16px;
  padding: 12px;
  border: 1px solid #9eb2c6;
  border-radius: 0;
  background: white;
  color: #14283d;
  font: inherit;
  resize: vertical;
}

.project-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.project-form-actions .button {
  margin: 0;
}

.project-contribution-login {
  padding: 18px 22px;
  background: #edf4fb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.project-contribution-login[hidden] {
  display: none;
}

.inline-feedback {
  min-height: 20px;
  margin: 9px 0 0;
  color: #1e6b43;
  font-size: 0.84rem;
  font-weight: 750;
}

.inline-feedback.is-error {
  color: #a51f2a;
}

.project-suggestion-list {
  display: grid;
  gap: 18px;
}

.project-suggestion-empty {
  margin: 18px 0 0;
  padding: 15px 18px;
  border-left: 4px solid #b5c2cf;
  color: var(--muted);
  background: #f2f5f8;
}

.project-suggestion {
  margin-top: 20px;
  padding: 22px;
  border: 1px solid #b9c8d7;
  border-left: 7px solid var(--blue);
  background: white;
  box-shadow: 0 8px 20px rgba(17, 43, 71, 0.08);
  scroll-margin-top: 20px;
}

.project-suggestion-addition {
  border-left-color: #2f8b57;
}

.project-suggestion-deletion {
  border-left-color: var(--red);
}

.suggestion-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.suggestion-heading > div:first-child {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 5px 12px;
}

.suggestion-kind {
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.suggestion-heading time,
.institutional-evaluation time,
.suggestion-comment time {
  color: var(--muted);
  font-size: 0.78rem;
}

.suggestion-statuses {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.status-badge {
  padding: 5px 8px;
  border: 1px solid #9eb2c6;
  background: #edf4fb;
  color: var(--navy);
  font-size: 0.74rem;
  font-weight: 850;
}

.status-accepted,
.status-incorporated,
.status-answered {
  border-color: #79b593;
  background: #e5f5ec;
  color: #185c38;
}

.status-partially_accepted,
.status-in_review,
.status-awaiting {
  border-color: #d6aa37;
  background: #fff5d6;
  color: #745400;
}

.status-not_incorporated,
.status-moderation,
.status-not_answered {
  border-color: #d78e94;
  background: #fff0f1;
  color: #8b1d27;
}

.status-grouped {
  border-color: #8baed1;
  background: var(--blue-light);
  color: var(--navy);
}

.suggestion-proposal {
  margin-top: 20px;
}

.proposal-label {
  color: var(--navy);
  display: block;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.suggestion-proposal > p {
  margin: 8px 0 0;
  overflow-wrap: anywhere;
  white-space: normal;
}

.proposal-inline-diff {
  padding: 16px;
  border-top: 4px solid #2f8b57;
  background: #f4f7fa;
}

.proposal-diff-text {
  margin: 10px 0 0;
  overflow-wrap: anywhere;
  line-height: 1.7;
}

.proposal-diff-text > span,
.proposal-diff-text del,
.proposal-diff-text ins {
  white-space: pre-wrap;
}

.proposal-diff-text del {
  margin-inline: 1px;
  padding: 1px 2px;
  background: #fff0f1;
  color: #9a2731;
  text-decoration-line: line-through;
  text-decoration-thickness: 2px;
}

.proposal-diff-text ins {
  margin-inline: 1px;
  padding: 1px 2px;
  background: #dff5e8;
  color: #155b37;
  font-weight: 800;
  text-decoration: none;
}

.proposal-diff-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 750;
}

.proposal-diff-legend span::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 8px;
  margin-right: 6px;
  vertical-align: 1px;
}

.diff-legend-removed::before {
  background: #fff0f1;
  border-bottom: 2px solid #9a2731;
}

.diff-legend-added::before {
  background: #dff5e8;
  border-bottom: 2px solid #2f8b57;
}

.proposal-deleted {
  padding: 12px;
  background: #fff1f2;
  color: #7e2730;
  text-decoration: line-through;
}

.suggestion-justification {
  margin-top: 16px;
  padding: 14px 0 0;
  border-top: 1px solid var(--line);
}

.suggestion-justification p {
  margin: 5px 0 0;
}

.institutional-evaluation {
  margin-top: 20px;
  padding: 16px 18px;
  border-left: 5px solid var(--yellow);
  background: #f4f7fa;
}

.institutional-evaluation > div {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 5px 12px;
}

.institutional-evaluation > div > span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.institutional-evaluation > p {
  margin: 9px 0 0;
}

.suggestion-actions {
  margin-top: 15px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.suggestion-support-form {
  display: flex;
  align-items: center;
  gap: 10px;
}

.suggestion-support-form button {
  min-height: 38px;
  padding: 7px 12px;
  border: 1px solid var(--navy);
  background: white;
  color: var(--navy);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.suggestion-support-form button:hover,
.suggestion-support-form button.is-active {
  background: var(--navy);
  color: white;
}

.suggestion-support-form .inline-feedback {
  margin: 0;
}

.suggestion-support-count,
.own-contribution {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
}

.suggestion-comments,
.suggestion-history,
.suggestion-review-panel {
  margin-top: 16px;
  border-top: 1px solid var(--line);
}

.suggestion-comments > summary,
.suggestion-history > summary,
.suggestion-review-panel > summary {
  padding: 13px 0;
  color: var(--navy);
  cursor: pointer;
  font-weight: 850;
}

.suggestion-comment-list {
  display: grid;
  gap: 10px;
}

.suggestion-comment {
  padding: 13px 15px;
  border-left: 4px solid #9eb2c6;
  background: #f4f7fa;
}

.suggestion-comment header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}

.suggestion-comment p {
  margin: 6px 0 0;
}

.comment-empty {
  color: var(--muted);
}

.suggestion-comment-form {
  margin-top: 14px;
}

.suggestion-history ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.suggestion-history li {
  padding: 11px 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(130px, auto) auto 1fr;
  align-items: baseline;
  gap: 5px 12px;
}

.suggestion-history li p {
  grid-column: 1 / -1;
  margin: 3px 0 0;
}

.suggestion-review-panel form {
  padding: 18px;
  background: #fff8df;
  border-left: 5px solid var(--yellow);
}

.review-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.general-addition {
  margin-top: 28px;
}

.consolidated-text {
  margin-top: 48px;
  padding: 30px;
  border-top: 7px solid #2f8b57;
  background: white;
  box-shadow: 0 8px 24px rgba(17, 43, 71, 0.08);
}

.report-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
}

.report-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.report-actions .button {
  margin: 0;
}

.report-summary {
  margin: 32px 0 44px;
  border-top: 5px solid var(--red);
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
}

.report-summary div {
  min-height: 100px;
  padding: 16px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  align-content: center;
}

.report-summary strong {
  color: var(--navy);
  font-size: 1.85rem;
}

.report-summary span {
  color: var(--muted);
  font-size: 0.8rem;
}

.report-consolidated {
  margin-bottom: 44px;
  padding: 28px;
  border-left: 7px solid #2f8b57;
  background: #edf8f1;
}

.report-contributions > h2 {
  color: var(--navy);
}

.report-contribution {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.report-contribution > header,
.report-contribution > footer {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px 18px;
}

.report-contribution > header > div {
  display: grid;
}

.report-contribution blockquote {
  margin: 15px 0;
  padding: 14px;
  border-left: 5px solid var(--yellow);
  background: #f4f7fa;
}

.report-contribution > footer {
  color: var(--muted);
  font-size: 0.8rem;
}

@media (max-width: 1180px) {
  .project-detail-layout {
    grid-template-columns: 1fr;
  }

  .project-summary-panel {
    position: static;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 8px 20px;
  }

  .project-summary-panel .eyebrow,
  .project-summary-data,
  .topic-list,
  .project-local-nav,
  .project-open-note,
  .project-closed-note {
    grid-column: 1 / -1;
  }

  .report-summary {
    grid-template-columns: repeat(3, minmax(120px, 1fr));
  }
}

@media (max-width: 700px) {
  .detail-header-project {
    padding: 40px 18px;
  }

  .project-detail-heading,
  .project-section-title,
  .project-article-heading,
  .suggestion-heading,
  .report-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .project-detail-layout {
    padding: 30px 18px 54px;
    gap: 30px;
  }

  .project-article-actions,
  .review-fields {
    grid-template-columns: 1fr;
  }

  .project-article-actions button {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .project-article-actions button:last-child {
    border-bottom: 0;
  }

  .project-contribution-form,
  .general-addition form,
  .project-suggestion {
    padding: 18px;
  }

  .project-contribution-login,
  .project-form-actions,
  .suggestion-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .suggestion-statuses {
    justify-content: flex-start;
  }

  .suggestion-history li {
    grid-template-columns: 1fr;
  }

  .suggestion-history li p {
    grid-column: auto;
  }

  .report-actions {
    justify-content: flex-start;
  }

  .report-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media print {
  .site-header,
  .site-footer,
  .report-actions {
    display: none;
  }

  .page-shell {
    padding: 0;
  }

  .report-contribution {
    break-inside: avoid;
  }
}
