#live-privacy { width:min(650px,calc(100% - 32px)); max-height:85dvh; overflow:auto; }
#live-privacy h2 { padding-right:2rem; font-size:clamp(1.45rem,4vw,2rem); }
#live-privacy .privacy-close { position:absolute; right:12px; top:12px; }
#live-privacy .privacy-close button { padding:.45rem .75rem; }
#live-privacy a { overflow-wrap:anywhere; }
.terms-link { display:block; margin:0 0 1rem; text-align:left; text-decoration:underline; }
.highlights-unavailable { grid-column:1/-1; margin:0; }
body:not(.animations-paused) .editorial-page:not([hidden]),
body:not(.animations-paused) #live-privacy[open] { animation:xainin-appear 240ms ease-out both; }
@keyframes xainin-appear {
 from { opacity:0; transform:translateY(6px); }
 to { opacity:1; transform:translateY(0); }
}
@media (prefers-reduced-motion:reduce) {
 body:not(.animations-paused) .editorial-page:not([hidden]),
 body:not(.animations-paused) #live-privacy[open] { animation:none; }
}
@media (max-width:760px) {
 .wrap { width:calc(100% - 32px); }
 main > section.wrap { padding-block:clamp(28px,8vw,48px); }
 .hero { padding:36px 16px 28px; }
 .hero .tagline { font-size:clamp(1.15rem,5.3vw,1.65rem); margin-block:18px 22px; }
 .hero-bottom { margin-top:22px; }
 .section-heading { gap:8px; }
 .wrap h2 { font-size:clamp(1.6rem,6.3vw,2.15rem); }
 .wrap p,.signup p { line-height:1.55; }
 .signup,.story-form,.renewal,.story-empty { padding:18px; border-radius:16px; }
 .signup h2 { font-size:1.5rem; line-height:1.15; }
 .signup input:not([type=checkbox]),.story-form input:not([type=checkbox]),.story-form textarea { font-size:16px; }
 .signup > button:not(.text-button) { width:100%; margin-top:8px; }
 .renewal { margin-top:18px; gap:16px; }
 .renewal .clock strong { font-size:clamp(1.6rem,7vw,2.25rem); }
 .editorial-page { padding-block:24px 40px; }
 .editorial-page h1 { margin:16px 0 22px; font-size:clamp(2rem,9vw,3rem); line-height:1.06; }
 .editorial-page .back-link { margin-bottom:16px; }
 .editorial-page #page-content { padding:0; background:none; border:0; }
 .editorial-page .story-empty { margin-top:0; margin-bottom:12px; }
 #live-privacy { padding:20px; }
}

#account-status.account-confirmed {
  padding: .85rem 1rem;
  border: 1px solid currentColor;
  border-radius: .65rem;
  color: var(--green);
  font-size: 1rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

/* Homepage and sponsor placement, shared by desktop and mobile. */
.hero .hero-purpose {
  font-size: clamp(1rem, 1.65vw, 1.4rem);
  line-height: 1.45;
  letter-spacing: .14em;
  max-width: 42rem;
  margin-inline: auto;
}
.hero-invite { max-width: 44rem; margin: 26px auto 32px; }
.hero .hero-invite .tagline { font-size: clamp(1.3rem, 2.4vw, 1.9rem); line-height: 1.4; margin: 0 0 18px; }
.hero-invite strong { color: var(--green); }
.donate-first { display: inline-flex; align-items: center; gap: 16px; min-height: 48px; padding: 12px 22px; border-radius: 10px; background: var(--green); color: var(--bg); font-weight: 700; text-decoration: none; }
.hero-invite .note { margin: 12px auto 0; font-size: 12px; max-width: 36rem; }
#destaques { scroll-margin-top: 24px; }
.people .section-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 310px); align-items: center; gap: 32px; }
.round-sponsor { padding: 18px 22px; border: 1px solid #d9ff7066; border-radius: 16px; background: linear-gradient(130deg, #d9ff700a, #a785f70d); min-width: 0; }
.sponsor-label { display: block; font-size: 10px; letter-spacing: .16em; font-weight: 700; color: var(--green); margin-bottom: 10px; }
#sponsor-content strong { display: block; font-size: 20px; letter-spacing: -.02em; line-height: 1.2; overflow-wrap: anywhere; }
#sponsor-content p { font-size: 12px; line-height: 1.5; margin: 8px 0 0; }
#sponsor-content img { display: block; width: auto; max-width: 100%; height: 48px; object-fit: contain; object-position: left center; margin-bottom: 10px; }
#sponsor-content a { color: var(--white); text-decoration: none; display: block; border-radius: 4px; }
#sponsor-content a:hover strong { text-decoration: underline; }
.sponsor-period { display: block; font-size: 10px; color: var(--muted); margin-top: 12px; }
.transparency .transparency-manifesto { margin: 24px 0 0; font-size: 14px; }
.transparency-manifesto strong { color: var(--green); font-size: 23px; line-height: 1.3; }
.signup input:not([type=checkbox]) { display: block; width: 100%; margin: 8px 0 16px; }
@media (max-width: 760px) {
 .hero .hero-purpose { font-size: 1rem; letter-spacing: .1em; }
 .hero .hero-invite .tagline { font-size: clamp(1.25rem, 5.1vw, 1.6rem); }
 .desktop-break { display: none; }
 .donate-first { justify-content: center; width: 100%; max-width: 340px; }
 .people .section-heading { grid-template-columns: 1fr; gap: 10px; }
 .round-sponsor { width: 100%; margin-bottom: 12px; padding: 16px 18px; }
 #sponsor-content strong { font-size: 20px; }
 .hero-invite .note { font-size: 12px; }
}

.editorial-page[data-route="historias"] {
  max-width: 940px;
  padding-block: clamp(28px, 5vw, 55px);
}

.editorial-page[data-route="historias"] h1 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  margin-block: 18px 24px;
}

