/* CRITICAL: Hide all scrollbars - must be first */
* {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

*::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
}

html {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    overflow: -moz-scrollbars-none !important;
}

html::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
}

body {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

body::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
}

@font-face {
    font-family: "Jost";
    src: url('fonts/Inter.ttf');
}


.icon {
    display: block;
    height: 20px;
    aspect-ratio: 1;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}



/* lists */
ul, ol {
    list-style: none;
}
ul {
    list-style: square;
    display: flex;
    flex-direction: column;
    gap: 1em;
    font-size: 1.2rem;
}
li {
    color: var(--cb-ink-2);
}


/* ==========================================================================
   BRAND TOKENS
   Beige ground, orange accent, Fraunces. One source of truth: before this, the
   source carried more than twenty unrelated hex values, including WhatsApp
   green, Facebook blue and Reddit orange used as if they were brand colours.

   Contrast notes, because the brand pair does not pass on its own:
     - orange #F97A01 on beige #FCF3E2 is 2.4:1, so it is never used for text.
       --cb-orange-ink (#9E4A08) is the readable orange at 5.5:1.
     - white on #F97A01 is 2.7:1 and fails. Orange buttons therefore carry dark
       ink (--cb-ink on --cb-orange is 5.8:1), which also keeps the exact
       brand orange rather than darkening it.
   ========================================================================== */
:root {
    font-size: 16px;
    scroll-behavior: smooth;

    /* ground + surfaces */
    --cb-gutter: 1.2rem; /* page side gutter, shared with the header */
    --cb-beige: #FCF3E2;
    --cb-card: #FFFCF6;
    /*
     * The panel surface. Deliberately a separate token from --cb-card.
     *
     * A panel redefines --cb-card to the beige on itself, so cards nested
     * inside it invert and separate from the panel. But a custom property
     * redefined on an element also applies to that element's own declarations,
     * so a panel whose background read --cb-card resolved to the NEW value and
     * came out beige, while the home page, which hardcoded #FFFCF6, came out
     * near-white. That is why some sections looked bright and others did not.
     * This token is never redefined, so every panel is the same colour.
     */
    --cb-panel: #FFFCF6;
    --cb-wash: #F7EAD1;
    --cb-line: #E7D7BA;

    /* brand */
    --cb-orange: #F97A01;
    --cb-orange-hover: #E86E00;
    --cb-orange-ink: #9E4A08;
    --cb-orange-wash: #FDE8CC;

    /* text */
    --cb-ink: #2B1D10;
    --cb-ink-2: #6B5842;
    --cb-ink-3: #93826C;

    /* semantic, kept separate from the accent */
    --cb-good: #1E6E45;
    --cb-warn: #96540A;
    /* error style (docs/mockups/email-code-error-style-2026-11-18.html variant B, no icon).
       --cb-red = AppColors.redColor for borders/accents; the rest is the rose box. */
    --cb-red: #D42A0F;
    --cb-error-bg: #FDECE8;
    --cb-error-line: #F0C4BB;
    --cb-error-ink: #8C1C08;

    /* type roles */
    --cb-display: 'Fraunces', Georgia, 'Times New Roman', serif;
    --cb-body: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    /* Utility face for dates, counts and seat numbers: figures line up and the
       eyebrows read as data rather than prose. */
    --cb-mono: ui-monospace, 'Cascadia Mono', 'SF Mono', Menlo, Consolas, monospace;
}
html {
    scroll-behavior: smooth;
    height: 100%;
    background: var(--cb-beige);
}
body {
    font-family: var(--cb-body);
    color: var(--cb-ink);
    background: var(--cb-beige);
    --text-color: var(--cb-ink);
    position: relative;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
}
button {
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
}
h1 {
    margin: 0 1rem;
    font-family: var(--cb-display);
    font-variation-settings: 'opsz' 120;
    font-size: 2rem !important;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--cb-ink);
    position: relative;
    margin-bottom: 1.5rem;
    display: inline-block;
}
h2, h3 {
    font-family: var(--cb-display);
    font-variation-settings: 'opsz' 48;
    letter-spacing: -0.015em;
    color: var(--cb-ink);
}

/*
 * Two defaults here were causing trouble across the whole site.
 *
 * `margin: 0 1rem` gave every paragraph a 16px horizontal indent, so body copy
 * sat inset from the heading above it unless the component happened to reset
 * the margin. That is why the event description did not line up with its title.
 * Vertical rhythm comes from flex and grid `gap`, not paragraph margins, so
 * there is nothing to replace it with.
 *
 * `font-size: 1.4rem` made 22px the default for every paragraph on the site,
 * which is display size, not reading size. It is the reason nearly every
 * component carried its own 1.2em / 1.05em override, and those overrides all
 * disagreed with each other.
 */
