@font-face {
  font-family: "Baloo Chettan 2";
  src: url("../fonts/BalooChettan2-variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 400 800;
  font-display: block;
}

/* main.css - custom scrollbar
   Thumb color: #306E99
   Supports WebKit browsers (Chrome, Safari, Edge) and Firefox
*/
:root {
  --scrollbar-thumb: #306E99;
  --scrollbar-track: rgba(0,0,0,0.05);
}

/* WebKit (Chrome, Safari, Edge) */
*::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}
*::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
}
*::-webkit-scrollbar-thumb {
  background-color: var(--scrollbar-thumb);
  border-radius: 999px;
  border: 3px solid transparent; /* padded look */
  background-clip: padding-box;
}
*::-webkit-scrollbar-thumb:hover {
  filter: brightness(0.92);
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

/* Global language selector used by every page that includes the navbar. */
.language-selector {
  position: relative;
  z-index: 5001;
  flex: 0 0 auto;
  margin-left: .4rem;
  font-family: "Baloo Chettan 2", sans-serif;
}

.language-selector summary {
  list-style: none;
}

.language-selector summary::-webkit-details-marker {
  display: none;
}

.language-selector__trigger {
  min-width: 70px;
  height: 46px;
  padding: 0 11px 0 7px;
  border: 1px solid rgba(23, 50, 71, .14);
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  color: #173247;
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(23, 50, 71, .08);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.language-selector__trigger:hover,
.language-selector[open] .language-selector__trigger {
  border-color: #F3AE01;
  box-shadow: 0 8px 22px rgba(23, 50, 71, .13);
  transform: translateY(-1px);
}

.language-flag {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: inline-block;
  border: 2px solid #fff;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 1px 5px rgba(23, 50, 71, .22);
}

.language-flag--ca {
  background: repeating-linear-gradient(to bottom, #f5c400 0 3.33px, #c8102e 3.33px 6.66px);
}

.language-flag--es {
  background: linear-gradient(to bottom, #aa151b 0 25%, #f1bf00 25% 75%, #aa151b 75% 100%);
}

.language-selector__code {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
}

.language-selector__chevron {
  width: 10px;
  transition: transform .2s ease;
}

.language-selector[open] .language-selector__chevron {
  transform: rotate(180deg);
}

.language-selector__menu {
  position: absolute;
  z-index: 5002;
  top: calc(100% + 10px);
  right: 0;
  width: 176px;
  padding: 7px;
  border: 1px solid rgba(23, 50, 71, .12);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(23, 50, 71, .18);
}

.language-selector__option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 11px;
  color: #173247;
  font-weight: 700;
  text-decoration: none;
}

.language-selector__option:hover,
.language-selector__option.is-active {
  background: #f5f8f2;
  color: #577b35;
}

.language-selector__option .language-flag {
  width: 26px;
  height: 26px;
  flex-basis: 26px;
}

.header-nav {
  z-index: 5000 !important;
  overflow: visible !important;
}

.header-nav .nav-menu-wrapper,
.header-nav .nav-menu,
.header-nav .w-nav-overlay {
  overflow: visible !important;
}

/*
 * On short desktop viewports the absolute header can overlap the centred
 * hero copy. Reserve space only there, without altering the normal desktop
 * composition on larger screens.
 */
@media (min-width: 992px) and (max-height: 900px) {
  #hero.hero-section {
    box-sizing: border-box;
    height: auto;
    min-height: 100vh;
    min-height: 100svh;
    padding-top: 110px;
    padding-bottom: 30px;
  }

  #hero .width-55 {
    margin-top: 0;
  }
}

@media (max-width: 991px) {
  .language-selector {
    margin: 10px 20px 0;
    align-self: flex-start;
  }

  .language-selector__menu {
    right: auto;
    left: 0;
  }
}

.whatsapp-floating-button {
  position: fixed;
  z-index: 900;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 6px 20px rgba(20, 88, 48, .28);
  transition: transform .2s ease, box-shadow .2s ease;
}

.whatsapp-floating-button:hover {
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 9px 24px rgba(20, 88, 48, .34);
}

.whatsapp-floating-button:focus-visible {
  outline: 3px solid #173247;
  outline-offset: 4px;
}

.whatsapp-floating-button svg {
  display: block;
  width: 34px;
  height: 34px;
}

@media (max-width: 767px) {
  .whatsapp-floating-button {
    width: 56px;
    height: 56px;
  }

  .whatsapp-floating-button svg {
    width: 30px;
    height: 30px;
  }
}

.header-nav .nav-menu {
  column-gap: 18px;
}

.header-nav .logo {
  display: block;
  width: auto;
  height: 4rem;
  padding-top: 0;
  flex: none;
}

.header-nav .brand {
  padding-top: 1rem;
}

@media (max-width: 991px) {
  .header-nav .logo {
    height: 34px;
  }
}

@media (max-width: 479px) {
  .header-nav .logo {
    height: 29px;
  }
}

.header-nav .nav-menu .nav-link-button {
  white-space: nowrap;
}

.header-nav .nav-link-cta,
.header-nav .nav-link-cta:hover,
.header-nav .nav-link-cta:focus-visible {
  color: #fff;
}

.nav-utilities {
  display: flex;
  align-items: center;
  gap: 8px;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.social-links__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  transition: color .2s ease, background-color .2s ease;
}

.social-links__link:hover {
  color: #f3ae01;
  background-color: rgba(255, 255, 255, .12);
}

.social-links__link:focus-visible {
  outline: 2px solid #f3ae01;
  outline-offset: 2px;
}

.social-links__link svg {
  display: block;
  width: 22px;
  height: 22px;
}

.footer-social {
  margin-top: 12px;
}

.footer-social .social-links {
  gap: 8px;
  margin-top: 12px;
}

.footer-social .social-links__link {
  width: 40px;
  height: 40px;
  flex-basis: 40px;
  background-color: rgba(255, 255, 255, .1);
}

.footer-support {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.footer-support__title {
  margin: 0 0 14px;
  color: var(--lighter-yellow);
  font-family: var(--main-font);
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.25;
}

.footer-support__logos {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  width: 100%;
}

.footer-support__logo {
  display: grid;
  place-items: center;
  width: 100%;
  height: 72px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #fffdf8;
}

.footer-support__logo img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.footer-support__logo--joventut img {
  max-width: 155px;
}

.footer-section .footer-grid {
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.15fr) minmax(0, .8fr) minmax(0, 1fr) 75px;
  column-gap: clamp(14px, 2vw, 28px);
  align-items: start;
}

.footer-decoration {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
}

.footer-decoration .footer-icon-fly {
  position: relative;
  top: auto;
  right: auto;
  left: auto;
  width: 70px;
  max-width: 100%;
}

@media (max-width: 991px) {
  .footer-section .footer-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr) minmax(0, .8fr) minmax(0, 1fr);
    column-gap: 16px;
  }

  .footer-decoration {
    display: none;
  }
}

