/* ==================================================================
   vl-v2.css — Vanlifer site theme v2 (2026-10-31, same system as FreeCouchSurf)
   Loaded last, after nicekin.css and vl-modern.css.

   Rules of the system:
   - One typeface: Plus Jakarta Sans (same as the app). No display face.
   - One column: every band (header, category row, section heads,
     composer, grids, footer) sits on the same --wrap width with the
     same --gutter, so left and right edges line up down the page.
   - Pine green for actions, ink for text and the active state, dusk
     amber only for small warm moments (invite, hosting badges).
   - Members without a photo get a coloured initial tile, not a grey
     silhouette.
   ================================================================== */

:root {
  --font:         'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: var(--font);

  --ink:     #14211B;
  --ink-2:   #3D4B44;
  --ink-3:   #6B7872;
  --forest:  #0F6B4B;
  --forest-dark: #0B553B;
  --moss:    #E6F1EA;
  --sage:    #F4F6F3;
  --line:    #E6EAE6;
  --dusk:    #F2A93B;
  --dusk-soft: #FFF3DD;

  --primary: var(--forest);
  --primary-hover: var(--forest-dark);
  --primary-light: var(--moss);
  --bg: #F4F6F3;
  --border: var(--line);
  --text-primary: var(--ink);
  --text-secondary: #55635C;
  --text-muted: #7D8A83;

  --wrap:   1280px;
  --gutter: 24px;
  --shadow-1: 0 1px 2px rgba(20,33,27,.05), 0 4px 14px rgba(20,33,27,.05);
  --shadow-2: 0 2px 6px rgba(20,33,27,.06), 0 16px 40px rgba(20,33,27,.10);
}
@media (max-width: 800px) { :root { --gutter: 16px; } }

