/* rubik-arabic-wght-normal */
@font-face {
  font-family: 'Rubik Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 300 900;
  src: url(/build/fonts/rubik-arabic-wght-normal.ab18f024.woff2) format('woff2-variations');
  unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC,U+102E0-102FB,U+10E60-10E7E,U+10EC2-10EC4,U+10EFC-10EFF,U+1EE00-1EE03,U+1EE05-1EE1F,U+1EE21-1EE22,U+1EE24,U+1EE27,U+1EE29-1EE32,U+1EE34-1EE37,U+1EE39,U+1EE3B,U+1EE42,U+1EE47,U+1EE49,U+1EE4B,U+1EE4D-1EE4F,U+1EE51-1EE52,U+1EE54,U+1EE57,U+1EE59,U+1EE5B,U+1EE5D,U+1EE5F,U+1EE61-1EE62,U+1EE64,U+1EE67-1EE6A,U+1EE6C-1EE72,U+1EE74-1EE77,U+1EE79-1EE7C,U+1EE7E,U+1EE80-1EE89,U+1EE8B-1EE9B,U+1EEA1-1EEA3,U+1EEA5-1EEA9,U+1EEAB-1EEBB,U+1EEF0-1EEF1;
}

/* rubik-cyrillic-ext-wght-normal */
@font-face {
  font-family: 'Rubik Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 300 900;
  src: url(/build/fonts/rubik-cyrillic-ext-wght-normal.5d7a3ad3.woff2) format('woff2-variations');
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}