@media (max-width: 767px) {
  .footer-section .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px 24px;
  }

  .footer-brand,
  .footer-support {
    grid-column: 1 / -1;
  }

  .footer-brand {
    display: flex;
    justify-content: center;
  }

  .footer-section .footer-brand .footer-logo {
    width: min(100%, 240px);
    margin-bottom: 0;
  }

  .footer-support {
    align-items: center;
  }

  .footer-support__title {
    max-width: 28ch;
    margin-bottom: 18px;
    font-size: 1.25rem;
    text-align: center;
  }

  .footer-support__logos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    max-width: 560px;
  }

  .footer-support__logo {
    height: 94px;
    padding: 14px;
  }

  .footer-support__logo--joventut img {
    max-width: 190px;
  }
}

@media (max-width: 479px) {
  .footer-support__title {
    font-size: 1.15rem;
  }

  .footer-support__logos {
    grid-template-columns: 1fr;
    gap: 12px;
    max-width: 320px;
  }

  .footer-support__logo {
    height: 88px;
    padding: 12px 18px;
  }
}

.footer-brand .footer-logo {
  position: relative;
  width: min(100%, 280px);
  aspect-ratio: 1;
  overflow: hidden;
}

.footer-logo-img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 155%;
  max-width: none;
  height: auto;
  transform: translate(-50%, -50%);
  filter: brightness(0) invert(1);
}

.block-footer-down .footer-icon-run {
  left: auto;
  right: 4%;
  bottom: calc(100% - 2px);
}

.block-footer-down .footer-bottom__copyright {
  display: block;
  line-height: 1.5;
}

.footer-bottom__brand {
  color: #f3ae01;
  white-space: nowrap;
}

