/* Shared header and footer. Loaded after the page's existing styles. */
.site-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.site-header--shared { background: rgba(255, 252, 247, .97); }
.site-header--shared .nav {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 20px;
  min-height: 88px;
  padding-block: 8px;
}
.site-header--shared .brand { gap: 10px; }
.site-header--shared .brand img { width: 40px; height: 40px; box-shadow: none; }
.site-header--shared .brand strong { font-size: 21px; }
.site-header--shared .brand small { font-size: 9px; letter-spacing: .08em; }
.site-header--shared .nav__links { justify-content: center; gap: 2px; min-width: 0; }
.site-header--shared .nav__links a { padding: 11px 10px; font-size: 13px; white-space: nowrap; }
.site-header--shared .nav__links a:hover,
.site-header--shared .nav__links a[aria-current="page"] { background: #e8f5ed; color: #007b57; }
.nav__actions { display: flex; align-items: center; gap: 8px; }
.site-header--shared .custom-lang-btn {
  min-height: 44px;
  padding: 8px 10px;
  gap: 6px;
  font-size: 12px;
  border: 1px solid #d5e2db !important;
  border-radius: 12px !important;
  box-shadow: none;
}
.site-header--shared .lang-globe-icon { width: 18px; height: 18px; }
.site-header--shared .mobile-nav-map, .nav__menu-toggle { display: none; }
.nav__menu-toggle { align-items: center; justify-content: center; padding: 0; cursor: pointer; }
.nav__menu-close { display: none; }
.nav__menu-toggle[aria-expanded="true"] .nav__menu-open { display: none; }
.nav__menu-toggle[aria-expanded="true"] .nav__menu-close { display: block; }
.site-store-downloads { display: flex; align-items: center; gap: 4px; }
.site-store-downloads .appstore-download,
.site-store-downloads .googleplay-download { padding: 0; flex: 0 0 auto; }
.site-store-downloads .appstore-download img { width: 120px; height: 40px; }
.site-store-downloads .googleplay-download img { width: 155px; height: 60px; }
.android-coming-soon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 6px 12px;
  border: 1px solid #d5e2db;
  border-radius: 9px;
  background: #f6f8f6;
  color: #52665b;
  flex: 0 0 auto;
  line-height: 1.2;
}
.android-coming-soon > img { display: block; width: 22px; height: 22px; }
.android-coming-soon > span { display: grid; gap: 2px; }
.android-coming-soon strong { font-size: 12px; font-weight: 700; }
.android-coming-soon small { font-size: 10px; }
.button-row .android-coming-soon { min-height: 48px; padding: 7px 16px; }
.button-row .android-coming-soon strong { font-size: 14px; }
.button-row .android-coming-soon small { font-size: 11px; }
.site-header--shared :is(a, button):focus-visible,
.site-footer--shared a:focus-visible { outline: 3px solid #008b65; outline-offset: 4px; border-radius: 8px; }

.site-footer--shared { padding-block: 48px 22px; background: #edf4ee; border-top: 1px solid #d5e3d7; }
.site-footer--shared .footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: clamp(32px, 5vw, 72px);
  padding-bottom: 36px;
  border-bottom: 1px solid #d2dfd4;
}
.site-footer--shared .footer-links-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
  justify-content: stretch;
  text-align: left;
}
.footer-column { min-width: 0; }
.footer-column summary { display: flex; align-items: center; justify-content: space-between; margin: 3px 0 14px; font-size: 12px; line-height: 1.5; color: #264b38; font-weight: 800; letter-spacing: .065em; text-transform: uppercase; list-style: none; }
.footer-column summary::-webkit-details-marker { display: none; }
.footer-column summary::marker { content: ''; }
.footer-column summary svg { display: none; flex: 0 0 18px; }
.footer-column summary:focus-visible { outline: 3px solid #008b65; outline-offset: 2px; border-radius: 8px; }
.footer-column ul { display: grid; gap: 2px; list-style: none; margin: 0; padding: 0; }
.site-footer--shared .footer-column a { display: inline-flex; align-items: center; min-height: 36px; padding-block: 5px; color: #52665b; font-size: 13px; line-height: 1.5; font-weight: 500; text-decoration: none; overflow-wrap: anywhere; }
.site-footer--shared .footer-column a:hover { color: #006d4f; text-decoration: underline; text-underline-offset: 4px; }
.site-footer--shared .footer-bottom { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding-top: 24px; color: #627668; text-align: center; line-height: 1.6; }
.footer-bottom p { margin: 0; }
.site-footer--shared .footer-bottom a { color: #006d4f; font-weight: 700; text-decoration: none; }
.footer-social { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0; }
.site-footer--shared .footer-social a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 1px solid #d2dfd4; border-radius: 50%; background: #fff; }
.site-footer--shared .footer-social a:hover { border-color: #7fae98; background: #f7fcf8; }
.footer-social img { display: block; flex-shrink: 0; }

/* The map keeps a compact header so the map retains its screen space. */
.map-store-downloads { display: flex; align-items: center; gap: 6px; }
.map-store-downloads a { display: flex; align-items: center; justify-content: center; padding: 0; }
.map-store-downloads .map-store-apple img { display: block; width: 120px; height: 40px; }
.map-store-downloads .map-store-google img { display: block; width: 155px; height: 60px; }

@media (max-width: 1100px) {
  .site-header--shared .nav { grid-template-columns: minmax(0, 1fr) auto; gap: 0 12px; min-height: 64px; padding-block: 10px 0; }
  .site-header--shared .brand { align-self: center; }
  .nav__actions { justify-content: flex-end; }
  .site-header--shared .mobile-nav-map, .nav__menu-toggle {
    display: inline-flex;
    width: 44px;
    height: 44px;
    min-height: 44px;
    margin: 0;
    padding: 0;
    border: 1px solid #d5e2db;
    border-radius: 12px;
    background: #fff;
    color: #1d4735;
  }
  .site-header--shared .mobile-nav-map { align-items: center; justify-content: center; background: #e9f6ee; color: #007d57; }
  .site-header--shared .mobile-nav-map span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .site-header--shared .nav__stores { grid-column: 1 / -1; grid-row: 2; justify-content: center; border-top: 1px solid #e3e9e2; margin-top: 10px; padding-block: 3px; }
  .site-header--shared .nav__links { display: none; grid-column: 1 / -1; grid-row: 3; width: 100%; padding-block: 8px 14px; border-top: 1px solid #e3e9e2; max-height: calc(100svh - 154px); overflow-y: auto; }
  .site-header--shared .nav__links.is-open { display: grid; gap: 4px; }
  .site-header--shared .nav__links a { display: block; padding: 12px 14px; font-size: 15px; border-radius: 10px; }
}
@media (max-width: 600px) {
  .map-store-downloads .android-coming-soon { max-width: 96px; padding: 6px; gap: 5px; }
  .map-store-downloads .android-coming-soon > img { width: 18px; height: 18px; }
  .map-store-downloads .android-coming-soon strong { font-size: 11px; }
  .map-store-downloads .android-coming-soon small { font-size: 9px; }
  .site-header--shared .nav { padding-inline: 14px; }
  .site-header--shared .brand { gap: 8px; }
  .site-header--shared .brand img { width: 32px; height: 32px; border-radius: 9px; }
  .site-header--shared .brand strong { font-size: 19px; }
  .site-header--shared .brand small { display: none; }
  .nav__actions { gap: 4px; }
  .site-header--shared .custom-lang-btn { width: 44px; height: 44px; padding: 0; justify-content: center; }
  .site-header--shared .custom-lang-current,
  .site-header--shared .custom-lang-arrow { display: none; }
  .site-footer--shared { padding-block: 32px 20px; }
  .site-footer--shared .footer-top { gap: 26px; padding-bottom: 26px; }
  .site-footer--shared .footer-links-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; }
  .footer-column--support { grid-column: 1 / -1; }
  .footer-column--support ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 20px; }
  .site-footer--shared .footer-column a { min-height: 44px; }
  .map-store-downloads { gap: 8px; }
  .map-store-downloads a { width: 44px; height: 44px; border: 1px solid #d5e2db; border-radius: 12px; background: #fff; }
  .map-store-downloads .map-store-apple img { width: 20px; height: 24px; }
  .map-store-downloads .map-store-google img { width: 22px; height: 22px; }
}

/* Phones: one header row, one download area and a footer that stays compact. */
@media (max-width: 760px) {
  .site-header--shared { padding-block: 0; }
  .site-header--shared .nav { min-height: 72px; padding-block: 10px; gap: 0 8px; }
  .site-header--shared .nav__stores { display: none; }
  .site-header--shared .nav__links { grid-row: 2; margin-top: 10px; max-height: calc(100svh - 90px); }
  .hero-stage { padding-top: 40px; padding-bottom: 32px; }
  .hero-stage .hero-grid { gap: 40px; }
  .hero-stage .hero-left { align-items: center; gap: 20px; text-align: center; }
  .hero-stage .hero-left h1 { max-width: 19ch; font-size: clamp(30px, 8vw, 38px); line-height: 1.18; letter-spacing: -.035em; text-wrap: balance; }
  .hero-stage .hero-left p { max-width: 32ch; font-size: 16px; line-height: 1.65; text-wrap: pretty; }
  .hero-stage .button-row { display: flex; flex-direction: column; flex-wrap: nowrap; align-items: center; gap: 14px; margin-top: 8px; }
  .hero-stage .button-row .appstore-download { width: 168px; max-width: 100%; min-width: 0; padding: 0; }
  .hero-stage .button-row .appstore-download img { width: 168px; height: 56px; }
  .hero-stage .button-row .android-coming-soon { min-width: 0; min-height: 24px; width: auto; max-width: 100%; padding: 0; gap: 7px; flex-wrap: nowrap; background: transparent; border: 0; border-radius: 0; }
  .hero-stage .button-row .android-coming-soon > span { display: flex; align-items: baseline; gap: 6px; }
  .hero-stage .button-row .android-coming-soon strong { font-size: 12px; font-weight: 500; }
  .hero-stage .button-row .android-coming-soon small { font-size: 12px; }
  .hero-stage .button-row .android-coming-soon small::before { content: '·'; margin-right: 6px; }
  .hero-stage .button-row .android-coming-soon > img { width: 14px; height: 14px; flex: 0 0 14px; }
  .hero-stage .btn-share,
  .hero-stage .feature-bullets { display: none; }
  .site-footer--shared { padding-block: 28px 20px; }
  .site-footer--shared .footer-top { grid-template-columns: 1fr; gap: 24px; padding-bottom: 0; border-bottom: 0; }
  .site-footer--shared .footer-links-grid { display: block; }
  .site-footer--shared .footer-column { border-top: 1px solid #d2dfd4; }
  .site-footer--shared .footer-column:last-child { border-bottom: 1px solid #d2dfd4; }
  .site-footer--shared .footer-column summary { min-height: 54px; margin: 0; font-size: 13px; letter-spacing: 0; text-transform: none; cursor: pointer; }
  .site-footer--shared .footer-column summary svg { display: block; }
  .site-footer--shared .footer-column[open] summary svg { transform: rotate(180deg); }
  .site-footer--shared .footer-column ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; margin: 0; padding: 0 0 14px; }
  .site-footer--shared .footer-column a { min-height: 44px; font-size: 13px; }
  .site-footer--shared .footer-bottom { gap: 12px; padding-top: 22px; font-size: 12px; }
  .site-footer--shared .footer-bottom p { max-width: 34ch; font-size: inherit; line-height: 1.65; text-wrap: balance; }
}