/* rubik-cyrillic-wght-normal */
@font-face {
  font-family: 'Rubik Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 300 900;
  src: url(/build/fonts/rubik-cyrillic-wght-normal.19392039.woff2) format('woff2-variations');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

/* rubik-hebrew-wght-normal */
@font-face {
  font-family: 'Rubik Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 300 900;
  src: url(/build/fonts/rubik-hebrew-wght-normal.1158a121.woff2) format('woff2-variations');
  unicode-range: U+0307-0308,U+0590-05FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F;
}

/* rubik-latin-ext-wght-normal */
@font-face {
  font-family: 'Rubik Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 300 900;
  src: url(/build/fonts/rubik-latin-ext-wght-normal.fe26ad16.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* rubik-latin-wght-normal */
@font-face {
  font-family: 'Rubik Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 300 900;
  src: url(/build/fonts/rubik-latin-wght-normal.2e37ea48.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
/* t'es où là ? — design "3D douce"
   Colors come from the original site (blue #006DAE, orange #F5A839), the font is Rubik (self-hosted). */

:root {
  --blue: #006dae;
  --blue-dark: #005a90;
  --blue-light: #1580c2;
  --orange: #f5a839;
  --orange-dark: #d88a1c;
  --sky: #8cc3e8;
  --teal: #4fbfaa;
  --peri: #aebbf2;

  --ink: #0b2537;
  --muted: #4f5b62;
  --line: #e2e6ea;
  --bg: #f5f5f5;
  --surface: #ffffff;
  --danger: #b42318;

  --tint-blue: #e1eff8;
  --tint-orange: #fdeed8;
  --tint-teal: #dff2ec;
  --tint-sky: #eaf5fd;
  --tint-peri: #eef1ff;

  --clay-blue: radial-gradient(circle at 35% 30%, #7cc0ea, #1580c2 55%, #005a90);
  --clay-orange: radial-gradient(circle at 35% 30%, #ffe2b0, #f5a839 55%, #d88a1c);
  --clay-teal: radial-gradient(circle at 35% 30%, #cff3ec, #4fbfaa 55%, #2e9784);
  --clay-sky: radial-gradient(circle at 35% 30%, #eaf5fd, #8cc3e8 55%, #5a9fcf);
  --clay-peri: radial-gradient(circle at 35% 30%, #eef1ff, #aebbf2 55%, #7f8fd9);

  --radius-s: 14px;
  --radius-m: 24px;
  --radius-l: 36px;
  --pill: 999px;

  --shadow-soft: 0 1px 0 rgba(11, 37, 55, 0.06), 0 10px 24px rgba(11, 37, 55, 0.08);
  --shadow-float: 0 24px 50px rgba(11, 37, 55, 0.18);

  --font: 'Rubik Variable', 'Rubik', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
  background:
    radial-gradient(1100px 720px at 85% 0%, #fdebd0 0%, rgba(253, 235, 208, 0) 62%),
    radial-gradient(900px 640px at 0% 0%, #dcebf6 0%, rgba(220, 235, 246, 0) 58%),
    var(--bg);
  background-repeat: no-repeat;
}

img,
svg {
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

a {
  color: inherit;
}

a:hover {
  color: var(--blue);
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p {
  margin: 0;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 max(20px, var(--safe-right)) 0 max(20px, var(--safe-left));
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 2000;
  padding: 10px 16px;
  border-radius: var(--pill);
  background: var(--ink);
  color: #fff;
  text-decoration: none;
}

.skip-link:focus {
  top: calc(12px + var(--safe-top));
  color: #fff;
}

.muted {
  color: var(--muted);
}

.toast {
  position: fixed;
  top: calc(76px + var(--safe-top));
  left: 50%;
  z-index: 3000;
  max-width: calc(100% - 32px);
  padding: 12px 18px;
  border-radius: var(--pill);
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  overflow-wrap: anywhere;
  transform: translateX(-50%);
  box-shadow: var(--shadow-float);
}

/* ---------- Header & footer ---------- */

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding: calc(18px + var(--safe-top)) 0 18px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  text-decoration: none;
  color: var(--ink);
}

.logo:hover {
  color: var(--ink);
}

.logo__name {
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 26px;
  font-weight: 500;
}

.site-nav__link {
  padding: 10px 0;
  text-decoration: none;
}

@media (max-width: 760px) {
  .site-header {
    flex-wrap: nowrap;
  }

  .site-nav__link {
    display: none;
  }

  .site-header__end .btn {
    min-height: 44px;
    padding: 0 16px;
    font-size: 15px;
    white-space: nowrap;
  }

  .logo__name {
    font-size: 20px;
  }
}

/* Logged in: a round button with the first letter of the first name; otherwise "Se connecter" */
.site-header__end {
  display: flex;
  align-items: center;
  gap: 12px 22px;
}

.account-avatar {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--clay-blue);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 6px 14px rgba(11, 37, 55, 0.18);
}

.account-avatar:hover {
  color: #fff;
}

.account-avatar--large {
  width: 64px;
  height: 64px;
  font-size: 26px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0 calc(40px + var(--safe-bottom));
  font-size: 15px;
  color: var(--muted);
}

.site-footer nav {
  display: flex;
  gap: 20px;
}

.site-footer a {
  padding: 10px 0;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 0;
  border-radius: var(--pill);
  font: inherit;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: linear-gradient(180deg, var(--blue-light) 0%, var(--blue) 100%);
  color: #fff;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.18), inset 0 2px 0 rgba(255, 255, 255, 0.35), 0 14px 28px rgba(0, 109, 174, 0.3);
}

.btn--primary:hover {
  color: #fff;
}

.btn--accent {
  background: linear-gradient(180deg, #ffc46a 0%, var(--orange) 100%);
  color: var(--ink);
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.12), inset 0 2px 0 rgba(255, 255, 255, 0.45), 0 12px 24px rgba(216, 138, 28, 0.3);
}

.btn--accent:hover {
  color: var(--ink);
}

.btn--ghost {
  background: var(--surface);
  color: var(--ink);
  box-shadow: inset 0 -3px 0 rgba(11, 37, 55, 0.06), 0 10px 24px rgba(11, 37, 55, 0.08);
}



.btn--large {
  min-height: 62px;
  padding: 0 32px;
  font-size: 20px;
}

.btn--block {
  width: 100%;
}

.btn[disabled],
.btn[aria-disabled='true'] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border: 0;
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  box-shadow: inset 0 -3px 0 rgba(11, 37, 55, 0.06), 0 10px 22px rgba(11, 37, 55, 0.12);
}

.icon-btn--accent {
  background: linear-gradient(180deg, #ffc46a 0%, var(--orange) 100%);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.12), inset 0 2px 0 rgba(255, 255, 255, 0.45), 0 10px 22px rgba(216, 138, 28, 0.35);
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .member {
    transition: none;
  }

  .btn:hover,
  .btn:active,
  .member:active {
    transform: none;
  }
}

/* ---------- Small pieces ---------- */

.dot {
  display: inline-block;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  border-radius: 50%;
}

.dot--blue { background: var(--clay-blue); }
.dot--orange { background: var(--clay-orange); }
.dot--teal { background: var(--clay-teal); }
.dot--sky { background: var(--clay-sky); }
.dot--peri { background: var(--clay-peri); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 4px 12px;
  border-radius: var(--pill);
  background: var(--tint-orange);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.chip--danger {
  background: #fde3e0;
  color: var(--danger);
}

/* ---------- Home ---------- */

.hero {
  display: grid;
  align-items: center;
  gap: 32px;
  padding: 24px 0 80px;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero__title {
  font-size: clamp(42px, 5.8vw, 80px);
  line-height: 1;
  letter-spacing: -0.03em;
}

.hero__text {
  max-width: 30em;
  font-size: clamp(18px, 1.6vw, 20px);
  line-height: 1.55;
  color: var(--muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero__art {
  width: 100%;
  max-width: 660px;
  justify-self: center;
}

.reassure {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
}

.reassure li {
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (min-width: 960px) {
  .hero {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 36px 0 110px;
  }
}

.section {
  padding: 30px 0 90px;
}

.section__head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 640px;
  margin-bottom: 36px;
}

.section__title {
  font-size: clamp(32px, 4.2vw, 52px);
}

.section__lead {
  font-size: 19px;
  line-height: 1.55;
  color: var(--muted);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 26px 30px;
  border-radius: var(--radius-l);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.7), 0 18px 40px rgba(11, 37, 55, 0.08);
}

.step--blue { background: var(--tint-blue); }
.step--orange { background: var(--tint-orange); }
.step--teal { background: var(--tint-teal); }

.step__art {
  width: 100%;
  height: auto;
}

.step__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, rgba(255, 255, 255, 0.45));
  font-size: 19px;
  font-weight: 700;
  box-shadow: 0 6px 12px rgba(11, 37, 55, 0.12);
}

.step__title {
  font-size: 25px;
  line-height: 1.15;
}

.step__text {
  font-size: 17px;
  color: var(--muted);
}

.split {
  display: grid;
  align-items: center;
  gap: 40px;
}

.split__art {
  width: 100%;
  max-width: 560px;
  justify-self: center;
}

.split__copy {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.checklist {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 17px;
  line-height: 1.45;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.checklist .dot {
  width: 22px;
  height: 22px;
  margin-top: 1px;
}

@media (prefers-reduced-motion: no-preference) {
  .hero__art {
    animation: float 7s ease-in-out infinite;
  }

  @keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
  }
}

/* ---------- Cards & forms ---------- */

.page-card {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
  max-width: 580px;
  margin: 16px auto 80px;
  padding: clamp(24px, 4vw, 40px);
  border-radius: var(--radius-l);
  background: var(--surface);
  box-shadow: var(--shadow-float);
}

.page-card__art {
  width: 220px;
  margin: -8px auto 0;
}

.page-card__title {
  font-size: clamp(30px, 4vw, 40px);
}

.form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.field__label {
  padding: 0;
  font-size: 16px;
  font-weight: 600;
}

.field__hint {
  font-size: 14px;
  color: var(--muted);
}

.field__input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1.5px solid #c9d0d6;
  border-radius: var(--radius-s);
  background: #fff;
  font: inherit;
  font-size: 17px;
  color: var(--ink);
}

.field__input::placeholder {
  color: #8a959b;
}

.field__input:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(0, 109, 174, 0.2);
  outline-offset: 0;
}

.field ul {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--danger);
}

.choices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 10px;
}

.choice {
  position: relative;
}

.choice__input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.choice__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 56px;
  height: 100%;
  padding: 12px 8px;
  border: 2px solid transparent;
  border-radius: 18px;
  background: var(--bg);
  font-weight: 600;
  text-align: center;
}

.choice__input:checked + .choice__card {
  border-color: var(--blue);
  background: var(--tint-blue);
}

.choice__input:focus-visible + .choice__card {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

.choice__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(11, 37, 55, 0.18);
}

.choice__icon--blue { background: var(--clay-blue); color: #fff; }
.choice__icon--orange { background: var(--clay-orange); color: var(--ink); }
.choice__icon--teal { background: var(--clay-teal); color: var(--ink); }

.toggle {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--tint-peri);
  cursor: pointer;
}

.toggle__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-grow: 1;
}

.toggle__title {
  font-weight: 600;
}

.toggle__hint {
  font-size: 14px;
  color: var(--muted);
}

.toggle__input {
  position: relative;
  flex-shrink: 0;
  width: 52px;
  height: 30px;
  margin: 0;
  border-radius: var(--pill);
  background: #c9d0d6;
  cursor: pointer;
  appearance: none;
  transition: background 0.15s ease;
}

.toggle__input::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 4px rgba(11, 37, 55, 0.25);
  transition: transform 0.15s ease;
}

.toggle__input:checked {
  background: var(--blue);
}

.toggle__input:checked::before {
  transform: translateX(22px);
}

.more {
  border-radius: 18px;
  background: var(--bg);
}

.more summary {
  padding: 14px 16px;
  font-weight: 600;
  cursor: pointer;
}

.more__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0 16px 16px;
}

.locate-row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 10px;
}

.locate-row .btn {
  min-height: 48px;
  padding: 0 18px;
  font-size: 15px;
}

.locate-status {
  flex: 1 1 220px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--tint-blue);
  font-size: 15px;
  font-weight: 500;
}

.locate-status[data-state='error'] {
  background: #fde3e0;
  color: var(--danger);
}

.locate-status[data-state='ok'] {
  background: var(--tint-teal);
}

/* ---------- Group page (full-screen map) ---------- */

.page--fullscreen {
  background: var(--bg);
}

.map-layout {
  position: relative;
  height: 100vh;
  height: 100dvh;
  min-height: 560px;
}

.map-layout__map {
  position: absolute;
  inset: 0;
}

.map-topbar {
  position: absolute;
  top: calc(14px + var(--safe-top));
  left: calc(14px + var(--safe-left));
  right: calc(14px + var(--safe-right));
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  pointer-events: none;
}

.map-topbar > * {
  pointer-events: auto;
}

.sheet {
  position: absolute;
  left: calc(10px + var(--safe-left));
  right: calc(10px + var(--safe-right));
  bottom: calc(10px + var(--safe-bottom));
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 64dvh;
  overflow: auto;
  padding: 12px 18px 18px;
  border-radius: 34px;
  background: var(--surface);
  box-shadow: inset 0 2px 0 #fff, var(--shadow-float);
}

.sheet__handle {
  align-self: center;
  width: 44px;
  height: 5px;
  border-radius: 3px;
  background: #dadada;
}

.sheet__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px 12px;
}

.sheet__title {
  min-width: 0;
  font-size: 28px;
  line-height: 1;
  overflow-wrap: anywhere;
}

.sheet__summary {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  line-height: 1.35;
  color: var(--muted);
}

.sheet__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (min-width: 900px) {
  .sheet {
    top: calc(88px + var(--safe-top));
    bottom: calc(24px + var(--safe-bottom));
    left: calc(24px + var(--safe-left));
    right: auto;
    width: 400px;
    max-height: none;
    padding: 28px;
    gap: 18px;
  }

  .sheet__handle {
    display: none;
  }
}

.avatars {
  display: flex;
  flex-shrink: 0;
}

.avatars__item {
  width: 32px;
  height: 32px;
  border: 3px solid #fff;
  border-radius: 50%;
}

.avatars__item + .avatars__item {
  margin-left: -10px;
}

.avatars__item--blue { background: var(--clay-blue); }
.avatars__item--orange { background: var(--clay-orange); }
.avatars__item--teal { background: var(--clay-teal); }
.avatars__item--sky { background: var(--clay-sky); }
.avatars__item--peri { background: var(--clay-peri); }

.members {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0 0 4px;
  overflow-x: auto;
  list-style: none;
  scrollbar-width: none;
}

.members li {
  display: flex;
  flex-shrink: 0;
}

.member {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px 0 6px;
  border: 0;
  border-radius: var(--pill);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.member:active {
  transform: scale(0.96);
}

.member__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
}

.member__label {
  font-weight: 400;
  color: var(--muted);
}

.member--blue { background: var(--tint-blue); }
.member--blue .member__avatar { background: var(--clay-blue); color: #fff; }
.member--orange { background: var(--tint-orange); }
.member--orange .member__avatar { background: var(--clay-orange); }
.member--teal { background: var(--tint-teal); }
.member--teal .member__avatar { background: var(--clay-teal); }
.member--sky { background: var(--tint-sky); }
.member--sky .member__avatar { background: var(--clay-sky); }
.member--peri { background: var(--tint-peri); }
.member--peri .member__avatar { background: var(--clay-peri); }

@media (min-width: 900px) {
  .members {
    flex-direction: column;
    overflow: visible;
  }

  .members li {
    align-self: flex-start;
  }
}

.empty-note {
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--tint-blue);
  font-size: 15px;
}

/* ---------- Position page ---------- */

.position-layout {
  min-height: 100vh;
}

.position-layout__map {
  position: relative;
  height: 46vh;
  min-height: 280px;
}

.position-layout__picker {
  position: absolute;
  inset: 0;
}

.position-sheet {
  position: relative;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 640px;
  margin: -32px auto 0;
  padding: 24px max(20px, var(--safe-right)) calc(32px + var(--safe-bottom)) max(20px, var(--safe-left));
  border-radius: 34px 34px 0 0;
  background: var(--surface);
  box-shadow: 0 -10px 30px rgba(11, 37, 55, 0.08);
}

.position-sheet__title {
  font-size: clamp(28px, 4vw, 36px);
}

@media (min-width: 900px) {
  .position-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 480px;
  }

  .position-layout__map {
    position: sticky;
    top: 0;
    height: 100vh;
  }

  .position-sheet {
    max-width: none;
    min-height: 100vh;
    margin: 0;
    padding: calc(40px + var(--safe-top)) calc(36px + var(--safe-right)) calc(40px + var(--safe-bottom)) 36px;
    border-radius: 0;
    box-shadow: -10px 0 30px rgba(11, 37, 55, 0.06);
  }
}

/* ---------- Map (Leaflet) ---------- */

.leaflet-container {
  background: #e7efe9;
  font-family: var(--font);
}

.map-tiles {
  filter: saturate(0.7) brightness(1.05) contrast(0.94);
}

.leaflet-bar {
  border: 0 !important;
  border-radius: 16px !important;
  overflow: hidden;
  box-shadow: var(--shadow-soft) !important;
}

.leaflet-bar a {
  width: 44px !important;
  height: 44px !important;
  line-height: 44px !important;
  color: var(--ink) !important;
}

.map-layout .leaflet-top.leaflet-right {
  top: calc(72px + var(--safe-top));
  right: var(--safe-right);
}

.position-layout .leaflet-top {
  top: var(--safe-top);
}

.leaflet-bottom {
  margin-bottom: var(--safe-bottom);
}

.leaflet-control-geocoder {
  border: 0 !important;
  border-radius: 16px !important;
  box-shadow: var(--shadow-soft) !important;
}

.pin-icon {
  border: 0;
  background: none;
}

.pin {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.pin__head {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 3px solid #fff;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  box-shadow: 0 6px 12px rgba(11, 37, 55, 0.25);
}

.pin__stick {
  width: 6px;
  height: 14px;
  margin-top: -2px;
  border-radius: 3px;
}

.pin__shadow {
  width: 22px;
  height: 7px;
  margin-top: -2px;
  border-radius: 50%;
  background: rgba(11, 37, 55, 0.22);
}

.pin__name {
  max-width: 120px;
  margin-top: 3px;
  padding: 1px 8px;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
  box-shadow: 0 2px 6px rgba(11, 37, 55, 0.12);
}

.pin--blue .pin__head { background: var(--clay-blue); color: #fff; }
.pin--blue .pin__stick { background: var(--blue-dark); }
.pin--orange .pin__head { background: var(--clay-orange); }
.pin--orange .pin__stick { background: var(--orange-dark); }
.pin--teal .pin__head { background: var(--clay-teal); }
.pin--teal .pin__stick { background: #2e9784; }
.pin--sky .pin__head { background: var(--clay-sky); }
.pin--sky .pin__stick { background: #5a9fcf; }
.pin--peri .pin__head { background: var(--clay-peri); }
.pin--peri .pin__stick { background: #7f8fd9; }

.zone-circle {
  fill: var(--peri);
  fill-opacity: 0.25;
  stroke: #7f8fd9;
  stroke-width: 2;
  stroke-dasharray: 6 6;
}

.zone-label-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: none;
}

.zone-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 3px 12px 3px 3px;
  overflow: hidden;
  border: 1.5px dashed #7f8fd9;
  border-radius: var(--pill);
  background: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
  box-shadow: 0 4px 10px rgba(11, 37, 55, 0.12);
}

.zone-label__avatar {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--clay-peri);
  font-size: 10px;
  font-weight: 700;
}

.pin-cluster {
  border: 0;
  background: none;
}

.pin-cluster span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--clay-blue);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  box-shadow: 0 8px 16px rgba(11, 37, 55, 0.25);
}

/* Member popup: who it is, and the way there */

.member-popup-frame .leaflet-popup-content-wrapper {
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-float);
}

.member-popup-frame .leaflet-popup-content {
  margin: 16px;
  font-size: 15px;
  line-height: 1.35;
}

.member-popup {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 170px;
}

.member-popup__name {
  font-size: 17px;
}

.member-popup__label {
  color: var(--muted);
}

.member-popup__directions {
  min-height: 44px;
  margin-top: 10px;
  padding: 0 18px;
  font-size: 15px;
}

.leaflet-container a.member-popup__directions {
  color: #fff;
}

/* ---------- Status pages ---------- */

.status {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  max-width: 560px;
  margin: 24px auto 90px;
  text-align: center;
}

.status__art {
  width: 240px;
}

.status__title {
  font-size: clamp(32px, 5vw, 48px);
}

.status__text {
  font-size: 18px;
  color: var(--muted);
}

/* ---------- Login and account ---------- */

.btn--google {
  font-size: 17px;
  white-space: nowrap;
  border: 1.5px solid #dadce0;
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-soft);
}