.block-footer-down .footer-bottom__credits {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-bottom__made-with {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.footer-bottom__made-with svg {
  flex: 0 0 16px;
}

.footer-bottom__studio {
  display: inline-flex;
  align-items: center;
}

.block-footer-down .footer-bottom__studio img {
  display: block;
  width: auto;
  max-width: 150px;
  height: 26px;
}

.footer-bottom__cookies {
  margin-left: auto;
  white-space: nowrap;
  text-underline-offset: 4px;
}

@media (max-width: 767px) {
  .block-footer-down {
    align-items: flex-start;
    gap: 18px;
    margin-top: 40px;
    padding-top: 28px;
    padding-bottom: 70px;
    text-align: left;
  }

  .block-footer-down .footer-icon-run {
    display: none;
  }

  .block-footer-down .footer-bottom__copyright {
    max-width: 32ch;
    font-size: .95rem;
  }

  .block-footer-down .footer-bottom__credits {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    font-size: .95rem;
  }

  .footer-bottom__cookies {
    max-width: calc(100% - 76px);
    margin: 2px 0 0;
    white-space: normal;
    font-size: .95rem;
  }
}

@media (max-width: 767px) {
  .title-wrap > .text-color-bg,
  .title-wrap > .text-color-bg-yellow {
    display: none;
  }

  #program .program-img > .program-bg {
    bottom: -2px;
    width: 100%;
  }

  #program .program-img::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 3px;
    background: #fff;
    pointer-events: none;
  }

  .legal-hero .legal-narrow,
  .legal-content .legal-narrow {
    box-sizing: border-box;
    width: 100%;
    padding-inline: clamp(20px, 5vw, 32px);
  }

  .legal-hero {
    padding-bottom: 28px;
  }

  .legal-hero .title-wrap {
    max-width: 100%;
  }

  .legal-hero .section-title {
    font-size: clamp(1.9rem, 6vw, 2.5rem);
    line-height: 1.12;
    text-transform: none;
    text-wrap: balance;
  }

  .legal-intro {
    line-height: 1.6;
  }

  .legal-content {
    padding-top: 12px;
    padding-bottom: 64px;
  }

  .legal-section {
    padding: 26px 0;
  }

  .legal-section .feature-title {
    font-size: clamp(1.45rem, 4.8vw, 1.75rem);
    line-height: 1.2;
  }

  .legal-section .feature-description {
    margin: 12px 0 0;
    line-height: 1.6;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 479px) {
  .block-footer-down .footer-icon-run {
    width: clamp(42px, 16vw, 58px);
    right: 4px;
  }
}

@media (max-width: 991px) {
  .header-nav .social-links {
    margin-top: 4px;
  }
}

.club-laws-closing__today {
  color: #c72540;
}

.club-laws-closing__now {
  color: #6a8d41;
}

.club-laws-closing__always {
  color: #306f99;
}

.hero-cta-group {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.hero-section .pink-line {
  z-index: 0;
  pointer-events: none;
}

@media (max-width: 767px) {
  .hero-section .pink-line {
    display: none;
  }
}

@media (max-width: 479px) {
  .hero-cta-group {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 991px) {
  .header-nav .w-nav-overlay {
    position: fixed;
    inset: 0 auto auto 0;
    width: min(360px, calc(100vw - 72px)) !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: 100dvh;
    overflow: hidden !important;
  }

  .header-nav .nav-menu[data-nav-menu-open] {
    position: fixed;
    inset: 0 auto auto 0;
    box-sizing: border-box;
    width: min(360px, calc(100vw - 72px));
    min-width: 0;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: 100dvh;
    padding: calc(84px + env(safe-area-inset-top)) 24px calc(24px + env(safe-area-inset-bottom));
    border-radius: 0 24px 24px 0;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    display: flex !important;
  }

  .header-nav .menu-button {
    z-index: 3;
  }

  .header-nav .nav-menu .mobile-nav-link,
  .header-nav .nav-menu .mobile-nav-link.w--current {
    width: 100%;
    flex: 0 0 auto;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .18);
    font-size: 1.125rem;
    line-height: 1.25;
    text-align: left;
  }

  .header-nav .nav-menu .nav-link-cta {
    width: max-content;
    max-width: 100%;
    margin: 18px 0 0;
    padding: 12px 20px;
    border: 0;
    text-align: center;
  }

  .header-nav .nav-menu .nav-utilities {
    order: -1;
    width: 100%;
    flex: 0 0 auto;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, .18);
  }

  .header-nav .nav-menu .social-links {
    margin: 0;
    padding: 0;
    gap: 8px;
  }

  .header-nav .nav-menu .social-links__link {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
    background: rgba(255, 255, 255, .12);
  }

  .header-nav .nav-menu .social-links__link svg {
    width: 24px;
    height: 24px;
  }

  .header-nav .nav-menu .language-selector {
    order: -1;
    margin: 0;
  }

  .header-nav .nav-menu .language-selector__menu {
    top: calc(100% + 8px);
    bottom: auto;
    right: auto;
    left: 0;
  }
}

.registration-choice {
  min-height: 78vh;
  padding: clamp(150px, 13vw, 190px) 24px 110px;
  background: linear-gradient(105deg, #fbf5e7, #fffdf8 45%, #eef6e9);
}

.price-section .price-wrap.price-first,
.price-section .price-wrap.price-second {
  display: flex;
  flex-direction: column;
  align-self: stretch;
}

.price-section .price-wrap.price-first > .w-dyn-list,
.price-section .price-wrap.price-second > .w-dyn-list,
.price-section .price-wrap.price-first .w-dyn-items,
.price-section .price-wrap.price-second .w-dyn-items,
.price-section .price-wrap.price-first .w-dyn-item,
.price-section .price-wrap.price-second .w-dyn-item {
  display: flex;
  flex: 1;
  flex-direction: column;
  width: 100%;
}

.price-section .price-wrap.price-first .price-button,
.price-section .price-wrap.price-second .price-button {
  margin-top: auto;
}

.service-detail-wrap {
  padding: clamp(56px, 7vw, 96px) clamp(20px, 4vw, 64px) clamp(72px, 8vw, 108px);
}

.service-detail-wrap .container {
  width: 100%;
  max-width: 1320px;
}

.service-detail-wrap .section-description {
  max-width: 780px;
  margin-inline: auto;
}

.initiatives-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 32%) minmax(0, 1fr);
  gap: clamp(26px, 3vw, 46px);
  align-items: stretch;
  margin-top: 64px;
  text-align: left;
}

.initiatives-showcase__media {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  border-radius: 26px;
  background: #d3e4eb;
  box-shadow: 0 20px 48px rgba(26, 69, 85, .14);
}

.initiatives-showcase__media video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.initiatives-showcase__rail {
  display: grid;
  grid-template-rows: repeat(3, minmax(auto, 1fr));
  min-width: 0;
}

.initiatives-showcase__point {
  min-width: 0;
  padding: 18px 0 22px;
  border-top: 1px solid #cfdedb;
}

.initiatives-showcase__point:last-child {
  border-bottom: 1px solid #cfdedb;
}

.initiatives-showcase__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 36px;
  max-width: 100%;
  color: #658445;
  font-family: var(--main-font);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
}

.initiatives-showcase__meta img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.initiatives-showcase__point h3 {
  margin: 11px 0 8px;
  color: #214861;
  font-family: var(--main-font);
  font-size: clamp(1.25rem, 1.65vw, 1.52rem);
  line-height: 1.13;
}

