/* Mobile refinements over the preserved historical design bundle.
   Keep desktop geometry unchanged; shared cards use these rules everywhere. */
@media (max-width: 820px) {
  .header__brand-name { white-space: normal; overflow: visible; text-overflow: clip; font-size: .9375rem; line-height: 1.25; }
  .header__menu-toggle { min-width: 2.75rem; min-height: 2.75rem; font-size: .875rem; }
  .header__link { font-size: 1rem; }
  .rm-breadcrumb { font-size: .875rem; }
  .rm-breadcrumb__list { flex-wrap: wrap; row-gap: .35rem; }
  .rm-breadcrumb__link { display: inline-flex; align-items: center; min-height: 2rem; font-size: .875rem; }
  .rm-breadcrumb__current { overflow-wrap: anywhere; }
  .public-hero__back,
  .rm-asso__contact-label { font-size: .875rem; line-height: 1.45; letter-spacing: .06em; }
  .public-hero__eyebrow,
  .welcome__eyebrow,
  .home-pathways__eyebrow,
  .unicipal-directory-filter__eyebrow,
  .unicipal-archive-results__eyebrow,
  .rm-post__eyebrow,
  .rm-post__section-eyebrow,
  .rm-post__asso-label,
  .rm-post__org-eyebrow,
  .rm-post__org-meta,
  .rm-asso__section-eyebrow,
  .rm-asso__info-heading,
  .rm-asso__rail-eyebrow,
  .rm-asso-feed__eyebrow { line-height: 1.45; letter-spacing: .06em; }
  .unicipal-directory-filter__field { min-width: 0; font-size: .875rem; }
  .unicipal-directory-filter :is(input, select, button),
  .unicipal-login-body :is(.ds-control, .login__cta),
  .volunteer-apply :is(input, textarea, select, button),
  .application-field :is(input, textarea, select) { font-size: 1rem; min-height: 2.75rem; }
  .public-asso-tile__description, .news-card--public .news-card__public-excerpt,
  .volunteer-offer-card__description, .rm-post__asso-desc,
  .rm-asso__contact-value, .rm-asso__intro, .rm-post__body { font-size: 1rem; line-height: 1.6; }
  .public-asso-tile__title, .news-card--public .news-card__public-title,
  .volunteer-offer-card__title { font-size: 1.25rem; line-height: 1.25; overflow-wrap: anywhere; }
  .public-asso-tile__footer .public-asso-tile__cta,
  .news-card--public .news-card__public-more,
  .volunteer-offer-card .volunteer-offer-card__more,
  .volunteer-offer-card__meta,
  .rm-post__asso-value,
  .rm-post__asso-contact,
  .rm-post__asso-contact a { font-size: .875rem; line-height: 1.45; }
  .public-asso-tile__district,
  .news-card--public .news-card__public-meta,
  .volunteer-offer-card__footer,
  .volunteer-offer-card__tag,
  .rm-post__meta,
  .asso-news-timeline__association,
  .unicipal-archive-results__page,
  .unicipal-pagination__status { line-height: 1.45; }
  .public-footer__tagline, .public-footer__legal,
  .public-footer__links a, .public-footer__facts li { font-size: .875rem; line-height: 1.6; overflow-wrap: anywhere; }
  .public-footer__links a, .public-footer__facts a { display: inline-flex; align-items: center; min-height: 2.75rem; }
  .public-footer__links { gap: .125rem; }
  .public-footer__social .rm-social__link { width: 2.75rem; height: 2.75rem; }
  .unicipal-pagination .page-numbers { min-width: 2.75rem; min-height: 2.75rem; font-size: 1rem; }
  .unicipal-pagination__list { flex-wrap: wrap; gap: .4rem; }
  .unicipal-login-body .login__privacy, .unicipal-login-body .login__back,
  .unicipal-login-body .login__forgot, .unicipal-login-body .login__census-text { font-size: .875rem; line-height: 1.6; }
  .unicipal-login-body .login__back, .unicipal-login-body .login__forgot a { display: inline-flex; align-items: center; min-height: 2.75rem; }
  .unicipal-login-body .login__password-toggle { width: 2.75rem; height: 2.75rem; }
  .rm-post__nearby-grid, .rm-post__nearby-grid.volunteer-offer-list--grid { grid-template-columns: minmax(0, 1fr); }
  .city-quote__text p,
  .rm-post__asso-facts :is(dt, dd, a),
  .rm-post__asso-volunteer-link,
  .asso-news-timeline__cta { font-size: .875rem; line-height: 1.5; }
  .public-hero--banner .public-hero__eyebrow,
  .login__eyebrow,
  .login__census-eyebrow,
  .legal-page__updated,
  .rm-post__asso-offer-meta,
  .asso-news-timeline__time { line-height: 1.5; }
  .rm-post__asso-facts a, .rm-asso__info-facts a { display: inline-flex; align-items: center; min-height: 2.75rem; overflow-wrap: anywhere; }
  .volunteer-offer-card .volunteer-offer-card__title,
  .rm-post__nearby-grid .volunteer-offer-card .volunteer-offer-card__title { font-size: 1.25rem; line-height: 1.3; }
  .volunteer-offer-card .volunteer-offer-card__description { font-size: 1rem; line-height: 1.6; }
}