p {
    margin: 0;
    padding: 0;
    line-height: 1.6;
    font-size: 1rem;
    color: var(--cb-ink-2);
}
a {
    color: var(--cb-orange-ink);
}
/* Every secondary page wraps its content in <section>, so this rule IS the
   page shell. It used to be the dark site's slab: a hard black drop shadow and
   a 5.5%-white veil that only reads on a dark ground. On beige that produced
   square grey boxes next to the front page's rounded panels, which is why the
   site looked half-migrated.

   This is now the same panel the front page's .band uses, so a page gets the
   current design by existing rather than by being ported one at a time.
   box-sizing matters: the project never set it globally, so a max-width plus
   padding used to overshoot the 1000px column by the padding. */
section {
    box-sizing: border-box;
    max-width: 1000px;
    margin: 0 auto 1.1rem;
    padding: clamp(1.5rem, 3.4vw, 2.2rem);
    display: flex;
    flex-direction: column;
    gap: 1em;
    background: var(--cb-panel);
    border: 1px solid var(--cb-line);
    border-radius: 20px;
    box-shadow:
        0 1px 2px rgba(43, 29, 16, 0.035),
        0 12px 30px -20px rgba(43, 29, 16, 0.28);
    /* Cards nested inside a panel invert to beige so they separate from it. */
    --cb-card: var(--cb-beige);
}
.topbarWrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    gap: 1em;
    margin-bottom: 1em;
    text-align: center;
}
form {
    margin: 1em;
    display: flex;
    flex-direction: column;
    gap: 2em;
    width: 100%;
}
/* The 0 2px 2px rgba(50,50,50,.425) drop shadow was a dark-site inset; on beige
   it just muddied the field edge. A warm border does the job. */
input, textarea {
    color: var(--cb-ink);
    background: var(--cb-card);
    padding: .5em .8em;
    font-size: 1em;
    border-radius: 10px;
    border: 1px solid var(--cb-line);
    box-shadow: none;
    transition: border-color .15s ease;
}
input:focus, textarea:focus {
    outline: 2px solid var(--cb-orange);
    outline-offset: 1px;
    border-color: var(--cb-orange);
}
input::placeholder {
    color: var(--cb-ink-3) !important;
}
/* The shared button. Was width:100% uppercase with 3px tracking, so every
   button on the site stretched the full column and shouted. The project rule is
   that buttons wrap tightly around their text, so this sizes to its label and
   reads as a word rather than a banner. Matches WhatsAppButton's geometry so
   the two sit together in a row. */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5em;
    box-sizing: border-box;
    width: auto;
    background: var(--cb-orange);
    text-decoration: none;
    /* Dark ink, not white: white on this orange is 2.7:1 and fails contrast. */
    color: var(--cb-ink);
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: .9rem;
    line-height: 1;
    font-weight: 700;
    padding: .75em 1.1em;
    white-space: nowrap;
    transition: background .15s ease, border-color .15s ease;
    cursor: pointer;
}
.btn:hover {
    background: var(--cb-orange-hover);
}
.btn:focus-visible {
    outline: 2px solid var(--cb-orange);
    outline-offset: 2px;
}

/* Secondary action: same shape, no fill, so it recedes behind the orange one. */
.btn--quiet {
    background: var(--cb-card);
    border-color: var(--cb-line);
    font-weight: 600;
}
.btn--quiet:hover {
    background: var(--cb-wash);
}

/* ==========================================================================
   PLATFORM BUTTONS  (.registerBtn / .platformBtn / .mapsBtn + a platform name)
   "Also listed on Meetup / Facebook / Spontacts", and map links.

   These were hand-copied into every event page: `.meetup` appeared in 13 files,
   `.registerBtn` in 12, `.facebook` in 8, each redefining the same hex. A page
   with four of them became four full-bleed platform-brand slabs competing with
   the page's own call to action, and the brand colour lost.

   One set, defined once. They are secondary by design, so they take a neutral
   ground and carry their platform colour on a leading dot and on the hover
   border. The one exception is WhatsAppButton, which stays solid green: it is
   the primary way to reach us, appears once per page, and users look for that
   green. Secondary link, secondary weight.
   ========================================================================== */
.registerBtn,
.platformBtn,
.mapsBtn {
    background: var(--cb-card);
    color: var(--cb-ink);
    border: 1px solid var(--cb-line);
    font-weight: 600;
}

