/* V43 — páginas institucionais e rodapé acadêmico */
.institutional-hero {
  padding: clamp(24px, 4vw, 40px);
}

.institutional-hero h1 {
  max-width: 820px;
  margin-bottom: 22px;
}

.institutional-hero p {
  max-width: 900px;
  margin-bottom: 0;
}

.institutional-card-label {
  display: block;
  margin-bottom: 10px;
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.people-section {
  position: relative;
  z-index: 3;
  margin-top: 46px;
}

.institutional-section-heading {
  max-width: 760px;
  margin-bottom: 20px;
}

.institutional-section-heading h2 {
  margin-bottom: 0;
}

.authors-card {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-height: 126px;
  padding: 0;
  overflow: visible;
}

.author-entry {
  position: relative;
  min-width: 0;
  display: flex;
  align-items: center;
  padding: clamp(20px, 2vw, 24px);
}

.author-entry + .author-entry {
  border-left: 1px solid var(--line);
}

.author-summary {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 13px;
}

.author-avatar {
  width: 70px;
  height: 70px;
  flex: 0 0 70px;
  display: block;
  border: 4px solid #f3f8f5;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px #dbe7e0;
}

.author-identification {
  min-width: 0;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0 5px;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.5;
}

.author-identification--single {
  align-items: center;
}

.author-prefix {
  color: var(--muted);
  font-weight: 400;
  white-space: nowrap;
}

.author-name-link {
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #1d4ed8;
  font: inherit;
  font-weight: 400;
  line-height: inherit;
  text-align: left;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  white-space: nowrap;
  cursor: pointer;
}

.author-name-link:hover,
.author-name-link:focus-visible,
.author-entry.is-open .author-name-link {
  color: var(--primary-dark);
}

.author-entry--center .author-name-link {
  font-size: .72rem;
}

.author-name-link:focus-visible {
  outline: 3px solid rgba(22, 138, 74, .24);
  outline-offset: 4px;
  border-radius: 3px;
}

.author-popover {
  --popover-x: 0;
  position: absolute;
  z-index: 60;
  top: calc(100% + 12px);
  left: 0;
  width: min(440px, calc(100vw - 36px));
  padding: 22px;
  border: 1px solid #dfe6f2;
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  text-align: left;
  box-shadow: 0 22px 54px rgba(30, 64, 175, .19);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(var(--popover-x), -6px);
  transition: opacity .16s ease, visibility .16s ease, transform .16s ease;
}

.author-popover::before {
  content: '';
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
}

.author-entry--center .author-popover {
  left: 50%;
  --popover-x: -50%;
}

.author-entry--end .author-popover {
  right: 0;
  left: auto;
}

.author-entry:hover .author-popover,
.author-entry:focus-within .author-popover,
.author-entry.is-open .author-popover {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(var(--popover-x), 0);
}

.author-popover-header {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  align-items: start;
  gap: 16px;
}

.author-popover-header img {
  width: 82px;
  height: 82px;
  display: block;
  border-radius: 50%;
  object-fit: cover;
}

.author-popover-header h3 {
  margin: 1px 0 7px;
  color: var(--text);
  font-family: 'Sora', 'Inter', system-ui, sans-serif;
  font-size: 1.08rem;
  line-height: 1.35;
}

.author-popover-header p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.author-popover-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 10px;
}

.author-popover-links a {
  color: #1d4ed8;
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.author-popover-links a + a::before {
  content: '';
  display: inline-block;
  width: 1px;
  height: 14px;
  margin: 0 10px -2px;
  background: #cbd5e1;
}

.author-popover-bio {
  margin: 18px 0 0;
  color: var(--text-strong);
  font-size: 14px;
  line-height: 1.62;
}

.author-popover-links a:hover {
  color: var(--primary-dark);
}

.program-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  margin-top: 46px;
  padding: clamp(22px, 4vw, 34px);
  background:
    radial-gradient(circle at right center, rgba(22, 138, 74, .10), transparent 23rem),
    #fff;
}

.program-mark {
  width: 94px;
  height: 94px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background: var(--primary-dark);
  color: #fff;
  font-family: 'Sora', 'Inter', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .03em;
}