/* Full-width cards, with familiar circular arrows underneath. */
@media (max-width: 760px) {
  .home-list { --home-list-columns: 1; grid-template-columns: 1fr auto auto 1fr; gap: .75rem; }
  .home-list__viewport { grid-column: 1 / -1; grid-row: 1; }
  .home-list__arrow { width: 2.75rem; height: 2.75rem; }
  .home-list__arrow--previous { grid-column: 2; grid-row: 2; }
  .home-list__arrow--next { grid-column: 3; grid-row: 2; }
  .home-list[data-home-list-single-page] .home-list__viewport { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .welcome .welcome__news, .welcome .welcome__associations, .welcome .welcome__missions { padding: 2rem 1rem; }
  .welcome__news-header, .welcome__missions-header { gap: .75rem; margin-bottom: 1.25rem; }
  .welcome__news-title, .welcome__missions-title, .home-pathways__header h2 { font-size: 1.75rem; line-height: 1.2; }
  .welcome__news-link, .welcome__missions-link { display: inline-flex; align-items: center; min-height: 2.75rem; font-size: .9375rem; }
  .home-pathways { padding-block: 2rem; }
  .home-pathways__card { min-height: 15rem; }
  .home-pathways__body { padding: 1.5rem 1.25rem 3.25rem 3.5rem; }
  .home-pathways__title { max-width: 100%; font-size: 1.25rem; line-height: 1.25; }
  .home-pathways__description { font-size: .9375rem; line-height: 1.6; }
  .home-pathways__vertical { left: 1rem; bottom: 1.5rem; font-size: .9375rem; }
  .home-pathways__body > .home-pathways__icon { width: 2.25rem; height: 2.25rem; }
  .home-pathways__tab { font-size: .875rem; }
  .home-pathways__corner { width: 6rem; height: 6rem; }
  .home-pathways__corner .home-pathways__icon { width: 2.5rem; height: 2.5rem; top: 1rem; right: 1rem; }
  .welcome__hero-slide--managed { padding: 1.75rem 1rem 5.5rem; min-height: 26rem; }
  .welcome__hero-managed-copy { width: 100%; gap: 1.25rem; }
  .welcome__hero-managed-copy :is(h1, h2) { font-size: clamp(1.75rem, 7.5vw, 2rem); line-height: 1.12; }
  .welcome__hero-managed-text > p:not(.welcome__hero-kicker) { font-size: 1rem; line-height: 1.6; }
  .welcome__hero-arrow { top: auto; bottom: 1rem; transform: none; }
  .welcome__hero-arrow--previous { left: 1rem; }
  .welcome__hero-arrow--next { right: 1rem; }
  .welcome__hero-controls { bottom: 1rem; padding: 0; gap: 0; }
  .welcome__hero-controls button { min-width: 2.75rem; min-height: 2.75rem; }
  .rm-btn { min-height: 2.75rem; max-width: 100%; font-size: .9375rem; }
  .rm-btn__text { white-space: normal; }
  .welcome__hero-slide--managed .welcome__intro-actions .rm-btn { padding: .875rem 1.25rem; }
  .unicipal-archive-shell .public-hero__identity,
  .public-asso-detail-banner .public-hero__identity { grid-template-columns: minmax(0, 1fr); gap: .875rem; }
  .public-hero__logo--start { width: 3.5rem; height: 3.5rem; }
  .unicipal-archive-shell .public-hero__copy,
  .public-asso-detail-banner .public-hero__identity .public-hero__copy,
  .public-asso-detail-banner .public-hero__lead,
  .unicipal-archive-shell .public-hero__lead { width: 100%; max-width: 100%; }
  .public-hero__brand, .public-asso-detail-banner .public-hero__brand { font-size: clamp(1.75rem, 8vw, 2.25rem); line-height: 1.12; }
  .public-hero__lead { font-size: 1rem; line-height: 1.6; }
  .public-hero__content { padding: 1.5rem 1rem; }
  .public-hero__stats { flex-wrap: wrap; gap: .75rem 1.5rem; }
  .public-sticky-banner__content.unicipal-archive-content { padding: 1rem; }
  .unicipal-directory-filter { padding: 1rem; margin-bottom: 1.5rem; }
  .unicipal-directory-filter__fields { gap: .875rem; }
  .unicipal-directory-filter__title { font-size: 1.25rem; }
  .unicipal-archive-content > :is(.public-asso-list, .news-list, .volunteer-offer-list) { width: 100%; gap: 1rem; }
  .public-asso-tile__body, .news-card--public .news-card__public-copy,
  .volunteer-offer-card .volunteer-offer-card__body { padding: 1rem; }
  .public-asso-tile__footer { flex-wrap: wrap; gap: .75rem; }
  .public-asso-tile__district > span { line-height: 1.4; overflow-wrap: anywhere; }
  .public-asso-tile__district { overflow-wrap: anywhere; }
  .news-card--public > .news-card__public-meta,
  .volunteer-offer-card__footer { padding-inline: 1rem; }
  .rm-post { padding-inline: 1rem; --rm-post-card-pad: 1rem; }
  .rm-post__title { font-size: clamp(1.75rem, 7.5vw, 2.25rem); line-height: 1.15; overflow-wrap: anywhere; }
  .rm-post__nearby-header { flex-wrap: wrap; gap: .75rem; }
  .rm-post__asso-contact a, .rm-asso__contact-value { overflow-wrap: anywhere; }
  .legal-page { padding: 1.25rem 1rem; }
  .legal-page__title { font-size: 1.875rem; line-height: 1.2; overflow-wrap: anywhere; }
  .legal-page__content { font-size: 1rem; line-height: 1.7; overflow-wrap: anywhere; }
  .unicipal-login-body .login__card, .unicipal-login-body .login__census { padding: 1.25rem 1rem; }
  .unicipal-login-body .login__cta { white-space: normal; height: auto; }
  .unicipal-login-body .login__logo { max-width: 100%; height: auto; }
  .unicipal-apply-dialog { width: calc(100% - 2rem); max-width: 32rem; max-height: calc(100dvh - 2rem); padding: 1rem; overflow: auto; }
  .volunteer-apply__actions { flex-wrap: wrap; gap: .75rem; }
}

/* Progressive disclosure is added only when JavaScript is available. */
.mobile-list-controls[hidden], .mobile-list-item-hidden[hidden] { display: none !important; }
.mobile-list-controls { display: grid; justify-items: center; gap: .75rem; margin-top: 1.25rem; }
.mobile-list-controls__status { margin: 0; font-size: .875rem; text-align: center; }
.mobile-list-controls__button { min-height: 2.75rem; max-width: 100%; padding: .75rem 1rem; border: 1px solid #00727e; border-radius: .75rem; background: #fff; color: #005d66; font: inherit; font-size: 1rem; font-weight: 650; cursor: pointer; }
.mobile-list-controls__button:focus-visible, .desktop-required a:focus-visible { outline: 3px solid #00727e; outline-offset: 4px; }

/* Desktop workspaces use the existing console palette; login remains available.
   Enqueue after console-palette.css/subventions.css or use these scoped selectors. */
.desktop-required,
.console-mobile-skip,
.login__desktop-notice {
  display: none;
}

@media (max-width: 1023px) {
  body.unicipal-console-body.unicipal-console-workspace {
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: auto;
    background: var(--workspace-cream, #f5f1e8);
  }

  body.unicipal-console-body.unicipal-console-workspace > .admin-shell,
  .unicipal-console-workspace > .console-workspace-skip {
    display: none;
  }

  .unicipal-console-workspace > .console-mobile-skip {
    display: block;
  }

  .unicipal-console-workspace > .desktop-required {
    display: grid;
    align-items: center;
    min-height: 100vh;
    min-height: 100dvh;
    padding: max(1.25rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(1.25rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
    color: var(--workspace-text, #23384c);
  }

  .desktop-required__card {
    width: 100%;
    max-width: 36rem;
    margin-inline: auto;
    padding: clamp(1.25rem, 5vw, 2.5rem);
    border: 1px solid var(--workspace-line, #dcdedb);
    border-radius: 1.25rem;
    background: var(--workspace-surface, #fffdf8);
  }

  .desktop-required__brand {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    margin-bottom: 1.5rem;
  }

  .desktop-required__brand img {
    display: block;
    width: min(100%, 14rem);
    max-width: 100%;
    height: auto;
  }

  .desktop-required__icon {
    display: block;
    width: 2.75rem;
    height: 2.75rem;
    margin-bottom: 1rem;
    color: var(--workspace-navy, #18324b);
  }

  .desktop-required__eyebrow {
    margin: 0 0 .5rem;
    color: var(--workspace-muted, #5d6b78);
    font-size: .875rem;
    font-weight: 700;
    line-height: 1.5;
  }

  .desktop-required h1 {
    margin: 0 0 1rem;
    color: var(--workspace-navy, #18324b);
    font-size: clamp(1.75rem, 7vw, 2.25rem);
    line-height: 1.15;
    overflow-wrap: anywhere;
  }

  .desktop-required p:not(.desktop-required__eyebrow) {
    margin: 0 0 1rem;
    font-size: 1rem;
    line-height: 1.6;
  }

  .desktop-required__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1.5rem;
  }

  .desktop-required__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 2.75rem;
    padding: .75rem 1rem;
    border: 1px solid var(--workspace-navy, #18324b);
    border-radius: .5rem;
    color: var(--workspace-navy, #18324b);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
  }

  .desktop-required__action--primary {
    color: #fff;
    background: var(--workspace-navy, #18324b);
  }

  .desktop-required__action:hover {
    text-decoration: underline;
    text-underline-offset: .2em;
  }

  .unicipal-login-body .login__desktop-notice {
    display: block;
    margin: 0 0 1.25rem;
    padding: .75rem 1rem;
    border-left: 3px solid #18324b;
    color: #23384c;
    background: #edf1f5;
    font-size: 1rem;
    line-height: 1.5;
  }
}

@media (max-width: 380px) {
  .desktop-required__action {
    width: 100%;
  }
}
@media (max-width: 820px) {
/* Labels remain readable where the historical bundle uses more specific rules. */
  .rm-breadcrumb__item,
  .rm-post__asso-cta,
  .rm-post__asso-offer-title,
  .rm-btn .rm-btn__text,
  .rm-asso__board-contact a,
  .unicipal-social-links a { font-size: .875rem; line-height: 1.5; }
  .public-asso-detail .rm-asso__info-facts dt, .public-asso-detail .rm-asso__facts dt,
  .public-asso-detail .rm-asso__rail-label { color: #52675d; }
  .rm-breadcrumb__current { white-space: normal; overflow: visible; text-overflow: clip; }
  .rm-asso__board-contact a, .unicipal-social-links a { display: inline-flex; align-items: center; min-height: 2.75rem; }
  .unicipal-apply-dialog > header button { width: 2.75rem; height: 2.75rem; min-width: 2.75rem; min-height: 2.75rem; }
}

@media (max-width: 820px) {
  .rm-asso__board-contact { font-size: .875rem; line-height: 1.5; }
  .public-asso-detail__hero-facts dt { color: rgb(255 255 255 / .9); }
  .rm-asso__board-contact { overflow-wrap: anywhere; }
}

@media (max-width: 1023px) {
  .volunteer-app-form .application-field :is(input, textarea, select),
  .volunteer-app-form .application-document input[type="file"] { font-size: 1rem; min-height: 2.75rem; }
  .volunteer-app-form input[type="file"]::file-selector-button { min-height: 2.75rem; font-size: 1rem; }
}

/* Small accents keep their own scale; readable content and controls stay larger. */
@media (max-width: 820px) {
  .news-card--public .news-card__public-badge,
  .volunteer-offer-card .volunteer-offer-card__media-badge {
    padding: .25rem .45rem;
    font-size: .625rem;
    line-height: 1.15;
    letter-spacing: .04em;
  }
  .public-asso-tile .theme-tag,
  .public-asso-detail__themes .theme-tag,
  .rm-post__themes .theme-tag {
    min-height: 1.375rem;
    padding: .2rem .45rem;
    border-radius: .4rem;
    line-height: 1.2;
  }
  .volunteer-offer-card .volunteer-offer-card__tag,
  .rm-post__nearby-grid .volunteer-offer-card__tag {
    padding: .2rem .45rem;
    font-size: .6875rem;
    line-height: 1.25;
  }
  .public-hero__eyebrow,
  .public-hero--banner .public-hero__eyebrow,
  .welcome__eyebrow,
  .home-pathways__eyebrow,
  .welcome__hero-kicker,
  .login__eyebrow,
  .login__census-eyebrow,
  .unicipal-directory-filter__eyebrow,
  .unicipal-archive-results__eyebrow,
  .rm-post__eyebrow,
  .rm-post__section-eyebrow,
  .rm-post__asso-label,
  .rm-post__org-eyebrow,
  .rm-asso__section-eyebrow,
  .rm-asso__info-heading,
  .rm-asso__rail-eyebrow,
  .rm-asso-feed__eyebrow,
  .public-asso-detail :is(.rm-asso__section-eyebrow, .rm-asso__info-heading, .rm-asso__story-heading, .rm-asso__rail-eyebrow, .rm-asso-feed__eyebrow) { font-size: .75rem; line-height: 1.35; }
  .public-asso-detail .rm-asso__info-facts dt,
  .public-asso-detail .rm-asso__facts dt,
  .public-asso-detail .rm-asso__rail-label,
  .public-asso-detail__hero-facts dt { font-size: .75rem; line-height: 1.4; }
  .news-card--public .news-card__public-meta,
  .volunteer-offer-card__footer,
  .public-asso-tile__district,
  .rm-asso__missions .volunteer-offer-card__footer :is(span, time),
  .rm-post__meta,
  .rm-post__org-meta,
  .rm-post__asso-offer-meta,
  .asso-news-timeline__association,
  .asso-news-timeline__time,
  .public-hero__stat-label,
  .unicipal-archive-results__page,
  .unicipal-pagination__status,
  .legal-page__updated { font-size: .8125rem; line-height: 1.4; }
  .rm-post__asso-volunteer-count { font-size: .75rem; line-height: 1.35; }
  .rm-post__asso-facts dt { font-size: .75rem; line-height: 1.4; }
}
