/* YADate public site: landing, city / country / topic pages, public profiles, dating tips, legal pages.
   Design: a soft light theme by default — blush, lilac and peach tints, white cards, rose → orchid → periwinkle accents,
   one deep brand band (call to action) and a deep plum footer. The dark theme applies when chosen or when the device
   is dark (html[data-theme] from the yad_theme cookie, see js/core/theme.js).
   Every colour is a token: new rules use tokens only, so both palettes stay in sync. */

:root {
  --brand: #e0578c;
  --brand-2: #8f72e8;
  --brand-grad: linear-gradient(135deg, #db5d8c 0%, #b366d6 52%, #8872e6 100%);
  --deep-grad: linear-gradient(120deg, #c1467a 0%, #9a4dc2 52%, #6c57d4 100%); /* white text: contrast ≥ 4.7 */
  --logo-grad: linear-gradient(135deg, #f0739c 0%, #c46cd7 50%, #8b79ee 100%);
  --grad-text: linear-gradient(100deg, #d4538a 0%, #a95bd3 55%, #7a67e2 100%);
  --brand-soft: #fdecf3;
  --brand-ink: #bd3a6f;
  --bg: #fcf7fa;
  --surface: #ffffff;
  --surface-2: #faf3f7;
  --surface-3: #f3e7ef;
  --glass: rgba(255, 255, 255, .74);
  --glass-line: rgba(255, 255, 255, .9);
  --text: #2a2233;
  --text-2: #4b4056;
  --muted: #776a83;
  --line: #efe3eb;
  --line-2: #e4d4df;
  --tint-blush: #fdf1f6;
  --tint-lilac: #f5f1fe;
  --tint-peach: #fff5ef;
  --mesh: radial-gradient(60% 80% at 0% 0%, rgba(255, 184, 210, .6) 0%, transparent 70%),
    radial-gradient(55% 75% at 100% 0%, rgba(203, 186, 255, .6) 0%, transparent 70%),
    radial-gradient(45% 60% at 75% 100%, rgba(255, 213, 190, .5) 0%, transparent 70%);
  --panel: radial-gradient(70% 120% at 0% 0%, #fde1ed 0%, transparent 60%), radial-gradient(70% 120% at 100% 100%, #e7defe 0%, transparent 60%), #fff;
  --dots: rgba(143, 114, 232, .22);
  --deep: #231a2d;
  --phone: #17111f;
  --phone-ring: rgba(255, 255, 255, .06);
  --on-deep: #f3edf8;
  --on-deep-muted: #b8abc6;
  --on-deep-line: rgba(255, 255, 255, .09);
  --tile-1: #fde3ee; --tile-1-ink: #c2356f;
  --tile-2: #ffe7da; --tile-2-ink: #b94f24;
  --tile-3: #ece6fe; --tile-3-ink: #6a4ecf;
  --tile-4: #daf4e8; --tile-4-ink: #1b8455;
  --tile-5: #dfedfd; --tile-5-ink: #2766b8;
  --tile-6: #fff0c9; --tile-6-ink: #926405;
  --ok: #2e9d6a;
  --danger: #df4a6f;
  --warn: #d4881c;
  --online: #3cc47f;
  --warn-bg: #fff4e6;
  --warn-ink: #8f4a14;
  --glow: rgba(224, 87, 140, .32);
  --btn-shadow: 0 12px 26px -12px rgba(200, 70, 130, .75), 0 2px 6px -2px rgba(137, 60, 120, .22);
  --btn-shadow-hover: 0 18px 32px -14px rgba(200, 70, 130, .8), 0 3px 8px -2px rgba(137, 60, 120, .22);
  --shadow-sm: 0 1px 2px rgba(92, 44, 88, .05), 0 4px 12px -4px rgba(92, 44, 88, .08);
  --shadow: 0 1px 2px rgba(92, 44, 88, .05), 0 14px 34px -12px rgba(92, 44, 88, .2);
  --shadow-lg: 0 36px 80px -28px rgba(80, 30, 90, .42);
  --radius: 24px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  /* Shapes used as masks and patterns (theme independent) */
  /* The top edge of a band (visible below the curve), two mirrored shapes — see "soft edges between bands" */
  --wave-a: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath d='M0 46C200 14 380 2 620 24s500 50 820 6V80H0z'/%3E%3C/svg%3E");
  --wave-b: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath d='M0 30C320 74 580 46 820 24S1240 14 1440 46V80H0z'/%3E%3C/svg%3E");
  --pin: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M12 22s-7.5-6.5-7.5-12.2a7.5 7.5 0 0 1 15 0C19.5 15.5 12 22 12 22zm0-9.4a2.8 2.8 0 1 0 0-5.6 2.8 2.8 0 0 0 0 5.6z'/%3E%3C/svg%3E");
  --heart: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 20.5s-7.5-4.6-9.3-9.2C1.4 8 3.4 4.5 7 4.5c2 0 3.4 1.1 5 3 1.6-1.9 3-3 5-3 3.6 0 5.6 3.5 4.3 6.8-1.8 4.6-9.3 9.2-9.3 9.2z'/%3E%3C/svg%3E");
  --person: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='7.5' r='4.5'/%3E%3Cpath d='M3.5 21.5c0-4.7 3.8-8 8.5-8s8.5 3.3 8.5 8z'/%3E%3C/svg%3E");
  --globe: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3c3 3.3 3 14.7 0 18M12 3c-3 3.3-3 14.7 0 18'/%3E%3C/svg%3E");
  --hearts: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cg fill='%23fff'%3E%3Cpath transform='translate(20 22) rotate(-16 12 12)' d='M12 20.5s-7.5-4.6-9.3-9.2C1.4 8 3.4 4.5 7 4.5c2 0 3.4 1.1 5 3 1.6-1.9 3-3 5-3 3.6 0 5.6 3.5 4.3 6.8-1.8 4.6-9.3 9.2-9.3 9.2z'/%3E%3Cpath transform='translate(118 70) scale(.7) rotate(14 12 12)' d='M12 20.5s-7.5-4.6-9.3-9.2C1.4 8 3.4 4.5 7 4.5c2 0 3.4 1.1 5 3 1.6-1.9 3-3 5-3 3.6 0 5.6 3.5 4.3 6.8-1.8 4.6-9.3 9.2-9.3 9.2z'/%3E%3Cpath transform='translate(56 128) scale(.5)' d='M12 20.5s-7.5-4.6-9.3-9.2C1.4 8 3.4 4.5 7 4.5c2 0 3.4 1.1 5 3 1.6-1.9 3-3 5-3 3.6 0 5.6 3.5 4.3 6.8-1.8 4.6-9.3 9.2-9.3 9.2z'/%3E%3C/g%3E%3C/svg%3E");
  color-scheme: light;
}

:root[data-theme="dark"] {
  --brand: #ff6b98;
  --brand-2: #a58cff;
  --brand-grad: linear-gradient(135deg, #ff6b98 0%, #d267ee 52%, #9a86ff 100%);
  --deep-grad: linear-gradient(120deg, #b23f70 0%, #8a45b4 52%, #5e4cc4 100%);
  --grad-text: linear-gradient(100deg, #ff7aa6 0%, #d58cf3 55%, #a697ff 100%);
  --brand-soft: #3a1b2c;
  --brand-ink: #ff9bbb;
  --bg: #15111c;
  --surface: #1e1828;
  --surface-2: #261f31;
  --surface-3: #31293d;
  --glass: rgba(30, 24, 40, .72);
  --glass-line: rgba(255, 255, 255, .08);
  --text: #f3eef9;
  --text-2: #d8cfe4;
  --muted: #a99fbc;
  --line: #312a3f;
  --line-2: #3e3550;
  --tint-blush: #1b1320;
  --tint-lilac: #171428;
  --tint-peach: #1d1618;
  --mesh: radial-gradient(60% 80% at 0% 0%, rgba(255, 107, 152, .16) 0%, transparent 70%),
    radial-gradient(55% 75% at 100% 0%, rgba(154, 134, 255, .18) 0%, transparent 70%),
    radial-gradient(45% 60% at 75% 100%, rgba(255, 150, 110, .1) 0%, transparent 70%);
  --panel: radial-gradient(70% 120% at 0% 0%, rgba(255, 107, 152, .14) 0%, transparent 60%), radial-gradient(70% 120% at 100% 100%, rgba(154, 134, 255, .16) 0%, transparent 60%), #1e1828;
  --dots: rgba(165, 140, 255, .14);
  --deep: #0e0b13;
  --phone: #2c2438;
  --phone-ring: rgba(255, 255, 255, .14);
  --on-deep: #f3edf8;
  --on-deep-muted: #a99fbc;
  --on-deep-line: rgba(255, 255, 255, .07);
  --tile-1: rgba(255, 107, 152, .16); --tile-1-ink: #ff8fb4;
  --tile-2: rgba(255, 150, 110, .15); --tile-2-ink: #ffb08e;
  --tile-3: rgba(165, 140, 255, .17); --tile-3-ink: #bca9ff;
  --tile-4: rgba(52, 199, 123, .15); --tile-4-ink: #6fe0a6;
  --tile-5: rgba(96, 165, 250, .15); --tile-5-ink: #93c5fd;
  --tile-6: rgba(250, 204, 21, .13); --tile-6-ink: #f5cf5f;
  --ok: #34c77b;
  --danger: #ff5a7e;
  --warn: #f0a33a;
  --online: #3cc47f;
  --warn-bg: #3a2410;
  --warn-ink: #fdba74;
  --glow: rgba(255, 107, 152, .26);
  --btn-shadow: 0 12px 28px -12px rgba(255, 90, 150, .6);
  --btn-shadow-hover: 0 18px 34px -14px rgba(255, 90, 150, .7);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .35), 0 4px 12px -4px rgba(0, 0, 0, .4);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 36px -14px rgba(0, 0, 0, .6);
  --shadow-lg: 0 36px 80px -28px rgba(0, 0, 0, .75);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand: #ff6b98;
    --brand-2: #a58cff;
    --brand-grad: linear-gradient(135deg, #ff6b98 0%, #d267ee 52%, #9a86ff 100%);
    --deep-grad: linear-gradient(120deg, #b23f70 0%, #8a45b4 52%, #5e4cc4 100%);
    --grad-text: linear-gradient(100deg, #ff7aa6 0%, #d58cf3 55%, #a697ff 100%);
    --brand-soft: #3a1b2c;
    --brand-ink: #ff9bbb;
    --bg: #15111c;
    --surface: #1e1828;
    --surface-2: #261f31;
    --surface-3: #31293d;
    --glass: rgba(30, 24, 40, .72);
    --glass-line: rgba(255, 255, 255, .08);
    --text: #f3eef9;
    --text-2: #d8cfe4;
    --muted: #a99fbc;
    --line: #312a3f;
    --line-2: #3e3550;
    --tint-blush: #1b1320;
    --tint-lilac: #171428;
    --tint-peach: #1d1618;
    --mesh: radial-gradient(60% 80% at 0% 0%, rgba(255, 107, 152, .16) 0%, transparent 70%),
      radial-gradient(55% 75% at 100% 0%, rgba(154, 134, 255, .18) 0%, transparent 70%),
      radial-gradient(45% 60% at 75% 100%, rgba(255, 150, 110, .1) 0%, transparent 70%);
    --panel: radial-gradient(70% 120% at 0% 0%, rgba(255, 107, 152, .14) 0%, transparent 60%), radial-gradient(70% 120% at 100% 100%, rgba(154, 134, 255, .16) 0%, transparent 60%), #1e1828;
    --dots: rgba(165, 140, 255, .14);
    --deep: #0e0b13;
    --phone: #2c2438;
    --phone-ring: rgba(255, 255, 255, .14);
    --on-deep: #f3edf8;
    --on-deep-muted: #a99fbc;
    --on-deep-line: rgba(255, 255, 255, .07);
    --tile-1: rgba(255, 107, 152, .16); --tile-1-ink: #ff8fb4;
    --tile-2: rgba(255, 150, 110, .15); --tile-2-ink: #ffb08e;
    --tile-3: rgba(165, 140, 255, .17); --tile-3-ink: #bca9ff;
    --tile-4: rgba(52, 199, 123, .15); --tile-4-ink: #6fe0a6;
    --tile-5: rgba(96, 165, 250, .15); --tile-5-ink: #93c5fd;
    --tile-6: rgba(250, 204, 21, .13); --tile-6-ink: #f5cf5f;
    --ok: #34c77b;
    --danger: #ff5a7e;
    --warn: #f0a33a;
    --online: #3cc47f;
    --warn-bg: #3a2410;
    --warn-ink: #fdba74;
    --glow: rgba(255, 107, 152, .26);
    --btn-shadow: 0 12px 28px -12px rgba(255, 90, 150, .6);
    --btn-shadow-hover: 0 18px 34px -14px rgba(255, 90, 150, .7);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .35), 0 4px 12px -4px rgba(0, 0, 0, .4);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 36px -14px rgba(0, 0, 0, .6);
    --shadow-lg: 0 36px 80px -28px rgba(0, 0, 0, .75);
    color-scheme: dark;
  }
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.65 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: var(--brand-ink); text-underline-offset: 3px; }
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -.025em; margin: 0 0 .5em; color: var(--text); text-wrap: balance; }
::selection { background: color-mix(in srgb, var(--brand) 26%, transparent); }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 50%, transparent); outline-offset: 3px; }
.wrap { width: min(1160px, 100% - 40px); margin: 0 auto; }
.wrap.narrow { width: min(820px, 100% - 40px); }
@media (max-width: 520px) { .wrap, .wrap.narrow { width: calc(100% - 32px); } }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.center { text-align: center; }
.grad-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.i { width: 1.25em; height: 1.25em; flex: none; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em; height: 46px; padding: 0 22px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text);
  font: inherit; font-weight: 700; font-size: .96rem; white-space: nowrap; text-decoration: none; cursor: pointer;
  box-shadow: var(--shadow-sm); transition: transform .16s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-1px); border-color: var(--line-2); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary { border: 0; background: var(--brand-grad); color: #fff; box-shadow: var(--btn-shadow), inset 0 1px 0 rgba(255, 255, 255, .22); text-shadow: 0 1px 2px rgba(70, 20, 60, .2); }
.btn-primary:hover { box-shadow: var(--btn-shadow-hover), inset 0 1px 0 rgba(255, 255, 255, .22); }
.btn-ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--text-2); }
.btn-ghost:hover { background: color-mix(in srgb, var(--surface) 75%, transparent); border-color: transparent; box-shadow: none; }
.btn-white { background: #fff; border: 0; color: #b8336b; box-shadow: 0 16px 34px -14px rgba(40, 10, 50, .5); }
.btn-white:hover { box-shadow: 0 20px 38px -14px rgba(40, 10, 50, .55); }
.btn-lg { height: 56px; padding: 0 32px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn .i { width: 18px; height: 18px; }
/* On a phone a long label wraps instead of pushing the page sideways ("Inscris-toi pour voir tout le monde près de chez toi") */
@media (max-width: 520px) {
  main .btn { max-width: 100%; height: auto; min-height: 46px; padding-block: 10px; white-space: normal; text-align: center; line-height: 1.25; }
  main .btn-lg { min-height: 56px; }
}

/* ---------------------------------------------------------------- logo & header */
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: var(--font-display); font-size: 1.42rem; letter-spacing: -.035em; }
.logo-mark {
  width: 36px; height: 36px; border-radius: 12px; background: var(--logo-grad); color: #fff; display: grid; place-items: center;
  box-shadow: 0 8px 18px -6px var(--glow), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.logo-mark svg { width: 20px; height: 20px; filter: drop-shadow(0 1px 1px rgba(90, 30, 90, .25)); }
.logo-text { font-weight: 800; }
.logo-text b { font-weight: 400; }

.site-header {
  position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 72%, transparent);
  -webkit-backdrop-filter: saturate(170%) blur(18px); backdrop-filter: saturate(170%) blur(18px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 72px; }
/* Logo on the left; on the right the catalog link, a thin divider, then theme, language and account buttons */
.site-nav { display: none; align-items: center; margin-left: auto; }
.site-nav::after { content: ""; width: 1px; height: 24px; margin: 0 6px 0 14px; background: var(--line); }
.site-nav a { display: inline-flex; align-items: center; gap: 7px; color: var(--text-2); text-decoration: none; font-weight: 650; font-size: .95rem; padding: 9px 16px 9px 13px; border-radius: 999px; transition: background-color .2s, color .2s; }
.site-nav a .i { width: 17px; height: 17px; color: var(--brand); }
.site-nav a:hover, .site-nav a[aria-current] { background: color-mix(in srgb, var(--surface) 85%, transparent); color: var(--text); }
.site-nav a[aria-current] { box-shadow: inset 0 0 0 1px var(--line); }
.site-auth { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.site-auth .btn { height: 42px; padding: 0 18px; font-size: .93rem; }
@media (min-width: 880px) { .site-nav { display: flex; } .site-nav + .site-auth { margin-left: 0; } }
@media (max-width: 560px) {
  .site-header .wrap { gap: 8px; height: 64px; }
  .site-auth { gap: 2px; }
  .site-auth .btn-ghost { display: none; }
  .site-auth .btn-primary { padding: 0 16px; }
  .logo { font-size: 1.3rem; }
}
@media (max-width: 400px) { .site-header .logo-text { display: none; } } /* long "Join free" labels (ru, uk) need the room */

.lang-menu { position: relative; }
.lang-menu summary {
  list-style: none; cursor: pointer; font-weight: 800; font-size: .84rem; letter-spacing: .02em; padding: 9px 11px;
  border-radius: 12px; color: var(--text-2); transition: background-color .2s, box-shadow .2s;
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover { background: color-mix(in srgb, var(--surface) 85%, transparent); }
.lang-menu[open] summary { background: var(--surface); box-shadow: var(--shadow-sm); }
.lang-menu > div {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 5; display: grid; gap: 2px; min-width: 170px; padding: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); animation: pop .16s ease;
}
@keyframes pop { from { opacity: 0; transform: translateY(-4px); } }
.lang-menu a { padding: 9px 12px; border-radius: 12px; color: var(--text); text-decoration: none; font-weight: 550; }
.lang-menu a:hover, .lang-menu a[aria-current] { background: var(--surface-2); }
.lang-menu a[aria-current] { font-weight: 750; color: var(--brand-ink); }

/* Theme button next to the language menu: one click switches light ⇄ dark (js/core/theme.js), the icon shows the
   theme on screen; until someone clicks, the site follows the device */
.theme-toggle {
  display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 12px; background: none;
  color: var(--text-2); cursor: pointer; transition: background-color .2s, color .2s, box-shadow .2s;
}
.theme-toggle:hover { background: color-mix(in srgb, var(--surface) 85%, transparent); color: var(--text); }
.theme-toggle:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 50%, transparent); outline-offset: 1px; }
.theme-toggle svg { width: 20px; height: 20px; transition: transform .35s ease; }
.theme-toggle:active svg { transform: rotate(-30deg) scale(.88); }
.theme-toggle .i-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .i-moon { display: block; }
}

/* Signed-in member: "Open YADate" and the account menu (avatar) instead of "Log in" / "Join" */
.site-open .when-narrow { display: none; }
.account-menu summary { display: flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border-radius: 999px; font-size: .93rem; font-weight: 700; letter-spacing: 0; color: var(--text); }
.account-avatar {
  position: relative; width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, hsl(var(--h, 330) 82% 72%), hsl(calc(var(--h, 330) + 40) 70% 60%)); color: #fff; font-weight: 800; font-size: .95rem;
}
.account-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
/* No photo: the silhouette with the hairstyle, as in the app (App\Support\Silhouette) */
.account-ph { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; }
.account-ph .ph-figure { position: absolute; inset: 0; width: 100%; height: 100%; }
.account-ph .ph-skin { fill: hsl(var(--h, 330) 70% 97%); }
.account-ph .ph-hair { fill: hsl(var(--h, 330) 42% 28%); fill-opacity: .55; }
.account-dot { position: absolute; top: -1px; right: -1px; width: 11px; height: 11px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 2px var(--bg); }
.account-name { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-menu .i-chev { width: 16px; height: 16px; color: var(--muted); transition: transform .2s; }
.account-menu[open] .i-chev { transform: rotate(180deg); }
.account-menu > div { min-width: 250px; }
.account-menu > div > a, .account-menu button { display: flex; align-items: center; gap: 11px; }
.account-menu > div .i { width: 18px; height: 18px; flex: none; color: var(--muted); }
.account-menu .account-head { gap: 11px; padding: 8px 10px 12px; margin-bottom: 4px; border-bottom: 1px solid var(--line); border-radius: 12px 12px 0 0; }
.account-head .account-avatar { width: 42px; height: 42px; font-size: 1.05rem; }
.account-head > span:last-child { display: grid; min-width: 0; }
.account-head b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-head small { color: var(--muted); font-weight: 600; font-size: .84rem; }
.account-count { margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; display: grid; place-items: center; background: var(--brand-grad); color: #fff; font-size: .74rem; font-weight: 800; }
.account-menu form { margin: 4px 0 0; padding-top: 4px; border-top: 1px solid var(--line); }
.account-menu button { width: 100%; padding: 9px 12px; border: 0; border-radius: 12px; background: none; color: var(--text); font: inherit; font-weight: 550; text-align: left; cursor: pointer; }
.account-menu button:hover { background: var(--surface-2); }
@media (max-width: 560px) {
  .site-open .when-wide, .account-name, .account-menu .i-chev { display: none; }
  .site-open .when-narrow { display: inline; }
  .account-menu summary { padding: 3px; }
}

/* ---------------------------------------------------------------- hero (landing) */
.hero { position: relative; overflow: hidden; isolation: isolate; padding: 28px 0 110px; background: var(--mesh), var(--tint-blush); }
.hero::before, .page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(var(--dots) 1.2px, transparent 1.7px); background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 50% 65% at 80% 40%, #000 0%, transparent 70%); mask-image: radial-gradient(ellipse 50% 65% at 80% 40%, #000 0%, transparent 70%);
}

.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .hero { padding: 40px 0 140px; } .hero-grid { grid-template-columns: 1.03fr .97fr; gap: 48px; } }
/* No public members to show yet: the sign-up card takes the second column instead of leaving it empty */
@media (min-width: 960px) { .hero-grid.is-card { grid-template-columns: 1.1fr .9fr; } .hero-side .signup-card { margin-left: auto; } }
.hero h1 { font-size: clamp(2.5rem, 5.8vw, 4.3rem); font-weight: 850; line-height: 1.03; letter-spacing: -.04em; margin-bottom: 22px; text-wrap: wrap; }
.hero h1.is-long { font-size: clamp(2.3rem, 5vw, 3.7rem); }
.lead { font-size: 1.18rem; line-height: 1.6; color: var(--muted); max-width: 560px; margin: 0 0 26px; }
.hero-proof { display: flex; align-items: center; gap: 14px; margin: 0 0 26px; line-height: 1.35; }
.hero-avatars { display: flex; flex: none; }
.hero-avatars img { width: 40px; height: 40px; border-radius: 50%; margin-left: -12px; object-fit: cover; background: var(--surface-2); border: 3px solid var(--surface); box-shadow: var(--shadow-sm); }
.hero-avatars img:first-child { margin-left: 0; }
.hero-proof b { display: block; font-size: 1.02rem; }
.hero-proof small { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-weight: 600; font-size: .9rem; }
.dot-live { width: 9px; height: 9px; border-radius: 50%; background: var(--online); box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); animation: live 1.8s infinite; flex: none; }
@keyframes live { 70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }

.signup-card {
  position: relative; max-width: 530px; display: grid; gap: 16px; padding: 22px; border-radius: 28px;
  background: var(--glass); border: 1px solid var(--glass-line); -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%);
  box-shadow: var(--shadow-lg);
}
.signup-row { display: grid; gap: 8px; }
.signup-label { font-weight: 750; font-size: .88rem; color: var(--text-2); }
.seg { display: flex; gap: 4px; padding: 5px; border-radius: 16px; background: color-mix(in srgb, var(--surface-3) 75%, transparent); }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { flex: 1; text-align: center; padding: 11px 6px; border-radius: 12px; cursor: pointer; font-weight: 650; color: var(--muted); transition: background-color .2s, color .2s, box-shadow .2s; }
.seg label:hover { color: var(--text); }
.seg input:checked + label { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.seg input:focus-visible + label { outline: 3px solid color-mix(in srgb, var(--brand) 50%, transparent); }
.signup-note { margin: 0; text-align: center; font-size: .9rem; color: var(--muted); }
/* A signed-in member on the home page: a welcome card in place of the sign-up form */
.welcome-card { gap: 14px; }
.welcome-head { display: flex; align-items: center; gap: 14px; }
.welcome-head .account-avatar { width: 56px; height: 56px; font-size: 1.3rem; box-shadow: var(--shadow-sm); }
.welcome-head b { display: block; font-size: 1.2rem; line-height: 1.25; }
.welcome-head small { display: block; margin-top: 3px; color: var(--muted); font-size: .92rem; }
.welcome-news { display: grid; gap: 8px; }
.welcome-news a { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); color: var(--text); font-weight: 700; text-decoration: none; transition: border-color .2s, box-shadow .2s; }
.welcome-news a:hover { border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.welcome-news .i { width: 19px; height: 19px; flex: none; color: var(--brand); }
/* Your own public profile */
.own-note { padding: 12px 14px; border-radius: 16px; background: var(--brand-soft); color: var(--brand-ink); font-weight: 650; }

/* Real members who show their profile on the website: three photo cards, the middle one raised */
.hero-art { display: none; }
@media (min-width: 960px) { .hero-art { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: start; } }
.hero-person { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 24px; background: var(--surface-2); color: #fff; box-shadow: var(--shadow); }
.hero-person:nth-child(2) { margin-top: -36px; }
.hero-person:nth-child(3) { margin-top: 28px; }
.hero-person img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-person::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(30, 10, 40, .62), transparent 48%); }
.hero-person span { position: absolute; left: 14px; right: 12px; bottom: 12px; z-index: 1; line-height: 1.3; }
.hero-person b { display: block; font-size: 1.02rem; }
.hero-person small { font-size: .8rem; opacity: .9; }
.hero-art-note { grid-column: 1 / -1; margin: 6px 0 0; font-size: .86rem; color: var(--muted); text-align: center; }
.hero-art-note a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* ---------------------------------------------------------------- sections */
.section { position: relative; padding: 88px 0; background-color: var(--bg); }
@media (max-width: 700px) { .section { padding: 60px 0; } }
.section--white { background: var(--surface); }
.section--blush { background: radial-gradient(45% 60% at 100% 0%, color-mix(in srgb, var(--brand-2) 10%, transparent), transparent 70%), var(--tint-blush); }
.section--lilac { background: radial-gradient(45% 60% at 0% 0%, color-mix(in srgb, var(--brand) 9%, transparent), transparent 70%), radial-gradient(40% 55% at 100% 100%, color-mix(in srgb, var(--brand-2) 10%, transparent), transparent 70%), var(--tint-lilac); }
.section--peach { background: radial-gradient(45% 60% at 0% 100%, color-mix(in srgb, var(--brand) 8%, transparent), transparent 70%), var(--tint-peach); }
.section-alt { background: var(--tint-lilac); }

