/* WHSF Forum: forum bar + three-column community layout (profile, feed, side panels) in WHSF wine. */
.fm { background: #f7f2f4; padding-bottom: 60px; }
.fm .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------------------------------------------------------------- forum bar */
.fm-bar { position: sticky; top: 0; z-index: 30; background: #fff; border-bottom: 1px solid var(--wx-line); }
.fm-bar-inner { width: min(1240px, calc(100% - 32px)); margin: 0 auto; display: flex; align-items: center; gap: 18px; min-height: 64px; }
.fm-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--wx-wine); font-weight: 700; font-size: 1.15rem; text-decoration: none; white-space: nowrap; }
.fm-brand span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--wx-wine-deep), var(--wx-wine-bright)); color: var(--wx-gold); font-size: .95rem; }
.fm-search { flex: 1; max-width: 420px; display: flex; align-items: center; gap: 8px; padding: 0 14px; border-radius: 12px; background: var(--wx-soft); color: var(--wx-muted); }
.fm-search svg { width: 18px; height: 18px; flex: none; }
.fm-search input { width: 100%; min-height: 42px; border: 0; background: transparent; font: inherit; color: var(--wx-ink); outline: none; }
.fm-tabs { display: flex; gap: 4px; margin-left: auto; }
.fm-tabs a { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 76px; padding: 8px 10px; border-radius: 12px; color: #5f5466; font-size: 12.5px; font-weight: 600; text-decoration: none; }
.fm-tabs a svg { width: 22px; height: 22px; }
.fm-tabs a:hover, .fm-tabs a[aria-current="page"] { background: var(--wx-soft); color: var(--wx-wine); }
.fm-me-dot { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; overflow: hidden; background: var(--wx-wine); color: var(--wx-gold); font-size: 11px; font-weight: 700; }
.fm-me-dot img { width: 100%; height: 100%; object-fit: cover; }

/* ---------------------------------------------------------------- grid + cards */
.fm-grid { width: min(1240px, calc(100% - 32px)); margin: 24px auto 0; display: grid; grid-template-columns: 290px minmax(0, 1fr) 320px; gap: 22px; align-items: start; }
.fm-card { position: relative; overflow: hidden; margin-bottom: 18px; padding: 20px 22px; border: 1px solid var(--wx-line); border-radius: 22px; background: #fff; }
.fm-card h2 { margin: 6px 0 10px; font-size: 1.2rem !important; letter-spacing: -.02em; }
.fm-muted { color: var(--wx-muted); font-size: 14px; }
.fm-badge { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; background: #fff3d1; color: #7a5300; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.fm-link { display: inline-block; margin-top: 10px; color: var(--wx-wine); font-weight: 600; font-size: 14px; text-decoration: none; }
.fm-link:hover { text-decoration: underline; }
.fm-text-btn { border: 0; background: none; padding: 6px 2px; color: var(--wx-wine); font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; text-decoration: none; }
.fm-text-btn:hover { text-decoration: underline; }
.fm-small { font-size: 13px; }
.fm-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 12px; }
.fm-status { min-height: 1.2em; margin: 10px 0 0; color: var(--wx-wine-deep); font-size: 14px; }

/* ---------------------------------------------------------------- left: profile card */
.fm-profile, .fm-guest { padding: 0 0 18px; text-align: center; }
.fm-cover { height: 80px; background: linear-gradient(120deg, var(--wx-wine-deep), var(--wx-wine-bright) 60%, #f0c535); }
.fm-avatar { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 50%; overflow: hidden; background: var(--wx-wine); color: var(--wx-gold); font-weight: 700; }
.fm-avatar img { width: 100%; height: 100%; object-fit: cover; }
.fm-avatar-lg { width: 88px; height: 88px; margin: -44px auto 10px; border: 4px solid #fff; font-size: 1.6rem; box-shadow: 0 8px 20px rgb(90 21 48 / 18%); }
.fm-avatar-logo { background: #fff; }
.fm-name { margin: 0 16px 4px !important; font-size: 1.15rem !important; letter-spacing: -.02em !important; }
.fm-headline { margin: 0 16px; color: var(--wx-text); font-size: 14px; }
.fm-location, .fm-note { margin: 6px 16px 0; color: var(--wx-muted); font-size: 13px; }
.fm-stats { display: grid; grid-template-columns: 1fr 1fr; margin-top: 16px; border-top: 1px solid var(--wx-line); border-bottom: 1px solid var(--wx-line); }
.fm-stats a { display: grid; padding: 12px 6px; color: var(--wx-muted); font-size: 13px; text-decoration: none; }
.fm-stats a + a { border-left: 1px solid var(--wx-line); }
.fm-stats strong { color: var(--wx-wine); font-size: 1.25rem; }
.fm-strength { padding: 14px 20px 0; text-align: left; }
.fm-strength p { display: flex; justify-content: space-between; margin: 0 0 8px; font-size: 14px; font-weight: 600; }
.fm-strength strong { color: var(--wx-wine); }
.fm-meter { height: 8px; border-radius: 99px; background: var(--wx-soft); overflow: hidden; }
.fm-meter i { display: block; height: 100%; width: 20%; border-radius: inherit; background: linear-gradient(90deg, var(--wx-wine), var(--wx-gold-soft)); }
.fm-strength a { display: inline-block; margin-top: 10px; color: var(--wx-wine); font-size: 14px; font-weight: 600; text-decoration: none; }
.fm-promo { border: 2px solid transparent; background: linear-gradient(#fff, #fff) padding-box, linear-gradient(135deg, var(--wx-wine), var(--wx-gold-soft)) border-box; }
.fm-promo img { width: 100%; aspect-ratio: 4 / 3; margin: 12px 0 8px; border-radius: 14px; object-fit: cover; }
.fm-promo p { margin: 0 0 12px; color: var(--wx-text); font-size: 14px; }
.fm-promo .hp-btn { width: 100%; justify-content: center; }

/* ---------------------------------------------------------------- centre */
.fm-form { display: grid; gap: 12px; margin-top: 8px; }
.fm-form label { display: grid; gap: 6px; color: var(--wx-ink); font-size: 14px; font-weight: 600; }
.fm-form small { color: var(--wx-muted); font-weight: 500; }
.fm-form input:not([type="checkbox"]):not([type="file"]), .fm-form textarea,
.fm-composer textarea, .fm-location-input input {
  width: 100%; min-height: 46px; padding: 11px 14px; border: 1px solid var(--wx-line-strong); border-radius: 12px;
  background: #fff; color: var(--wx-ink); font: inherit; font-weight: 400;
}
.fm-form input:focus, .fm-form textarea:focus, .fm-composer textarea:focus { outline: 3px solid rgb(123 33 66 / 14%); border-color: var(--wx-wine); }
.fm-check { display: flex !important; gap: 10px !important; align-items: flex-start; font-weight: 500 !important; }
.fm-check input { margin-top: 3px; accent-color: var(--wx-wine); }
.fm-composer-row { display: flex; gap: 12px; align-items: center; }
.fm-grow { flex: 1; }
.fm-composer textarea { min-height: 52px; border-radius: 26px; resize: vertical; }
.fm-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; }
.fm-tool { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border: 0; border-radius: 10px; background: none; color: #3d2b35; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none; }
.fm-tool svg { width: 20px; height: 20px; color: var(--wx-wine); }
.fm-tool:hover, .fm-tool[aria-pressed="true"] { background: var(--wx-soft); }
.fm-post-btn { margin-left: auto; min-height: 40px !important; padding: 8px 22px !important; }
.fm-attach { margin-top: 12px; }
.fm-attach img { max-height: 260px; border-radius: 14px; }
.fm-location-input { display: grid; gap: 6px; margin-top: 12px; font-size: 14px; font-weight: 600; }
.fm-reco-label { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--wx-wine); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.fm-reco-label svg { width: 16px; height: 16px; }
.fm-filter { display: flex; gap: 8px; margin: 4px 0 14px; }
.fm-filter button { padding: 9px 18px; border: 1px solid var(--wx-line-strong); border-radius: 999px; background: #fff; color: #4b3a43; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.fm-filter button[aria-selected="true"] { border-color: var(--wx-wine); background: var(--wx-wine); color: #fff; }
.fm-post { padding: 18px 20px; }
.fm-post.is-celebrate { border: 2px solid transparent; background: linear-gradient(#fff, #fff) padding-box, linear-gradient(135deg, var(--wx-wine), var(--wx-gold-soft)) border-box; }
.fm-post.is-hidden { opacity: .6; }
.fm-post-head { display: flex; gap: 12px; align-items: flex-start; }
.fm-post-head strong { display: block; color: var(--wx-ink); }
.fm-post-head span { display: block; color: var(--wx-muted); font-size: 13px; }
.fm-post-menu { margin-left: auto; }
.fm-post-body { margin: 12px 0 0; color: #2d2128; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.fm-post-img { display: block; width: 100%; max-height: 520px; margin-top: 12px; border-radius: 14px; object-fit: cover; }
.fm-post-tag { display: inline-block; margin-top: 10px; padding: 3px 10px; border-radius: 999px; background: var(--wx-soft); color: var(--wx-wine-deep); font-size: 12px; font-weight: 600; }
.fm-post-actions { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 12px; padding-top: 8px; border-top: 1px solid var(--wx-line); }
.fm-report { display: grid; gap: 8px; margin-top: 10px; }
.fm-report textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--wx-line-strong); border-radius: 10px; font: inherit; }
.fm-more { display: block; margin: 0 auto; padding: 10px 22px; border: 1px solid var(--wx-line-strong); border-radius: 999px; background: #fff; color: var(--wx-wine); font: inherit; font-weight: 600; cursor: pointer; }
.fm-empty { padding: 26px; text-align: center; color: var(--wx-muted); }
.fm-people { display: grid; gap: 10px; margin-top: 12px; }
.fm-person { display: flex; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--wx-line); border-radius: 16px; }
.fm-person div { flex: 1; min-width: 0; }
.fm-person strong { display: block; }
.fm-person span { display: block; color: var(--wx-muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fm-follow { padding: 7px 14px; border: 1px solid var(--wx-wine); border-radius: 999px; background: #fff; color: var(--wx-wine); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.fm-follow.is-following { background: var(--wx-wine); color: #fff; }
.fm-me-avatar { display: flex; align-items: center; gap: 14px; }
.fm-me-avatar .fm-avatar-lg { margin: 0; }
.fm-rules ol { padding-left: 20px; line-height: 1.65; }
.fm-rules li { margin-bottom: 8px; }

/* ---------------------------------------------------------------- right */
.fm-side-title { display: flex; align-items: center; gap: 10px; }
.fm-side-title svg { width: 22px; height: 22px; color: var(--wx-wine); }
.fm-opps { display: grid; gap: 12px; margin: 8px 0 0; padding: 0; list-style: none; }
.fm-opps li { display: grid; grid-template-columns: 40px 1fr; gap: 10px; align-items: center; }
.fm-opps li > span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #fff3d1; color: #7a5300; }
.fm-opps li > span svg { width: 20px; height: 20px; }
.fm-opps a { color: var(--wx-ink); font-weight: 600; font-size: 14px; line-height: 1.3; text-decoration: none; }
.fm-opps a:hover { color: var(--wx-wine); }
.fm-opps small { display: block; color: var(--wx-muted); font-size: 12.5px; }
.fm-safety { background: linear-gradient(135deg, #fff2f6, #fff7d4); }
.fm-safety p { margin: 0 0 14px; color: var(--wx-text); font-size: 14px; }
.fm-safety .hp-btn { width: 100%; justify-content: center; }
.fm-foot-links { color: var(--wx-muted); font-size: 13px; text-align: center; }
.fm-foot-links a { color: var(--wx-muted); }

@media (max-width: 1100px) {
  .fm-grid { grid-template-columns: 260px minmax(0, 1fr); }
  .fm-right { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
  .fm-foot-links { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .fm-bar-inner { flex-wrap: wrap; gap: 10px; padding: 10px 0; }
  .fm-search { order: 3; max-width: none; flex-basis: 100%; }
  .fm-tabs { width: 100%; margin: 0; justify-content: space-between; }
  .fm-tabs a { min-width: 0; flex: 1; padding: 6px 2px; font-size: 11px; }
  .fm-grid { grid-template-columns: 1fr; }
  .fm-right { grid-template-columns: 1fr; }
  .fm-left .fm-promo { display: none; }
  .fm-post-btn { width: 100%; margin-left: 0; justify-content: center; }
}

/* age verification */
.fm-form select { width: 100%; min-height: 46px; padding: 11px 14px; border: 1px solid var(--wx-line-strong); border-radius: 12px; background: #fff; color: var(--wx-ink); font: inherit; font-weight: 400; }
.fm-form input[type="file"] { font-weight: 400; font-size: 14px; max-width: 100%; }
.fm-steps { display: grid; gap: 8px; margin: 12px 0 4px; padding-left: 20px; color: var(--wx-text); font-size: 15px; line-height: 1.55; }
.fm-code { display: inline-block; padding: 2px 10px; border-radius: 8px; background: #fff3d1; color: var(--wx-ink); font-family: ui-monospace, Consolas, monospace; font-size: 17px; letter-spacing: .06em; }
.fm-alert { margin: 8px 0 12px; padding: 12px 14px; border-radius: 12px; background: #fdecef; color: var(--wx-wine-deep); font-size: 14px; }
.fm-idcheck { display: grid; gap: 12px; padding: 16px 0; border-top: 1px solid var(--wx-line); }
.fm-idcheck h3 { margin: 0; font-size: 17px; }
.fm-idcheck-imgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.fm-idcheck-imgs figure { margin: 0; }
.fm-idcheck-imgs a { display: block; }
.fm-idcheck-imgs img { width: 100%; height: 220px; object-fit: contain; border-radius: 12px; background: #f4eef1; }
.fm-idcheck-imgs figcaption { margin-top: 4px; color: var(--wx-muted); font-size: 12px; }
