/*
 * The Bengaluru ideas page - phone first, and light on purpose: system fonts (no font download),
 * small photos loaded lazily, no framework. It opens inside Instagram's own browser, where every
 * kilobyte is waited for. A light, colourful page on one solid ground, in the brand teal with red and blue: each
 * category carries one of the three (--k), on its pill and its cards. Light in either OS theme.
 */
:root {
  --bg: #edf3f6;
  --surface: #ffffff;
  --surface-2: #f3f7fb;
  --ink: #0f2236;
  --sub: #42566b;
  --muted: #6a7c8e;
  --line: #dbe5ec;
  --teal: #0b9aa5;
  --teal-ink: #08707a;
  --teal-soft: #e0f5f6;
  --red: #e5484d;
  --red-ink: #c22d33;
  --red-soft: #fde9ea;
  --blue: #2f6fe4;
  --blue-ink: #1f55bd;
  --blue-soft: #e5eefd;
  --radius: 16px;
  color-scheme: light;
}
/* Each kind's colour, on its invite cards. */
[data-kind='sports'], [data-filter='sports'], [data-kind='treks'], [data-filter='treks'], [data-kind='social'], [data-filter='social'] {
  --k: var(--red);
  --k-ink: var(--red-ink);
  --k-soft: var(--red-soft);
}
[data-kind='running'], [data-filter='running'], [data-kind='cafes'], [data-filter='cafes'] {
  --k: var(--blue);
  --k-ink: var(--blue-ink);
  --k-soft: var(--blue-soft);
}
[data-kind='cycling'], [data-filter='cycling'], [data-kind='wellness'], [data-filter='wellness'], [data-filter='all'] {
  --k: var(--teal);
  --k-ink: var(--teal-ink);
  --k-soft: var(--teal-soft);
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}
body {
  padding-bottom: env(safe-area-inset-bottom);
}
a {
  color: inherit;
}

/* Top bar */
.bx-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(14px + env(safe-area-inset-top)) 18px 6px;
  max-width: 720px;
  margin: 0 auto;
}
/* The brand tagline under the top bar - one line on a wide phone, two on a narrow one. */
.bx-tagline {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 18px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--sub);
  text-wrap: balance;
}
.bx-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
}
.bx-mark {
  width: 22px;
  height: 22px;
  background: url('/logo-mark-256.png') center / 90% auto no-repeat;
}
.bx-city {
  font-size: 13px;
  font-weight: 600;
  color: var(--teal-ink);
  background: var(--surface);
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 18px 40px;
}

/* Hero */
/* The headline as a chat-like box with a colour line on its left. */
.bx-bubble {
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 6px 18px 18px 18px;
  border-left: 4px solid var(--teal);
  background: var(--surface);
  box-shadow: 0 1px 2px rgb(15 34 54 / 5%), 0 6px 18px rgb(15 34 54 / 6%);
}
.bx-hero h1 {
  margin: 0;
  font-size: clamp(30px, 8.4vw, 40px);
  line-height: 1.06;
  letter-spacing: -0.8px;
  font-weight: 800;
  text-wrap: balance;
}
.bx-hero h1 em {
  font-style: normal;
  color: var(--teal-ink);
}
/* Sections */
.bx-section {
  margin-top: 30px;
}

/* Labels: an idea and an example must never be mistaken for a real activity. */
.bx-tag {
  justify-self: start;
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
/* EXAMPLE is always solid teal: an example invite must never be mistaken for a real one. */
.bx-tag.example {
  background: var(--teal-ink);
  color: #fff;
}


/* Buttons */
.bx-go {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--teal);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
}
.bx-go:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}


/* Hand-off sheet */
.bx-sheet {
  width: min(100%, 520px);
  max-width: 100%;
  margin: auto auto 0;
  padding: 22px 20px calc(18px + env(safe-area-inset-bottom));
  border: 0;
  border-radius: 20px 20px 0 0;
  background: var(--surface);
  color: var(--ink);
}
.bx-sheet::backdrop {
  background: rgb(15 34 54 / 45%);
}
.bx-sheet h2 {
  margin: 0 0 6px;
  font-size: 19px;
  line-height: 1.25;
}
.bx-sheet-why,
.bx-sheet-how {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--sub);
}
.bx-sheet-how {
  margin: 12px 0 0;
}
.bx-copy,
.bx-close {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}
.bx-close {
  border: 0;
  color: var(--muted);
}