/* ---------------------------------------------------------------- soft edges between bands
   No two bands meet in a straight line. Every band after the first rises into the one above with a gentle wave of its
   own: it is pulled up by --edge (into the bottom padding of the band above) behind a transparent border of the same
   height, and masked with the wave — so its gradients and patterns run right up to the curve and the band above shows
   through everywhere else, whatever colour it has. The two shapes alternate so neighbouring edges differ. */
:root { --edge: 60px; }
@media (max-width: 700px) { :root { --edge: 34px; } }
main > * + .section, main > * + .cta, .page-hero + .section, main + .site-footer {
  --band-wave: var(--wave-a);
  margin-top: calc(-1 * var(--edge));
  border-top: var(--edge) solid transparent;
  background-origin: border-box;
  /* the solid part overlaps the wave by 2px (the curve never reaches that low), so no hairline shows between them */
  -webkit-mask: var(--band-wave) top / 100% var(--edge) no-repeat, linear-gradient(#000 0 0) 0 calc(var(--edge) - 2px) / 100% 100% no-repeat;
  mask: var(--band-wave) top / 100% var(--edge) no-repeat, linear-gradient(#000 0 0) 0 calc(var(--edge) - 2px) / 100% 100% no-repeat;
}
main > .section:nth-child(odd), main > .cta:nth-child(odd), .guide-article + .section { --band-wave: var(--wave-b); }
/* Decorative layers of a band (highlights, the heart pattern) start at the wave too, not under it */
main > * + .cta { overflow: visible; } /* the mask clips the band now; overflow: hidden would cut its layers at the padding */
main > * + .cta::before, main > * + .cta::after { top: calc(-1 * var(--edge)); }
.section-head { max-width: 720px; margin: 0 auto 46px; text-align: center; }
.section-head .section-title { margin-bottom: 14px; }
.section-head .lead { margin: 0 auto; }
.section-title { font-size: clamp(1.85rem, 3.8vw, 2.75rem); font-weight: 850; letter-spacing: -.035em; text-align: center; margin-bottom: 40px; }
.section-title.is-sub { font-size: clamp(1.35rem, 2.6vw, 1.75rem); margin: 56px 0 24px; }
.small-title { font-size: 1.35rem; text-align: left; margin: 36px 0 16px; letter-spacing: -.02em; }
.city-links:has(+ .small-title) { margin-bottom: 8px; }

/* Features: pastel icon tiles, the first card leads in the brand colours */
.features { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
@media (min-width: 760px) { .features.is-four { grid-template-columns: repeat(2, 1fr); max-width: 980px; margin: 0 auto; } }
.feature {
  position: relative; padding: 28px 26px 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-2); }
.feature-icon { width: 54px; height: 54px; border-radius: 17px; display: grid; place-items: center; margin-bottom: 18px; background: var(--tile, var(--tile-1)); color: var(--tile-ink, var(--tile-1-ink)); }
.feature-icon svg { width: 26px; height: 26px; }
.feature h3 { font-size: 1.18rem; margin-bottom: 8px; }
.feature p { color: var(--muted); margin: 0; }
.features .feature:nth-child(6n + 2) { --tile: var(--tile-2); --tile-ink: var(--tile-2-ink); }
.features .feature:nth-child(6n + 3) { --tile: var(--tile-3); --tile-ink: var(--tile-3-ink); }
.features .feature:nth-child(6n + 4) { --tile: var(--tile-4); --tile-ink: var(--tile-4-ink); }
.features .feature:nth-child(6n + 5) { --tile: var(--tile-5); --tile-ink: var(--tile-5-ink); }
.features .feature:nth-child(6n + 6) { --tile: var(--tile-6); --tile-ink: var(--tile-6-ink); }
.features .feature:first-child { background: var(--deep-grad); border-color: transparent; box-shadow: var(--btn-shadow); overflow: hidden; isolation: isolate; }
.features .feature:first-child::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--hearts) right -30px top -20px / 160px repeat; opacity: .12; -webkit-mask-image: linear-gradient(200deg, #000 10%, transparent 55%); mask-image: linear-gradient(200deg, #000 10%, transparent 55%); }
.features .feature:first-child h3 { color: #fff; }
.features .feature:first-child p { color: rgba(255, 255, 255, .92); }
.features .feature:first-child .feature-icon { --tile: rgba(255, 255, 255, .2); --tile-ink: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }

/* How it works: three steps on a dashed line */

/* City, country and topic links */
.city-links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.city-links a {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px 10px 14px; border-radius: 999px; background: var(--surface);
  border: 1px solid var(--line); color: var(--text); text-decoration: none; font-weight: 650; box-shadow: var(--shadow-sm);
  transition: transform .16s ease, border-color .2s, box-shadow .2s, color .2s;
}
.city-links a::before {
  content: ""; width: 15px; height: 15px; flex: none; background: var(--brand); opacity: .8;
  -webkit-mask: var(--pin) center / contain no-repeat; mask: var(--pin) center / contain no-repeat;
}
.city-links.is-topics a::before { -webkit-mask-image: var(--heart); mask-image: var(--heart); }
.city-links.is-countries a::before { -webkit-mask-image: var(--globe); mask-image: var(--globe); background: var(--brand-2); }
.city-links a:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); color: var(--brand-ink); box-shadow: var(--shadow); }
.city-links a small { color: var(--muted); font-weight: 500; }
.city-links .more { background: var(--brand-soft); color: var(--brand-ink); border-color: transparent; padding-left: 18px; }
.city-links .more::before { display: none; }

/* Questions and answers */
.faq { margin-bottom: 12px; padding: 0 24px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: box-shadow .2s, border-color .2s; }
.faq[open] { box-shadow: var(--shadow); border-color: var(--line-2); }
.faq summary { position: relative; list-style: none; cursor: pointer; padding: 19px 48px 19px 0; font-weight: 750; font-size: 1.04rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 0; top: 50%; width: 30px; height: 30px; margin-top: -15px; border-radius: 50%; transition: transform .25s ease, background-color .2s;
  background: linear-gradient(var(--brand-ink), var(--brand-ink)) center / 12px 2px no-repeat, linear-gradient(var(--brand-ink), var(--brand-ink)) center / 2px 12px no-repeat, var(--brand-soft);
}
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--muted); margin: 0 0 20px; padding-right: 24px; }