/* Apple's button: black, white logo and text, as Apple's guidelines ask */
.btn--apple {
  font-size: 17px;
  white-space: nowrap;
  background: #000;
  color: #fff;
}

.btn--apple:hover {
  color: #fff;
}

.login__lead {
  font-size: 18px;
  color: var(--muted);
}

.login__note {
  font-size: 14px;
  color: var(--muted);
}

.account__who {
  display: flex;
  align-items: center;
  gap: 16px;
}

.blocked-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.blocked-list__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 14px;
  border-radius: var(--radius-s);
  background: var(--bg);
}

.blocked-list__item form {
  margin: 0;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  font-size: 14px;
  color: var(--muted);
}

.legal-links a {
  padding: 8px 0;
}

.account__delete {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin: 12px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 15px;
}

/* ---------- Privacy policy, terms of use ---------- */

.legal {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 760px;
  padding-top: 8px;
  padding-bottom: calc(60px + var(--safe-bottom));
  line-height: 1.6;
}

.legal__title {
  font-size: clamp(32px, 6vw, 46px);
}

.legal h2 {
  margin-top: 18px;
  font-size: 24px;
}

.legal ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding-left: 1.2em;
}

/* ---------- Admin lists ---------- */

.admin {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 10px 0 60px;
}

.admin__title {
  font-size: 34px;
}

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-m);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.table th,
.table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.table th {
  font-weight: 600;
  color: var(--muted);
}

