/* Tail Crew forum (site/forum.html). Builds on site.css tokens. Mobile-first. */
.fo { padding: 28px 0 56px; min-height: 70vh; }
.fo-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.fo-head h1 { font-size: clamp(32px, 6vw, 48px); margin: 0; }
.fo-me { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; }
.fo-me b { color: var(--text); }
.fo-staff { font-style: normal; font-size: 11px; font-weight: 900; letter-spacing: .5px; text-transform: uppercase; color: #3a2200; background: var(--gold); padding: 2px 7px; border-radius: 999px; vertical-align: 1px; }
.fo-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; font-weight: 800; color: var(--muted); margin: 10px 0 18px; }
.fo-crumbs a { color: var(--muted); text-decoration: none; }
.fo-crumbs a:hover { color: var(--gold); }
.fo-crumbs span { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60vw; }
.fo-crumbs i { font-style: normal; opacity: .5; }

.fo-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.fo-empty { padding: 26px 18px; text-align: center; color: var(--muted); margin: 0; }
.fo-av { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font: 400 20px 'Lilita One', sans-serif; color: #fff;
  background: linear-gradient(140deg, hsl(var(--h) 70% 55%), hsl(calc(var(--h) + 40) 70% 38%)); box-shadow: inset 0 -3px 0 rgba(0,0,0,.18); }
.fo-main { flex: 1; min-width: 0; }
.fo-main b { display: block; color: var(--text); font-weight: 900; }
.fo-main p { margin: 2px 0 4px; font-size: 14px; }
.fo-main small { display: block; color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fo-main small span { color: var(--text); }
.fo-n { flex: none; display: grid; grid-template-columns: auto auto; gap: 0 6px; align-items: baseline; font-size: 12px; color: var(--muted); }
.fo-n b { text-align: right; color: var(--text); font-size: 15px; }
.fo-n.sm b { font-size: 14px; }

/* categories */
.fo-cats { display: grid; gap: 10px; }
.fo-cat { display: flex; align-items: center; gap: 14px; padding: 16px; text-decoration: none; transition: transform .15s, border-color .15s; }
.fo-cat:hover { transform: translateY(-2px); border-color: var(--line-2); }
.fo-ic { flex: none; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 26px; background: var(--panel-2); }
@media (max-width: 560px) { .fo-cat .fo-n { display: none; } .fo-ic { width: 44px; height: 44px; font-size: 22px; } }

/* thread list */
.fo-bar { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.fo-bar h2 { font-size: clamp(24px, 4.5vw, 34px); margin: 0 0 4px; word-break: break-word; }
.fo-bar p { margin: 0; font-size: 14px; }
.fo-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.fo-seg { display: flex; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 3px; }
.fo-seg a { padding: 6px 12px; border-radius: 9px; color: var(--muted); text-decoration: none; font-weight: 900; font-size: 14px; }
.fo-seg a.on { background: var(--panel-2); color: var(--text); }
.fo-list { overflow: hidden; }
.fo-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; text-decoration: none; border-bottom: 1px solid var(--line); }
.fo-row:last-child { border-bottom: 0; }
.fo-row:hover { background: rgba(255, 255, 255, .03); }
.fo-tag { display: inline-block; font-size: 11px; font-weight: 900; padding: 1px 7px; border-radius: 999px; background: var(--panel-2); margin-right: 6px; vertical-align: 1px; }
.fo-tag.pin { background: rgba(255, 210, 63, .18); color: var(--gold); }
@media (max-width: 560px) { .fo-row .fo-n { display: none; } }
.fo-pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 16px 0; color: var(--muted); font-weight: 800; font-size: 14px; }

/* posts */
.fo-posts { display: grid; gap: 10px; margin-bottom: 14px; }
.fo-post { padding: 14px 16px; }
.fo-post header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.fo-post header b { color: var(--text); }
.fo-post header small { display: block; color: var(--muted); font-size: 12.5px; }
.fo-body { color: #d8e2ff; font-weight: 600; line-height: 1.6; overflow-wrap: anywhere; }
.fo-body a { color: var(--gold); }
.fo-post.deleted { opacity: .6; }
.fo-was { margin-top: 8px; padding: 8px 10px; border-left: 3px solid #ff8a80; background: rgba(255, 138, 128, .08); border-radius: 8px; font-size: 14px; }
.fo-del { color: #ff8a80; }
.fo-post footer { display: flex; align-items: center; gap: 4px; margin-top: 12px; flex-wrap: wrap; }
.fo-like, .fo-link { min-height: 34px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--muted); font: 800 13px Nunito, sans-serif; cursor: pointer; }
.fo-link { border-color: transparent; }
.fo-like:hover:not([disabled]), .fo-link:hover { color: var(--text); background: var(--panel-2); }
.fo-like.on { color: #ff6b8a; border-color: rgba(255, 107, 138, .45); background: rgba(255, 107, 138, .1); }
.fo-like[disabled] { cursor: default; }

/* forms */
.fo-form { display: grid; gap: 8px; padding: 16px; }
.fo-form h2 { font-size: 26px; }
.fo-form input, .fo-form textarea, .fo-body textarea { width: 100%; font: 700 16px/1.5 Nunito, sans-serif; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--ink); color: var(--text); resize: vertical; }
.fo-form input { min-height: 46px; }
.fo-form input:focus, .fo-form textarea:focus, .fo-body textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.fo-row-end { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 4px; }
.fo-row-end small { margin-right: auto; color: var(--muted); font-size: 12.5px; }

.fo-toast { position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 50; background: var(--panel-2); border: 1px solid var(--line-2);
  color: var(--text); font-weight: 800; padding: 12px 18px; border-radius: 14px; box-shadow: var(--shadow); max-width: calc(100% - 32px); animation: fo-in .25s ease-out; }
.fo-toast.bad { border-color: #ff8a80; }
@keyframes fo-in { from { opacity: 0; transform: translate(-50%, 10px); } }