/* The installable app: a soft gradient panel */
.app-promo-grid { display: grid; gap: 28px; align-items: center; padding: clamp(26px, 5vw, 56px); border-radius: 36px; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); }
@media (min-width: 900px) { .app-promo-grid { grid-template-columns: .95fr 1.05fr; gap: 48px; } }
.app-promo-icon { width: 76px; height: 76px; margin-bottom: 18px; filter: drop-shadow(0 14px 22px var(--glow)); }
.app-promo h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 850; letter-spacing: -.03em; }
.app-promo .lead { margin: 0 0 24px; font-size: 1.08rem; }
.app-promo-steps { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); }
.app-steps { padding: 22px 22px 20px; border-radius: 22px; background: var(--glass); border: 1px solid var(--glass-line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: var(--shadow-sm); }
.app-steps h3 { display: flex; align-items: center; gap: 10px; font-size: 1.08rem; margin-bottom: 12px; }
.app-steps h3 .i { width: 34px; height: 34px; padding: 7px; border-radius: 11px; background: var(--tile-3); color: var(--tile-3-ink); }
.app-steps:nth-child(2) h3 .i { background: var(--tile-1); color: var(--tile-1-ink); }
.app-steps ol { margin: 0; padding-left: 1.25em; color: var(--muted); display: grid; gap: 7px; }
.section.app-promo { padding-top: 16px; }
@media (display-mode: standalone) { .app-promo { display: none; } }

/* Call to action: the one deep brand band */
.cta { position: relative; overflow: hidden; isolation: isolate; padding: 100px 0; background: var(--deep-grad); color: #fff; text-align: center; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(40% 70% at 12% 15%, rgba(255, 255, 255, .22), transparent 70%), radial-gradient(35% 60% at 88% 90%, rgba(255, 196, 160, .3), transparent 70%); }
.cta::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--hearts) center / 180px repeat; opacity: .08; }
.cta h2 { color: #fff; font-size: clamp(2rem, 4.6vw, 3.1rem); font-weight: 850; letter-spacing: -.035em; }
.cta p { color: rgba(255, 255, 255, .92); font-size: 1.14rem; max-width: 580px; margin: 0 auto 32px; }
@media (max-width: 700px) { .cta { padding: 72px 0; } }

/* ---------------------------------------------------------------- inner pages */
.page-hero { position: relative; overflow: hidden; isolation: isolate; padding: 52px 0 96px; background: var(--mesh), var(--tint-blush); }
.page-hero h1 { font-size: clamp(2.05rem, 4.8vw, 3.2rem); font-weight: 850; letter-spacing: -.035em; max-width: 880px; }
.page-hero .lead { margin-bottom: 22px; }
.page-hero .btn { margin-top: 4px; }
.page-hero + .section, .page-hero + .guide-body { padding-top: 36px; }
.crumbs {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: 0 0 20px; padding: 6px 14px; border-radius: 999px; font-size: .87rem; color: var(--muted);
  background: var(--glass); border: 1px solid var(--glass-line); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.crumbs a { color: var(--text-2); text-decoration: none; font-weight: 600; }
.crumbs a:hover { color: var(--brand-ink); }
.stat { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 20px; padding: 8px 16px; border-radius: 999px; font-weight: 750; color: var(--brand-ink); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.stat::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--online); box-shadow: 0 0 0 3px color-mix(in srgb, var(--online) 22%, transparent); }

/* Catalog pages (site/place.php): who is here, facts about the place, first-date ideas, safety */
.place-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); align-items: start; }
.info-card { padding: 26px 28px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.info-card h2 { display: flex; align-items: center; gap: 12px; font-size: 1.22rem; margin-bottom: 14px; }
.info-card h3 { margin: 20px 0 10px; font-family: var(--font); font-size: .76rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.info-card p { margin: 0; color: var(--text-2); }
.info-card .chips { gap: 7px; }
.info-card .chip { box-shadow: none; background: var(--surface-2); font-size: .88rem; padding: 6px 13px; }
.info-icon { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 13px; background: var(--tile, var(--tile-1)); color: var(--tile-ink, var(--tile-1-ink)); }
.info-icon svg { width: 21px; height: 21px; }
.info-card.is-snapshot { --tile: var(--tile-3); --tile-ink: var(--tile-3-ink); }
.info-card.is-facts { --tile: var(--tile-5); --tile-ink: var(--tile-5-ink); }
.info-card.is-ideas { --tile: var(--tile-1); --tile-ink: var(--tile-1-ink); }
.info-card.is-safety { --tile: var(--tile-4); --tile-ink: var(--tile-4-ink); }
.fact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.fact-list li { position: relative; padding-left: 22px; color: var(--text-2); }
.fact-list li::before { content: ""; position: absolute; left: 3px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-grad); }
.link-group:first-child .section-title.is-sub, .section-title.is-sub.is-first { margin-top: 0; }
.city-links.is-people a::before { -webkit-mask-image: var(--person); mask-image: var(--person); background: var(--brand-2); }

/* Long texts: a sheet of paper on the section background */
.section > .wrap.narrow.prose { background: var(--surface); border: 1px solid var(--line); border-radius: 32px; padding: clamp(24px, 5vw, 58px); box-shadow: var(--shadow); }
.prose { color: var(--text-2); }
.prose h2 { font-size: 1.45rem; margin-top: 1.8em; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--text-2); }
.prose ul { list-style: none; padding-left: 0; }
.prose ul li { position: relative; padding-left: 26px; margin: 10px 0; }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: .66em; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-grad); }