.table tr:last-child td {
  border-bottom: 0;
}

.table__actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.table__form {
  margin: 0;
}

.table__delete {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: var(--danger);
  text-decoration: underline;
  cursor: pointer;
}

.admin__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  font-weight: 600;
}

.admin__nav a {
  padding: 10px 0;
  color: var(--muted);
  text-decoration: none;
}

.admin__nav a[aria-current='page'] {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 6px;
}

.login-error {
  padding: 12px 16px;
  border-radius: var(--radius-s);
  background: #fde8e6;
  font-weight: 500;
  color: var(--danger);
}

/* ---------- Profile photos ---------- */

/* The picker in the position form: a round preview, the way the photo will look on the map */
.photo-field {
  position: relative;
}

.photo-field__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 14px;
}

.photo-field__preview {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  overflow: hidden;
  border-radius: 50%;
  background: var(--tint-blue);
  color: var(--blue);
  box-shadow: inset 0 2px 0 #fff, var(--shadow-soft);
}

.photo-field__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-field__pick {
  min-height: 48px;
  padding: 0 20px;
  font-size: 16px;
}

.photo-field__remove {
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: none;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: underline;
  cursor: pointer;
}

/* The real file field stays reachable with the keyboard; its focus shows on the button */
.photo-field .photo-field__input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  border: 0;
}

