/* fcs-forum-topic.css — one forum topic (/forum/t/…), redesign 2026-11-29.
   Loaded on the topic page only, after the site stylesheets. Everything is under .fm-t2 so the forum lists keep their look.
   What changed: a soft page background with white cards; the first post is one card, the replies are one card with thin
   lines between them (they used to be loose boxes of different widths); a numbers bar with a Reply button under the
   title; name and badges on one line, place and time on the next; roomier text; a side column that follows the page;
   on phones the text uses the full width and a Reply button stays in reach. */

.fm.fm-t2 { background: var(--paper, #F7F6F1); }
.fm-t2 .fm-topic-wrap { padding-top: 18px; padding-bottom: 72px; }
.fm-t2 .fm-topic-grid { grid-template-columns: minmax(0, 1fr) 312px; gap: 28px; margin-top: 12px; }
.fm-t2 .fm-crumbs a { font-weight: 700; }

/* ── Title block ── */
.fm-t2 .fm-topic-head { background: #fff; border: 1px solid var(--line, #E4E7E1); border-radius: 18px 18px 0 0; border-bottom: 0; padding: 24px 26px 0; }
.fm-t2 .fm-topic-head h1 { font-size: clamp(1.5rem, 2.6vw, 2.05rem); line-height: 1.18; letter-spacing: -0.025em; margin: 0 0 12px; text-wrap: balance; }
.fm-t2 .fm-topic-tags { margin-bottom: 16px; gap: 6px; }
.fm-t2 .fm-tag { height: 28px; padding: 0 11px; font-size: .8rem; }
.fm-t2 .fm-tag.is-solved { background: #DCF5E4; color: #157A3B; }
.fm-t2 .fm-topic-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 0; border-top: 1px solid var(--line, #E4E7E1); }
.fm-t2 .fm-topic-stats { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: .88rem; color: var(--ink-3, #6A786F); }
.fm-t2 .fm-topic-stats li { display: inline-flex; align-items: center; gap: 6px; }
.fm-t2 .fm-topic-stats b { color: var(--ink, #10221A); font-weight: 800; }
.fm-t2 .fm-topic-stats i { font-size: .85rem; opacity: .8; }
.fm-t2 .fm-topic-reply { height: 38px; padding: 0 16px; }

/* ── Posts: shared ── */
.fm-t2 .fm-post { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 16px; margin: 0;
  background: transparent !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
  padding: 22px 26px; scroll-margin-top: 130px; }
.fm-t2 .fm-post .fm-av { width: 48px; height: 48px; }
.fm-t2 .fm-post-side a { display: block; border-radius: 50%; }
.fm-t2 .fm-post-side a:hover .fm-av { box-shadow: 0 0 0 3px var(--brand-wash, #E8F2EC); }
.fm-t2 .fm-post-head { display: block; margin: 0 0 10px; font-size: .9rem; }
.fm-t2 .fm-post-who { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; line-height: 1.3; }
.fm-t2 .fm-post-name { font-size: 1rem; font-weight: 800; }
.fm-t2 .fm-post-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; margin-top: 2px; font-size: .82rem; color: var(--ink-3, #6A786F); }
.fm-t2 .fm-post-from { display: inline-flex; align-items: center; gap: 5px; }
.fm-t2 .fm-post-from::before { content: none; }
.fm-t2 .fm-post-from i { font-size: .72rem; opacity: .75; }
.fm-t2 .fm-post-time { margin-left: 0; font-size: .82rem; color: var(--ink-3, #6A786F); }
.fm-t2 .fm-post-from + .fm-post-time::before { content: "·"; margin-right: 10px; }
.fm-t2 a.fm-post-time:hover { color: var(--forest, #0E6B4A); text-decoration: underline; }
.fm-t2 .fm-badge { height: 21px; padding: 0 8px; border-radius: 999px; font-size: .7rem; letter-spacing: .01em; }
.fm-t2 .fm-badge.is-op { background: var(--brand-wash, #E8F2EC); color: var(--forest-dark, #0A5239); }

.fm-t2 .fm-body { font-size: 1rem; line-height: 1.72; max-width: 68ch; }
.fm-t2 .fm-post.is-op .fm-body { font-size: 1.06rem; }
.fm-t2 .fm-body p { margin: 0 0 .9em; }
.fm-t2 .fm-body ul { margin: 0 0 .9em; padding-left: 1.25em; }
.fm-t2 .fm-body li { margin: .3em 0; }
.fm-t2 .fm-body li::marker { color: var(--forest, #0E6B4A); }
.fm-t2 .fm-body blockquote { margin: 0 0 .9em; padding: 2px 0 2px 14px; border-left: 3px solid #BFD8C8; background: none; border-radius: 0; color: var(--ink-3, #6A786F); font-size: .95em; font-style: italic; }
.fm-t2 .fm-body .fm-mention { background: var(--brand-wash, #E8F2EC); color: var(--forest-dark, #0A5239); padding: 1px 6px; border-radius: 999px; }
.fm-t2 .fm-edited { margin-top: 8px; }

/* actions */
.fm-t2 .fm-post-actions { gap: 6px; margin: 14px 0 0 0; }
.fm-t2 .fm-act { height: 34px; padding: 0 12px; border: 1px solid var(--line, #E4E7E1); background: #fff; color: var(--ink-2, #3B4B43); font-size: .84rem; }
.fm-t2 .fm-act:hover { background: var(--sage, #F1F4EF); border-color: #D2D9D1; color: var(--ink, #10221A); }
.fm-t2 .fm-act.is-static, .fm-t2 .fm-act.is-static:hover { border-color: transparent; background: transparent; color: var(--ink-3, #6A786F); padding-left: 2px; }
.fm-t2 .fm-like.is-on { border-color: #F3C3CE; background: #FDEEF2; color: #C62845; }
.fm-t2 .fm-follow.is-on, .fm-t2 .fm-helpful.is-on { border-color: #BFE0CD; background: #E6F3EC; color: #0A5239; }
.fm-t2 .fm-more > .fm-act { width: 34px; padding: 0; justify-content: center; }
.fm-t2 .fm-more-menu { top: 40px; }

/* admin: move a topic */
.fm-t2 .fm-move { flex-direction: row; flex-wrap: wrap; align-items: center; }
.fm-t2 .fm-move .fm-input { height: 40px; padding: 0 12px; line-height: 1.2; }

/* ── The first post ── */
.fm-t2 .fm-post.is-op { background: #fff !important; border: 1px solid var(--line, #E4E7E1) !important; border-top: 0 !important; border-radius: 0 0 18px 18px !important; padding-top: 20px; box-shadow: var(--shadow-1, 0 1px 2px rgba(16,34,26,.05)) !important; }
.fm-t2 .fm-solved-box { margin-top: 18px; border-radius: 14px; padding: 14px 16px; transition: border-color .15s; }
.fm-t2 .fm-solved-box:hover { border-color: #8FCFA6; }

/* ── Replies: one card ── */
.fm-t2 .fm-replies-head { margin: 30px 2px 10px; padding: 0; align-items: center; }
.fm-t2 .fm-replies-head h2 { font-size: 1.2rem; letter-spacing: -0.01em; }
.fm-t2 .fm-replies { background: #fff; border: 1px solid var(--line, #E4E7E1); border-radius: 18px; box-shadow: var(--shadow-1, 0 1px 2px rgba(16,34,26,.05)); }
.fm-t2 .fm-replies > .fm-post:first-child { border-radius: 17px 17px 0 0 !important; }
.fm-t2 .fm-replies > .fm-post:last-child { border-radius: 0 0 17px 17px !important; }
.fm-t2 .fm-replies > .fm-post:only-child { border-radius: 17px !important; }
.fm-t2 .fm-replies > .fm-post + .fm-post { border-top: 1px solid var(--line, #E4E7E1) !important; }
.fm-t2 .fm-replies .fm-post .fm-av { width: 44px; height: 44px; }
.fm-t2 .fm-replies .fm-post { grid-template-columns: 44px minmax(0, 1fr); }
.fm-t2 .fm-post.is-by-op { background: #FBFCFA !important; }
.fm-t2 .fm-post.is-helpful { background: linear-gradient(90deg, #EFF8F2 0%, #fff 70%) !important; box-shadow: inset 4px 0 0 #16A34A !important; margin: 0; padding-left: 26px; }
.fm-t2 .fm-post.is-removed { display: block; padding: 14px 26px 14px 86px; font-size: .88rem; }
.fm-t2 .fm-post.is-removed p { margin: 0; }
.fm-t2 .fm-post.is-target { animation: fmT2Target 2.6s ease-out; }
@keyframes fmT2Target { 0%, 35% { box-shadow: inset 4px 0 0 var(--sand, #D8AA4E); background-color: #FFF8E6; } 100% { box-shadow: inset 4px 0 0 transparent; } }
.fm-t2 .fm-noreplies { background: #fff; border-style: solid; border-color: var(--line, #E4E7E1); border-radius: 18px; padding: 34px 20px; }
.fm-t2 .fm-noreplies p { margin-bottom: 14px; }

/* ── Write a reply ── */
.fm-t2 .fm-reply { margin-top: 22px; scroll-margin-top: 130px; }
.fm-t2 .fm-reply-form { grid-template-columns: 44px minmax(0, 1fr); gap: 16px; padding: 22px 26px; border-radius: 18px; }
.fm-t2 .fm-reply-who .fm-av { width: 44px; height: 44px; }
.fm-t2 .fm-reply-label { display: block; font-weight: 800; font-size: 1rem; margin: 0 0 10px; }
.fm-t2 .fm-reply-box textarea { background: #fff; border-color: var(--line, #E4E7E1); min-height: 130px; }
.fm-t2 .fm-reply-bar { margin-top: 12px; }
.fm-t2 .fm-join { border-radius: 18px; padding: 26px; }
.fm-t2 .fm-closed { background: #fff; border: 1px solid var(--line, #E4E7E1); }

/* ── Side column ── */
.fm-t2 .fm-side { top: 124px; gap: 14px; }
.fm-t2 .fm-card { border-radius: 18px !important; padding: 18px; }
.fm-t2 .fm-side-h { font-size: .78rem !important; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3, #6A786F); margin: 0 0 12px; }
.fm-t2 .fm-author-top { margin-bottom: 12px; }
.fm-t2 .fm-author-top:hover b { color: var(--forest, #0E6B4A); }
.fm-t2 .fm-author-note { margin: 0 0 12px; font-size: .86rem; line-height: 1.5; color: var(--ink-2, #3B4B43); }
.fm-t2 .fm-author-btns, .fm-t2 .fm-about-btns { display: grid; gap: 8px; }
.fm-t2 .fm-side .fm-btn { height: 40px; font-size: .88rem; }
.fm-t2 .fm-about-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; margin: 0 0 14px; }
.fm-t2 .fm-about-list dt { font-size: .74rem; color: var(--ink-3, #6A786F); font-weight: 600; }
.fm-t2 .fm-about-list dd { margin: 1px 0 0; font-weight: 800; font-size: .98rem; }
.fm-t2 .fm-about-who { margin: 0 0 8px; font-size: .74rem; font-weight: 600; color: var(--ink-3, #6A786F); }
.fm-t2 .fm-faces { display: flex; flex-wrap: wrap; margin: 0 0 14px 6px; }
.fm-t2 .fm-faces a { margin-left: -6px; border-radius: 50%; border: 2px solid #fff; display: block; transition: transform .12s; }
.fm-t2 .fm-faces a:hover { transform: translateY(-2px); z-index: 1; }
.fm-t2 .fm-faces .fm-av { width: 32px; height: 32px; }
.fm-t2 .fm-side-link { padding: 9px 10px; margin: 0 -10px; border-radius: 10px; }
.fm-t2 .fm-side-link:hover { background: var(--sage, #F1F4EF); }
.fm-t2 .fm-related li { padding: 10px 0; }
.fm-t2 .fm-related a { font-weight: 700; }

/* ── Reply button that floats on phones ── */
.fm-fab { display: none; }

@media (max-width: 960px) {
  .fm-t2 .fm-topic-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .fm-t2 .fm-side { position: static; }
}
@media (max-width: 720px) {
  .fm-t2 .fm-topic-wrap { padding-left: 10px; padding-right: 10px; padding-top: 12px; }
  .fm-t2 .fm-crumbs { padding: 0 6px; }
  .fm-t2 .fm-topic-head { padding: 18px 16px 0; border-radius: 16px 16px 0 0; }
  .fm-t2 .fm-topic-head h1 { font-size: 1.36rem; }
  .fm-t2 .fm-topic-reply { display: none; }               /* the floating button does this job */
  .fm-t2 .fm-topic-stats { gap: 4px 14px; font-size: .84rem; }
  .fm-t2 .fm-topic-stats .is-last { display: none; }
  /* avatar next to the name only; the text below uses the full width */
  .fm-t2 .fm-post, .fm-t2 .fm-replies .fm-post { grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 16px; }
  .fm-t2 .fm-post .fm-av, .fm-t2 .fm-replies .fm-post .fm-av { width: 40px; height: 40px; }
  .fm-t2 .fm-post-head { min-height: 40px; margin-bottom: 12px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
  .fm-t2 .fm-post-main > :not(.fm-post-head) { margin-left: -52px; }
  .fm-t2 .fm-post-main > .fm-post-actions { margin-top: 12px; }
  .fm-t2 .fm-post.is-op { border-radius: 0 0 16px 16px !important; }
  .fm-t2 .fm-post.is-helpful { padding-left: 16px; }
  .fm-t2 .fm-post.is-removed { padding: 12px 16px; }
  .fm-t2 .fm-body, .fm-t2 .fm-post.is-op .fm-body { font-size: 1rem; line-height: 1.65; }
  .fm-t2 .fm-act { height: 38px; }
  .fm-t2 .fm-more > .fm-act { width: 38px; }
  .fm-t2 .fm-replies, .fm-t2 .fm-reply-form, .fm-t2 .fm-card, .fm-t2 .fm-join, .fm-t2 .fm-noreplies { border-radius: 16px !important; }
  .fm-t2 .fm-reply-form { grid-template-columns: minmax(0, 1fr); padding: 16px; }
  .fm-t2 .fm-reply-bar .fm-hint { display: none; }
  .fm-t2 .fm-reply-bar .fm-btn { width: 100%; height: 46px; }
  .fm-t2 .fm-join { padding: 20px; }
  .fm-t2 .fm-join-btns { width: 100%; }
  .fm-t2 .fm-join-btns .fm-btn { flex: 1; }

  .fm-fab { position: fixed; right: 14px; bottom: calc(74px + env(safe-area-inset-bottom, 0px)); z-index: 1030; display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 20px;
    border-radius: 999px; background: var(--forest, #0E6B4A); color: #fff !important; font-weight: 800; font-size: .95rem; text-decoration: none; box-shadow: 0 8px 24px rgba(16,34,26,.28); transition: opacity .18s, transform .18s; }
  .fm-fab[hidden] { display: none; }
  .fm-fab.is-off { opacity: 0; transform: translateY(12px); pointer-events: none; }
}