.editorial-page[data-route="historias"] #page-content {
  padding: 0;
  border: 0;
  background: none;
}

.story-compact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
  margin-bottom: 16px;
}

.story-compact {
  padding: 18px 20px;
  border-radius: 16px;
  overflow-wrap: anywhere;
}

.story-compact h3 {
  font-size: 19px;
  margin: 0 0 8px;
}

.story-compact p {
  font-size: 14px;
  margin: 0 0 8px;
}

.story-compact-body {
  white-space: pre-wrap;
}

.story-compact-body p:last-child {
  margin-bottom: 0;
}

.story-compact summary {
  color: var(--green);
  cursor: pointer;
  font-size: 14px;
  width: fit-content;
  padding-block: 4px;
}

.story-compact details[open] .story-compact-body {
  margin-top: 8px;
}

@media (max-width: 640px) {
  .story-compact-grid {
    grid-template-columns: 1fr;
  }
}

.stories {
  padding-block: clamp(22px, 4vw, 40px);
}

.stories h2 {
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  line-height: 1.12;
  margin: 0 0 8px;
}

.stories > p {
  margin-bottom: 10px;
}

.story-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
}

.story-actions > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.story-disclosure {
  max-width: min(100%, 680px);
}

.story-disclosure[open] {
  flex-basis: 100%;
}

.story-disclosure > summary {
  width: fit-content;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--green);
  border-radius: 8px;
  color: var(--green);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.story-disclosure > summary:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 4px;
}

.story-disclosure .story-form {
  margin-top: 12px;
  padding: clamp(16px, 3vw, 24px);
}

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

.story-disclosure .story-form input:not([type=checkbox]),
.story-disclosure .story-form textarea {
  margin: 4px 0 12px;
}

.story-disclosure .story-form .consent {
  margin-bottom: 12px;
}

.story-disclosure #story-status:empty {
  display: none;
}

@media (max-width: 560px) {
  .story-fields {
    grid-template-columns: 1fr;
  }
}

/* Keep the artwork in the layout so its full composition can breathe. */
.transparency .kindness-art {
  min-height: 0;
  min-width: 0;
  padding: 0;
  overflow: visible;
}

.transparency .kindness-art::after {
  content: none;
}

.transparency .kindness-image {
  position: static;
  display: block;
  width: 100%;
  height: auto;
  opacity: 1;
  mask-image:
    linear-gradient(to right, transparent, black 11%, black 89%, transparent),
    linear-gradient(to bottom, transparent, black 15%, black 66%, transparent 98%);
  mask-composite: intersect;
}

.transparency .kindness-art h3 {
  margin-block: -3% 0;
  font-size: clamp(1.4rem, 2.25vw, 1.75rem);
}

.transparency .kindness-art p {
  margin-block: .75rem 0;
}

@media (min-width: 900px) {
  .split.transparency {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: clamp(28px, 4vw, 56px);
  }

  .transparency .kindness-image {
    width: calc(100% + 48px);
    max-width: none;
    margin-inline: -24px;
  }

  #account-panel:has(#profile-form:not([hidden])) {
    padding: 22px 28px;
  }

  #account-panel:has(#profile-form:not([hidden])) h2 {
    margin-block: 10px 6px;
  }

  #account-panel:has(#profile-form:not([hidden])) h2 + p {
    margin-block: 0;
  }

  #account-panel #profile-form {
    margin-top: 16px;
  }

  #profile-form .profile-fields {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 16px;
  }

  #account-panel #profile-form label {
    margin-block: 0 5px;
  }

  #account-panel #profile-form input:not([type=checkbox]) {
    min-height: 44px;
    margin-block: 0 10px;
    padding-block: 9px;
  }

  #account-panel #profile-form .note {
    margin-block: 0 8px;
  }

  #account-panel #profile-form .consent {
    align-items: center;
    min-height: 28px;
    margin-block: 0 4px;
  }

  #account-panel #profile-form .terms-link {
    min-height: 32px;
    margin: 0 0 5px 28px;
    padding-block: 4px;
  }

  #account-panel #profile-form button[type=submit] {
    min-height: 44px;
    margin-block: 6px 8px;
    padding-block: 9px;
  }

  #account-panel #profile-form:not([hidden]) + #existing-account {
    margin-top: 0;
  }

  #account-panel:has(#profile-form:not([hidden])) #account-status:empty {
    margin: 0;
  }

  #account-panel:has(#profile-form:not([hidden])) > .note {
    margin-top: 6px;
  }
}

.hero-actions {
  display: grid;
  justify-items: center;
  gap: 10px;
}

#account-toggle {
  min-height: 48px;
}

#account-title {
  scroll-margin-top: 16px;
}

@media (max-width: 760px) {
  #account-toggle {
    width: 100%;
    max-width: 340px;
  }

  #account-panel form {
    margin-top: 14px;
  }

  #account-panel label {
    margin-top: 10px;
    margin-bottom: 4px;
  }

  #account-panel input:not([type=checkbox]) {
    min-height: 46px;
    margin-block: 0 10px;
    padding-block: 10px;
  }

  #account-panel input[type=date] {
    appearance: none;
    max-width: 100%;
  }

  #account-panel .consent {
    margin-block: 8px;
  }

  #account-panel .terms-link {
    margin-block: 0 6px;
  }

  #account-status:empty {
    margin: 0;
  }

  .transparency #trans-title {
    text-align: center;
    text-wrap: balance;
  }

  .transparency #trans-title br {
    display: none;
  }

  .transparency #trans-title em {
    display: block;
  }

  .transparency .flow {
    justify-content: center;
  }
}