.initiatives-showcase__point p {
  margin: 0;
  color: #425a65;
  font-family: var(--sub-font);
  font-size: 1rem;
  line-height: 1.58;
}

@media (max-width: 1200px) {
  .initiatives-showcase {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 38px;
  }

  .initiatives-showcase__media {
    grid-column: 1 / -1;
    grid-row: 1;
    justify-self: center;
    width: min(100%, 420px);
    min-height: 0;
    aspect-ratio: 9 / 16;
  }
}

@media (max-width: 700px) {
  .initiatives-showcase {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 40px;
  }

  .initiatives-showcase__media {
    grid-column: 1;
    grid-row: 1;
    min-height: 0;
    aspect-ratio: 3 / 4;
    margin-bottom: 28px;
    border-radius: 22px;
  }

  .initiatives-showcase__rail {
    grid-template-rows: none;
  }

  .initiatives-showcase__rail--left .initiatives-showcase__point:last-child {
    border-bottom: 0;
  }

  .initiatives-showcase__point {
    padding: 19px 0 23px;
  }

  .initiatives-showcase__point h3 {
    font-size: 1.36rem;
  }
}

@media (max-width: 767px) {
  .price-section .flex-h-wrap > .price-wrap.price-third.price-wide {
    box-sizing: border-box;
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    margin-top: 0;
    padding: 30px 24px;
    border: 1px solid #e5e5de;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(40, 63, 70, .08);
  }

  .price-section .price-wrap.price-third.price-wide .price-title {
    color: #214861;
    font-size: 1.65rem;
    line-height: 1.2;
    text-align: left;
  }

  .price-section .price-wrap.price-third.price-wide .price-feature-list {
    gap: 0;
    margin-top: 18px;
    padding-top: 8px;
    border-top: 2px solid #f3ae01;
  }

  .price-section .price-wrap.price-third.price-wide .list-item {
    align-items: stretch;
    gap: 0;
  }

  .price-section .price-wrap.price-third.price-wide .list-flex {
    justify-content: flex-start;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #e8ecee;
  }

  .price-section .price-wrap.price-third.price-wide .list-flex:last-child {
    border-bottom: 0;
  }

  .price-section .price-wrap.price-third.price-wide .icon-embed-xxsmall {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    color: #6a8d41;
  }

  .price-section .price-wrap.price-third.price-wide .bullet-point {
    flex: 1;
    color: #40545d;
    font-size: 1rem;
    line-height: 1.5;
    text-align: left;
  }
}

.price-plan {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 190px;
  margin-top: 8px;
  text-align: center;
  font-family: var(--main-font);
}

.price-plan__main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 108px;
}

.price-plan__amount {
  color: var(--lighter-yellow);
  font-size: clamp(3.2rem, 4vw, 4rem);
  font-weight: 700;
  line-height: 1;
}

.price-plan__period {
  margin-top: 9px;
  color: #fff;
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.15;
}

.price-plan__detail {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 62px;
  margin: 14px 0 0;
  padding-top: 14px;
  border-top: 2px dashed rgba(255, 255, 255, .7);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.35;
}

.registration-choice__inner {
  max-width: 1060px;
  margin: 0 auto;
  text-align: center;
}

.registration-choice__eyebrow {
  color: #306f99;
  font-family: var(--main-font);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.registration-choice h1 {
  margin: 10px 0 12px;
  color: #173247;
  font-family: var(--main-font);
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
}

.registration-choice__intro {
  max-width: 620px;
  margin: 0 auto 44px;
  color: #536574;
  font-size: 1.1rem;
  line-height: 1.6;
}

.registration-choice__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  text-align: left;
}

.registration-choice__card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 330px;
  padding: 36px;
  border: 1px solid #dce7ed;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 16px 44px rgba(23, 50, 71, .08);
  color: #173247;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.registration-choice__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 54px rgba(23, 50, 71, .15);
}

.registration-choice__card:focus-visible {
  outline: 3px solid #306f99;
  outline-offset: 4px;
}

.registration-choice__card--esplai:hover {
  border-color: #306f99;
}

.registration-choice__card--raco:hover {
  border-color: #6a8d41;
}

.registration-choice__icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: #e9f3f9;
  color: #306f99;
}

.registration-choice__card--raco .registration-choice__icon {
  background: #edf4e8;
  color: #6a8d41;
}

.registration-choice__icon svg {
  width: 42px;
  height: 42px;
}

.registration-choice__card h2 {
  margin: 26px 0 8px;
  color: #173247;
  font-family: var(--main-font);
  font-size: 2.1rem;
  line-height: 1.1;
}

.registration-choice__card p {
  margin: 0 0 28px;
  color: #536574;
  font-size: 1rem;
  line-height: 1.6;
}

.registration-choice__action {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  color: #306f99;
  font-family: var(--main-font);
  font-size: 1.1rem;
  font-weight: 700;
}

.registration-choice__card--raco .registration-choice__action {
  color: #557832;
}

.registration-choice__action span {
  font-size: 1.4rem;
  transition: transform .2s ease;
}

.registration-choice__card:hover .registration-choice__action span {
  transform: translateX(4px);
}