.site-footer { position: relative; padding: 68px 0 34px; background: var(--deep); color: var(--on-deep-muted); }
.site-footer .wrap { display: grid; gap: 36px; }
@media (min-width: 860px) { .site-footer .wrap { grid-template-columns: 1.5fr repeat(3, 1fr); } }
.site-footer .logo { color: var(--on-deep); }
.footer-brand p { margin: 14px 0 18px; max-width: 330px; color: var(--on-deep-muted); }
.footer-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-badges span { padding: 5px 12px; border-radius: 999px; font-size: .78rem; font-weight: 750; color: var(--on-deep); background: rgba(255, 255, 255, .07); border: 1px solid var(--on-deep-line); }
.footer-col h3 { margin: 4px 0 14px; font-family: var(--font); font-size: .78rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; color: var(--on-deep); }
.footer-col a { display: block; width: fit-content; padding: 5px 0; color: var(--on-deep-muted); text-decoration: none; font-weight: 550; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; padding-top: 24px; border-top: 1px solid var(--on-deep-line); }
.copyright { margin: 0; font-size: .86rem; color: var(--on-deep-muted); }
.footer-langs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: .88rem; }
.footer-langs svg { width: 17px; height: 17px; margin-right: 4px; color: var(--on-deep-muted); }
.footer-langs a, .footer-langs span { padding: 5px 12px; border-radius: 999px; font-weight: 600; text-decoration: none; }
.footer-langs a { color: var(--on-deep-muted); transition: color .2s, background .2s; }
.footer-langs a:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.footer-langs span { color: var(--on-deep); background: rgba(255, 255, 255, .07); border: 1px solid var(--on-deep-line); }
.copyright a { color: var(--on-deep); }