.program-copy h2 {
  margin-bottom: 10px;
  font-size: clamp(1.45rem, 2vw, 2rem);
}

.program-copy p,
.contact-information > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.program-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}

.program-link {
  white-space: nowrap;
}

.program-social-links {
  justify-content: flex-end;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(270px, .72fr) minmax(0, 1.28fr);
  align-items: start;
  gap: 18px;
}

.contact-information,
.contact-form {
  margin-bottom: 0;
}

.contact-information {
  position: sticky;
  top: 96px;
  padding: 28px;
}

.contact-information h2,
.contact-form h2 {
  margin-bottom: 12px;
  font-size: clamp(1.45rem, 2vw, 2rem);
}

.contact-email {
  display: block;
  margin-top: 24px;
  padding: 16px;
  border: 1px solid #cfe8da;
  border-radius: 12px;
  background: var(--soft-2);
  color: var(--text);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact-email:hover {
  border-color: #9dcbb4;
}

.contact-email span,
.contact-email strong {
  display: block;
}

.contact-email span {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.contact-email strong {
  color: var(--primary-dark);
  font-size: 15px;
}

.contact-note {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.contact-note > strong {
  display: block;
  margin-bottom: 7px;
  color: var(--text-strong);
}

.contact-note p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.contact-form {
  padding: clamp(22px, 4vw, 34px);
}

.contact-form-heading {
  margin-bottom: 22px;
}

.contact-form .field + .field {
  margin-top: 18px;
}

.contact-form input,
.contact-form textarea {
  border-color: #d9e1dc;
  border-radius: 10px;
  background: #fbfdfc;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 3px solid rgba(22, 138, 74, .16);
  border-color: var(--primary);
  background: #fff;
}

.contact-form textarea {
  min-height: 172px;
  resize: vertical;
}

.contact-form-footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.contact-form-footer p {
  max-width: 430px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.contact-form-footer .button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  line-height: 1.2;
  white-space: nowrap;
}

.contact-status {
  min-height: 21px;
  margin: 12px 0 0;
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 700;
}

.institutional-footer {
  margin-top: auto;
  padding: 0;
  background: var(--navy-dark, #0B1720);
  color: rgba(255, 255, 255, .76);
  text-align: left;
}

.institutional-footer > .container {
  width: min(1120px, calc(100% - 32px));
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}

.institutional-footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 34px;
  padding-top: 34px;
  padding-bottom: 28px;
}

.institutional-footer-brand {
  display: grid;
  grid-template-columns: 265px minmax(0, 430px);
  align-items: center;
  gap: 24px;
}

.institutional-footer-brand a {
  display: block;
  padding: 10px 14px;
  border-radius: 10px;
  background: #fff;
}

.institutional-footer-brand img {
  width: 100%;
  height: auto;
  display: block;
}

.institutional-footer-brand p {
  margin: 0;
  line-height: 1.6;
}

.institutional-footer-network {
  text-align: right;
}

.institutional-footer-network > strong {
  display: block;
  margin-bottom: 12px;
  color: #fff;
  font-size: 13px;
}

.institutional-social-links {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
}

.institutional-social-links a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 50%;
  background: var(--primary, #168A4A);
  color: #fff;
  transition: transform .18s ease, background .18s ease;
}

.institutional-social-links a:hover {
  transform: translateY(-2px);
  background: #20a45d;
}

.institutional-social-links a:focus-visible {
  outline: 3px solid rgba(255, 255, 255, .45);
  outline-offset: 3px;
}

.institutional-social-links svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
  stroke: none;
}

.institutional-social-links svg rect,
.institutional-social-links svg circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.institutional-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 18px;
  padding-bottom: 22px;
  border-top: 1px solid rgba(255, 255, 255, .10);
  font-size: 12px;
}

.institutional-footer-bottom a {
  color: #aee3c4;
  font-weight: 700;
  text-decoration: none;
}

.institutional-footer-bottom a:hover {
  color: #fff;
}

@media (max-width: 920px) {
  .program-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .program-actions {
    grid-column: 2;
    align-items: flex-start;
  }

  .program-social-links {
    justify-content: flex-start;
  }

  .institutional-footer-main,
  .institutional-footer-brand {
    grid-template-columns: 1fr;
  }

  .institutional-footer-brand {
    gap: 16px;
  }

  .institutional-footer-brand a {
    width: min(300px, 100%);
  }

  .institutional-footer-network {
    text-align: left;
  }

  .institutional-social-links {
    justify-content: flex-start;
  }
}

@media (max-width: 820px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-information {
    position: static;
  }
}

@media (max-width: 720px) {
  .authors-card {
    grid-template-columns: 1fr;
  }

  .author-entry {
    padding: 20px;
  }

  .author-entry + .author-entry {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .author-summary {
    gap: 14px;
  }

  .author-avatar {
    width: 68px;
    height: 68px;
    flex-basis: 68px;
    border-width: 3px;
  }

  .author-identification {
    font-size: .86rem;
  }

  .author-popover {
    position: fixed;
    top: 50%;
    right: 16px !important;
    left: 16px !important;
    width: auto;
    max-height: calc(100svh - 32px);
    overflow-y: auto;
    --popover-x: 0;
    transform: translateY(calc(-50% - 6px));
  }

  .author-entry:hover .author-popover,
  .author-entry:focus-within .author-popover,
  .author-entry.is-open .author-popover {
    transform: translateY(-50%);
  }

  .author-popover::before {
    display: none;
  }
}

@media (max-width: 620px) {
  .institutional-hero {
    padding: 22px;
  }

  .institutional-hero h1 {
    font-size: clamp(2.2rem, 14vw, 3.4rem);
  }

  .program-card {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .program-mark {
    width: 76px;
    height: 76px;
    border-radius: 20px;
  }

  .program-actions {
    grid-column: 1;
    align-items: flex-start;
  }


  .author-popover {
    padding: 18px;
  }

  .author-popover-header {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 13px;
  }

  .author-popover-header img {
    width: 68px;
    height: 68px;
  }

  .author-popover-header h3 {
    font-size: 1rem;
  }

  .author-popover-header p,
  .author-popover-links a,
  .author-popover-bio {
    font-size: 13px;
  }

  .contact-form-footer,
  .institutional-footer-bottom {
    align-items: stretch;
    flex-direction: column;
  }

  .contact-form-footer .button {
    width: 100%;
    text-align: center;
  }

  .institutional-footer-main {
    padding-top: 28px;
  }
}

/* V43.07 — participação na página Sobre */
.about-engagement {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.reaction-group {
  display: inline-flex;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, .86);
}

.engagement-button,
.engagement-stat {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, .86);
  color: var(--text-strong);
  font: inherit;
  font-size: 14px;
}

.engagement-button {
  padding: 9px 13px;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease;
}

.engagement-button:hover,
.engagement-button:focus-visible {
  border-color: rgba(22, 138, 74, .44);
  background: #fff;
  color: var(--primary-dark);
}

.engagement-button:active {
  transform: translateY(1px);
}

.reaction-group .reaction-button {
  border: 0;
  border-radius: 0;
  background: transparent;
}

.reaction-group .reaction-button + .reaction-button {
  border-left: 1px solid var(--line);
}

.reaction-button.is-active {
  background: rgba(22, 138, 74, .11);
  color: var(--primary-dark);
}

.engagement-button svg,
.engagement-stat svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex: 0 0 auto;
}

.engagement-stat {
  padding: 9px 13px;
}

.engagement-stat-label {
  color: var(--muted);
}

.share-trigger {
  margin-left: 2px;
}

.engagement-feedback {
  flex: 1 1 100%;
  min-height: 1.2em;
  margin: 0;
  color: var(--primary-dark);
  font-size: 13px;
}

.share-dialog {
  width: min(720px, calc(100vw - 32px));
  max-height: min(720px, calc(100vh - 32px));
  padding: 0;
  overflow: auto;
  border: 1px solid rgba(203, 213, 225, .94);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(15, 23, 42, .24);
  color: var(--text-strong);
}

.share-dialog::backdrop {
  background: rgba(15, 23, 42, .48);
  backdrop-filter: blur(3px);
}

.share-dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 26px 18px;
  border-bottom: 1px solid var(--line);
}

