:root {
  --green: #082f23;
  --green-action: #0f7a46;
  --sand: #efdecc;
  --cream: #f2e7dd;
  --line: #7c9c86;
  --coral: #f49570;
  --sans: "Roboto", Arial, sans-serif;
  --display: "New Spirit", "DM Serif Display", Georgia, serif;
  --column: min(69.3vw, 1060px);
  --content: min(56.4vw, 860px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; background: var(--sand); color: var(--green); font-family: var(--sans); font-size: clamp(14px, 1.1vw, 17px); line-height: 1.37; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.skip-link { position: fixed; z-index: 20; top: 10px; left: 10px; padding: .75rem 1rem; background: var(--green); color: var(--cream); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

.button { display: inline-flex; min-height: clamp(30px, 2.5vw, 38px); align-items: center; justify-content: center; padding: .5rem clamp(1.1rem, 1.7vw, 1.65rem); border: 0; border-radius: 999px; background: var(--green-action); color: #fff; font-size: clamp(.54rem, .65vw, .68rem); font-weight: 500; letter-spacing: .055em; line-height: 1; text-align: center; text-decoration: none; text-transform: uppercase; transition: filter .2s ease, transform .2s ease; }
.button:hover { filter: brightness(.9); transform: translateY(-1px); }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--coral); outline-offset: 4px; }

.hero { position: relative; width: 100%; height: 100vh; height: 100svh; min-height: 100vh; min-height: 100svh; overflow: hidden; background: var(--sand); }
.hero-art { position: relative; z-index: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 52%; }
.hero-logo { position: absolute; z-index: 1; top: clamp(146px, 27svh, 290px); left: 50%; width: clamp(290px, 32vw, 560px); max-width: calc(100% - 32px); height: auto; pointer-events: none; transform: translateX(-50%); }
.hero-actions { position: absolute; z-index: 2; top: 61.5%; left: 50%; display: flex; flex-direction: column; align-items: center; gap: clamp(6px, .65vw, 10px); transform: translateX(-50%); }
.hero-actions .button { min-width: clamp(148px, 15.4vw, 235px); }

.page-column { width: var(--column); margin: 0 auto; background: var(--cream); }
.section { padding-inline: clamp(25px, 5.3vw, 80px); }
.copy { max-width: 100%; }
.copy p { margin: 0 0 1.12em; }
.copy .button { margin-top: .25em; }
.copy-wide { max-width: min(78%, 760px); margin-inline: auto; text-align: center; }
.title-art { width: 100%; }

.campaign { padding-top: clamp(36px, 5vw, 76px); padding-bottom: clamp(44px, 6vw, 90px); text-align: center; }
.campaign-title-art { width: min(100%, 840px); margin: 0 auto clamp(26px, 3vw, 44px); }
.divider { width: 100%; background: var(--cream); }

.conversations { padding-top: clamp(40px, 5.2vw, 78px); padding-bottom: clamp(40px, 5vw, 78px); }
.conversation-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(185px, .77fr); align-items: stretch; gap: clamp(28px, 5vw, 80px); }
.conversation-title-art { width: 100%; margin-bottom: clamp(22px, 2.6vw, 36px); }
.video-card { position: relative; min-height: clamp(350px, 35vw, 530px); overflow: hidden; background: url("../img/screenshot-instagram-post.png") center / cover no-repeat; text-decoration: none; }
.video-card::after { position: absolute; inset: 0; background: radial-gradient(circle at center, rgba(255,255,255,.45), transparent 31%); content: ""; }
.play { position: absolute; z-index: 1; top: 50%; left: 50%; display: grid; width: clamp(52px, 5vw, 78px); height: clamp(52px, 5vw, 78px); place-items: center; border: 1px solid #fff; border-radius: 50%; transform: translate(-50%, -50%); }
.play::before { width: 0; height: 0; margin-left: 5px; border-top: 12px solid transparent; border-bottom: 12px solid transparent; border-left: 18px solid #fff; content: ""; }

.program-intro img { width: 100%; }
.programming { padding-top: clamp(35px, 4.3vw, 64px); padding-bottom: clamp(36px, 5vw, 76px); }
.program-heading { width: 100%; margin: 0 auto clamp(25px, 2.6vw, 42px); }
.program-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.5vw, 38px); }
.program-grid > a { display: block; transition: transform .2s ease; }
.program-grid > a:hover { transform: translateY(-4px); }
.program-grid img { width: 100%; }
.state-headings { display: grid; grid-template-columns: 2fr 1fr; gap: 1.2rem; margin: clamp(36px, 5vw, 72px) 0 clamp(20px, 2.6vw, 38px); color: var(--green); font-family: var(--display); font-size: clamp(1.38rem, 2.25vw, 2.4rem); font-weight: 700; line-height: 1; text-align: center; }
.state-headings span { display: flex; align-items: center; justify-content: center; gap: .5em; }
.state-headings span::before, .state-headings span::after { width: clamp(18px, 2.2vw, 34px); height: clamp(18px, 2.2vw, 34px); background: radial-gradient(ellipse at center, #fff 0 19%, transparent 21%), linear-gradient(45deg, transparent 37%, #f6ad8f 39% 59%, transparent 61%), linear-gradient(-45deg, transparent 37%, #fff 39% 59%, transparent 61%), #64bd51; border-radius: 50% 50% 48% 48%; content: ""; }

.feature { padding: clamp(34px, 4.2vw, 64px) clamp(25px, 5.3vw, 80px) clamp(40px, 5vw, 76px); text-align: center; }
.feature > img { width: 100%; }
.feature .button { margin-top: clamp(17px, 2vw, 30px); }
.memory { padding-top: clamp(34px, 4.4vw, 68px); padding-bottom: clamp(38px, 5vw, 76px); }
.label-art { width: 100%; margin-bottom: clamp(24px, 3vw, 42px); }
.memory-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(30px, 5vw, 78px); }
.memory-grid > img { width: 100%; }
.memory-grid .copy { font-size: clamp(.9rem, 1.22vw, 1.12rem); }

.tea { padding-top: clamp(35px, 4.6vw, 70px); padding-bottom: clamp(40px, 5vw, 76px); text-align: center; }
.tea .title-art { width: 100%; margin-bottom: clamp(24px, 3vw, 44px); }

.faq { padding-top: clamp(38px, 4.8vw, 72px); padding-bottom: clamp(52px, 6vw, 92px); }
.faq .title-art { width: 100%; margin-bottom: clamp(27px, 3vw, 48px); }
.faq-list { border-top: 1px solid rgba(8,47,35,.13); }
details { border-bottom: 1px solid rgba(8,47,35,.13); }
summary { position: relative; padding: clamp(14px, 1.7vw, 23px) 36px clamp(14px, 1.7vw, 23px) 0; font-size: clamp(.9rem, 1.18vw, 1.14rem); font-weight: 500; line-height: 1.3; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { position: absolute; top: 50%; right: 5px; width: 9px; height: 9px; border-right: 2px solid var(--green); border-bottom: 2px solid var(--green); content: ""; transform: translateY(-70%) rotate(45deg); transition: transform .2s ease; }
details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
details > div { max-width: 94%; padding: 0 0 clamp(16px, 2vw, 26px); font-size: clamp(.88rem, 1.13vw, 1.1rem); }
details p { margin: 0 0 1em; }
details a { font-weight: 700; text-underline-offset: 2px; }

.contact { padding-top: clamp(40px, 5vw, 76px); padding-bottom: clamp(44px, 5.5vw, 84px); text-align: center; }
.contact .title-art { width: 100%; margin-bottom: clamp(20px, 2vw, 30px); }
.contact p { margin: 0 0 .35rem; }
.phone { display: inline-block; margin: 0 0 1rem; font-size: clamp(1.35rem, 2vw, 2rem); font-weight: 900; letter-spacing: .045em; text-decoration: none; }
.contact-actions { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.contact-actions .button { width: min(100%, 260px); }

.closing-art { width: 100%; margin: 0; background: transparent; }
.site-footer { padding: clamp(36px, 5vw, 76px) max(20px, 15.4vw) clamp(42px, 6vw, 90px); background: var(--green); }
.footer-brand-row,
.footer-instagram-row { display: grid; width: min(100%, 1020px); margin-inline: auto; grid-template-columns: 1.18fr repeat(3, minmax(0, 1fr)); align-items: center; column-gap: clamp(16px, 3vw, 50px); }
.footer-brand-row { margin-bottom: clamp(30px, 4vw, 52px); }
.footer-brand,
.footer-instagram-row a { display: flex; align-items: center; justify-content: center; min-width: 0; transition: opacity .2s ease, transform .2s ease; }
.footer-brand:hover,
.footer-instagram-row a:hover { opacity: .82; transform: translateY(-3px); }
.footer-brand { position: relative; min-height: clamp(54px, 7vw, 88px); }
.footer-brand img { width: auto; max-width: 86%; max-height: clamp(42px, 5.2vw, 64px); }
.footer-brand--group { padding-right: clamp(16px, 3vw, 50px); }
.footer-brand--group::after { position: absolute; top: 50%; right: 0; width: 1px; height: clamp(54px, 7.5vw, 90px); background: rgba(255, 255, 255, .9); content: ""; transform: translateY(-50%); }
.footer-instagram-row img { width: min(100%, 190px); height: auto; }

@media (max-width: 760px) {
  .site-footer { padding: 34px 16px 42px; }
  .footer-brand-row,
  .footer-instagram-row { column-gap: 10px; }
  .footer-brand-row { margin-bottom: 26px; }
  .footer-brand { min-height: 42px; }
  .footer-brand img { max-width: 84%; max-height: 34px; }
  .footer-brand--group { padding-right: 10px; }
  .footer-brand--group::after { height: 42px; }
  .footer-instagram-row img { width: 100%; }
}

@media (max-width: 760px) {
  :root { --column: 100%; --content: 100%; }
  body { font-size: 16px; }
  .hero { min-height: 100vh; min-height: 100svh; }
  .hero-art { width: 100%; max-width: none; height: 100%; min-width: 0; object-fit: cover; object-position: 50% 52%; }
  .hero-logo { top: clamp(126px, 25svh, 214px); width: min(84vw, 430px); max-width: calc(100% - 28px); }
  .hero-actions { top: 59%; }
  .hero-actions .button { min-width: 164px; min-height: 32px; font-size: .57rem; }
  .section { padding-inline: 24px; }
  .copy-wide { max-width: 100%; }
  .campaign { padding-top: 38px; }
  .campaign-title-art { width: 100%; margin-bottom: 28px; }
  .conversation-grid { grid-template-columns: 1fr; gap: 28px; }
  .conversation-title-art { width: 100%; max-width: 460px; }
  .video-card { min-height: 390px; }
  .program-grid { gap: 28px 18px; }
  .program-grid > a:nth-child(3) { grid-column: 1 / -1; width: calc((100% - 18px) / 2); justify-self: center; }
  .state-headings { grid-template-columns: 1fr 1fr; gap: .3rem; font-size: 1.26rem; }
  .state-headings span::before, .state-headings span::after { width: 16px; height: 16px; }
  .memory-grid { grid-template-columns: 1fr; gap: 24px; }
  .memory-grid > img { width: min(100%, 420px); margin: 0 auto; }
  .memory-grid .copy { text-align: center; }
  .faq, .contact { padding-inline: 24px; }
  .site-footer { padding: 34px 20px 42px; }
  .social-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 16px; }
}

@media (max-width: 420px) {
  .hero { min-height: 100vh; min-height: 100svh; }
  .hero-art { height: 100%; }
  .section, .feature { padding-inline: 18px; }
  .program-grid { grid-template-columns: 1fr; }
  .program-grid > a:nth-child(3) { grid-column: auto; width: 100%; }
  .state-headings { margin-top: 36px; }
  .faq, .contact { padding-inline: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* Button scale adjustment: all green CTAs are 20% larger. */
.button {
  min-height: clamp(36px, 3vw, 46px);
  padding: .6rem clamp(1.32rem, 2.04vw, 1.98rem);
  font-size: clamp(.648rem, .78vw, .816rem);
}

.hero-actions .button {
  min-width: clamp(178px, 18.48vw, 282px);
}

.contact-actions .button {
  width: min(100%, 312px);
}

@media (max-width: 760px) {
  .hero-actions .button {
    min-width: 197px;
    min-height: 38px;
    font-size: .684rem;
  }
}

/* Mobile section-title scale: compensate for the transparent margins in artwork. */
@media (max-width: 760px) {
  .campaign-title-art,
  .tea .title-art,
  .faq .title-art,
  .contact .title-art {
    position: relative;
    left: 50%;
    width: 122%;
    max-width: none;
    transform: translateX(-50%);
  }

  .conversation-title-art {
    position: relative;
    left: 50%;
    width: 115%;
    max-width: none;
    transform: translateX(-50%);
  }

  .program-heading,
  .label-art {
    position: relative;
    left: 50%;
    width: 116%;
    max-width: none;
    transform: translateX(-50%);
  }

  .program-intro img,
  .feature > img {
    position: relative;
    left: 50%;
    width: 110%;
    max-width: none;
    transform: translateX(-50%);
  }

  .state-headings {
    font-size: 1.48rem;
  }

  .state-headings span::before,
  .state-headings span::after {
    width: 18px;
    height: 18px;
  }
}

/* State-specific composition for the second programming row. */
.state-programs {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(20px, 3vw, 46px);
  margin-top: clamp(36px, 5vw, 72px);
}

.state-program {
  min-width: 0;
}

.state-heading-art {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto clamp(18px, 2.5vw, 34px);
}

.state-program--pernambuco .state-heading-art {
  max-width: 470px;
}

.state-program--paraiba .state-heading-art {
  max-width: 310px;
}

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

.program-grid--one {
  grid-template-columns: minmax(0, 1fr);
}

@media (max-width: 760px) {
  .state-programs {
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .state-program--pernambuco .state-heading-art {
    width: min(100%, 390px);
  }

  .state-program--paraiba .state-heading-art {
    width: min(100%, 285px);
  }

  .state-program--paraiba .program-grid--one {
    width: min(52%, 320px);
    margin-inline: auto;
  }
}

@media (max-width: 420px) {
  .state-program--paraiba .program-grid--one {
    width: min(72%, 320px);
  }
}

/* Keep state headings at the same visual height despite different aspect ratios. */
.state-program--pernambuco .state-heading-art,
.state-program--paraiba .state-heading-art {
  width: auto;
  max-width: 100%;
  height: 44px;
}

@media (max-width: 760px) {
  .state-program--pernambuco .state-heading-art,
  .state-program--paraiba .state-heading-art {
    width: auto;
    max-width: 100%;
    height: clamp(34px, 11vw, 44px);
  }
}

/* Match the single Paraíba card to each Pernambuco card width. */
.state-program--paraiba .program-grid--one {
  width: calc(100% - clamp(8px, 1.25vw, 19px));
  margin-inline: auto;
}

@media (max-width: 760px) {
  .state-program--paraiba .program-grid--one {
    width: calc((100% - 18px) / 2);
  }
}

/* One shared three-track grid keeps all six program cards identical. */
.programming {
  --program-card-gap: clamp(16px, 2.5vw, 38px);
}

.programming > .program-grid,
.state-program--pernambuco .program-grid--two {
  gap: var(--program-card-gap);
}

.state-programs {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: var(--program-card-gap);
}

.state-program--pernambuco {
  grid-column: span 2;
}

.state-program--paraiba {
  grid-column: span 1;
}

.state-program--paraiba .program-grid--one {
  width: 100%;
  margin-inline: 0;
}

.programming .program-grid > a {
  aspect-ratio: 433 / 771;
  overflow: hidden;
}

.programming .program-grid > a > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 760px) {
  .programming > .program-grid,
  .state-program--pernambuco .program-grid--two,
  .state-program--paraiba .program-grid--one {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .programming .program-grid > a,
  .programming .program-grid > a:nth-child(3) {
    grid-column: auto;
    width: 100%;
  }
}

/* Mobile: show each state title followed by its units in one vertical sequence. */
@media (max-width: 760px) {
  .programming .state-programs {
    display: block;
  }

  .programming .state-program {
    width: 100%;
    margin: 0 0 46px;
  }

  .programming .state-program--pernambuco .program-grid--two,
  .programming .state-program--paraiba .program-grid--one {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    margin-inline: 0;
  }

  .programming .state-program .program-grid > a,
  .programming .state-program .program-grid > a:nth-child(3) {
    grid-column: auto;
    width: 100%;
    justify-self: stretch;
  }
}

/* Mobile footer: logos and Instagram links stack vertically. */
@media (max-width: 760px) {
  .site-footer {
    padding-inline: 24px;
  }

  .footer-brand-row,
  .footer-instagram-row {
    grid-template-columns: 1fr;
    row-gap: 24px;
  }

  .footer-brand-row {
    margin-bottom: 36px;
  }

  .footer-brand {
    min-height: 54px;
  }

  .footer-brand img {
    max-width: min(82%, 210px);
    max-height: 48px;
  }

  .footer-brand--group {
    padding: 0 0 26px;
  }

  .footer-brand--group::after {
    top: auto;
    right: auto;
    bottom: 0;
    left: 50%;
    width: min(100%, 260px);
    height: 1px;
    transform: translateX(-50%);
  }

  .footer-instagram-row {
    row-gap: 18px;
  }

  .footer-instagram-row img {
    width: min(100%, 220px);
  }
}

/* Mobile footer pairs: each logo is followed by its own Instagram link. */
@media (max-width: 760px) {
  .site-footer {
    display: grid;
    grid-template-columns: 1fr;
    row-gap: 18px;
  }

  .footer-brand-row,
  .footer-instagram-row {
    display: contents;
  }

  .footer-brand,
  .footer-instagram-row a {
    width: 100%;
  }

  .footer-brand:nth-child(1) { order: 1; }
  .footer-instagram-row a:nth-child(1) { order: 2; }
  .footer-brand:nth-child(2) { order: 3; }
  .footer-instagram-row a:nth-child(2) { order: 4; }
  .footer-brand:nth-child(3) { order: 5; }
  .footer-instagram-row a:nth-child(3) { order: 6; }
  .footer-brand:nth-child(4) { order: 7; }
  .footer-instagram-row a:nth-child(4) { order: 8; }

  .footer-brand--group::after {
    display: none;
  }

  .footer-instagram-row a:first-child {
    position: relative;
    padding-bottom: 26px;
  }

  .footer-instagram-row a:first-child::after {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: min(100%, 260px);
    height: 1px;
    background: rgba(255, 255, 255, .9);
    content: "";
    transform: translateX(-50%);
  }
}

/* Equal visual height for every footer brand logo. */
.footer-brand img {
  width: auto;
  height: 60px;
  max-width: 100%;
  max-height: none;
  object-fit: contain;
}

@media (max-width: 760px) {
  .footer-brand img {
    width: auto;
    height: 48px;
    max-width: 100%;
    max-height: none;
  }
}

/* Equal visual height for every footer Instagram identifier. */
.footer-instagram-row img {
  width: auto;
  height: 48px;
  max-width: 100%;
  max-height: none;
  object-fit: contain;
}

@media (max-width: 760px) {
  .footer-instagram-row img {
    width: auto;
    height: 42px;
    max-width: 100%;
    max-height: none;
  }
}

/* Contain intentionally oversized mobile artwork without creating page overflow. */
@media (max-width: 760px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overflow-x: clip;
  }

  .page-column {
    max-width: 100%;
    overflow-x: hidden;
    overflow-x: clip;
  }

  .section,
  .programming,
  .state-programs,
  .state-program {
    min-width: 0;
  }

  .divider,
  .program-heading,
  .state-heading-art,
  .closing-art {
    max-width: 100%;
  }
}

/* Mobile: inset every program card by 5% on each side. */
@media (max-width: 760px) {
  .programming > .program-grid,
  .programming .state-program .program-grid {
    padding-inline: 5%;
  }
}

/* Rio Grande do Norte uses the same visual height as the other state headings. */
.program-state-rn-heading,
.state-program--pernambuco .state-heading-art,
.state-program--paraiba .state-heading-art {
  width: auto;
  max-width: 100%;
  height: 44px;
}

@media (max-width: 760px) {
  .program-state-rn-heading,
  .state-program--pernambuco .state-heading-art,
  .state-program--paraiba .state-heading-art {
    width: auto;
    max-width: 100%;
    height: clamp(34px, 11vw, 44px);
  }
}

/* Preserve the Rio Grande do Norte heading ratio while matching all state heights. */
.program-state-rn-heading,
.state-program--pernambuco .state-heading-art,
.state-program--paraiba .state-heading-art {
  width: auto;
  max-width: none;
  height: 44px;
  object-fit: contain;
}

@media (max-width: 760px) {
  .program-state-rn-heading,
  .state-program--pernambuco .state-heading-art,
  .state-program--paraiba .state-heading-art {
    width: auto;
    max-width: none;
    height: min(44px, calc((100vw - 48px) / 10.152));
  }
}

/* Desktop only: state headings reduced 5%, 10%, 5%, 5% (44px → 41.8px → 37.62px → 35.74px → 33.95px). */
@media (min-width: 761px) {
  .program-state-rn-heading,
  .state-program--pernambuco .state-heading-art,
  .state-program--paraiba .state-heading-art {
    height: 33.95px;
  }
}

/* Horizontal carousels for state programming. */
.program-carousel {
  position: relative;
  padding: 0 clamp(24px, 4vw, 48px) 30px;
}

.program-carousel__viewport {
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  outline-offset: 4px;
}

.program-carousel__viewport::-webkit-scrollbar { display: none; }

.program-carousel__track {
  display: flex;
  width: max-content;
  gap: clamp(16px, 2.5vw, 30px);
  padding-right: clamp(64px, 10vw, 140px);
}

.program-carousel__track > a,
.programming .program-carousel__track > a,
.programming .program-carousel__track > a:nth-child(3) {
  display: block;
  width: auto;
  min-width: 0;
  flex: 0 0 clamp(220px, 29vw, 340px);
  aspect-ratio: 433 / 771;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  justify-self: auto;
}

.program-carousel__track img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.program-carousel__button {
  position: absolute;
  z-index: 2;
  top: 45%;
  display: grid;
  width: clamp(34px, 4vw, 46px);
  height: clamp(34px, 4vw, 46px);
  place-items: center;
  border: 1px solid var(--green);
  border-radius: 50%;
  background: var(--cream);
  color: var(--green);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background-color .2s, color .2s, opacity .2s;
}

.program-carousel__button--previous { left: 0; }
.program-carousel__button--next { right: 0; }
.program-carousel__button:hover:not(:disabled) { background: var(--green); color: var(--cream); }
.program-carousel__button:disabled { opacity: .35; cursor: default; }

.program-carousel::before,
.program-carousel::after {
  position: absolute;
  z-index: 1;
  top: 0;
  bottom: 58px;
  width: clamp(28px, 5vw, 56px);
  content: "";
  pointer-events: none;
  transition: opacity .2s;
}

.program-carousel::before { left: clamp(24px, 4vw, 48px); background: linear-gradient(90deg, var(--cream), transparent); opacity: 0; }
.program-carousel::after { right: clamp(24px, 4vw, 48px); background: linear-gradient(270deg, var(--cream), transparent); opacity: 1; }
.program-carousel.is-start::before,
.program-carousel.is-end::after,
.program-carousel.is-single::before,
.program-carousel.is-single::after { opacity: 0; }

.program-carousel__hint {
  margin: 12px 0 8px;
  color: var(--green);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .09em;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
}

.program-carousel__hint span { margin-right: .4rem; font-size: 1rem; }

.program-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 7px;
}

.program-carousel__dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 1px solid var(--green);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.program-carousel__dots button[aria-current="true"] { background: var(--green); }

@media (max-width: 760px) {
  .program-carousel { padding-inline: 20px; }
  .program-carousel__track { gap: 16px; padding-right: 72px; }
  .program-carousel__track > a,
  .programming .program-carousel__track > a,
  .programming .program-carousel__track > a:nth-child(3) { flex-basis: min(72vw, 285px); }
  .program-carousel__button { top: 43%; }
  .program-carousel::before { left: 20px; }
  .program-carousel::after { right: 20px; }
}

/* One programming unit per carousel page. */
.program-carousel__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  grid-template-columns: none;
  width: 100%;
  gap: 0;
  padding-right: 0;
}

.program-carousel__track > a,
.programming .program-carousel__track > a,
.programming .program-carousel__track > a:nth-child(3) {
  width: 100%;
  flex: none;
  scroll-snap-align: start;
}

@media (max-width: 760px) {
  .program-carousel__track > a,
  .programming .program-carousel__track > a,
  .programming .program-carousel__track > a:nth-child(3) {
    flex-basis: auto;
  }
}

/* Give every state carousel the same full-width viewport. */
.state-programs {
  display: block;
  width: 100%;
}

.state-program,
.state-program--pernambuco,
.state-program--paraiba {
  width: 100%;
  grid-column: auto;
  margin-bottom: clamp(40px, 6vw, 76px);
}

.state-program:last-child { margin-bottom: 0; }

.state-program .program-carousel {
  width: 100%;
}

/* Desktop keeps the original static programming grids; carousel behavior is mobile-only. */
@media (min-width: 761px) {
  .program-carousel {
    padding: 0;
  }

  .program-carousel__viewport {
    overflow: visible;
    scroll-behavior: auto;
    scroll-snap-type: none;
  }

  .program-carousel__track {
    display: grid;
    grid-auto-flow: row;
    grid-auto-columns: auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    gap: var(--program-card-gap);
    padding: 0;
  }

  .program-carousel__track > a,
  .programming .program-carousel__track > a,
  .programming .program-carousel__track > a:nth-child(3) {
    width: 100%;
    flex: none;
  }

  .program-carousel__button,
  .program-carousel__hint,
  .program-carousel__dots,
  .program-carousel::before,
  .program-carousel::after {
    display: none;
  }

  /* Two single-unit states, each as wide as one Rio Grande do Norte column, centered. */
  .state-programs {
    display: grid;
    grid-template-columns: repeat(2, calc((100% - 2 * var(--program-card-gap)) / 3));
    justify-content: center;
    gap: var(--program-card-gap);
  }

  .state-program,
  .state-program--pernambuco,
  .state-program--paraiba {
    width: auto;
    grid-column: auto;
    margin-bottom: 0;
  }

  .state-program--pernambuco .program-carousel__track,
  .state-program--paraiba .program-carousel__track {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Carousel tracks own their viewport width; do not inherit static-grid inset. */
@media (max-width: 760px) {
  .program-carousel__track.program-grid {
    padding-inline: 0;
  }
}

/* Mobile carousel viewport normalization across all three states. */
@media (max-width: 760px) {
  .programming .state-programs,
  .programming .state-program,
  .programming .state-program--pernambuco,
  .programming .state-program--paraiba {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    padding-inline: 0;
    margin-inline: 0;
  }

  .programming > .program-carousel,
  .programming .state-program .program-carousel {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    margin-inline: 0;
    padding: 0 5px 30px;
  }

  .programming .program-carousel__viewport,
  .programming .program-carousel__track,
  .programming .program-carousel__track.program-grid {
    width: 100%;
    max-width: none;
    padding-inline: 0 !important;
  }

  .programming .program-carousel__track > a,
  .programming .program-carousel__track > a:nth-child(3) {
    width: 100% !important;
    min-width: 100%;
  }
}

/* Force every mobile carousel to the same physical viewport, regardless of state wrapper. */
@media (max-width: 760px) {
  .programming > .program-carousel,
  .programming .state-program .program-carousel {
    width: calc(100vw - 48px) !important;
    max-width: calc(100vw - 48px) !important;
    margin-left: 50% !important;
    margin-right: 0 !important;
    transform: translateX(-50%);
  }
}

/* Clean carousel slides: no gradient overlays and a small inset around unit images. */
.program-carousel::before,
.program-carousel::after {
  display: none !important;
}

.programming .program-carousel__track > a,
.programming .program-carousel__track > a:nth-child(3) {
  box-sizing: border-box;
  padding-inline: clamp(6px, 1vw, 10px);
  aspect-ratio: auto;
}

.programming .program-carousel__track > a > img {
  width: 100%;
  height: auto !important;
  object-fit: contain;
}

/* Program unit slides keep images non-interactive and expose map links as buttons. */
.program-carousel__slide {
  display: flex;
  width: 100%;
  min-width: 100%;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  padding-inline: clamp(6px, 1vw, 10px);
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.program-carousel__slide > img {
  display: block;
  width: 100%;
  height: auto !important;
  object-fit: contain;
}

.program-carousel__slide > .button {
  margin: clamp(12px, 1.5vw, 18px) auto 0;
}

@media (min-width: 761px) {
  .program-carousel__slide {
    min-width: 0;
  }
}

/* Match the mobile geometry of heading 07 for the equivalent section labels. */
@media (max-width: 760px) {
  img.program-heading-equivalent {
    position: relative;
    left: 50%;
    width: 116%;
    max-width: none;
    transform: translateX(-50%);
  }
}

/* Mobile: 07 and equivalent labels share one exact content-column width. */
@media (max-width: 760px) {
  .program-heading,
  img.program-heading-equivalent {
    position: static;
    left: auto;
    width: 100%;
    max-width: 100%;
    transform: none;
  }
}

/* Mobile: center art 16 and keep it just below the Rio Grande do Norte heading height. */
@media (max-width: 760px) {
  .tea .title-art {
    position: static;
    left: auto;
    display: block;
    width: auto;
    max-width: 100%;
    height: min(40px, calc((100vw - 48px) / 10.152 - 2px));
    margin-inline: auto;
    object-fit: contain;
    transform: none;
  }
}

/* Art 16 follows the same centered reference proportion on desktop and mobile. */
.tea .title-art {
  position: static;
  left: auto;
  display: block;
  width: auto;
  max-width: 100%;
  height: 30px;
  margin-inline: auto;
  object-fit: contain;
  transform: none;
}

@media (max-width: 760px) {
  .tea .title-art {
    height: min(30px, calc((100vw - 48px) / 10.152 - 2px));
  }
}

/* Arts 16, 20 and 21 share one proportional reference. */
#localizacao-jazigos > .title-art,
#loja-memoria > .title-art,
.tea > .title-art {
  position: static;
  left: auto;
  display: block;
  width: auto;
  max-width: 100%;
  height: 30px;
  margin-inline: auto;
  object-fit: contain;
  transform: none;
}

@media (max-width: 760px) {
  #localizacao-jazigos > .title-art,
  #loja-memoria > .title-art,
  .tea > .title-art {
    height: min(30px, calc((100vw - 48px) / 21.51));
  }
}

/* Anchor the floral closing art over the bottom edge of main. */
main {
  position: relative;
}

.closing-art {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: -45px;
  left: 0;
  width: 100%;
  pointer-events: none;
}

.site-footer {
  position: relative;
  z-index: 1;
}

@media (max-width: 760px) {
  .closing-art {
    bottom: -20px;
  }
}