.registerBtn:hover,
.platformBtn:hover,
.mapsBtn:hover {
    background: var(--cb-wash);
    border-color: var(--platform, var(--cb-ink-3));
}

/* The mark. Platforms we have a real brand SVG for show it; the rest fall back
   to a coloured dot rather than a hand-drawn approximation of someone else's
   logo. Driven from CSS so all 20-odd existing anchors get the mark without
   their markup changing. */
.registerBtn::before,
.platformBtn::before,
.mapsBtn::before {
    content: '';
    width: .55em;
    height: .55em;
    border-radius: 50%;
    flex: none;
    background: var(--platform, var(--cb-ink-3));
}

/* Has an official asset: swap the dot for the real mark. Only Spontacts still
   falls back to a dot, because no official mark exists for it in the icon set. */
.registerBtn.whatsapp::before,
.registerBtn.telegram::before,
.registerBtn.facebook::before,
.registerBtn.meetup::before,
.registerBtn.instagram::before,
.registerBtn.eventbrite::before,
.registerBtn.linktree::before,
.platformBtn.whatsapp::before,
.platformBtn.telegram::before,
.platformBtn.facebook::before,
.platformBtn.meetup::before,
.platformBtn.instagram::before,
.platformBtn.eventbrite::before,
.platformBtn.linktree::before,
.mapsBtn::before {
    width: 1.2em;
    height: 1.2em;
    border-radius: 0;
    background-color: transparent;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}
.registerBtn.whatsapp::before,
.platformBtn.whatsapp::before { background-image: url('/icons/whatsapp.svg'); }
.registerBtn.telegram::before,
.platformBtn.telegram::before { background-image: url('/icons/telegram.svg'); }
.registerBtn.facebook::before,
.platformBtn.facebook::before { background-image: url('/icons/facebook.svg'); }
.registerBtn.meetup::before,
.platformBtn.meetup::before { background-image: url('/icons/meetup.svg'); }
.registerBtn.instagram::before,
.platformBtn.instagram::before { background-image: url('/icons/instagram.svg'); }
.registerBtn.eventbrite::before,
.platformBtn.eventbrite::before { background-image: url('/icons/eventbrite.svg'); }
.registerBtn.linktree::before,
.platformBtn.linktree::before { background-image: url('/icons/linktree.svg'); }
.mapsBtn::before { background-image: url('/icons/maps.svg'); }