.share-dialog-header h2 {
  margin: 0 0 5px;
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
}

.share-dialog-header p {
  margin: 0;
  color: var(--muted);
}

.share-dialog-close {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text-strong);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.share-dialog-close:hover,
.share-dialog-close:focus-visible {
  background: #f1f5f9;
}

.share-platforms {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  padding: 26px;
}

.share-platforms a,
.share-platforms button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  padding: 12px 6px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--text-strong);
  font: inherit;
  font-size: 13px;
  text-decoration: none;
  cursor: pointer;
}

.share-platforms a:hover,
.share-platforms a:focus-visible,
.share-platforms button:hover,
.share-platforms button:focus-visible {
  background: #f8fafc;
}

.share-platform-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 23px;
  font-weight: 700;
}

.share-platform-icon--facebook { background: #1877f2; }
.share-platform-icon--x { background: #171717; }
.share-platform-icon--linkedin { background: #0a66c2; font-size: 18px; }
.share-platform-icon--whatsapp { background: #25d366; }
.share-platform-icon--more { background: var(--primary-dark); letter-spacing: 1px; }

.share-copy-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 0 26px 12px;
}

.share-copy-row input {
  width: 100%;
  min-width: 0;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 12px 14px;
  background: #f8fafc;
  color: var(--text-strong);
  font: inherit;
}

.share-feedback {
  min-height: 1.3em;
  margin: 0;
  padding: 0 26px 22px;
  color: var(--primary-dark);
  font-size: 13px;
}

.comments-card {
  margin-top: 42px;
  padding: clamp(20px, 3vw, 28px);
}

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

.comments-heading h2 {
  margin: 0;
}

.comments-heading-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 14px;
}

.comments-total {
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}

.comments-open-button {
  min-height: 42px;
}

.comment-dialog {
  width: min(720px, calc(100vw - 32px));
  max-height: min(90svh, 760px);
  padding: 0;
  border: 1px solid #dce5df;
  border-radius: 18px;
  background: #fff;
  color: var(--text);
  box-shadow: 0 28px 80px rgba(15, 23, 42, .24);
  overflow: auto;
}

.comment-dialog::backdrop {
  background: rgba(15, 23, 42, .52);
  backdrop-filter: blur(3px);
}

.comment-dialog-shell {
  min-width: 0;
}

.comment-dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 26px 18px;
  border-bottom: 1px solid var(--line);
}

.comment-dialog-header .institutional-card-label {
  margin-bottom: 6px;
}

.comment-dialog-header h2 {
  margin: 0;
  font-size: clamp(1.55rem, 4vw, 2rem);
}

.comment-dialog-close {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f1f5f3;
  color: var(--text-strong);
  font: inherit;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.comment-dialog-close:hover,
.comment-dialog-close:focus-visible {
  background: #e5eee8;
}

.comments-form {
  padding: 22px 26px 24px;
}

.comments-form--dialog {
  border: 0;
  border-radius: 0;
  background: #fff;
}

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

.comments-form .field {
  min-width: 0;
}

.comments-form label {
  display: block;
  margin-bottom: 6px;
  color: var(--text-strong);
  font-size: 14px;
  font-weight: 700;
}

.comments-form input,
.comments-form textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 11px 12px;
  background: #fff;
  color: var(--text-strong);
  font: inherit;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.comments-form textarea {
  min-height: 112px;
  resize: vertical;
}

.comments-form input:focus,
.comments-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(22, 138, 74, .12);
}

.comment-field {
  margin-top: 14px;
}

.comment-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.comment-label-row > span {
  color: var(--muted);
  font-size: 12px;
}

.comment-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.comments-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 14px;
}