.error-page { min-height: 100vh; display: grid; place-items: center; background: var(--mesh), var(--tint-blush); }
.error-box { text-align: center; padding: 20px 16px; max-width: 560px; }
.error-box > p { margin: 6px 0 22px; font-size: 1.1rem; color: var(--muted); }
.error-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.error-langs { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .9rem; }
.error-langs a, .error-langs span { padding: 5px 12px; border-radius: 999px; font-weight: 600; text-decoration: none; }
.error-langs a { color: var(--muted); transition: color .2s, background .2s; }
.error-langs a:hover { color: var(--brand-ink); background: var(--brand-soft); }
.error-langs span { color: var(--brand-ink); background: var(--brand-soft); }
.error-code { font-family: var(--font-display); font-size: clamp(5rem, 16vw, 8rem); font-weight: 900; line-height: 1; letter-spacing: -.05em; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dev-mailbox { padding: 30px 0; }
.table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-sm); }
.table th, .table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); font-size: .92rem; }

/* ---------------------------------------------------------------- public member cards and profile page */
.people-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); margin-bottom: 22px; }
.person-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: 24px; background: var(--surface); border: 1px solid var(--line);
  color: var(--text); text-decoration: none; box-shadow: var(--shadow-sm); transition: transform .22s ease, box-shadow .22s ease;
}
.person-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.person-card-photo { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface-2); }
.person-card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.person-card:hover .person-card-photo img { transform: scale(1.05); }
.person-card-photo::after { content: ""; position: absolute; inset: auto 0 0; height: 35%; background: linear-gradient(to top, rgba(35, 12, 45, .3), transparent); }
.person-card-body { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; min-width: 0; }
.person-card-body b { font-size: 1.06rem; letter-spacing: -.01em; }
.person-card-body small { color: var(--muted); font-size: .84rem; }
.person-card-text { margin-top: 6px; font-size: .88rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.person-card-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.person-card-tags .tag { padding: 3px 9px; border-radius: 999px; background: var(--surface-2); font-size: .78rem; line-height: 1.5; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.person-card-tags .tag.is-goal { background: var(--brand-soft); color: var(--brand-ink); font-weight: 600; }
.person-online { position: absolute; right: 12px; top: 12px; z-index: 1; width: 14px; height: 14px; border-radius: 50%; background: var(--online); box-shadow: 0 0 0 3px #fff; }
.person-online.is-inline { position: static; display: inline-block; width: 9px; height: 9px; box-shadow: none; vertical-align: middle; }
.verified { color: #3b82f6; font-size: .85em; }
/* The breadcrumbs sit right under the header, like on the catalog pages */
.person-page { padding-top: 24px; background: var(--mesh), var(--bg); background-size: 100% 820px; background-repeat: no-repeat; }
.person-layout { display: grid; gap: 44px; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); align-items: start; }
.person-photos { position: sticky; top: 96px; }
.person-main { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 32px; box-shadow: var(--shadow-lg); }
.person-thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.person-thumbs img { width: 76px; height: 76px; object-fit: cover; border-radius: 16px; box-shadow: var(--shadow-sm); }
.person-info h1 { font-size: clamp(2rem, 4.4vw, 2.9rem); font-weight: 850; letter-spacing: -.035em; margin-bottom: 6px; }
.person-info h2 { font-size: 1.2rem; margin: 32px 0 12px; }
.person-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 8px; }
.about-text { white-space: normal; color: var(--text-2); }
.details-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin: 0; }
.details-list div { padding: 12px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.details-list dt { color: var(--muted); font-size: .8rem; font-weight: 650; }
.details-list dd { margin: 2px 0 0; font-weight: 650; }
/* An answer with a topic page ("Divorced", "Virgo", "English") links to it */
.details-list dd a { color: inherit; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--brand) 45%, transparent); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.details-list dd a:hover { color: var(--brand-ink); text-decoration-color: currentColor; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 15px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .92rem; font-weight: 550; box-shadow: var(--shadow-sm); }
a.chip { color: inherit; text-decoration: none; transition: border-color .15s, color .15s; }
a.chip:hover { border-color: var(--brand); color: var(--brand-ink); }
@media (max-width: 760px) {
  .person-page { padding-top: 16px; }
  .person-layout { grid-template-columns: 1fr; gap: 26px; }
  .person-photos { position: static; }
  .people-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .person-card { border-radius: 20px; }
  .person-card-body { padding: 10px 12px 12px; }
  .person-card-text { display: none; }
}

/* ---------------------------------------------------------------- dating tips (/guides, landing section) */
.guide-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.guide-cats a { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; font-weight: 650; font-size: .92rem; box-shadow: var(--shadow-sm); transition: border-color .2s, color .2s; }
.guide-cats a:hover { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); color: var(--brand-ink); }
.guide-cats a[aria-current] { background: var(--brand-soft); border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); color: var(--brand-ink); }
.guide-cards { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(290px, 100%), 1fr)); }
.guide-card {
  position: relative; display: flex; flex-direction: column; gap: 6px; padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.guide-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--brand) 30%, var(--line)); }