.meetup { --platform: #F64060; }
.whatsapp { --platform: #25D366; }
.facebook { --platform: #1877F2; }
.instagram { --platform: #C13584; }
.spontacts { --platform: #7AB800; }
.eventbrite { --platform: #F05537; }
.telegram { --platform: #29A0DA; }
.mapsBtn { --platform: #1A73E8; }
.linktree { --platform: #43E660; }

/* ==========================================================================
   EVENT DETAIL PAGE SKELETON

   Every event page under /events/<slug> was written as a copy of the last one,
   so the same layout was declared ~30 times: .cntr 31 copies, .textContainer
   31, .infoBox 20, .contactBox 16, .eventImage 14, .registerBox 13. The
   variants were not even meaningfully different (.registerBox: 13 copies, one
   single distinct rule), so this was pure duplication, and it is why fixing
   anything on event pages meant editing thirty files and missing some.

   Defined once here. The pages keep their own content and their genuinely
   page-specific bits; the shared skeleton is no longer theirs to restate.
   ========================================================================== */
.cntr {
    display: block;
    width: 100%;
}

.textContainer {
    display: flex;
    flex-direction: column;
    gap: 1.25em;
    width: 100%;
}

/*
 * Everything below was centred: the description, the fact panels, the closing
 * line, all of it. Centred running text has a ragged left edge, so the eye has
 * to hunt for the start of every line, and a page of centred boxes has no
 * hierarchy at all, which is what made these pages read as a wall.
 *
 * Body copy is left aligned and measured. Only the hero title and the
 * register block, which are one or two lines, stay centred.
 */

/* The hero image leads the page, full column width, not a 600px stamp in the
   middle of it. */
.imageContainer {
    display: block;
    margin: .2em 0 .4em;
}

.eventImage {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid var(--cb-line);
    box-shadow: none;
    display: block;
}

.description {
    font-size: 1.05rem;
    line-height: 1.65;
    text-align: left;
    max-width: 68ch;
    color: var(--cb-ink-2);
}

/* The facts you scan for: when, where, how much. A panel, left aligned, so the
   values line up under each other instead of drifting around a centre line. */
.infoBox,
.contactBox,
.registerBox {
    background: var(--cb-card);
    border: 1px solid var(--cb-line);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    box-sizing: border-box;
    width: 100%;
}

.infoBox {
    padding: 1.25em 1.4em;
    text-align: left;
    gap: .35em;
}

.infoBox h2 {
    margin: 0 0 .2em;
    font-size: 1.05rem;
}

.contactBox {
    padding: 1.4em;
    gap: .8em;
}

.registerBox {
    padding: 1.5em;
    gap: 1em;
    align-items: center;
}

.registerTitle {
    font-family: var(--cb-display);
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
    text-align: center;
    text-wrap: balance;
}

.registerDesc {
    font-size: .98rem;
    line-height: 1.6;
    margin: 0;
    max-width: 60ch;
    text-align: center;
    color: var(--cb-ink-2);
}

.registerButtons {
    display: flex;
    flex-wrap: wrap;
    gap: .6em;
    justify-content: center;
}

.closing {
    font-size: 1rem;
    font-style: italic;
    margin-top: .5em;
    text-align: left;
    color: var(--cb-ink-3);
}

.time {
    font-size: 1rem;
    margin: 0;
    color: var(--cb-ink-2);
}

/* The one-line strapline under an event title. Was 1.2em italic at 90% opacity
   and centred on 12 pages. */
.subtitle {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.5;
    color: var(--cb-ink-2);
    text-align: left;
    max-width: 60ch;
}

/* When, how long, where. Declared on up to 16 pages each as 1.3em bold centred,
   which shouted three facts at the reader in the same weight as the title. */
.date,
.duration,
.location {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    color: var(--cb-ink);
}

.instructions {
    margin: 0;
    text-align: left;
    font-size: .98rem;
    line-height: 1.6;
    color: var(--cb-ink-2);
}

/* Was 1.5em bold in a tinted pill that scaled 5% on hover, so the raw number
   was the loudest thing in the contact panel. A number is reference, not a
   headline. */
.phoneLink {
    font-family: var(--cb-mono, ui-monospace, Consolas, monospace);
    font-variant-numeric: tabular-nums;
    font-size: 1rem;
    font-weight: 600;
    color: var(--cb-ink);
    text-decoration: none;
    padding: .45em .8em;
    background: var(--cb-beige);
    border: 1px solid var(--cb-line);
    border-radius: 10px;
    transition: background .15s ease, border-color .15s ease;
}
.phoneLink:hover {
    background: var(--cb-wash);
    border-color: var(--cb-ink-3);
}

.contactButtons {
    display: flex;
    gap: .6em;
    flex-wrap: wrap;
    align-items: center;
}

/* "First time here?" reassurance. Was rgba(33,150,243,.1) with a blue border,
   a Material blue from the old theme that appears nowhere else on this site. */
.firstTimeBox {
    background: var(--cb-orange-wash);
    border: 1px solid var(--cb-orange);
    padding: 1.2em 1.3em;
    border-radius: 14px;
    box-sizing: border-box;
    width: 100%;
}
.firstTimeBox h3 {
    margin: 0 0 .35em;
    font-size: 1.05rem;
}
.firstTimeBox p {
    margin: 0;
    font-size: .95rem;
    line-height: 1.6;
    color: var(--cb-ink-2);
}

/* ==========================================================================
   CONTENT PAGES (swiss tips, places, similar projects)

   The tip card, its category heading and the warning callout were redeclared on
   every tips page, along with three button names (btn-primary, btn-info,
   btn-success) that resolved to one identical rule, and two card modifiers
   (.accent, .highlight) that both just set the same border colour. The colour
   coding looked meaningful and was not.
   ========================================================================== */
.tip-card,
.tip-box {
    background: var(--cb-card);
    border: 1px solid var(--cb-line);
    border-radius: 14px;
    padding: 1.25rem;
    margin-bottom: 0.6rem;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.tip-card:hover,
.tip-box:hover {
    border-color: var(--cb-orange);
    box-shadow: 0 8px 22px -14px rgba(43, 29, 16, .35);
}

/* Groups the cards under a topic. Was 1.8rem bold with a 2px underline, which
   competed with the page's own h2. */
.category-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 1.6rem 0 .7rem;
    color: var(--cb-ink);
    padding-bottom: 0;
    border-bottom: none;
}

/* Semantic amber from the tokens, not a raw #ffc107 from the old theme. */
.warning-box {
    background: #FDF3E0;
    border: 1px solid var(--cb-warn);
    border-left-width: 3px;
    padding: .9rem 1.1rem;
    border-radius: 12px;
    font-size: .93rem;
    line-height: 1.6;
    display: flex;
    align-items: center;
    gap: .6rem;
    color: var(--cb-ink-2);
}

/* One compact link style for the in-card actions. */
.btn-compact {
    padding: .55em .9em;
    font-size: .87rem;
    width: auto;
    max-width: fit-content;
}
.btn-icon {
    width: 1.1rem;
    height: 1.1rem;
    flex: none;
}



@media (max-width: 800px) {
    section {
        /* Keeps the panel inset from the screen edge on phones; the desktop
           rule centres it in the 1000px column instead. */
        padding: 1.25rem !important;
        margin: 0 .6rem 1rem !important;
        border-radius: 16px;
    }
    .topbarWrapper {
        align-items: start;
        text-align: left;
    }
    h1 {
        font-size: 1.8em !important;
        text-align: left;
        margin: 0 !important;
    }
    /* The margin and font-size overrides here existed only to undo the old
       `margin: 0 1rem` / `font-size: 1.4rem` base, which is gone. Left
       alignment on narrow screens is the part still worth forcing. */
    p {
        text-align: left;
    }
    form {
        margin: 0 !important;
    }
}
/* Inline "I'm going" loading state (src/lib/services/inlineJoin.js): the label
   stays in place (invisible) so the button keeps its size while it spins. */
.cbJoinLoading {
    position: relative;
    pointer-events: none;
}
.cbJoinLoading .cbJoinLabel {
    visibility: hidden;
}
.cbJoinLoading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 18px;
    margin: -9px 0 0 -9px;
    border-radius: 50%;
    border: 2px solid rgba(43, 29, 16, 0.25);
    border-top-color: var(--cb-ink);
    animation: cbJoinSpin 0.8s linear infinite;
}
@keyframes cbJoinSpin {
    to {
        transform: rotate(360deg);
    }
}

/* ONE shared error look: soft rose box, no icon (WCAG 1.4.1: never colour alone, so
   inline links are underlined and an error can not pass for a link). */
.cb-error {
    background: var(--cb-error-bg);
    border: 1px solid var(--cb-error-line);
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 13px;
    line-height: 1.4;
    color: var(--cb-error-ink);
    font-weight: 400;
    text-align: left;
    margin: 0.5rem 0;
}

/* Shared ask-card text field (ProfileAskCard, HobbyDetailAskCard): one size for input AND placeholder. Mirrors the app's ask-card field. */
.cb-ask-input { display: block; width: 100%; box-sizing: border-box; margin-top: 12px; padding: 12px; border: 1px solid var(--cb-line); border-radius: 12px; background: var(--cb-panel); font: inherit; font-size: 14px; line-height: 1.45; color: var(--cb-ink); }
.cb-ask-input::placeholder { font-size: 14px; }
.cb-ask-input:focus { outline: 0; border-color: var(--cb-orange); }

/* Shared chips (reuse plan step 4, Samir 2026-11-20: "reuse, one place to change"). Each class is
   one look that was copied pixel-identical into several files; guard tests/sharedChipClassGuard.test.mjs.
   Chips that differ even slightly keep their own CSS until Samir picks a look
   (docs/research/website-reuse-inventory-2026-11-21.md A8). */
/* Region landing pages (Langenthal, Interlaken-Spiez, Lyss-Münsingen, Solothurn-Burgdorf, Thun). */
.cb-city-chips { margin: 0; }
.cb-city-chip { display: inline-block; border: 1px solid var(--cb-line); border-radius: 999px; padding: 0.2rem 0.7rem; font-size: 0.8rem; font-weight: 600; margin-right: 0.3rem; background: var(--cb-card); }
/* Biel/Bienne landing page, DE + FR. */
.cb-city-chip-biel { display: inline-block; border: 1px solid var(--cb-line); background: var(--cb-card); border-radius: 999px; padding: 0.2rem 0.65rem; font-size: 0.8rem; font-weight: 600; margin: 0 0.3rem 0.5rem 0; }
/* Freiburg/Fribourg landing page, DE + FR. */
.cb-city-chip-fribourg { display: inline-block; border: 1px solid var(--cb-line); background: var(--cb-card); border-radius: 999px; padding: 0.2rem 0.7rem; font-size: 0.82rem; font-weight: 600; margin: 0 0.4rem 0.4rem 0; }
/* Profile chips: notification chips (NotificationSettings) and learned chips (/account/figured-out). */
.cb-profile-chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--cb-line); border-radius: 999px; background: var(--cb-card); padding: 7px 12px; font: inherit; font-size: 13px; color: var(--cb-ink); max-width: 100%; text-align: left; }