.photo-field:has(.photo-field__input:focus-visible) .photo-field__pick {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

/* A photo fills the round it replaces: pin head, chip, zone label, summary */
.pin__photo,
.member__photo,
.zone-label__photo,
.avatars__item img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.member__avatar,
.zone-label__avatar,
.avatars__item {
  overflow: hidden;
}

.member-popup__photo {
  width: 64px;
  height: 64px;
  margin-bottom: 8px;
  border: 3px solid #fff;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow-soft);
}

.member-popup__report button {
  min-height: 36px;
  margin-top: 6px;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 13px;
  color: var(--muted);
  text-decoration: underline;
  cursor: pointer;
}

/* ---------- Mobile app ---------- */

/* The app shows this website in a native shell (Capacitor). It feels like an app, not a page:
   no rubber band around the screen, no grey flash or callout menu when a control is pressed. */
.is-native-app,
.is-native-app body {
  overscroll-behavior: none;
}

.is-native-app body {
  -webkit-tap-highlight-color: transparent;
}

.is-native-app :is(.btn, .icon-btn, .member, .my-group, .logo, .choice__card, .toggle) {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.app-home {
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 640px;
  padding-bottom: calc(32px + var(--safe-bottom));
}

.app-hero {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.app-hero__art {
  width: 100%;
  max-width: 420px;
  margin: -12px auto -6px;
}

.app-hero__title {
  font-size: clamp(32px, 8.5vw, 44px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.app-hero__text {
  font-size: 17px;
  color: var(--muted);
}

.app-home__section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.app-home__heading {
  font-size: 22px;
}

.app-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.app-steps__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: var(--radius-m);
  font-size: 16px;
  line-height: 1.35;
}

.app-steps__item--blue { background: var(--tint-blue); }
.app-steps__item--orange { background: var(--tint-orange); }
.app-steps__item--teal { background: var(--tint-teal); }

.app-steps__num {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, rgba(255, 255, 255, 0.45));
  font-weight: 700;
  box-shadow: 0 6px 12px rgba(11, 37, 55, 0.12);
}

.my-groups {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.my-group {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 14px;
  min-height: 72px;
  padding: 14px 18px;
  border-radius: var(--radius-m);
  background: var(--surface);
  box-shadow: inset 0 2px 0 #fff, var(--shadow-soft);
  color: var(--ink);
  text-decoration: none;
}

.my-group::before {
  content: '';
  grid-row: span 2;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--clay-blue);
}

.my-group::after {
  content: '';
  grid-column: 3;
  grid-row: 1 / span 2;
  width: 10px;
  height: 10px;
  border-top: 2.5px solid #9aa6ad;
  border-right: 2.5px solid #9aa6ad;
  transform: rotate(45deg);
}

.my-group:hover {
  color: var(--ink);
}

.my-group:active {
  background: var(--tint-blue);
}

.my-group__title {
  grid-column: 2;
  overflow: hidden;
  font-size: 19px;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.my-group__meta {
  grid-column: 2;
  font-size: 14px;
  color: var(--muted);
}

.my-group--expired::before {
  background: #c9d0d6;
}

.my-group--expired .my-group__title {
  color: var(--muted);
}

.join-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.join-form__row {
  display: flex;
  gap: 10px;
}

.join-form__row .btn {
  flex-shrink: 0;
}

.join-form__error {
  font-size: 14px;
  font-weight: 500;
  color: var(--danger);
}