.guide-card:focus-within { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 2px; }
.guide-card-emoji { width: 52px; height: 52px; margin-bottom: 8px; border-radius: 16px; display: grid; place-items: center; font-size: 1.6rem; background: var(--tile, var(--tile-1)); }
.guide-card:nth-child(6n + 2) { --tile: var(--tile-3); }
.guide-card:nth-child(6n + 3) { --tile: var(--tile-2); }
.guide-card:nth-child(6n + 4) { --tile: var(--tile-4); }
.guide-card:nth-child(6n + 5) { --tile: var(--tile-5); }
.guide-card:nth-child(6n + 6) { --tile: var(--tile-6); }
.guide-card-cat { margin: 0; color: var(--brand-ink); font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.guide-card-title { font-size: 1.2rem; margin: 0; }
.guide-card-title a { color: var(--text); text-decoration: none; }
.guide-card-title a:focus { outline: none; }
.guide-card-title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; } /* the whole card is the link */
.guide-card-summary { margin: 0; color: var(--muted); flex: 1; }
.guide-card-meta { display: inline-flex; align-items: center; gap: 6px; margin: 8px 0 0; color: var(--muted); font-size: .85rem; font-weight: 650; }
.guide-card-meta::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand-grad); }
.guides-lead { text-align: center; color: var(--muted); max-width: 620px; margin: -26px auto 34px; }
.guides-empty { text-align: center; padding: 30px 0; }
.guides-more { text-align: center; margin: 34px 0 0; }
.guide-pager { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 34px; }
.guide-emoji { width: 76px; height: 76px; margin-bottom: 18px; border-radius: 24px; display: grid; place-items: center; font-size: 2.4rem; line-height: 1; background: var(--surface); box-shadow: var(--shadow); }
.guide-meta { color: var(--muted); font-size: .92rem; font-weight: 600; margin: 0; }
.guide-notice { padding: 11px 16px; border-radius: 16px; background: var(--brand-soft); color: var(--brand-ink); font-weight: 600; font-size: .92rem; }
.guide-notice.is-draft { display: inline-block; background: var(--warn-bg); color: var(--warn-ink); }
.guide-body { padding-top: 40px; }
.guide-body .prose { font-size: 1.07rem; line-height: 1.75; }
.guide-body .prose h3 { font-size: 1.14rem; margin-top: 1.5em; }
.guide-body .prose ol { padding-left: 1.4em; }
.guide-body .prose blockquote { margin: 1.6em 0; padding: 16px 22px; border-left: 4px solid var(--brand); background: var(--surface); border-radius: 0 18px 18px 0; box-shadow: var(--shadow-sm); }
.guide-body .prose blockquote p { margin: .3em 0; }
.guide-body .prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.guide-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-top: 44px; padding: 28px;
  border-radius: 28px; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.guide-cta h2 { font-size: 1.35rem; margin: 0 0 4px; }
.guide-cta p { margin: 0; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .dot-live { animation: none; }
  .btn, .feature, .guide-card, .person-card, .city-links a { transition: none; }
  .btn:hover, .feature:hover, .guide-card:hover, .person-card:hover, .city-links a:hover { transform: none; }
  .person-card:hover .person-card-photo img { transform: none; }
}

/* Chinese: Simplified Chinese faces after the Latin ones (Latin text keeps the site's face), headings without the tight
   tracking (characters must not touch) and, where the browser can, a little space between Chinese and Latin text */
html:lang(zh) {
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", sans-serif;
  text-autospace: normal;
}
html:lang(zh) :is(h1, h2, h3, h4) { letter-spacing: 0; }