/* Selection continues into the next registration screen. */
.registration-choice__inner {
  animation: registration-enter .45s ease-out both;
}
.registration-choice.is-leaving .registration-choice__card:not(.is-selected) {
  opacity: 0;
  transform: translateY(18px) scale(.96);
}
.registration-choice.is-leaving .registration-choice__card.is-selected {
  transform: translateY(-8px) scale(1.035);
  box-shadow: 0 28px 65px rgba(23, 50, 71, .18);
}
.registration-choice.is-leaving .registration-choice__eyebrow,
.registration-choice.is-leaving h1,
.registration-choice.is-leaving .registration-choice__intro {
  opacity: 0;
  transform: translateY(-12px);
}
.registration-choice__card,
.registration-choice__eyebrow,
.registration-choice h1,
.registration-choice__intro {
  transition: opacity .28s ease, transform .28s ease, box-shadow .28s ease;
}
@keyframes registration-enter {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .registration-choice__inner { animation: none; }
  .registration-choice__card,
  .registration-choice__eyebrow,
  .registration-choice h1,
  .registration-choice__intro { transition: none; }
}

.registration-form-back {
  display: inline-flex;
  align-items: center;
  margin-bottom: 22px;
  color: #306f99;
  font-family: var(--main-font);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
}

.registration-form-back:hover {
  color: #c72540;
}

.registration-form-back:focus-visible {
  outline: 2px solid #306f99;
  outline-offset: 4px;
}

@media (max-width: 767px) {
  .registration-choice {
    padding: 125px 18px 72px;
  }

  .registration-choice__intro {
    margin-bottom: 28px;
  }

  .registration-choice__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .registration-choice__card {
    min-height: 0;
    padding: 26px;
  }
}

.club-section {
  padding: clamp(150px, 16vw, 230px) 24px 100px;
}

.club-section__container {
  position: relative;
  z-index: 1;
}

.club-section__intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: center;
  gap: clamp(36px, 7vw, 100px);
}

.club-section__title-wrap {
  margin-left: -10px;
}

.club-section__lead {
  max-width: 640px;
  margin: 30px 0 14px;
  color: #193e57;
  font-family: var(--main-font);
  font-size: clamp(1.35rem, 2.25vw, 1.8rem);
  font-weight: 500;
  line-height: 1.35;
}

.club-section__lead strong {
  font-weight: 700;
}

.club-section__body {
  max-width: 630px;
  margin: 0;
  color: #31556c;
  font-size: 1.05rem;
  line-height: 1.7;
}

.club-section__schedule {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 32px;
  border-radius: 22px;
  background: #235d80;
  box-shadow: 0 18px 40px rgba(27, 85, 120, .16);
  color: #fff;
}

.club-section__schedule-label {
  margin-bottom: 18px;
  color: #ffe08c;
  font-family: var(--main-font);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.club-section__schedule strong {
  font-family: var(--main-font);
  font-size: 2rem;
  line-height: 1.1;
}

.club-section__schedule-time {
  margin-top: 5px;
  color: #ffe08c;
  font-family: var(--main-font);
  font-size: 2.15rem;
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
}

.club-section__schedule-time small {
  font-size: .7em;
}

.club-section__schedule p {
  margin: 22px 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .3);
  font-size: .96rem;
  line-height: 1.6;
}

.club-section__activities-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin: 66px 0 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(31, 89, 121, .27);
}

.club-section__activities-heading h3 {
  margin: 0;
  color: #193e57;
  font-family: var(--main-font);
  font-size: 2rem;
  line-height: 1.1;
}

.club-section__activities-heading p {
  max-width: 390px;
  margin: 0;
  color: #31556c;
  line-height: 1.5;
}

.club-section__activities {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.club-section__activity {
  position: relative;
  min-width: 0;
  min-height: 208px;
  padding: 24px;
  border: 1px solid rgba(40, 101, 134, .14);
  border-radius: 18px;
  background: rgba(255, 255, 255, .84);
  text-align: left;
}

.club-section__activity-number {
  position: absolute;
  top: 22px;
  right: 24px;
  color: #6998af;
  font-family: var(--main-font);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .06em;
}

.club-section__activity img {
  display: block;
  width: 62px;
  height: 62px;
  margin-bottom: 22px;
  object-fit: contain;
}

.club-section__activity h4 {
  margin: 0 0 5px;
  color: #193e57;
  font-family: var(--main-font);
  font-size: 1.32rem;
  line-height: 1.2;
}

.club-section__activity p {
  margin: 0;
  color: #3e5e6c;
  font-size: .96rem;
  line-height: 1.55;
}

.club-section__note {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: center;
  gap: 28px;
  margin-top: 28px;
  padding: 26px 30px;
  border-left: 5px solid #f3ae01;
  border-radius: 0 16px 16px 0;
  background: #f8fbfc;
  text-align: left;
}

.club-section__note h3 {
  margin: 0;
  color: #193e57;
  font-family: var(--main-font);
  font-size: 1.35rem;
  line-height: 1.2;
}

.club-section__note p {
  margin: 0;
  color: #3e5e6c;
  font-size: .98rem;
  line-height: 1.6;
}

.feature-img--brand {
  border: 1px solid #e2e9ec;
  background: #fffdf8;
}

.feature-img--brand .feature-image {
  object-fit: contain;
}

.program-img--brand {
  background-color: #fffdf8;
}

.extra-activity .program-bg--brand {
  padding: 0;
  transform: scale(1.18);
}

.feature-training-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: #306f99;
  font-family: var(--main-font);
  font-size: 1.06rem;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: underline;
  text-decoration-color: #f3ae01;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  transition: color .2s ease;
}

