/*
Theme Name: Annuaire Rémire-Montjoly
Theme URI: https://remire-montjoly.fr/
Author: Unicipal
Description: Portage WordPress fidèle de l'interface publique guyane-asso.
Version: 0.11.0
Requires at least: 6.6
Requires PHP: 8.3
Text Domain: unicipal-associations
*/

html,
body {
  min-height: 100%;
}

body {
  background: #fff;
  overflow-x: hidden;
}

.screen-reader-text,
.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: 2147483647;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: 0.45rem;
  background: #fff;
  color: #10231a;
  font-weight: 800;
  text-decoration: underline;
  box-shadow: 0 0 0 3px #10231a;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: translateY(0);
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid #005fcc !important;
  outline-offset: 3px !important;
}

:where(h1, h2, h3, h4, section, article, [id]) {
  scroll-margin-top: 6rem;
}

:where(p, li, dd, dt, a, button, label, input, select, textarea) {
  overflow-wrap: anywhere;
}

:where(input, select, textarea, button) {
  max-width: 100%;
}

.legal-page__content a,
.rm-post__body a,
.public-asso-tile__description a {
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.rm-post__body {
  white-space: normal;
}

.rm-post__body :where(h2, h3) {
  margin: 1.4em 0 0.55em;
  color: var(--rm-ink, #10231a);
  font-family: var(--ds-font-display, sans-serif);
  line-height: 1.25;
}

.rm-post__body h2 {
  font-size: 1.35rem;
}

.rm-post__body h3 {
  font-size: 1.15rem;
}

.rm-post__body :where(ul, ol) {
  margin: 0.8rem 0 1rem;
  padding-inline-start: 1.5rem;
}

.rm-post__body li + li {
  margin-top: 0.35rem;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (forced-colors: active) {
  :where(a, button, input, select, textarea, .theme-tag) {
    border: 1px solid ButtonText;
  }

  :where(.header__link--active, .manager-sidebar__link--active) {
    outline: 2px solid Highlight;
  }
}

.welcome__associations-grid > .public-asso-tile.is-revealing {
  animation: unicipal-association-reveal 440ms cubic-bezier(0.22, 1, 0.36, 1)
    var(--association-reveal-delay, 0ms) both;
}

@keyframes unicipal-association-reveal {
  from {
    opacity: 0;
    transform: translateY(0.75rem) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .welcome__associations-grid > .public-asso-tile.is-revealing {
    animation: none;
  }
}

.unicipal-support-widget {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 2147483640;
  width: min(20rem, calc(100vw - 2.5rem));
}

.unicipal-support-widget__link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.8rem;
  min-height: 4.75rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgb(0 127 139 / 0.22);
  border-radius: 1rem;
  background: rgb(255 255 255 / 0.97);
  color: #10231a;
  text-decoration: none;
  box-shadow:
    0 8px 20px rgb(16 35 26 / 0.1),
    0 20px 44px rgb(16 35 26 / 0.12);
  backdrop-filter: blur(12px);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.unicipal-support-widget__link:hover {
  transform: translateY(-2px);
  border-color: rgb(0 127 139 / 0.42);
  box-shadow:
    0 10px 24px rgb(16 35 26 / 0.12),
    0 24px 50px rgb(0 127 139 / 0.14);
}

.unicipal-support-widget__link:focus-visible {
  outline: 3px solid rgb(249 189 103 / 0.72);
  outline-offset: 3px;
}

.unicipal-support-widget__icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.85rem;
  background: linear-gradient(145deg, var(--rm-teal-deep, #007f8b), #077b3a);
  color: #fff;
  box-shadow: 0 8px 18px rgb(0 127 139 / 0.2);
}

.unicipal-support-widget__icon svg {
  width: 1.55rem;
  height: 1.55rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.unicipal-support-widget__copy {
  display: grid;
  gap: 0.16rem;
  min-width: 0;
}

.unicipal-support-widget__copy strong {
  font-family: var(--ds-font-display);
  font-size: 1rem;
  line-height: 1.15;
}

.unicipal-support-widget__copy > span {
  color: #627169;
  font-size: 0.76rem;
  line-height: 1.35;
}

.unicipal-support-widget__arrow {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgb(0 127 139 / 0.08);
  color: var(--rm-teal-deep, #007f8b);
  font-size: 1.05rem;
  font-weight: 800;
  transition: transform 180ms ease;
}

.unicipal-support-widget__link:hover .unicipal-support-widget__arrow {
  transform: translateX(2px);
}

@media (max-width: 620px) {
  .unicipal-support-widget {
    position: static;
    width: auto;
    margin: 1rem;
  }

  .unicipal-support-widget__link {
    min-height: 3.8rem;
    padding: 0.55rem 0.65rem;
    border-radius: 0.9rem;
  }

  .unicipal-support-widget__icon {
    width: 2.6rem;
    height: 2.6rem;
  }

  .unicipal-support-widget__copy > span {
    display: none;
  }
}

@media (max-height: 600px) {
  .unicipal-support-widget {
    position: static;
    width: auto;
    margin: 1rem;
  }
}

.welcome__news {
  width: min(100%, 68rem);
}

/*
 * Le répertoire communal doit toujours recouvrir les autres contenus de page,
 * tout en restant sous la navigation principale et son menu responsive.
 */
:root {
  --unicipal-layer-directory: 2147483646;
  --unicipal-layer-header: 2147483647;
}

.header {
  z-index: var(--unicipal-layer-header);
}

#main-content > .unicipal-archive-shell--association {
  z-index: var(--unicipal-layer-directory);
  isolation: isolate;
}

/*
 * Décor commun inspiré du portail officiel de Rémire-Montjoly.
 * Les illustrations sont les ressources graphiques originales du portail,
 * gardées derrière les contenus pour préserver le contraste des cartes.
 */
#main-content {
  position: relative;
  isolation: isolate;
  flex: 0 0 auto;
  width: 100%;
  min-height: 60vh;
  background: linear-gradient(
    180deg,
    #fff 0%,
    #f4fbfc 32%,
    #fff8ef 64%,
    #fff6f7 84%,
    #fff 100%
  );
}

#main-content::before,
#main-content::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
}

#main-content::before {
  background-image:
    url("./assets/backgrounds/graph-logo.webp"),
    url("./assets/backgrounds/palmier-accueil.webp"),
    url("./assets/backgrounds/Map-Accueil.svg"),
    url("./assets/backgrounds/palmier-accueil.webp"),
    url("./assets/backgrounds/bg-05.svg");
  background-position:
    right -3.5rem top 36rem,
    left -7rem top 68rem,
    right -11rem top 112rem,
    right -6rem top 168rem,
    left -10rem bottom 3rem;
  background-repeat: no-repeat;
  background-size:
    9.5rem auto,
    10rem auto,
    18rem auto,
    9rem auto,
    16rem auto;
  opacity: 0.1;
}

#main-content::after {
  background-image:
    url("/brand/tortue-accueil.svg"),
    url("./assets/backgrounds/bulle-01.svg"),
    url("./assets/backgrounds/bulle-verte-02-rm.svg"),
    url("./assets/backgrounds/bg-actu.webp"),
    url("./assets/backgrounds/bulle-01.svg"),
    url("./assets/backgrounds/bulle-verte-02-rm.svg");
  background-position:
    right -2.75rem top 28rem,
    left -3.75rem top 45rem,
    right -3rem top 76rem,
    left -9rem top 118rem,
    right -4rem top 186rem,
    left -3rem bottom 8rem;
  background-repeat: no-repeat;
  background-size:
    min(18vw, 10rem) auto,
    5.5rem auto,
    5rem auto,
    11rem auto,
    5.5rem auto,
    4.5rem auto;
  opacity: 0.28;
}

#main-content > * {
  position: relative;
  z-index: 1;
}

.welcome__associations,
.wordpress-public-page {
  background: rgb(255 255 255 / 0.88);
}

.public-sticky-banner--solid-body > .public-sticky-banner__body {
  background: #fff;
}

/*
 * Les cartes gardent leur balisage accessible, mais le lien principal étend
 * sa zone interactive à toute la surface. Les liens visuels existants restent
 * au-dessus afin de conserver leur comportement natif.
 */
.public-asso-tile__cta::before,
.news-card__public-more::before,
.service-tile__title a::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  border-radius: 1.25rem;
}