html { background: #fff; }
body {
  font-family: var(--font) !important;
  color: var(--ink);
  font-size: 15px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  background: #fff;
}
h1, h2, h3, h4, h5, h6, .fx-display, .fx-h1, .gp-h1 {
  font-family: var(--font) !important;
  letter-spacing: -0.02em; font-weight: 800;
}
input, button, select, textarea { font-family: inherit; }

/* Shared column. Older wrappers are pinned to it too, so every band lines up. */
.fx-wrap, .gp-wrap, .fx-bar, .category-nav-inner {
  width: 100%; max-width: var(--wrap);
  margin-left: auto; margin-right: auto;
  padding-left: var(--gutter); padding-right: var(--gutter);
}
.hc-grid { max-width: var(--wrap); padding-left: var(--gutter); padding-right: var(--gutter); }
.gp-grid.hc-grid { padding-left: 0; padding-right: 0; }

/* ── Telegram strip ─────────────────────────────────────────────── */
.fx-topbar { background: var(--ink); font-size: .8rem; padding: 7px 44px; }
.fx-topbar i { color: #7CC7EE; }

/* ── Header ─────────────────────────────────────────────────────── */
.navbar {
  padding: 0 !important; min-height: 68px;
  background: rgba(255,255,255,.92) !important;
  -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 var(--line) !important;
}
.fx-bar { display: flex; align-items: center; gap: 12px; min-height: 68px; }
.navbar-brand {
  font-family: var(--font) !important; font-weight: 800 !important; font-size: 1.3rem !important;
  letter-spacing: -0.03em !important; color: var(--ink) !important;
  gap: 10px !important; margin: 0 !important; padding: 0 !important; flex-shrink: 0;
}
.navbar-brand .brand-icon {
  width: 36px !important; height: 36px !important; border-radius: 11px !important;
  background: var(--forest) !important; font-size: 1rem !important;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,.12);
}
.navbar-search { margin: 0 auto !important; max-width: 520px; flex: 1 1 auto; }
.navbar-search .search-wrap {
  height: 44px; padding: 0 16px; border-radius: 999px !important;
  background: var(--sage) !important; border: 1px solid transparent !important;
  transition: background .15s, box-shadow .15s, border-color .15s;
}
.navbar-search .search-wrap:hover { border-color: var(--line) !important; background: #fff !important; }
.navbar-search .search-wrap:focus-within { background: #fff !important; border-color: var(--forest) !important; box-shadow: 0 0 0 4px rgba(15,107,75,.14) !important; }
.navbar-search .search-icon, .navbar-search .search-icon-btn { color: var(--ink-3); background: none; border: 0; padding: 0; margin-right: 10px; }
.navbar-search input { font-size: .92rem !important; font-weight: 500 !important; color: var(--ink) !important; padding: 0 !important; height: 42px; }
.navbar-search input::placeholder { color: var(--ink-3); }

.nav-icon-btn {
  width: 42px !important; height: 42px !important; border-radius: 50% !important;
  color: var(--ink-2) !important; font-size: 1.08rem !important;
}
.nav-icon-btn:hover { background: var(--sage) !important; color: var(--ink) !important; }
.notification-count {
  top: 3px !important; right: 2px !important; min-width: 18px; height: 18px;
  font-size: .66rem !important; font-weight: 800 !important;
  background: #E5484D !important; border: 2px solid #fff !important;
}
.nav-profile-thumb { width: 36px !important; height: 36px !important; border: 0 !important; box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--line); }
#profile-dd-wrap > button { padding: 3px 6px 3px 3px !important; border-radius: 999px !important; }
#profile-dd-wrap > button:hover { background: var(--sage) !important; }

/* Invite: the one warm button in the header */
.invite-pill-btn {
  display: inline-flex !important; align-items: center; gap: 7px;
  height: 38px; padding: 0 15px !important; border-radius: 999px !important;
  background: var(--dusk-soft) !important; color: #8A5300 !important;
  border: 1px solid #F6D9A6 !important; box-shadow: none !important;
  font-weight: 700 !important; font-size: .86rem !important; text-shadow: none !important;
  animation: none !important; flex-shrink: 0;
}
.invite-pill-btn:hover { background: #FFE9C2 !important; color: #6E4200 !important; }
.invite-pill-btn i { font-size: .82rem; }
.navbar .btn-sm { height: 40px; display: inline-flex; align-items: center; padding: 0 18px !important; border-radius: 999px !important; font-weight: 700 !important; font-size: .9rem !important; }

/* Dropdowns */
.dropdown-menu { border: 1px solid var(--line) !important; border-radius: 16px !important; box-shadow: var(--shadow-2) !important; padding: 6px !important; }
.dropdown-item { border-radius: 10px !important; font-weight: 600 !important; font-size: .88rem !important; color: var(--ink) !important; padding: 9px 12px !important; gap: 10px; }
.dropdown-item i { color: var(--ink-3) !important; width: 16px; text-align: center; }
.dropdown-item:hover, .dropdown-item:focus { background: var(--sage) !important; color: var(--ink) !important; }

/* ── Category row ───────────────────────────────────────────────── */
.category-nav {
  top: 68px !important; padding: 0 !important; overflow: visible !important;
  background: rgba(255,255,255,.92) !important;
  -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line) !important; white-space: nowrap;
}
.category-nav-inner {
  display: flex !important; align-items: center; gap: 2px !important;
  height: 52px; overflow-x: auto; scrollbar-width: none;
  /* first pill's text lines up with the logo / headings */
  padding-left: calc(var(--gutter) - 12px) !important;
}
.category-nav-inner::-webkit-scrollbar { display: none; }
.cat-pill {
  height: 36px; padding: 0 12px !important; gap: 8px !important;
  background: transparent !important; border: 0 !important; border-radius: 999px !important;
  color: var(--ink-2) !important; font-weight: 600 !important; font-size: .88rem !important;
}
.cat-pill i { color: var(--ink-3) !important; font-size: .86rem; width: 16px; text-align: center; }
.cat-pill:hover { background: var(--sage) !important; color: var(--ink) !important; }
.cat-pill.active { background: var(--ink) !important; color: #fff !important; }
.cat-pill.active i { color: #fff !important; }
.cat-more { flex-shrink: 0; }
.cat-more-menu { min-width: 220px; }

/* ── Buttons ────────────────────────────────────────────────────── */
.btn { font-weight: 700; }
.btn-primary { background: var(--forest) !important; border-color: var(--forest) !important; border-radius: 999px !important; }
.btn-primary:hover { background: var(--forest-dark) !important; border-color: var(--forest-dark) !important; }

/* ── Homepage: hero (logged out) ─────────────────────────────────── */
.fx-hero { padding: 56px 0 44px; }
.fx-h1 { font-size: clamp(2.3rem, 4.6vw, 3.7rem) !important; line-height: 1.04 !important; letter-spacing: -0.035em !important; }
.fx-h1 span { color: var(--forest); }
.fx-lede { color: var(--ink-2); }
.fx-search { border-radius: 999px; border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.fx-search button { border-radius: 999px; font-weight: 700; }
.fx-chip { border-radius: 999px; font-weight: 600; }
.fx-tile, .fx-tile-more { border-radius: 18px; }
.fx-trust li:first-child { padding-left: 0; }

/* ── Homepage: host section head + filters ───────────────────────── */
.fx-hosts { padding: 44px 0 8px; }
.fx-hosts.is-member { padding-top: 32px; }
.fx-sec-head { align-items: flex-end; margin-bottom: 18px; }
.fx-sec-head h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem) !important; letter-spacing: -0.03em; }
.fx-link { font-weight: 700; text-decoration: none !important; color: var(--forest); display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--moss); font-size: .9rem; }
.fx-link:hover { background: #D7EBDF; color: var(--forest-dark); }

.fx-filters {
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  margin: 0 calc(var(--gutter) * -1); padding: 2px var(--gutter) 6px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--gutter), #000 calc(100% - 48px), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 var(--gutter), #000 calc(100% - 48px), transparent 100%);
}
.fx-filters::-webkit-scrollbar { display: none; }
.fx-filter {
  flex-shrink: 0; height: 40px; display: inline-flex; align-items: center; gap: 8px;
  padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff;
  color: var(--ink-2); font-weight: 600; font-size: .9rem; text-decoration: none; white-space: nowrap;
  transition: border-color .15s, background .15s, color .15s;
}
.fx-filter:hover { border-color: var(--ink-3); color: var(--ink); }
.fx-filter.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.fx-filter i { font-size: .82rem; }

/* ── Homepage: "What's happening" composer (members) ─────────────── */
.fx-composer-wrap { margin-top: 18px; margin-bottom: 6px; }
.status-bar-compact {
  display: flex; align-items: center; gap: 12px;
  margin: 0 !important; padding: 10px 10px 10px 12px !important;
  background: #fff; border: 1px solid var(--line) !important; border-radius: 18px !important;
  box-shadow: var(--shadow-1);
}
.status-bar-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--moss); }
.status-bar-link {
  height: 32px; padding: 0 12px; border-radius: 999px; background: var(--moss);
  color: var(--forest) !important; font-weight: 700 !important; font-size: .84rem !important; gap: 6px !important;
}
.status-bar-link:hover { background: #D7EBDF; }
.status-bar-input-fake {
  height: 44px; border: 0 !important; background: var(--sage) !important; border-radius: 999px !important;
  padding: 0 18px !important; color: var(--ink-3) !important; font-size: .92rem !important; text-align: left;
}
.status-bar-input-fake:hover { background: #ECEFEB !important; }
.status-bar-input-fake i { display: none; }
.status-bar-post {
  height: 44px; padding: 0 22px; border: 0; border-radius: 999px; flex-shrink: 0;
  background: var(--forest); color: #fff; font-weight: 700; font-size: .92rem;
}
.status-bar-post:hover { background: var(--forest-dark); }

/* ── Host grid + cards ──────────────────────────────────────────── */
.fx-home-grid { background: #fff !important; padding-top: 22px; }
.hc-grid { gap: 32px 22px; padding-top: 6px; padding-bottom: 28px; }
.hc-media { border-radius: 18px; aspect-ratio: 4 / 5; background: var(--sage); }
.hc-media img { transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.hc:hover .hc-media img { transform: scale(1.04); }
.hc-status {
  top: 12px; left: 12px; padding: 5px 10px 5px 8px; border-radius: 999px;
  background: rgba(255,255,255,.94); font-size: .74rem; font-weight: 700; color: var(--ink);
  box-shadow: 0 2px 8px rgba(20,33,27,.12); z-index: 2;
}
.hc-body { padding: 14px 2px 0; }
.hc-name { font-size: 1.02rem; font-weight: 800; letter-spacing: -0.01em; gap: 6px; margin-bottom: 2px; }
.hc-place { font-size: .88rem; color: var(--ink-3); margin-bottom: 8px; }
.hc-about { font-size: .88rem; color: var(--ink-2); line-height: 1.5; }
.hc-meta { margin-top: 8px; font-size: .82rem; }
.hc-actions { gap: 8px; margin-top: 12px; }
.hc-btn {
  flex: 1; height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink);
  font-weight: 700; font-size: .86rem; text-decoration: none; padding: 0 12px;
}
.hc-btn:hover { border-color: var(--ink); color: var(--ink); background: #fff; }
.hc-btn.is-primary { background: var(--forest); border-color: var(--forest); color: #fff; }
.hc-btn.is-primary:hover { background: var(--forest-dark); border-color: var(--forest-dark); color: #fff; }

/* No photo: a big coloured initial instead of a grey silhouette */
.hc-media.is-empty { display: block; }
.hc-initial {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: clamp(3.4rem, 7vw, 5.6rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1;
  color: rgba(255,255,255,.96); text-shadow: 0 2px 18px rgba(0,0,0,.08);
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.hc-tone-0 { background: linear-gradient(150deg, #34A577 0%, #0F6B4B 100%); }
.hc-tone-1 { background: linear-gradient(150deg, #F8C875 0%, #E38B2B 100%); }
.hc-tone-2 { background: linear-gradient(150deg, #86C6EA 0%, #3A82BE 100%); }
.hc-tone-3 { background: linear-gradient(150deg, #F3A7B8 0%, #D2587A 100%); }
.hc-tone-4 { background: linear-gradient(150deg, #BCA8EF 0%, #775AC6 100%); }
.hc-tone-5 { background: linear-gradient(150deg, #A6D8BA 0%, #4B9B76 100%); }
.hc:hover .hc-initial { transform: scale(1.06); }

.hc-join { border-radius: 18px !important; }
.fx-loading { background: #fff !important; }

/* ── Other homepage sections ────────────────────────────────────── */
.fx-ways { background: var(--sage); }
.fx-faq { background: var(--sage); }

/* ── Floating "Get the app" button ──────────────────────────────── */
#app-download-fab { right: 20px !important; bottom: 20px !important; border-radius: 999px !important; }
@media (max-width: 576px) { #app-download-fab { right: 14px !important; bottom: 14px !important; } }

/* ── Focus + motion ─────────────────────────────────────────────── */
:focus-visible { outline: 3px solid rgba(15,107,75,.45); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .hc-media img, .hc-initial { transition: none !important; }
  .hc:hover .hc-media img, .hc:hover .hc-initial { transform: none !important; }
}

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 991px) { .navbar-search { max-width: none; } }
@media (max-width: 576px) {
  .navbar, .fx-bar { min-height: 58px; }
  .fx-bar { gap: 6px; }
  .navbar-brand { font-size: 1.12rem !important; gap: 8px !important; }
  .navbar-brand .brand-icon { width: 32px !important; height: 32px !important; font-size: .9rem !important; }
  .invite-pill-btn { height: 34px; padding: 0 11px !important; font-size: .8rem !important; }
  .nav-icon-btn { width: 38px !important; height: 38px !important; }
  .category-nav { top: 58px !important; }
  .category-nav-inner { height: 48px; }
  .cat-pill { font-size: .84rem !important; padding: 0 10px !important; height: 34px; }
  .navbar .btn-sm { height: 36px; padding: 0 14px !important; font-size: .84rem !important; }
  .status-bar-compact { gap: 8px; padding: 8px !important; border-radius: 16px !important; }
  .status-bar-avatar { width: 34px; height: 34px; }
  .status-bar-link span { display: none; }
  .status-bar-link { width: 34px; padding: 0; justify-content: center; }
  .status-bar-post { padding: 0 16px; height: 40px; }
  .status-bar-input-fake { height: 40px; padding: 0 14px !important; font-size: .86rem !important; }
  .hc-grid { gap: 24px 12px; }
  .hc-initial { font-size: 3.4rem; }
}

/* ── Fixes after first render ───────────────────────────────────── */
.invite-pill-btn span, .invite-pill-btn i { color: #8A5300 !important; -webkit-text-fill-color: #8A5300 !important; background: none !important; }
/* Cards: actions sit on one baseline across a row */
.hc { display: flex; flex-direction: column; }
.hc-body { flex: 1; display: flex; flex-direction: column; }
.hc-actions { margin-top: auto !important; padding-top: 12px; }
.fx-sec-head > div { min-width: 0; }
@media (max-width: 576px) {
  .invite-pill-btn span { display: none; }
  .invite-pill-btn { width: 36px; height: 36px; padding: 0 !important; justify-content: center; }
  /* phones have Profile in the bottom tab bar */
  body:has(.mobile-bottom-nav) #profile-dd-wrap { display: none !important; }
  .fx-sec-head { flex-direction: row !important; align-items: center !important; justify-content: space-between; gap: 12px; }
  .fx-sec-head p { display: none; }
  .fx-sec-head h2 { font-size: 1.45rem !important; }
  .fx-link { padding: 6px 12px; font-size: .84rem; white-space: nowrap; }
}

/* ── Footer: same column as the page, no white gap above it ──────── */
.site-footer { margin-top: 0 !important; padding: 56px 0 28px !important; background: var(--ink) !important; }
.site-footer > .container { max-width: var(--wrap) !important; padding-left: var(--gutter) !important; padding-right: var(--gutter) !important; }
.site-footer h5, .site-footer h6, .site-footer .footer-heading { color: #fff; font-weight: 700; letter-spacing: 0; }
.footer-links a { color: rgba(255,255,255,.68) !important; font-weight: 500; }
.footer-links a:hover { color: #fff !important; }
.fx-faq + *, .fx-faq { margin-bottom: 0; }

/* ── Homepage FAQ: heading left, questions right, on the page column ── */
.fx-faq { padding: 72px 0 80px; }
.fx-faq .fx-wrap { max-width: var(--wrap) !important; }
@media (min-width: 900px) {
  .fx-faq .fx-wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 64px; align-items: start; }
  .fx-faq .fx-wrap > h2 { grid-column: 1; grid-row: 1 / span 30; position: sticky; top: 140px; max-width: 12em; }
  .fx-faq .fx-wrap > :not(h2) { grid-column: 2; }
}
.fx-faq summary h3 { font-size: 1.02rem !important; font-weight: 700 !important; letter-spacing: -0.005em !important; }
/* The 80px body padding (room for the phone tab bar) showed as a white
   strip under the footer. Let the dark footer fill that space instead. */
.site-footer { margin-bottom: -80px !important; padding-bottom: calc(28px + 80px) !important; }
@media (max-width: 960px) {
  /* hero photo strip: snap to the page gutter, not the screen edge */
  .fx-collage { margin: 0 calc(var(--gutter) * -1) !important; padding: 0 var(--gutter) !important; scroll-padding-left: var(--gutter); }
}

/* ==================================================================
   FORUM (forum.php) — 2026-10-31
   Same column, type and colours as the rest of the site. Category
   colours reuse the six initial-tile tones.
   ================================================================== */
.fm { background: #fff; }
.fm-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.fm-h1 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); letter-spacing: -0.03em; margin: 0; display: flex; align-items: center; gap: 14px; }
.fm-lede { color: var(--ink-2); font-size: 1.02rem; margin: 8px 0 0; max-width: 46em; }

/* Category colour tones (soft background + strong icon) */
.fm-tone-0 { --tone-bg: #E3F2EA; --tone-fg: #0F6B4B; }
.fm-tone-1 { --tone-bg: #FFF0D6; --tone-fg: #B86A10; }
.fm-tone-2 { --tone-bg: #E2F0FA; --tone-fg: #2A6FA8; }
.fm-tone-3 { --tone-bg: #FCE6EC; --tone-fg: #B83F62; }
.fm-tone-4 { --tone-bg: #EEE8FB; --tone-fg: #6447B3; }
.fm-tone-5 { --tone-bg: #E6F4EC; --tone-fg: #3B8763; }
.fm-ic { width: 32px; height: 32px; border-radius: 10px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; background: var(--tone-bg, var(--sage)); color: var(--tone-fg, var(--ink-2)); font-size: .9rem; }
.fm-ic.is-lg { width: 46px; height: 46px; border-radius: 14px; font-size: 1.15rem; }

/* Buttons */
.fm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-weight: 700; font-size: .92rem; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s; }
.fm-btn:hover { border-color: var(--ink-3); color: var(--ink); }
.fm-btn.is-primary { background: var(--forest); border-color: var(--forest); color: #fff; }
.fm-btn.is-primary:hover { background: var(--forest-dark); border-color: var(--forest-dark); color: #fff; }
.fm-btn.is-ghost { background: transparent; }
.fm-btn.is-lg { height: 50px; padding: 0 26px; font-size: 1rem; }
.fm-btn.is-block { width: 100%; }

/* Home hero */
.fm-hero { background: linear-gradient(180deg, #F4F8F3 0%, #fff 100%); border-bottom: 1px solid var(--line); }
.fm-hero-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: end; padding-top: 48px; padding-bottom: 40px; }
.fm-hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); line-height: 1.05; letter-spacing: -0.035em; margin: 0 0 12px; max-width: 14em; }
.fm-hero p { font-size: 1.08rem; color: var(--ink-2); max-width: 36em; margin: 0 0 22px; }
.fm-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.fm-hero-stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(110px, auto)); gap: 18px 36px; }
.fm-hero-stats b { display: block; font-size: 1.9rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; color: var(--ink); }
.fm-hero-stats span { font-size: .86rem; color: var(--ink-3); }

.fm-search { display: flex; align-items: center; gap: 10px; max-width: 560px; height: 56px; padding: 6px 6px 6px 20px; background: #fff; border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-1); }
.fm-search:focus-within { border-color: var(--forest); box-shadow: 0 0 0 4px rgba(15,107,75,.14); }
.fm-search i { color: var(--ink-3); }
.fm-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 1rem; color: var(--ink); }
.fm-search button { height: 44px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 700; }
.fm-search.is-inline { margin-top: 18px; }

/* Category cards */
.fm-cats-band { padding: 32px 0 8px; }
.fm-cats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1200px) { .fm-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 800px) { .fm-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fm-cat { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 18px; border: 1px solid var(--line); background: #fff; text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s, transform .15s; }
.fm-cat:hover { border-color: transparent; box-shadow: var(--shadow-2); color: var(--ink); transform: translateY(-1px); }
.fm-cat-txt { display: flex; flex-direction: column; min-width: 0; }
.fm-cat-txt b { font-size: 1rem; font-weight: 800; letter-spacing: -0.01em; }
.fm-cat-txt small { font-size: .86rem; color: var(--ink-2); line-height: 1.45; margin-top: 2px; }
.fm-cat-txt em { font-style: normal; font-size: .78rem; color: var(--ink-3); margin-top: 6px; font-weight: 600; }

/* Sub-pages header */
.fm-subhero { border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #F4F8F3 0%, #fff 100%); padding: 22px 0 26px; }
.fm-subhero-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-top: 12px; }
.fm-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .86rem; color: var(--ink-3); }
.fm-crumbs a { color: var(--ink-2); font-weight: 600; text-decoration: none; }
.fm-crumbs a:hover { color: var(--forest); }
.fm-crumbs i { font-size: .6rem; opacity: .6; }
.fm-crosslink { margin: 14px 0 0; font-size: .92rem; color: var(--ink-2); }
.fm-crosslink i { color: var(--forest); margin-right: 4px; }
.fm-crosslink a { color: var(--forest); font-weight: 700; }

/* Main layout: list + sidebar */
.fm-main { padding: 28px 0 64px; }
.fm-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.fm-listcol { min-width: 0; }
.fm-list-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.fm-list-head h2 { font-size: 1.25rem; margin: 0; letter-spacing: -0.02em; }
.fm-tabs { display: flex; gap: 2px; background: var(--sage); border-radius: 999px; padding: 4px; }
.fm-tabs a { height: 32px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 999px; font-size: .86rem; font-weight: 600; color: var(--ink-2); text-decoration: none; }
.fm-tabs a:hover { color: var(--ink); }
.fm-tabs a.active { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(20,33,27,.12); }

/* Topic rows */
.fm-list { list-style: none; margin: 0; padding: 0; }
.fm-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 16px 4px; border-bottom: 1px solid var(--line); }
.fm-row:first-child { border-top: 1px solid var(--line); }
.fm-row.is-pinned { background: linear-gradient(90deg, #FFFAF0, rgba(255,250,240,0)); }
.fm-row-av { display: block; }
.fm-av { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; display: block; }
img.fm-av { background: var(--moss); }
.fm-av-ini { display: inline-flex !important; align-items: center; justify-content: center; color: #fff; font-weight: 800; border-radius: 50%; }
.fm-row-main { min-width: 0; }
.fm-row-title { display: block; font-size: 1.04rem; font-weight: 700; color: var(--ink); line-height: 1.35; text-decoration: none; letter-spacing: -0.01em; }
.fm-row-title:hover { color: var(--forest); }
.fm-row-title:visited { color: #47534D; }
.fm-pin { color: var(--dusk); font-size: .8rem; margin-right: 4px; transform: rotate(35deg); }
.fm-solved { color: #16A34A; font-size: .85rem; margin-right: 4px; }
.fm-row-ex { margin: 4px 0 8px; color: var(--ink-3); font-size: .9rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fm-row-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: .82rem; }
.fm-tag { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--tone-bg, var(--sage)); color: var(--tone-fg, var(--ink-2)); font-weight: 700; font-size: .78rem; text-decoration: none; white-space: nowrap; }
.fm-tag i { font-size: .72rem; }
.fm-tag:hover { filter: brightness(.97); color: var(--tone-fg, var(--ink)); }
.fm-tag.is-quiet { background: var(--sage); color: var(--ink-3); }
.fm-tag.is-warn { background: #FDE8E8; color: #B42318; }
.fm-by { color: var(--ink-3); }
.fm-by a { color: var(--ink-2); font-weight: 600; }
.fm-ver { color: var(--forest); font-size: .75rem; }
.fm-row-stats { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; padding-top: 2px; min-width: 56px; }
.fm-count { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 999px; background: var(--moss); color: var(--forest); font-weight: 800; font-size: .84rem; }
.fm-count.is-zero { background: #FFF3DD; color: #8A5300; }
.fm-when { font-size: .8rem; color: var(--ink-3); font-weight: 600; }

.fm-pager { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 22px 0 6px; font-size: .9rem; color: var(--ink-3); }
.fm-pager a { height: 40px; display: inline-flex; align-items: center; gap: 8px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); font-weight: 700; text-decoration: none; }
.fm-pager a:hover { border-color: var(--ink-3); }

.fm-emptylist, .fm-noreplies { text-align: center; padding: 48px 20px; border: 1px dashed #D5DED7; border-radius: 20px; color: var(--ink-2); }
.fm-emptylist > i, .fm-noreplies > i { font-size: 2rem; color: var(--forest); opacity: .6; }
.fm-emptylist p, .fm-noreplies p { margin: 10px auto 16px; max-width: 30em; }
.fm-noreplies { padding: 28px 20px; margin-top: 8px; }
.fm-noreplies p { margin-bottom: 0; }

/* Sidebar */
.fm-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 140px; }
.fm-card { border: 1px solid var(--line); border-radius: 20px; padding: 18px; background: #fff; }
.fm-side-h { font-size: .95rem; font-weight: 800; margin: 0 0 10px; letter-spacing: -0.01em; }
.fm-catlist { list-style: none; margin: 0 -8px; padding: 0; }
.fm-catlist a { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 12px; color: var(--ink); text-decoration: none; font-size: .9rem; font-weight: 600; }
.fm-catlist a:hover { background: var(--sage); color: var(--ink); }
.fm-catlist a.active { background: var(--sage); }
.fm-catlist-name { flex: 1; min-width: 0; }
.fm-catlist-n { font-size: .78rem; color: var(--ink-3); font-weight: 700; }
.fm-rules ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.fm-rules li { display: flex; gap: 10px; font-size: .86rem; color: var(--ink-2); line-height: 1.45; }
.fm-rules i { color: var(--forest); margin-top: 3px; width: 14px; text-align: center; flex-shrink: 0; }
.fm-side-link { display: flex; align-items: center; gap: 10px; padding: 8px 0; color: var(--ink); font-weight: 600; font-size: .9rem; text-decoration: none; }
.fm-side-link i { color: var(--forest); width: 16px; text-align: center; }
.fm-side-link:hover { color: var(--forest); }
.fm-related { list-style: none; margin: 0; padding: 0; }
.fm-related li { padding: 9px 0; border-top: 1px solid var(--line); }
.fm-related li:first-child { border-top: 0; padding-top: 0; }
.fm-related a { display: block; color: var(--ink); font-weight: 600; font-size: .9rem; line-height: 1.4; text-decoration: none; }
.fm-related a:hover { color: var(--forest); }
.fm-related span { font-size: .78rem; color: var(--ink-3); }
.fm-author-top { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); margin-bottom: 14px; }
.fm-author-top .fm-av { width: 56px; height: 56px; }
.fm-author-top b { display: block; font-size: 1rem; }
.fm-author-top small { color: var(--ink-3); font-size: .84rem; }

/* Topic page */
.fm-topic-wrap { padding-top: 22px; padding-bottom: 64px; }
.fm-topic-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; margin-top: 14px; }
.fm-thread { min-width: 0; }
.fm-topic-head h1 { font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.15; letter-spacing: -0.03em; margin: 0 0 12px; }
.fm-topic-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.fm-post { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 14px; padding: 20px 0; border-top: 1px solid var(--line); scroll-margin-top: 140px; }
.fm-post.is-op { border-top: 0; padding-top: 4px; }
.fm-post .fm-av { width: 40px; height: 40px; }
.fm-post.is-op .fm-av { width: 48px; height: 48px; }
.fm-post.is-helpful { background: linear-gradient(90deg, #EFF8F2, rgba(239,248,242,0)); border-radius: 0 0 0 0; box-shadow: inset 3px 0 0 #16A34A; padding-left: 12px; margin-left: -12px; }
.fm-post.is-target { animation: fmTarget 2.4s ease-out; }
@keyframes fmTarget { 0%, 30% { background: #FFF6E3; } 100% { background: transparent; } }
.fm-post.is-removed { display: block; color: var(--ink-3); font-style: italic; font-size: .9rem; padding: 14px 0 14px 62px; }
.fm-post-main { min-width: 0; }
.fm-post-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-bottom: 6px; font-size: .88rem; }
.fm-post-name { font-weight: 800; color: var(--ink); text-decoration: none; }
.fm-post-name:hover { color: var(--forest); }
.fm-post-from { color: var(--ink-3); }
.fm-post-from::before { content: ""; display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: currentColor; margin: 0 8px 3px 0; }
.fm-post-time { margin-left: auto; color: var(--ink-3); font-size: .82rem; text-decoration: none; }
.fm-badge { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 6px; background: var(--sage); color: var(--ink-2); font-size: .72rem; font-weight: 700; }
.fm-badge.is-helpful { background: #DCF5E4; color: #157A3B; }
.fm-body { font-size: 1rem; line-height: 1.7; color: var(--ink); overflow-wrap: anywhere; }
.fm-post.is-op .fm-body { font-size: 1.05rem; }
.fm-body p { margin: 0 0 .8em; }
.fm-body p:last-child { margin-bottom: 0; }
.fm-body ul { margin: 0 0 .8em; padding-left: 1.2em; }
.fm-body li { margin: .2em 0; }
.fm-body blockquote { margin: 0 0 .8em; padding: 8px 14px; border-left: 3px solid #CFE3D6; background: var(--sage); border-radius: 0 12px 12px 0; color: var(--ink-2); font-size: .94em; }
.fm-body a { color: var(--forest); text-decoration: underline; text-underline-offset: 2px; }
.fm-body .fm-mention { text-decoration: none; font-weight: 700; background: var(--moss); padding: 0 4px; border-radius: 5px; }
.fm-edited { font-size: .78rem; color: var(--ink-3); margin: 6px 0 0; }
.fm-solved-box { display: block; margin-top: 16px; padding: 14px 16px; border-radius: 16px; background: #EFF8F2; border: 1px solid #CDEBD7; text-decoration: none; color: var(--ink); }
.fm-solved-box span { font-weight: 800; font-size: .88rem; color: #157A3B; }
.fm-solved-box p { margin: 6px 0 0; font-size: .92rem; color: var(--ink-2); }

.fm-post-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 10px 0 0 -10px; }
.fm-inline { display: inline; margin: 0; }
.fm-act { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 10px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-3); font-size: .86rem; font-weight: 600; text-decoration: none; cursor: pointer; list-style: none; }
.fm-act::-webkit-details-marker { display: none; }
.fm-act:hover { background: var(--sage); color: var(--ink); }
.fm-act.is-static { cursor: default; }
.fm-act.is-static:hover { background: transparent; color: var(--ink-3); }
.fm-like.is-on { color: #D2386C; }
.fm-like.is-on:hover { color: #D2386C; background: #FCE6EC; }
.fm-like.pop i { animation: fmPop .45s cubic-bezier(.2,.9,.3,1.4); }
@keyframes fmPop { 0% { transform: scale(1); } 40% { transform: scale(1.45); } 100% { transform: scale(1); } }
.fm-follow.is-on, .fm-helpful.is-on { color: var(--forest); }
.fm-more { position: relative; display: inline-block; }
.fm-more-menu { position: absolute; z-index: 20; top: 38px; left: 0; min-width: 190px; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-2); }
.fm-more-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border: 0; border-radius: 10px; background: none; font-size: .88rem; font-weight: 600; color: var(--ink); text-align: left; text-decoration: none; cursor: pointer; }
.fm-more-item i { width: 16px; text-align: center; color: var(--ink-3); }
.fm-more-item:hover { background: var(--sage); color: var(--ink); }
.fm-more-item.is-danger, .fm-more-item.is-danger i { color: #B42318; }
.fm-more .fm-inline { display: block; }

.fm-edit, .fm-move { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.fm-move { flex-direction: row; flex-wrap: wrap; align-items: center; padding: 10px 12px; border-radius: 14px; background: #FFF8EB; font-size: .86rem; font-weight: 700; color: #8A5300; }
.fm-move .fm-input { height: 38px; width: auto; flex: 1; min-width: 140px; }
.fm-edit-row { display: flex; justify-content: flex-end; gap: 8px; }
.fm-input { width: 100%; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; font-size: 1rem; color: var(--ink); background: #fff; line-height: 1.55; }
.fm-input:focus { outline: 0; border-color: var(--forest); box-shadow: 0 0 0 4px rgba(15,107,75,.14); }
.fm-input.is-lg { font-size: 1.1rem; font-weight: 600; height: 56px; }
textarea.fm-input { resize: vertical; min-height: 110px; }

.fm-replies-head { display: flex; align-items: baseline; justify-content: space-between; margin: 28px 0 0; padding-bottom: 6px; }
.fm-replies-head h2 { font-size: 1.15rem; margin: 0; }
.fm-replies-head span { font-size: .84rem; color: var(--ink-3); }

.fm-reply { margin-top: 24px; scroll-margin-top: 140px; }
.fm-reply-form { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow-1); }
.fm-reply-who .fm-av { width: 40px; height: 40px; }
.fm-reply-box textarea { border-radius: 14px; background: var(--sage); border-color: transparent; }
.fm-reply-box textarea:focus { background: #fff; }
.fm-reply-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
.fm-hint { font-size: .78rem; color: var(--ink-3); }
.fm-closed { padding: 16px; border-radius: 16px; background: var(--sage); color: var(--ink-2); font-weight: 600; }
.fm-join { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 24px; border-radius: 22px; background: linear-gradient(135deg, #0F6B4B 0%, #0A4A35 100%); color: #fff; }
.fm-join h2 { color: #fff; font-size: 1.3rem; margin: 0 0 4px; }
.fm-join p { margin: 0; color: rgba(255,255,255,.85); }
.fm-join-btns { display: flex; gap: 10px; }
.fm-join .fm-btn { border-color: rgba(255,255,255,.4); background: transparent; color: #fff; }
.fm-join .fm-btn.is-primary { background: #fff; color: var(--ink); border-color: #fff; }

.fm-flash { padding: 12px 16px; border-radius: 14px; margin: 14px 0; font-weight: 600; font-size: .92rem; }
.fm-flash.is-ok { background: #E7F6EC; color: #157A3B; }
.fm-flash.is-error { background: #FDECEC; color: #B42318; }
.fm-toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0; z-index: 2000; background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: .9rem; transition: opacity .2s, transform .2s; pointer-events: none; }
.fm-toast.show { opacity: 1; transform: translate(-50%, 0); }
.fm-dialog { border: 0; border-radius: 22px; padding: 24px; max-width: 420px; width: calc(100% - 32px); box-shadow: var(--shadow-2); }
.fm-dialog::backdrop { background: rgba(20,33,27,.45); }
.fm-dialog h2 { font-size: 1.2rem; margin: 0 0 6px; }
.fm-dialog p { color: var(--ink-2); font-size: .92rem; margin: 0 0 14px; }
.fm-radio { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; font-weight: 600; font-size: .92rem; cursor: pointer; }
.fm-radio:hover { background: var(--sage); }
.fm-radio input { accent-color: var(--forest); width: 18px; height: 18px; }
.fm-dialog .fm-edit-row { margin-top: 14px; }
.fm-empty-page { text-align: center; padding: 80px 24px; }
.fm-empty-page p { color: var(--ink-2); }

/* New topic */
.fm-new-wrap { max-width: 860px !important; padding-top: 22px; padding-bottom: 64px; }
.fm-new-wrap .fm-h1 { margin-top: 12px; }
.fm-new { margin-top: 24px; display: flex; flex-direction: column; gap: 22px; }
.fm-field { border: 0; padding: 0; margin: 0; min-width: 0; }
.fm-field > label, .fm-field > legend { display: block; font-weight: 800; font-size: .95rem; margin-bottom: 8px; float: none; width: auto; }
.fm-opt { font-weight: 500; color: var(--ink-3); font-size: .84rem; margin-left: 4px; }
.fm-help { font-size: .82rem; color: var(--ink-3); margin: 6px 0 0; }
.fm-catpick { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.fm-catpick-item { position: relative; cursor: pointer; }
.fm-catpick-item input { position: absolute; opacity: 0; }
.fm-catpick-item > span { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; border: 1.5px solid var(--line); font-size: .9rem; transition: border-color .15s, background .15s; }
.fm-catpick-item b { font-weight: 700; }
.fm-catpick-item:hover > span { border-color: var(--ink-3); }
.fm-catpick-item input:checked + span { border-color: var(--forest); background: #F1F8F4; box-shadow: inset 0 0 0 1px var(--forest); }
.fm-catpick-item input:focus-visible + span { outline: 3px solid rgba(15,107,75,.4); }
.fm-new-bar { display: flex; justify-content: flex-end; gap: 10px; padding-top: 4px; }

/* Homepage + place-page forum block */
.fx-forum { padding: 44px 0; background: var(--sage); }
.fx-forum-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.fx-forum-head h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin: 0; letter-spacing: -0.03em; }
.fx-forum-head p { margin: 6px 0 0; color: var(--ink-2); }
.fx-forum-btns { display: flex; gap: 8px; flex-shrink: 0; }
.fx-forum-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.fx-forum-card { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 18px; background: #fff; text-decoration: none; color: var(--ink); box-shadow: var(--shadow-1); transition: box-shadow .15s, transform .15s; min-width: 0; }
.fx-forum-card:hover { box-shadow: var(--shadow-2); transform: translateY(-1px); color: var(--ink); }
.fx-forum-card b { font-size: 1rem; line-height: 1.35; letter-spacing: -0.01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fx-forum-card p { margin: 0; font-size: .88rem; color: var(--ink-3); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fx-forum-foot { display: flex; align-items: center; gap: 8px; margin-top: auto; font-size: .8rem; color: var(--ink-3); }
.fx-forum-foot .fm-av { width: 24px; height: 24px; }
.fx-forum-foot .fm-count { height: 24px; font-size: .78rem; margin-left: auto; }
.fx-forum.is-white { background: #fff; }

/* Header: the Forum menu item stands out */
.cat-pill.is-forum { color: var(--ink) !important; font-weight: 700 !important; }
.cat-pill.is-forum i { color: var(--forest) !important; }
.cat-pill.is-forum.active, .cat-pill.is-forum.active i { color: #fff !important; }
.cat-pill .cat-new { display: inline-flex; align-items: center; height: 18px; padding: 0 6px; border-radius: 999px; background: var(--dusk); color: #fff; font-size: .66rem; font-weight: 800; letter-spacing: .02em; }
.cat-pill.active .cat-new { background: #fff; color: var(--ink); }

@media (max-width: 1000px) {
  .fm-layout, .fm-topic-grid { grid-template-columns: minmax(0, 1fr); }
  .fm-side { position: static; }
  .fm-hero-in { grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
  .fm-hero-stats { grid-template-columns: repeat(4, auto); gap: 8px 28px; }
  .fx-forum-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 576px) {
  .fm-hero-in { padding-top: 28px; padding-bottom: 28px; }
  .fm-hero-stats { grid-template-columns: repeat(2, auto); }
  .fm-hero-stats b { font-size: 1.5rem; }
  .fm-search { height: 52px; }
  .fm-search button { padding: 0 14px; }
  .fm-subhero-row { flex-direction: column; align-items: flex-start; }
  .fm-list-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .fm-tabs { width: 100%; justify-content: space-between; }
  .fm-tabs a { padding: 0 10px; }
  .fm-row { grid-template-columns: 36px minmax(0, 1fr); gap: 12px; }
  .fm-row .fm-av { width: 36px; height: 36px; }
  .fm-row-stats { grid-column: 2; flex-direction: row; align-items: center; justify-content: flex-start; gap: 10px; }
  .fm-post { grid-template-columns: 36px minmax(0, 1fr); gap: 10px; }
  .fm-post .fm-av, .fm-post.is-op .fm-av { width: 36px; height: 36px; }
  .fm-post-time { margin-left: 0; }
  .fm-reply-form { grid-template-columns: minmax(0, 1fr); padding: 14px; }
  .fm-reply-who { display: none; }
  .fm-hint { display: none; }
  .fm-join { padding: 20px; }
  .fm-new-bar .fm-btn { flex: 1; }
  .fx-forum-head { flex-direction: column; align-items: flex-start; }
  .fm-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .fm-cat { flex-direction: row; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; }
  .fm-cat .fm-ic.is-lg { width: 34px; height: 34px; border-radius: 10px; font-size: .9rem; }
  .fm-cat-txt b { font-size: .86rem; line-height: 1.25; }
  .fm-cat-txt small, .fm-cat-txt em { display: none; }
  .fm-cats-band { padding-top: 20px; }
  .fm-hero-stats { gap: 8px 24px; }
}

/* Forum: manage categories (admin) */
.fm-manage { margin-top: 12px; height: 38px; font-size: .86rem; }
.fm-sec-h { font-size: 1.15rem; margin: 30px 0 10px; }
.fm-catadd { margin-top: 22px; }
.fm-catform { display: flex; flex-direction: column; gap: 16px; }
.fm-catform-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 12px; }
.fm-catform .fm-input { height: 46px; }
.fm-tones, .fm-icons { display: flex; flex-wrap: wrap; gap: 8px; }
.fm-tone-pick, .fm-icon-pick { position: relative; cursor: pointer; }
.fm-tone-pick input, .fm-icon-pick input { position: absolute; opacity: 0; }
.fm-tone-pick span { display: block; width: 34px; height: 34px; border-radius: 50%; background: var(--tone-bg); box-shadow: inset 0 0 0 10px var(--tone-bg), inset 0 0 0 40px var(--tone-fg); }
.fm-tone-pick input:checked + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.fm-icon-pick span { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; border: 1px solid var(--line); color: var(--ink-2); }
.fm-icon-pick:hover span { border-color: var(--ink-3); }
.fm-icon-pick input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.fm-tone-pick input:focus-visible + span, .fm-icon-pick input:focus-visible + span { outline: 3px solid rgba(15,107,75,.45); outline-offset: 2px; }
.fm-catadmin { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.fm-catadmin-row { border-bottom: 1px solid var(--line); padding: 14px 0; }
.fm-catadmin-row.is-hidden .fm-catadmin-main > .fm-ic, .fm-catadmin-row.is-hidden .fm-catadmin-txt { opacity: .55; }
.fm-catadmin-main { display: flex; align-items: center; gap: 14px; }
.fm-catadmin-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.fm-catadmin-txt b { font-size: 1rem; display: flex; align-items: center; gap: 8px; }
.fm-catadmin-txt small { color: var(--ink-2); font-size: .86rem; }
.fm-catadmin-txt em { font-style: normal; font-size: .78rem; color: var(--ink-3); }
.fm-catadmin-txt em a { color: var(--ink-3); }
.fm-catadmin-btns { display: flex; align-items: center; gap: 2px; flex-shrink: 0; }
.fm-catadmin-btns .fm-act.is-static { width: 34px; padding: 0; }
.fm-catadmin-edit, .fm-catadmin-del { margin-top: 14px; padding: 16px; border-radius: 16px; background: var(--sage); }
.fm-catadmin-del .fm-move { margin: 0; background: transparent; padding: 0; color: var(--ink); }
.fm-danger, .fm-danger i { color: #B42318 !important; }
.fm-btn-danger { background: #B42318; border-color: #B42318; color: #fff; }
.fm-btn-danger:hover { background: #8F1C13; border-color: #8F1C13; color: #fff; }
@media (max-width: 700px) {
  .fm-catform-row { grid-template-columns: minmax(0, 1fr); }
  .fm-catadmin-main { flex-wrap: wrap; }
  .fm-catadmin-btns { width: 100%; justify-content: flex-end; flex-wrap: wrap; }
  .fm-catadmin-btns .fm-act span:not(.fm-sr) { display: none; }
}

/* Forum: "New category" tile + inline form on /forum/new (admin) */
.fm-catpick-add { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; border: 1.5px dashed #BFCDC4; color: var(--forest); font-size: .9rem; text-decoration: none; }
.fm-catpick-add b { font-weight: 700; }
.fm-catpick-add .fm-ic { background: var(--moss); color: var(--forest); }
.fm-catpick-add:hover, .fm-catpick-add.is-open { border-color: var(--forest); background: #F1F8F4; color: var(--forest-dark); }
.fm-catpick-item.is-new > span { animation: fmNewCat .9s ease-out; }
@keyframes fmNewCat { 0% { background: #FFF1D6; } 100% { background: #F1F8F4; } }
.fm-newcat { margin-top: 12px; padding: 18px; border-radius: 18px; background: var(--sage); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.fm-newcat-head b { display: block; font-size: 1rem; }
.fm-newcat-head span { font-size: .84rem; color: var(--ink-3); }
.fm-newcat .fm-field > label { font-size: .86rem; }
.fm-newcat .fm-input { height: 44px; background: #fff; }
.fm-newcat .fm-icon-pick span { width: 36px; height: 36px; border-radius: 10px; background: #fff; font-size: .86rem; }
.fm-newcat .fm-icon-pick input:checked + span { background: var(--ink); }
.fm-newcat-err { margin: 0; padding: 10px 14px; border-radius: 12px; background: #FDECEC; color: #B42318; font-weight: 600; font-size: .88rem; }
.fm-newcat .fm-edit-row { align-items: center; }
.fm-newcat-manage { margin-right: auto; font-size: .86rem; font-weight: 600; color: var(--ink-2); }
@media (max-width: 576px) { .fm-newcat-manage { display: none; } }

/* ==================================================================
   VANLIFER ADDITIONS (2026-10-31)
   Pieces freecouchsurf.com doesn't have: spots, profile strip, forum
   photos / quotes / unread counts, 16 forum categories in groups.
   ================================================================== */
html { background: #fff; }

/* Profile reminder strip (logged-in, incomplete profile) */
.vl-strip { position: relative; padding: 8px 44px; text-align: center; font-size: .84rem; font-weight: 600; background: var(--dusk-soft); color: #6E4200; border-bottom: 1px solid #F6D9A6; }
.vl-strip i { color: #B86A10; margin-right: 6px; }
.vl-strip a { color: var(--forest); font-weight: 700; margin-left: 6px; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.vl-strip button { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border: 0; background: none; color: #8A5300; font-size: 1.1rem; line-height: 1; border-radius: 6px; cursor: pointer; }

/* Hero collage: spot tiles get a pin in the caption */
.fx-tile.is-spot .fx-cap i { font-size: .72rem; margin-right: 3px; color: #FFE2A8; }

/* Spots strips on the homepage */
.fx-spots { padding: 44px 0 12px; background: #fff; }
.fx-sec-head.is-next { margin-top: 30px; }
.fx-spot-row {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 1fr); gap: 16px;
  overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory;
  margin: 0 calc(var(--gutter) * -1); padding: 2px var(--gutter) 8px; scroll-padding-left: var(--gutter);
}
.fx-spot-row::-webkit-scrollbar { display: none; }
.fx-spot-row > * { scroll-snap-align: start; }
@media (min-width: 1100px) { .fx-spot-row { grid-auto-columns: calc((100% - 3 * 16px) / 4); } }
.fx-spot-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

/* Spot cards (all pages): same language as the member cards */
.vl-spot-card { border: 0 !important; border-radius: 18px !important; background: #fff !important; box-shadow: none !important; transform: none !important; display: flex !important; flex-direction: column; }
.vl-spot-card img, .vl-spot-card .vl-spot-noimg { width: 100%; aspect-ratio: 4 / 3; height: auto !important; border-radius: 18px; object-fit: cover; background: var(--sage); transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.vl-spot-card { overflow: hidden; }
.vl-spot-card:hover img { transform: scale(1.03); }
.vl-spot-noimg { display: flex !important; align-items: center; justify-content: center; font-size: 2.6rem !important; background: linear-gradient(150deg, #E6F1EA, #CFE6D8) !important; }
.vl-spot-body { padding: 12px 2px 0 !important; }
.vl-spot-cat { font-size: .72rem !important; font-weight: 700 !important; color: var(--forest) !important; letter-spacing: .02em !important; }
.vl-spot-title { font-weight: 800 !important; font-size: 1rem !important; color: var(--ink); letter-spacing: -0.01em; }
.vl-spot-where { color: var(--ink-3) !important; font-size: .86rem !important; }
.vl-spot-excerpt { color: var(--ink-2) !important; font-size: .86rem !important; line-height: 1.5; }

/* Member cards: spot count tag */
.hc-tag i { font-size: .76rem; }
.hc-meta { gap: 6px 14px; }

/* ── Forum: extras ──────────────────────────────────────────── */
.fm-cats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1200px) { .fm-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 800px)  { .fm-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fm-group-h { font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin: 24px 0 10px; }
.fm-group-h:first-child { margin-top: 0; }
.fm-cat-last { display: block; font-style: normal; font-size: .8rem; color: var(--ink-3); margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fm-cat-last i { font-size: .7rem; margin-right: 4px; }
.fm-locked { color: var(--ink-3); font-size: .8rem; margin-right: 4px; }
.fm-unread { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; margin-left: 4px; border-radius: 999px; background: #E5484D; color: #fff; font-size: .7rem; font-weight: 800; vertical-align: 2px; }
.fm-thumb { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; }
.fm-photos { display: grid; gap: 6px; margin: 12px 0 4px; border-radius: 16px; overflow: hidden; max-width: 640px; }
.fm-photos.n2, .fm-photos.n4 { grid-template-columns: 1fr 1fr; }
.fm-photos.n3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.fm-photos.n3 a:first-child { grid-row: span 2; }
.fm-photos img { width: 100%; height: 100%; max-height: 420px; min-height: 120px; object-fit: cover; display: block; }
.fm-quote { display: block; margin: 0 0 10px; padding: 8px 14px; border-left: 3px solid #CFE3D6; background: var(--sage); border-radius: 0 12px 12px 0; color: var(--ink-2); font-size: .92rem; text-decoration: none; }
.fm-quote b { color: var(--ink); }
.fm-quote:hover { color: var(--ink-2); background: #ECF1EC; }
.fm-quote-chip { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 8px; padding: 8px 12px; border-radius: 12px; background: var(--moss); color: var(--forest); font-size: .86rem; font-weight: 600; }
.fm-quote-chip button { border: 0; background: none; color: var(--ink-3); font-size: 1rem; line-height: 1; cursor: pointer; }
.fm-file { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 999px; background: var(--sage); color: var(--ink-2); font-weight: 600; font-size: .86rem; cursor: pointer; }
.fm-file:hover { background: #ECEFEB; color: var(--ink); }
.fm-field > label.fm-file { display: inline-flex; margin: 0; font-weight: 600; font-size: .86rem; }
.fm-file input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.fm-file-n { font-size: .8rem; color: var(--ink-3); }
.fm-reply-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fm-author-top:last-child { margin-bottom: 0; }
.fm-badge.is-team { background: var(--ink); color: #fff; }
.fm-post-van { color: var(--ink-3); font-size: .82rem; }
.fm-post-van i { font-size: .74rem; margin-right: 3px; }
.fm-app { background: linear-gradient(150deg, #0A4A35 0%, #0F6B4B 100%); border: 0; color: #fff; }
.fm-app .fm-side-h { color: #fff; }
.fm-app p { color: rgba(255,255,255,.85); font-size: .88rem; margin: 0 0 12px; }
.fm-app .fm-btn { background: #fff; border-color: #fff; color: var(--ink); }
.fm-mod { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 18px; padding: 8px 12px; border-radius: 14px; background: #FFF8EB; color: #8A5300; font-size: .86rem; font-weight: 700; }
.fm-mod .fm-act { color: #8A5300; height: 30px; }
.fm-mod select { height: 32px; border: 1px solid #F0D9B0; border-radius: 999px; padding: 0 10px; font-size: .84rem; background: #fff; color: var(--ink); }
.fm-catpick-group { grid-column: 1 / -1; font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin: 8px 0 0; }
.fm-catpick-group:first-child { margin-top: 0; }
.fm-cat-hint { margin: 10px 0 0; padding: 10px 14px; border-radius: 12px; background: var(--sage); font-size: .88rem; color: var(--ink-2); }
.fm-cat-hint:empty { display: none; }
@media (max-width: 576px) {
  .fm-thumb { display: none; }
  .fm-group-h { margin: 16px 0 8px; }
  .fm-cat-last { display: none; }
  .fm-last { display: none; }
}