.comments-form-footer p {
  max-width: 490px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.comments-form-feedback,
.comments-list-feedback {
  min-height: 1.3em;
  margin: 10px 0 0;
  color: var(--primary-dark);
  font-size: 13px;
}

.comments-list-feedback {
  text-align: center;
}

.comments-form-feedback.is-error,
.comments-list-feedback.is-error,
.engagement-feedback.is-error {
  color: #b42318;
}

.comments-list {
  margin-top: 4px;
}

.comment-item {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

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

.comment-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 6px;
}

.comment-meta strong {
  color: var(--text-strong);
}

.comment-meta time {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.comment-item p {
  margin: 0;
  color: var(--text-strong);
  line-height: 1.6;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.comments-empty {
  margin: 14px 0 0;
  color: var(--muted);
  text-align: center;
}

.comments-more {
  display: block;
  margin: 14px auto 0;
}

.is-hidden {
  display: none !important;
}

@media (max-width: 740px) {
  .about-engagement {
    align-items: stretch;
  }

  .reaction-group,
  .engagement-stat,
  .share-trigger {
    flex: 1 1 auto;
  }

  .engagement-stat-label {
    display: none;
  }

  .share-platforms {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 20px;
  }

  .share-copy-row {
    grid-template-columns: 1fr;
    padding-inline: 20px;
  }

  .share-dialog-header,
  .share-feedback {
    padding-left: 20px;
    padding-right: 20px;
  }

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

  .comments-form-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .comments-form-footer .button {
    width: 100%;
  }
}

@media (max-width: 460px) {
  .about-engagement {
    gap: 8px;
  }

  .reaction-group {
    width: 100%;
  }

  .reaction-group .reaction-button {
    flex: 1 1 50%;
  }

  .engagement-stat,
  .share-trigger {
    flex: 1 1 calc(50% - 4px);
  }

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

  .comments-heading,
  .comment-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .comments-heading-actions {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .comments-open-button {
    width: 100%;
  }

  .comment-dialog-header {
    padding: 20px 18px 16px;
  }

  .comments-form {
    padding: 18px;
  }
}

/* V43.10 — contato direto, modal de comentários e marca branca do IFG */
.contact-layout--single {
  grid-template-columns: minmax(0, 1fr);
  width: min(860px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.contact-form-heading p {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.contact-form-footer {
  align-items: flex-end;
}

.contact-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.contact-status.is-error {
  color: #b42318;
}

.contact-directory {
  padding: clamp(22px, 4vw, 34px);
}

.contact-directory-heading {
  margin-bottom: 22px;
}

.contact-directory-heading h2 {
  margin: 0;
  font-size: clamp(1.45rem, 2vw, 2rem);
}

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

.contact-directory-group {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfdfc;
}

.contact-directory-group h3 {
  margin: 0 0 16px;
  color: var(--text-strong);
  font-size: 1.05rem;
}

.contact-people-list {
  display: grid;
  gap: 10px;
}

.contact-people-list a {
  display: block;
  padding: 12px 14px;
  border: 1px solid #d8e7df;
  border-radius: 11px;
  background: #fff;
  color: var(--text);
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.contact-people-list a:hover,
.contact-people-list a:focus-visible {
  border-color: #9dcbb4;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, .06);
}

.contact-people-list span,
.contact-people-list strong {
  display: block;
}

.contact-people-list span {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.contact-people-list strong {
  color: var(--primary-dark);
  font-size: 14px;
}

.contact-program-details dl {
  display: grid;
  gap: 14px;
  margin: 0;
}

.contact-program-details dl > div {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.contact-program-details dl > div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.contact-program-details dt {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.contact-program-details dd {
  margin: 0;
  color: var(--text-strong);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.contact-program-details a {
  color: var(--primary-dark);
  font-weight: 700;
  text-decoration: none;
}

.contact-program-details a:hover {
  text-decoration: underline;
}

.comments-form-grid {
  align-items: start;
}

.comments-form-grid .field,
.comments-form-grid .field + .field {
  margin-top: 0;
}

.comments-form-grid .field {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.comments-form-grid label {
  min-height: 20px;
  line-height: 20px;
}

.comments-form-grid input {
  box-sizing: border-box;
  height: 48px;
  min-height: 48px;
}

.comments-form-footer {
  justify-content: flex-end;
}

.institutional-footer-brand a {
  padding: 0;
  background: transparent;
}

.institutional-footer-brand img {
  max-height: 96px;
  object-fit: contain;
  object-position: left center;
}

@media (max-width: 760px) {
  .contact-directory-grid {
    grid-template-columns: 1fr;
  }

  .contact-form-footer {
    align-items: stretch;
  }

  .contact-form-footer .button {
    width: 100%;
  }
}

/* V43.11 — página Contato unificada, contatos com ícones e mapa integrado */
.contact-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr);
  align-items: stretch;
  gap: 0;
  margin-top: 18px;
  padding: 0;
  overflow: hidden;
}

.contact-form--integrated {
  min-width: 0;
  padding: clamp(26px, 4vw, 42px);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.contact-form--integrated .contact-form-heading {
  margin-bottom: 24px;
}

.contact-form--integrated .contact-form-heading h2,
.contact-sidebar-heading h2 {
  margin: 4px 0 0;
  font-size: clamp(1.55rem, 2.2vw, 2.15rem);
}

.contact-form--integrated .contact-form-heading p {
  max-width: 620px;
}

.contact-form--integrated textarea {
  min-height: 154px;
}

.contact-sidebar {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: clamp(26px, 4vw, 42px);
  border-left: 1px solid var(--line);
  background:
    radial-gradient(circle at top right, rgba(22, 138, 74, .09), transparent 22rem),
    #fbfdfc;
}

.contact-sidebar-heading {
  margin-bottom: 24px;
}

.contact-sidebar-section + .contact-sidebar-section {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.contact-sidebar-section h3 {
  margin: 0 0 14px;
  color: var(--text-strong);
  font-size: 1rem;
}

.contact-simple-list {
  display: grid;
  gap: 4px;
}

.contact-simple-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 9px 0;
  color: var(--text);
  text-decoration: none;
  border-radius: 10px;
  transition: color .18s ease, transform .18s ease;
}

.contact-simple-row:hover,
.contact-simple-row:focus-visible {
  color: var(--primary-dark);
  transform: translateX(2px);
}

.contact-simple-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eaf7ef;
  color: var(--primary);
}

.contact-simple-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-simple-copy {
  min-width: 0;
}

.contact-simple-copy small,
.contact-simple-copy strong {
  display: block;
  overflow-wrap: anywhere;
}

.contact-simple-copy small {
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.contact-simple-copy strong {
  color: var(--text-strong);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.45;
}

.contact-simple-row:hover .contact-simple-copy strong,
.contact-simple-row:focus-visible .contact-simple-copy strong {
  color: var(--primary-dark);
}

.contact-map {
  min-height: 230px;
  margin-top: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #eef3f0;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 230px;
  display: block;
  border: 0;
}

@media (max-width: 900px) {
  .contact-workspace {
    grid-template-columns: 1fr;
  }

  .contact-sidebar {
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

@media (max-width: 560px) {
  .contact-form--integrated,
  .contact-sidebar {
    padding: 22px 18px;
  }

  .contact-map,
  .contact-map iframe {
    min-height: 210px;
  }
}

/* V43.13 — métricas e solicitações de curvas */
.curve-request-empty {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .65rem .8rem;
}
.curve-request-button {
  min-height: 34px;
  padding: .5rem .85rem;
  font-size: .82rem;
  white-space: nowrap;
}
.curve-request-feedback {
  display: inline-block;
  min-height: 1em;
  color: #166534;
  font-size: .78rem;
  line-height: 1.3;
}
.result-card .actions .curve-request-feedback {
  align-self: center;
  margin-left: .15rem;
}
@media (max-width: 720px) {
  .curve-request-empty {
    flex-direction: column;
  }
  .result-card .actions .curve-request-feedback {
    width: 100%;
    margin-left: 0;
  }
}

/* V43.14 — respostas públicas e respostas oficiais da CurVE */
.comment-reply-trigger {
  margin-top: 8px;
  padding: 3px 0;
  border: 0;
  background: transparent;
  color: var(--primary-dark);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.comment-reply-trigger:hover,
.comment-reply-trigger:focus-visible {
  text-decoration: underline;
}

.comment-replies {
  display: grid;
  gap: 10px;
  margin: 12px 0 0 24px;
}

.comment-reply {
  padding: 12px 14px;
  border-left: 3px solid #d8e5dc;
  border-radius: 0 10px 10px 0;
  background: #f8faf9;
}

.comment-reply--official {
  border-left-color: var(--primary);
  background: rgba(22, 138, 74, .07);
}

.comment-reply .comment-meta {
  margin-bottom: 4px;
}

.comment-reply .comment-meta strong {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.official-reply-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(22, 138, 74, .14);
  color: var(--primary-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.comment-reply-context {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 560px) {
  .comment-replies {
    margin-left: 10px;
  }
}