.public-asso-tile__media,
.service-tile__media,
.service-tile__cta {
  z-index: 2;
}

.public-asso-tile__cover,
.public-asso-tile__cover-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.public-asso-tile__cover {
  z-index: 0;
  object-fit: cover;
  object-position: center;
  transition: transform 320ms ease;
}

.public-asso-tile__cover-shade {
  z-index: 1;
  background: linear-gradient(180deg, rgb(4 28 17 / 0.08), rgb(4 28 17 / 0.34));
}

.public-asso-tile__logo,
.public-asso-tile__monogram,
.public-asso-tile__corner {
  z-index: 2;
}

.public-asso-tile__media--cover .public-asso-tile__logo {
  padding: 0.3rem;
  border: 1px solid rgb(255 255 255 / 0.78);
  background: rgb(255 255 255 / 0.94);
  box-shadow:
    0 0 0 4px rgb(255 255 255 / 0.2),
    0 10px 26px rgb(4 28 17 / 0.32);
}

.public-asso-tile__media--cover .public-asso-tile__corner {
  border-color: #fff;
  opacity: 0.78;
  filter: drop-shadow(0 1px 2px rgb(4 28 17 / 0.48));
}

.public-asso-tile__card:hover .public-asso-tile__cover {
  transform: scale(1.035);
}