.feature-training-link:hover {
  color: #214e6c;
}

.feature-training-link:focus-visible {
  border-radius: 3px;
  outline: 3px solid #f3ae01;
  outline-offset: 4px;
}

@media (max-width: 767px) {
  .feature-section .flex-h-wrap + .flex-h-wrap {
    margin-top: 72px;
  }

  .feature-training-link {
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 100%;
    min-height: 52px;
    margin-top: 24px;
    padding: 13px 18px;
    border-radius: 14px;
    background: #306f99;
    box-shadow: 0 7px 18px rgba(31, 80, 110, .16);
    color: #fff;
    line-height: 1.3;
    text-align: left;
    text-decoration: none;
  }

  .feature-training-link:hover {
    background: #214e6c;
    color: #fff;
  }

  .feature-training-link span {
    flex: 0 0 auto;
  }
}

.educators-training {
  display: grid;
  grid-template-columns: minmax(260px, .85fr) minmax(0, 1.15fr);
  min-height: 330px;
  margin-top: 68px;
  overflow: hidden;
  border: 1px solid #dce8eb;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(30, 72, 94, .08);
  text-align: left;
}

.educators-training__visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 330px;
  overflow: hidden;
  background: #f5f7f7;
}

.educators-training__visual img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.15);
}

.educators-training__content {
  align-self: center;
  padding: 34px clamp(30px, 5vw, 64px);
}

.educators-training__eyebrow {
  display: block;
  margin-bottom: 10px;
  color: #628148;
  font-family: var(--main-font);
  font-size: .86rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.educators-training__content h2 {
  scroll-margin-top: 110px;
  margin: 0;
  color: #214861;
  font-family: var(--main-font);
  font-size: clamp(2rem, 3.2vw, 2.65rem);
  line-height: 1.1;
}

.educators-training__content p {
  max-width: 54ch;
  margin: 16px 0 24px;
  color: #4c6572;
  font-size: 1.02rem;
  line-height: 1.65;
}

.educators-training__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 48px;
  padding: 10px 20px;
  border-radius: 999px;
  background: #306f99;
  color: #fff;
  font-family: var(--main-font);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color .2s ease, transform .2s ease;
}

.educators-training__button:hover {
  background: #214e6c;
  color: #fff;
  transform: translateY(-2px);
}

.educators-training__button span {
  font-size: 1.2rem;
  line-height: 1;
}

