/* Forum skin — builds on /css/style.css variables; does not override catalog styles. */
.page-forum { background: var(--page); }
.fbar { border-bottom: 1px solid var(--rail); background: var(--sheet); }
.fbar__inner { max-width: var(--container); margin: 0 auto; padding: 0.5rem var(--gutter); display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-size: var(--step--1); }
.fbar__home { color: var(--ink); font-weight: 600; text-decoration: none; }
.fbar__home:hover { color: var(--signal); }
.fbar__user { display: flex; gap: 0.9rem; align-items: center; }
.fbar__user a { color: var(--muted); text-decoration: none; display: inline-flex; align-items: center; gap: 0.4rem; }
.fbar__user a:hover { color: var(--signal); }
.fbar__reg { background: var(--signal); color: #fff !important; padding: 0.25rem 0.7rem; border-radius: 4px; }
.inline { display: inline; margin: 0; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); cursor: pointer; text-decoration: underline; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.fmain { max-width: var(--container); margin: 0 auto; padding: 1.25rem var(--gutter) 3rem; }
.fcrumbs ol { list-style: none; margin: 0 0 0.75rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; font-size: var(--step--1); color: var(--faint); }
.fcrumbs li + li::before { content: "›"; margin-right: 0.5rem; color: var(--rail); }
.fcrumbs a { color: var(--muted); text-underline-offset: 0.15em; text-decoration-color: var(--rail); }
.fcrumbs a:hover { color: var(--signal); }
.fcrumbs li[aria-current] { color: var(--ink); }
.fhead { border-left: 5px solid var(--signal); padding: 0.1rem 0 0.1rem 1rem; margin: 0 0 1.25rem; }
.fhead__title { margin: 0; font-size: var(--step-3); font-weight: 700; letter-spacing: -0.03em; line-height: 1.15; }
.fhead__lede { margin: 0.45rem 0 0; font-family: var(--font-body); color: var(--muted); font-size: var(--step-1); max-width: 80ch; }
.fflash { background: #e8f4ea; border: 1px solid #b7d8bd; padding: 0.6rem 0.9rem; margin: 0 0 1rem; }
.ferror { background: #fbecec; border: 1px solid #e3b9b9; padding: 0.6rem 0.9rem; margin: 0 0 0.9rem; color: #7a1f1f; }

.flayout { display: grid; gap: 1.25rem; }
@media (min-width: 64rem) { .flayout { grid-template-columns: minmax(0, 1fr) 18.5rem; align-items: start; } }

.fbox { background: var(--sheet); border: 1px solid var(--rail); margin: 0 0 1.25rem; }
.fbox__head { margin: 0; padding: 0.6rem 0.9rem; font-size: var(--step-0); font-weight: 650; background: var(--fog); border-bottom: 1px solid var(--rail); letter-spacing: -0.01em; }

.ftable__row { display: grid; grid-template-columns: minmax(0, 1fr) 5.5rem 6.5rem 14rem; gap: 0.75rem; padding: 0.75rem 0.9rem; border-bottom: 1px solid var(--mist); align-items: center; }
.ftable__row:last-child { border-bottom: 0; }
.ftable__row:not(.ftable__row--head):hover { background: #f6f7fb; }
.ftable__row--head { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--faint); padding-top: 0.45rem; padding-bottom: 0.45rem; background: var(--page); }
.ftable__row.is-pinned { background: #f7f5fc; }
.num { text-align: center; font-variant-numeric: tabular-nums; color: var(--muted); }
.num__l { display: none; }
.fcell-main { display: flex; gap: 0.75rem; align-items: flex-start; min-width: 0; }
.ficon { flex: 0 0 auto; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--signal-dim); position: relative; margin-top: 0.1rem; }
.ficon::after { content: ""; position: absolute; inset: 0.62rem; border-radius: 2px; background: var(--signal); opacity: 0.75; clip-path: polygon(0 0, 100% 0, 100% 70%, 45% 70%, 20% 100%, 20% 70%, 0 70%); }
.ficon--hot { background: #fde8d7; }
.ficon--hot::after { background: #c2571a; }
.ficon--pin::after { clip-path: none; border-radius: 50%; }
.ftitle { font-weight: 600; color: var(--ink); text-decoration: none; line-height: 1.35; }
.ftitle:hover { color: var(--signal); text-decoration: underline; }
.fdesc { margin: 0.2rem 0 0; font-size: var(--step--1); color: var(--muted); line-height: 1.45; }
.fdesc a { color: var(--muted); }
.flast { font-size: var(--step--1); line-height: 1.4; min-width: 0; display: flex; flex-direction: column; }
.flast__t { color: var(--ink); text-decoration: none; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.flast__t:hover { color: var(--signal); }
.flast__m { color: var(--faint); }
.flast__m a { color: var(--muted); }
.tag { display: inline-block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; background: var(--signal); color: #fff; padding: 0.05rem 0.4rem; border-radius: 3px; vertical-align: 0.1em; }
.minipager { margin-left: 0.4rem; }
.minipager a { margin-left: 0.2rem; padding: 0 0.25rem; border: 1px solid var(--rail); font-size: 0.75rem; text-decoration: none; }

@media (max-width: 48rem) {
  .ftable__row { grid-template-columns: 1fr 1fr; }
  .ftable__row--head { display: none; }
  .fcell-main, .flast { grid-column: 1 / -1; }
  .num { text-align: left; font-size: var(--step--1); }
  .num__l { display: inline; }
}

.fside__list { list-style: none; margin: 0; padding: 0.3rem 0.9rem 0.6rem; }
.fside__list li { padding: 0.5rem 0; border-bottom: 1px solid var(--mist); line-height: 1.35; }
.fside__list li:last-child { border-bottom: 0; }
.fside__list a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: var(--step--1); }
.fside__list a:hover { color: var(--signal); text-decoration: underline; }
.fside__m { display: block; font-size: 0.8rem; color: var(--faint); margin-top: 0.15rem; }
.fside__m a { color: var(--muted); }
.fside__p { padding: 0.75rem 0.9rem; margin: 0; font-size: var(--step--1); color: var(--muted); }
.fstats dl { display: grid; grid-template-columns: 1fr auto; gap: 0.35rem 1rem; padding: 0.75rem 0.9rem 0.25rem; margin: 0; font-size: var(--step--1); }
.fstats dt { color: var(--muted); }
.fstats dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.fstats .fside__m { padding: 0 0.9rem 0.75rem; }

.ftools { display: flex; flex-wrap: wrap; gap: 0.6rem 1rem; align-items: center; margin: 0 0 0.9rem; }
.ftools--bottom { margin-top: 0.4rem; }
.ftools__info { font-size: var(--step--1); color: var(--muted); }
.ftools__info a { color: var(--signal); }
.btn { display: inline-block; background: var(--signal); color: #fff; border: 0; padding: 0.5rem 1rem; font: inherit; font-weight: 600; font-size: var(--step--1); border-radius: 4px; text-decoration: none; cursor: pointer; }
.btn:hover { background: #3d2f70; color: #fff; }
.pager { display: flex; flex-wrap: wrap; gap: 0.3rem; align-items: center; margin-left: auto; font-size: var(--step--1); }
.pager__label { color: var(--faint); margin-right: 0.3rem; }
.pager__a { min-width: 2rem; text-align: center; padding: 0.2rem 0.45rem; border: 1px solid var(--rail); background: var(--sheet); color: var(--ink); text-decoration: none; }
.pager__a:hover { border-color: var(--signal); color: var(--signal); }
.pager__a--cur { background: var(--signal); color: #fff; border-color: var(--signal); }
.pager__gap { color: var(--faint); }

.av { --h: 260; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: #fff; font-weight: 650; background: hsl(var(--h) 38% 46%); flex: 0 0 auto; letter-spacing: 0.02em; }
.av--md { width: 3.4rem; height: 3.4rem; font-size: 1.15rem; }
.av--lg { width: 5rem; height: 5rem; font-size: 1.6rem; }
.av--xs { width: 1.5rem; height: 1.5rem; font-size: 0.65rem; }

.fpost { display: grid; grid-template-columns: 11rem minmax(0, 1fr); background: var(--sheet); border: 1px solid var(--rail); margin-bottom: 0.75rem; }
.fpost__who { padding: 0.9rem; border-right: 1px solid var(--mist); background: #f7f8fb; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.5rem; }
.fpost__whotext { display: flex; flex-direction: column; gap: 0.1rem; }
.fpost__name { font-weight: 650; color: var(--ink); text-decoration: none; word-break: break-word; }
.fpost__name:hover { color: var(--signal); }
.fpost__rank { font-size: 0.78rem; color: var(--signal); font-weight: 550; }
.fpost__meta { font-size: 0.76rem; color: var(--faint); }
.fpost__body { padding: 0.7rem 1.1rem 1rem; min-width: 0; }
.fpost__head { display: flex; justify-content: space-between; font-size: 0.82rem; color: var(--faint); border-bottom: 1px dashed var(--mist); padding-bottom: 0.45rem; margin-bottom: 0.7rem; }
.fpost__num { color: var(--faint); text-decoration: none; }
.fpost__num:hover { color: var(--signal); }
.fpost__text { font-family: var(--font-body); font-size: var(--step-1); line-height: 1.62; overflow-wrap: anywhere; }
.fpost__text p { margin: 0 0 0.75rem; }
.fpost__text p:last-child { margin-bottom: 0; }
.quote { margin: 0 0 0.75rem; padding: 0.5rem 0.8rem; background: var(--fog); border-left: 3px solid var(--rail); font-size: 0.95em; color: var(--muted); }
.quote cite { display: block; font-family: var(--font-ui); font-style: normal; font-size: 0.78rem; font-weight: 600; color: var(--muted); margin-bottom: 0.2rem; }
@media (max-width: 40rem) {
  .fpost { grid-template-columns: 1fr; }
  .fpost__who { flex-direction: row; text-align: left; border-right: 0; border-bottom: 1px solid var(--mist); padding: 0.6rem 0.9rem; }
  .av--md { width: 2.6rem; height: 2.6rem; font-size: 0.95rem; }
  .fpost__whotext { flex-direction: row; flex-wrap: wrap; gap: 0 0.6rem; align-items: baseline; }
}

.fform { display: flex; flex-direction: column; gap: 0.4rem; padding: 0.9rem; max-width: 46rem; }
.fform__l { font-size: var(--step--1); font-weight: 600; margin-top: 0.4rem; }
.fform input[type=text], .fform input[type=password], .fform textarea { font: inherit; padding: 0.5rem 0.6rem; border: 1px solid var(--rail); background: #fff; border-radius: 3px; width: 100%; }
.fform textarea { font-family: var(--font-body); font-size: var(--step-1); resize: vertical; }
.fform input:focus, .fform textarea:focus { outline: 2px solid var(--focus); outline-offset: 1px; }
.fform__hint { font-size: 0.8rem; color: var(--faint); margin: 0 0 0.4rem; }
.fform .btn { align-self: flex-start; }
.freply .ferror, .fauth .ferror { margin: 0.9rem 0.9rem 0; }
.fauth { max-width: 32rem; }
.fempty { padding: 1.25rem 0.9rem; }
.fempty p { margin: 0 0 0.75rem; }

.fprofile__card { display: flex; gap: 1.25rem; padding: 1rem 0.9rem; align-items: flex-start; flex-wrap: wrap; }
.fprofile__card dl { display: grid; grid-template-columns: auto 1fr; gap: 0.3rem 1rem; margin: 0; font-size: var(--step--1); }
.fprofile__card dt { color: var(--faint); }
.fprofile__card dd { margin: 0; }
.fuserposts { list-style: none; margin: 0; padding: 0 0.9rem; }
.fuserposts li { padding: 0.75rem 0; border-bottom: 1px solid var(--mist); }
.fuserposts li:last-child { border-bottom: 0; }
.fuserposts a { color: var(--ink); font-weight: 600; text-decoration: none; }
.fuserposts a:hover { color: var(--signal); }
.fuserposts p { margin: 0.3rem 0 0; font-family: var(--font-body); color: var(--muted); }
.foot__note { margin-top: 0.35rem; font-size: 0.78rem; color: var(--faint); }