.news-card__public-more:focus-visible,
.public-asso-tile__cta:focus-visible,
.service-tile__title a:focus-visible {
  outline: none;
}

.news-card__public-more:focus-visible::before,
.public-asso-tile__cta:focus-visible::before,
.service-tile__title a:focus-visible::before {
  outline: 3px solid rgb(0 127 139 / 0.42);
  outline-offset: -4px;
}

.news-card--public,
.public-asso-tile__card,
.service-tile {
  position: relative;
  cursor: pointer;
}

/* Les photos des actualités restent entièrement visuelles : l'attribution
 * est placée dans le pied de carte, où elle reste lisible et régulière. */
.news-card__public-header {
  min-height: 8.25rem;
  padding: 0;
}

.news-card__public-header--photo::after {
  opacity: 0;
}

.news-card__public-header-photo {
  object-position: center;
}

.news-card__public-badge {
  position: absolute;
  z-index: 2;
  top: 0.7rem;
  left: 0.7rem;
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.65rem 0.28rem;
  border-radius: 999px;
  background: rgb(16 35 26 / 0.9);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}

.news-card__public-meta {
  gap: 0.75rem;
}

.news-card__public-meta .news-card__public-association {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.news-card__public-meta .news-card__public-date {
  flex: 0 0 auto;
}

.news-card__public-meta svg {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
  stroke-width: 1.7;
}

.news-list--grid {
  grid-auto-rows: 1fr;
  align-items: stretch;
}

.news-list--grid > .news-card-item {
  display: flex;
  min-width: 0;
}

.news-list--grid .news-card--public {
  flex: 1;
  width: 100%;
  height: 100%;
}

.news-list--grid .news-card__public-copy {
  display: flex;
  flex-direction: column;
}

.news-list--grid .news-card__public-more {
  margin-top: auto;
  padding-top: 0.65rem;
}

.volunteer-offer-card--rail,
.volunteer-offer-card--grid {
  flex: 1;
  height: auto;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.volunteer-offer-list--grid {
  grid-auto-rows: 1fr;
  align-items: stretch;
}

.volunteer-offer-card--rail .volunteer-offer-card__body,
.volunteer-offer-card--grid .volunteer-offer-card__body {
  grid-template-rows: auto auto minmax(0, 1fr);
}

.volunteer-offer-card--rail .volunteer-offer-card__description,
.volunteer-offer-card--grid .volunteer-offer-card__description {
  align-self: stretch;
}

.volunteer-offer-card-wrap--rail,
.volunteer-offer-card-wrap--grid {
  display: flex;
}

.volunteer-offer-card__footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.65rem;
  width: 100%;
  border-top: 1px solid rgb(16 35 26 / 0.07);
  background: #f8faf9;
}

.volunteer-offer-card__association {
  min-width: 0;
  overflow: hidden;
  font-weight: 650;
  text-overflow: ellipsis;
}

.volunteer-offer-card__published {
  justify-self: end;
}

.volunteer-offer-card__published time {
  color: inherit;
  font: inherit;
}

.volunteer-offer-card--stay .volunteer-offer-card__footer {
  min-height: 2.35rem;
  padding: 0.45rem 0.15rem 0;
  border-top: 1px solid rgb(16 35 26 / 0.08);
  background: transparent;
  font-size: 0.7rem;
}

.app__viewport {
  width: 100%;
  min-width: 0;
}

.header__menu-toggle,
.header__menu-backdrop {
  display: none;
}

.wp-site-blocks {
  padding: 0;
}

.wordpress-public-page {
  min-height: 60vh;
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.25rem, 6vw, 5rem);
  background: #fff;
}