.bx-promise {
  margin: 10px 2px 0;
  font-size: 14px;
  line-height: 1.4;
  color: var(--sub);
}

/*
 * The example invites: three per visit, each a compact row (photo, title, place and time) that
 * opens on tap into the invite - the visitor as host, our own illustrated avatars, no names, no
 * attendance - and its button.
 */
.bx-invites {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}
.bx-invites-h {
  margin: 0 2px;
  font-size: 18px;
  letter-spacing: -0.2px;
}
.bx-invite {
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgb(15 34 54 / 5%), 0 6px 18px rgb(15 34 54 / 6%);
  overflow: hidden;
}
.bx-invite[hidden] {
  display: none;
}
.bx-invite summary {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  list-style: none;
  cursor: pointer;
}
.bx-invite summary::-webkit-details-marker {
  display: none;
}
.bx-invite summary img {
  display: block;
  width: 92px;
  height: 92px;
  border-radius: 12px;
  object-fit: cover;
}
.bx-invite-head {
  display: grid;
  gap: 4px;
}
.bx-invite-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.2px;
  color: var(--ink);
}
.bx-invite-where {
  font-size: 13px;
  color: var(--sub);
}
.bx-more {
  font-size: 13px;
  font-weight: 700;
  color: var(--k-ink);
}
.bx-invite[open] .bx-more {
  display: none;
}
.bx-invite-body {
  display: grid;
  gap: 8px;
  padding: 12px 14px 14px;
  border-top: 1px solid var(--line);
}
.bx-invite-who {
  margin: 0;
  font-size: 14.5px;
  color: var(--sub);
}
.bx-invite-who b {
  color: var(--k-ink);
}
.bx-invite-people {
  display: flex;
  align-items: center;
}
.bx-av {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-right: -6px;
  border-radius: 50%;
  border: 2px solid var(--surface);
  font-size: 11px;
  font-weight: 700;
}
.bx-av--you {
  background: var(--k);
  color: #fff;
}
.bx-invite img.bx-av {
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--surface-2);
}
.bx-spots {
  margin-left: 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--k-ink);
}
.bx-invite-host {
  margin: 0;
  font-size: 14px;
  color: var(--sub);
}
.bx-invite-host {
  display: flex;
  align-items: center;
  gap: 8px;
}
/* Going is the only state an example shows: it is the host's own signal. */
.bx-signal {
  padding: 2px 9px;
  border-radius: 999px;
  background: #dcf5e6;
  color: #17713f;
  font-size: 12.5px;
  font-weight: 700;
}
.bx-invite .bx-go {
  margin-top: 4px;
}

.bx-reassure {
  margin: 0;
  text-align: center;
  font-size: 12.5px;
  color: var(--muted);
}

/* Three short privacy facts under the card: answers "is it safe?" without a second button. */
.bx-trust {
  display: grid;
  gap: 10px;
  margin: 18px 4px 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  line-height: 1.4;
  color: var(--sub);
}
.bx-trust li {
  display: flex;
  gap: 10px;
}

/* Wider screens: the page sits in one rounded white panel on the ground. */
@media (min-width: 640px) {
  main {
    margin: 8px auto 40px;
    padding: 28px 28px 32px;
    max-width: 560px;
    border-radius: 28px;
    background: var(--surface);
    box-shadow: 0 1px 3px rgb(15 34 54 / 6%), 0 18px 48px rgb(15 34 54 / 8%);
  }
  .bx-top {
    max-width: 560px;
  }
  .bx-bubble {
    margin-top: 0;
    background: var(--surface-2);
    box-shadow: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .bx-invite[open] .bx-invite-body {
    animation: bx-open 0.2s ease-out;
  }
  @keyframes bx-open {
    from {
      opacity: 0;
      transform: translateY(-4px);
    }
  }
}