.educators-training__email {
  display: block;
  width: fit-content;
  margin-top: 14px;
  color: #306f99;
  font-size: .94rem;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.educators-training__button:focus-visible,
.educators-training__email:focus-visible {
  outline: 3px solid #f3ae01;
  outline-offset: 3px;
}

@media (max-width: 991px) {
  .club-section__intro {
    grid-template-columns: minmax(0, 1fr) 285px;
    gap: 30px;
  }

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

  .educators-training {
    grid-template-columns: minmax(220px, .85fr) minmax(0, 1.15fr);
  }
}

@media (max-width: 700px) {
  .club-section {
    padding: 140px 18px 80px;
  }

  .club-section__intro,
  .club-section__note {
    display: block;
  }

  .club-section__schedule {
    margin-top: 28px;
  }

  .club-section__activities-heading {
    display: block;
    margin-top: 48px;
  }

  .club-section__activities-heading p {
    margin-top: 8px;
  }

  .club-section__activities {
    grid-template-columns: 1fr;
  }

  .club-section__activity {
    min-height: 0;
  }

  .club-section__note h3 {
    margin-bottom: 10px;
  }

  .educators-training {
    grid-template-columns: 1fr;
    margin-top: 48px;
  }

  .educators-training__visual {
    min-height: 220px;
    max-height: 240px;
  }

  .educators-training__content {
    padding: 28px 24px 32px;
  }
}

.collaborators-page__hero {
  background-image: linear-gradient(to bottom, var(--hero-banner-overlay), var(--hero-banner-overlay)), url('../images/contacta.webp');
  background-position: 0 0, 50% 45%;
}

/* Cover the subpixel seam between mobile hero photos and their SVG wave. */
@media (max-width: 767px) {
  :is(
    .about-hero-banner,
    .service-hero-banner,
    .team-hero-banner,
    .contact-hero-banner,
    .program-hero-banner,
    .plan-hero-banner,
    .gallery-hero-banner,
    .blog-hero-banner
  ) > .feature-curve-bottom-bg {
    bottom: -2px;
    display: block;
  }
}

.collaborators-page__content {
  padding: 94px 24px 112px;
  background: #f8f9f7;
}

.collaborators-page__intro-block {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto 42px;
}

.collaborators-page__section-label {
  display: block;
  margin-bottom: 10px;
  color: #658445;
  font-family: var(--main-font);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.collaborators-page__title-wrap {
  margin-left: -10px;
}

.collaborators-page__heading {
  margin: 0;
  color: #183b4f;
  font-family: var(--main-font);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  text-transform: none;
}

.collaborators-page__intro {
  max-width: 490px;
  margin: 0;
  color: #526471;
  font-size: 1.08rem;
  line-height: 1.65;
}

.collaborators-page__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.collaborators-page__item {
  min-width: 0;
}

.collaborators-page__card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  min-height: 230px;
  height: 100%;
  padding: 26px 20px 22px;
  border: 1px solid #e2e8e7;
  border-radius: 16px;
  background: #fff;
  color: inherit;
  text-align: center;
  text-decoration: none;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.collaborators-page__card[href]:hover {
  transform: translateY(-3px);
  border-color: #a7c0b1;
  box-shadow: 0 10px 25px rgba(24, 59, 79, .08);
}

.collaborators-page__card[href]:focus-visible {
  outline: 3px solid #31799e;
  outline-offset: 3px;
}

.collaborators-page__card[href]::after {
  content: '↗';
  position: absolute;
  top: 12px;
  right: 16px;
  color: #5c8271;
  font-size: 1.2rem;
  line-height: 1;
}

.collaborators-page__logo {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 138px;
  flex: none;
  overflow: hidden;
}

.collaborators-page__logo img {
  display: block;
  max-width: 88%;
  max-height: 118px;
  object-fit: contain;
}

.collaborators-page__logo.collaborators-page__logo--deixalles img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
}

.collaborators-page__logo--cruilla img {
  border-radius: 12px;
}

.collaborators-page__logo--ce-jovent img {
  transform: scale(1.5);
}

.collaborators-page__name {
  display: block;
  margin-top: 12px;
  color: #294455;
  font-family: var(--main-font);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

@media (min-width: 992px) and (max-width: 1440px) {
  .header-nav .nav-menu {
    column-gap: 12px;
    padding-right: 24px;
    padding-left: 24px;
  }

  .header-nav .nav-menu .nav-link-button {
    font-size: .96rem;
  }

  .header-nav .nav-menu .nav-link-cta {
    margin-left: 0;
  }
}

@media (min-width: 992px) and (max-width: 1250px) {
  .header-nav .nav-menu {
    column-gap: 8px;
    padding-right: 16px;
    padding-left: 16px;
  }

  .header-nav .nav-menu .nav-link-button {
    font-size: .83rem;
  }

  .header-nav .brand {
    padding-right: 14px;
    padding-left: 14px;
  }

  .header-nav .nav-menu .nav-link-cta {
    padding: 10px;
  }
}

@media (min-width: 992px) and (max-width: 1150px) {
  .header-nav .social-links {
    display: none;
  }

  .header-nav .logo {
    height: 3.4rem;
  }
}

@media (max-width: 767px) {
  .collaborators-page__content {
    padding: 64px 18px 80px;
  }

  .collaborators-page__intro-block {
    display: block;
    margin-bottom: 32px;
  }

  .collaborators-page__intro {
    margin-top: 16px;
  }

  .collaborators-page__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .collaborators-page__card {
    min-height: 190px;
    padding: 18px 10px;
  }

  .collaborators-page__logo {
    height: 112px;
  }

  .collaborators-page__logo img {
    max-height: 96px;
  }

  .collaborators-page__name {
    font-size: .88rem;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .collaborators-page__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .service-detail-wrap-extra-activity {
    padding: 72px 20px 80px;
  }

  .service-detail-wrap-extra-activity .section-title {
    display: block;
    font-size: clamp(2.05rem, 9vw, 2.45rem);
    line-height: 1.05;
    text-transform: none;
    text-wrap: balance;
  }

  .service-detail-wrap-extra-activity .space-large-xl {
    height: 32px;
  }

  .service-detail-wrap-extra-activity .extra-activity-flex-gap {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    width: 100%;
  }

  .service-detail-wrap-extra-activity .extra-activity-wrap {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    min-height: 0;
    margin: 0;
    flex: none;
    overflow: hidden;
    border: 1px solid #e3e9e9;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(32, 72, 97, .06);
  }

  .service-detail-wrap-extra-activity .extra-activity-wrap::before {
    content: "";
    display: block;
    height: 4px;
    background: var(--yellow);
  }

  .service-detail-wrap-extra-activity .extra-activity-wrap-second::before {
    background: var(--green);
  }

  .service-detail-wrap-extra-activity .extra-activity-wrap-third::before {
    background: var(--blue);
  }

  .service-detail-wrap-extra-activity .program-img.extra-activity {
    display: grid;
    place-items: center;
    height: 190px;
    border-radius: 0;
    background: #f7f8f6;
  }

  .service-detail-wrap-extra-activity .extra-activity .program-bg {
    width: 184px;
    height: 184px;
    max-width: 70%;
    padding: 0;
    object-fit: contain;
  }

  .service-detail-wrap-extra-activity .extra-activity-wrap > .space-medium,
  .service-detail-wrap-extra-activity .program-box > .space-small-xs {
    display: none;
  }

  .service-detail-wrap-extra-activity .program-box {
    padding: 22px 22px 26px;
  }

  .service-detail-wrap-extra-activity .program-title {
    font-size: 1.55rem;
    line-height: 1.12;
  }

  .service-detail-wrap-extra-activity .program-description {
    margin-top: 9px;
    color: #4e5f68;
    font-size: 1rem;
    line-height: 1.48;
  }
}

.initiatives-grid .feature-title,
.initiatives-grid .feature-description,
.initiatives-grid .program-title,
.initiatives-grid .program-description {
  text-align: center;
}

/* Consistent logo frames and content rhythm for the initiative listings. */
.initiatives-grid > .feature-wrap,
.initiatives-grid > .extra-activity-wrap {
  min-width: 0;
  min-height: 0;
  margin-top: 0;
}

.initiatives-grid .feature-img,
.initiatives-grid .program-img.extra-activity {
  box-sizing: border-box;
  width: min(100%, 180px);
  height: auto;
  aspect-ratio: 1;
  margin-inline: auto;
  overflow: hidden;
  border: 0;
  border-radius: 22px;
  background: transparent;
}

.initiatives-grid .feature-image,
.service-detail-wrap-extra-activity .initiatives-grid .extra-activity .program-bg {
  position: static;
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  padding: 0;
  object-fit: contain;
  transform: none;
}

.initiatives-grid .feature-title,
.initiatives-grid .program-title {
  font-size: 1.4rem;
  line-height: 1.15;
  text-wrap: balance;
}

.initiatives-grid .feature-description,
.initiatives-grid .program-description {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
}

.initiatives-grid .feature-training-link {
  margin-top: 12px;
  font-size: .95rem;
  line-height: 1.3;
  text-align: center;
}

@media (min-width: 768px) {
  .flex-h-wrap.initiatives-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 12px 32px;
  }

  .initiatives-grid > .feature-wrap,
  .initiatives-grid > .extra-activity-wrap {
    box-sizing: border-box;
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 3;
    row-gap: 12px;
    width: 100%;
    padding-bottom: 28px;
  }

  .initiatives-grid > .extra-activity-wrap {
    padding-top: 18px;
  }

  .initiatives-grid .feature-box,
  .initiatives-grid .program-box {
    display: contents;
  }

  .initiatives-grid > .feature-wrap > .space-medium,
  .initiatives-grid > .extra-activity-wrap > .space-medium,
  .initiatives-grid .feature-box > .space-small-xs,
  .initiatives-grid .program-box > .space-small-xs {
    display: none;
  }

  .initiatives-grid .program-title,
  .initiatives-grid .program-box > .initiative-copy {
    margin-inline: 18px;
  }
}

@media (min-width: 992px) {
  .flex-h-wrap.initiatives-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .initiatives-grid > :nth-last-child(2):nth-child(4n + 1) {
    grid-column: 2;
  }
}

.volunteer-plan-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 16px;
  padding: 10px 18px;
  border: 2px solid var(--blue);
  border-radius: 14px;
  background: var(--blue);
  color: #fff;
  font-family: var(--main-font);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
}

.volunteer-plan-button:hover {
  background: #214e6c;
}

.volunteer-plan-button:focus-visible,
.pdf-modal button:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

.pdf-modal-open {
  overflow: hidden;
}

.pdf-modal {
  box-sizing: border-box;
  width: min(1100px, calc(100% - 40px));
  height: min(94dvh, 1100px);
  max-width: none;
  max-height: 94dvh;
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 24px;
  background: #fff;
  color: #214e6c;
  box-shadow: 0 24px 100px #102b4566;
  text-align: left;
}

.pdf-modal[open] {
  display: flex;
  flex-direction: column;
}

.pdf-modal::backdrop {
  background: #102b45b8;
}

.pdf-modal__header,
.pdf-modal__toolbar,
.pdf-modal__controls {
  display: flex;
  align-items: center;
}

.pdf-modal__header {
  flex-shrink: 0;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 24px;
  background: var(--blue);
  color: #fff;
}

.pdf-modal__header h2 {
  margin: 0;
  font-family: var(--main-font);
  font-size: 1.6rem;
  line-height: 1.2;
}

.pdf-modal__close {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: 1px solid #ffffff80;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.pdf-modal__toolbar {
  flex-shrink: 0;
  justify-content: flex-end;
  gap: 12px;
  padding: 10px 24px;
  border-bottom: 1px solid #e2e7e9;
  background: #fffdf8;
}

.pdf-modal__controls {
  gap: 12px;
  font-family: var(--main-font);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.pdf-modal__controls button {
  width: 44px;
  height: 44px;
  border: 1px solid #d1dde3;
  border-radius: 12px;
  background: #fff;
  color: #214e6c;
  font-size: 1.3rem;
  cursor: pointer;
}

.pdf-modal__controls button:disabled {
  opacity: .35;
  cursor: default;
}

.pdf-modal__viewport {
  flex: 1;
  min-height: 0;
  padding: 16px;
  overflow: auto;
  scrollbar-gutter: stable;
  overscroll-behavior: contain;
  background: #edf0f1;
  text-align: center;
}

.pdf-modal__pages {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: max-content;
  min-width: 100%;
}

.pdf-modal__page {
  width: max-content;
  margin-inline: auto;
  background: #fff;
  box-shadow: 0 2px 12px #102b4526;
}

.pdf-modal__page canvas {
  display: block;
}

.pdf-modal__status {
  padding: 32px 0 12px;
  font-family: var(--sub-font);
}

.pdf-modal__text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.pdf-modal [hidden] {
  display: none;
}

@media (max-width: 599px) {
  .pdf-modal {
    width: calc(100% - 16px);
    height: 96dvh;
    max-height: 96dvh;
    border-radius: 18px;
  }

  .pdf-modal__header,
  .pdf-modal__toolbar {
    padding: 12px;
  }

  .pdf-modal__header h2 {
    font-size: 1.3rem;
  }

  .pdf-modal__controls {
    gap: 6px;
  }
}

@media print {
  .pdf-modal {
    display: none !important;
  }
}