.wordpress-public-page__inner {
  width: min(100%, 72rem);
  margin: 0 auto;
}

.wordpress-public-page__heading {
  margin: 0.35rem 0 clamp(1.5rem, 4vw, 2.75rem);
  color: #10231a;
  font-family: var(--ds-font-display);
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.wordpress-public-page .public-asso-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.wordpress-entry {
  width: min(100%, 52rem);
  margin: 0 auto;
}

.wordpress-entry__meta {
  margin: -1rem 0 2rem;
  color: #696b7e;
}

.wordpress-entry__content {
  color: #374151;
  font-size: 1.05rem;
  line-height: 1.75;
}

.wordpress-entry__content img {
  border-radius: 1.25rem;
}

.public-asso-detail-banner .public-hero__brand {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

.unicipal-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.unicipal-social-links a {
  display: inline-flex;
  padding: 0.45rem 0.7rem;
  border: 1px solid rgb(0 127 139 / 0.18);
  border-radius: 999px;
  background: #fff;
  color: var(--rm-teal-deep, #007f8b);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.unicipal-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: clamp(2.25rem, 5vw, 3.5rem);
  padding-top: 1.25rem;
  border-top: 1px solid rgb(16 35 26 / 0.09);
}

.unicipal-pagination__status {
  margin: 0;
  color: #7a8982;
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.025em;
}

.unicipal-pagination__list {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.unicipal-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-width: 2.45rem;
  min-height: 2.45rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid rgb(16 35 26 / 0.11);
  border-radius: 0.72rem;
  background: #fff;
  color: #43534b;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 3px 10px rgb(16 35 26 / 0.035);
  transition:
    color 160ms ease,
    background 160ms ease,
    border-color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.unicipal-pagination a.page-numbers:hover {
  transform: translateY(-1px);
  border-color: rgb(0 127 139 / 0.35);
  color: var(--rm-teal-deep, #007f8b);
  box-shadow: 0 8px 18px rgb(0 127 139 / 0.1);
}

.unicipal-pagination .page-numbers.current {
  border-color: var(--rm-teal-deep, #007f8b);
  background: var(--rm-teal-deep, #007f8b);
  color: #fff;
  box-shadow: 0 7px 16px rgb(0 127 139 / 0.22);
}

.unicipal-pagination .page-numbers.dots {
  min-width: 1.5rem;
  padding-inline: 0.25rem;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  color: #8a9690;
}

.unicipal-pagination .page-numbers.prev,
.unicipal-pagination .page-numbers.next {
  padding-inline: 0.9rem;
}

.unicipal-pagination .page-numbers:focus-visible {
  outline: 3px solid rgb(0 127 139 / 0.22);
  outline-offset: 2px;
}

.unicipal-archive-shell .public-hero__identity {
  align-items: start;
}

.unicipal-archive-shell .public-hero__logo--start {
  width: clamp(4.75rem, 10vw, 6rem);
  height: clamp(4.75rem, 10vw, 6rem);
}

.unicipal-directory-filter {
  margin: 0 0 1.75rem;
  padding: clamp(1rem, 2.5vw, 1.35rem);
  border: 1px solid rgb(0 127 139 / 0.14);
  border-radius: 1.2rem;
  background:
    linear-gradient(135deg, rgb(0 127 139 / 0.055), rgb(249 189 103 / 0.07)),
    #fff;
  box-shadow: 0 10px 26px rgb(16 35 26 / 0.055);
}

.unicipal-directory-filter__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.unicipal-directory-filter__eyebrow {
  margin: 0;
  color: var(--rm-teal-deep, #007f8b);
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.unicipal-directory-filter__title {
  margin: 0.2rem 0 0;
  color: #10231a;
  font-family: var(--ds-font-display);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.15;
}

.unicipal-directory-filter__reset {
  color: var(--rm-teal-deep, #007f8b);
  font-size: 0.8rem;
  font-weight: 750;
}

.unicipal-directory-filter__fields {
  display: grid;
  grid-template-columns: minmax(13rem, 1.45fr) repeat(3, minmax(9rem, 1fr)) auto;
  gap: 0.75rem;
  align-items: end;
}

.unicipal-directory-filter__field {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
  color: #315044;
  font-size: 0.72rem;
  font-weight: 750;
}

.unicipal-directory-filter__control {
  position: relative;
  display: block;
}

.unicipal-directory-filter__control svg {
  position: absolute;
  top: 50%;
  left: 0.85rem;
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: var(--rm-teal-deep, #007f8b);
  stroke-width: 1.8;
  stroke-linecap: round;
  transform: translateY(-50%);
  pointer-events: none;
}

.unicipal-directory-filter input,
.unicipal-directory-filter select {
  width: 100%;
  min-height: 2.85rem;
  box-sizing: border-box;
  border: 1px solid rgb(16 35 26 / 0.14);
  border-radius: 0.75rem;
  background: #fff;
  color: #10231a;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 600;
}

.unicipal-directory-filter input {
  padding: 0.7rem 0.8rem 0.7rem 2.45rem;
}

.unicipal-directory-filter select {
  appearance: none;
  padding: 0.7rem 3rem 0.7rem 0.8rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23007f8b' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: right 1rem center;
  background-repeat: no-repeat;
  background-size: 1rem;
}

.unicipal-directory-filter input:focus,
.unicipal-directory-filter select:focus {
  border-color: var(--rm-teal-deep, #007f8b);
  outline: 3px solid rgb(0 127 139 / 0.12);
  outline-offset: 1px;
}

.unicipal-directory-filter__submit {
  min-height: 2.85rem;
  padding: 0.7rem 1.15rem;
  border: 0;
  border-radius: 0.75rem;
  background: var(--rm-teal-deep, #007f8b);
  color: #fff;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 7px 16px rgb(0 127 139 / 0.2);
}

.unicipal-directory-filter__submit:hover {
  background: #006c76;
}

.public-list__empty p {
  margin: 0;
}

.public-list__empty a {
  display: inline-block;
  margin-top: 0.65rem;
  color: var(--rm-teal-deep, #007f8b);
  font-weight: 750;
}

.unicipal-archive-content {
  min-height: 32rem;
}

.unicipal-archive-results {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.unicipal-archive-results__eyebrow {
  margin: 0;
  color: var(--rm-teal-deep, #007f8b);
  font-size: 0.625rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.unicipal-archive-results__title {
  margin: 0.25rem 0 0;
  color: #10231a;
  font-family: var(--ds-font-display);
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.unicipal-archive-results__page {
  margin: 0;
  color: #697871;
  font-size: 0.82rem;
  font-weight: 650;
}

@media (max-width: 1080px) {
  .unicipal-directory-filter__fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .unicipal-directory-filter__field--keyword {
    grid-column: 1 / -1;
  }

  .unicipal-directory-filter__submit {
    width: 100%;
  }

  .wordpress-public-page .public-asso-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .unicipal-directory-filter__heading {
    align-items: start;
    flex-direction: column;
    gap: 0.4rem;
  }

  .unicipal-directory-filter__fields {
    grid-template-columns: 1fr;
  }

  .unicipal-directory-filter__field--keyword {
    grid-column: auto;
  }

  .header {
    overflow: hidden;
  }

  .header__brand-name {
    font-size: 1.05rem;
  }

  .header__nav {
    gap: 0.1rem;
  }

  .header__link {
    padding-inline: 0.55rem;
    font-size: 0.8rem;
  }

  .welcome__hero-managed-copy h1,
  .welcome__hero-managed-copy h2 {
    font-size: 2rem;
    overflow-wrap: anywhere;
  }

  .welcome__news-header,
  .welcome__missions-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .welcome__news,
  .welcome__associations,
  .welcome__missions {
    overflow-x: hidden;
  }

  .wordpress-public-page .public-asso-list {
    grid-template-columns: 1fr;
  }

  .public-asso-detail-banner .public-hero__brand {
    font-size: clamp(2rem, 9vw, 2.65rem);
    line-height: 1.02;
  }

  .public-asso-detail-banner .public-hero__identity .public-hero__copy {
    width: calc(100vw - 8.75rem);
    max-width: calc(100vw - 8.75rem);
  }

  .public-asso-detail-banner .public-hero__lead {
    width: min(100%, 17rem);
    max-width: 17rem;
    overflow-wrap: anywhere;
  }

  .unicipal-pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .unicipal-pagination__status {
    text-align: center;
  }

  .unicipal-pagination__list {
    justify-content: center;
  }

  .unicipal-pagination .page-numbers {
    min-width: 2.35rem;
    min-height: 2.35rem;
    padding: 0.5rem 0.65rem;
  }

  .unicipal-pagination__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .unicipal-archive-shell .public-hero__identity {
    grid-template-columns: 4.75rem minmax(0, 1fr);
  }

  .unicipal-archive-shell .public-hero__copy {
    width: auto;
    max-width: 100%;
  }

  .unicipal-archive-shell .public-hero__brand,
  .unicipal-archive-shell .public-hero__lead {
    width: auto;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .unicipal-archive-shell .public-hero__lead {
    width: min(100%, 17rem);
    max-width: 17rem;
  }

  .unicipal-archive-results {
    align-items: flex-start;
    flex-direction: column;
  }

  .unicipal-archive-content > .public-asso-list,
  .unicipal-archive-content > .news-list,
  .unicipal-archive-content > .volunteer-offer-list {
    width: calc(100% - 1.15rem);
  }
}

@media (max-width: 360px) {
  .public-asso-detail-banner .public-hero__identity {
    grid-template-columns: 1fr;
  }

  .public-asso-detail-banner .public-hero__identity .public-hero__copy,
  .public-asso-detail-banner .public-hero__lead {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 820px) {
  .header {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
    height: 4.75rem;
    min-height: 4.75rem;
    padding: 10px 1.1rem 0;
    overflow: visible;
  }

  .header__brand {
    width: 100%;
    min-width: 0;
  }

  .header__brand-name {
    overflow: hidden;
    font-size: clamp(0.94rem, 4vw, 1.05rem);
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .header__menu-toggle {
    position: relative;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-width: 4.6rem;
    min-height: 2.75rem;
    padding: 0.55rem 0.7rem;
    border: 1px solid rgb(16 35 26 / 0.1);
    border-radius: 0.8rem;
    background: #fff;
    color: #10231a;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 750;
    cursor: pointer;
    box-shadow: 0 5px 16px rgb(16 35 26 / 0.07);
  }

  .header__menu-toggle:focus-visible {
    outline: 3px solid rgb(0 127 139 / 0.22);
    outline-offset: 2px;
  }

  .header__menu-toggle-lines {
    position: relative;
    display: grid;
    gap: 0.23rem;
    width: 1rem;
  }

  .header__menu-toggle-lines span {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background: var(--rm-teal-deep, #007f8b);
    transform-origin: center;
    transition: transform 180ms ease, opacity 150ms ease;
  }

  .header--menu-open .header__menu-toggle-lines span:nth-child(1) {
    transform: translateY(0.295rem) rotate(45deg);
  }

  .header--menu-open .header__menu-toggle-lines span:nth-child(2) {
    opacity: 0;
  }

  .header--menu-open .header__menu-toggle-lines span:nth-child(3) {
    transform: translateY(-0.295rem) rotate(-45deg);
  }

  .header__nav {
    position: absolute;
    z-index: 3;
    top: calc(100% - 0.2rem);
    right: 0.8rem;
    left: 0.8rem;
    display: grid;
    width: auto;
    height: auto;
    max-height: calc(100dvh - 5.5rem);
    gap: 0.2rem;
    padding: 0.65rem;
    overflow: auto;
    border: 1px solid rgb(16 35 26 / 0.09);
    border-radius: 1rem;
    background: rgb(255 255 255 / 0.98);
    box-shadow: 0 22px 56px rgb(16 35 26 / 0.2);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-0.6rem) scale(0.985);
    transform-origin: top center;
    transition:
      opacity 180ms ease,
      visibility 180ms ease,
      transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .header--menu-open .header__nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  .header__link,
  .header__link:hover,
  .header__link--active {
    justify-content: flex-start;
    width: 100%;
    height: 3rem;
    min-height: 3rem;
    padding: 0 0.85rem;
    border-radius: 0.72rem;
    font-size: 0.9rem;
  }

  .header__link:hover,
  .header__link:focus-visible {
    background: rgb(0 127 139 / 0.06);
    outline: none;
  }

  .header__link--active {
    background: linear-gradient(90deg, rgb(0 127 139 / 0.11), rgb(7 123 58 / 0.04));
    color: var(--rm-teal-deep, #007f8b);
  }

  .header__link-label {
    flex-direction: row;
    justify-content: flex-start;
    width: 100%;
  }

  .header__link-label::after,
  .header__link:hover .header__link-label::after,
  .header__link--active .header__link-label::after {
    width: 0.48rem;
    height: 0.48rem;
    margin: 0 0 0 auto;
  }

  .header__link--console {
    margin-top: 0.25rem;
    border-top: 1px solid rgb(16 35 26 / 0.08);
    border-radius: 0 0 0.72rem 0.72rem;
  }

  .header__menu-backdrop {
    position: fixed;
    z-index: 2;
    inset: 4.75rem 0 0;
    display: block;
    background: rgb(4 28 17 / 0.34);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    backdrop-filter: blur(3px);
    transition: opacity 180ms ease, visibility 180ms ease;
  }

  .header--menu-open .header__menu-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  html.header-menu-open .app__viewport {
    overflow: hidden;
  }
}

@media (max-width: 390px) {
  .header {
    padding-inline: 0.8rem;
  }

  .header__menu-toggle {
    min-width: 2.75rem;
    width: 2.75rem;
    padding-inline: 0.6rem;
  }

  .header__menu-toggle-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

@media (max-width: 820px) {
  #main-content {
    background: linear-gradient(
      180deg,
      #fff 0%,
      #f4fbfc 32%,
      #fff8ef 64%,
      #fff6f7 84%,
      #fff 100%
    );
  }

  #main-content::before {
    background-position:
      right -3.5rem top 38rem,
      left -6rem top 74rem,
      right -9rem top 118rem,
      right -5rem top 164rem,
      left -8rem bottom 2rem;
    background-size:
      8rem auto,
      9rem auto,
      15rem auto,
      7rem auto,
      13rem auto;
    opacity: 0.09;
  }

  #main-content::after {
    background-position:
      right -2.5rem top 26rem,
      left -3.5rem top 48rem,
      right -3rem top 80rem,
      left -7rem top 120rem,
      right -3.5rem top 184rem,
      left -2.5rem bottom 7rem;
    background-size:
      8rem auto,
      5rem auto,
      4.5rem auto,
      9rem auto,
      5rem auto,
      4rem auto;
    opacity: 0.24;
  }

  .welcome__associations,
  .wordpress-public-page {
    background: rgb(255 255 255 / 0.96);
  }

  .public-sticky-banner--solid-body > .public-sticky-banner__body {
    background: #fff;
  }
}

@media (prefers-reduced-motion: reduce) {
  .header__nav,
  .header__menu-backdrop,
  .header__menu-toggle-lines span {
    transition: none;
  }
}
