/* XenForo-inspired board skin. Colors and layout only — not XF CSS. */

.xf {
    --xf-page: #eef1f4;
    --xf-bg: #fff;
    --xf-ink: #141414;
    --xf-muted: #6c737a;
    --xf-faint: #8f959c;
    --xf-line: #d8dee4;
    --xf-line-soft: #e4e8ed;
    --xf-accent: #2577b1;
    --xf-accent-deep: #176093;
    --xf-accent-soft: #e8f2f9;
    --xf-sticky: #fff8e6;
    --xf-danger: #c0392b;
    --xf-icon: #8c8c8c;
    --xf-icon-unread: #2577b1;
    --xf-radius: 4px;
    --xf-shadow: 0 1px 4px rgba(20, 20, 20, .08);
    --xf-font: "Segoe UI", system-ui, -apple-system, sans-serif;
    color: var(--xf-ink);
    font-family: var(--xf-font);
    font-size: 15px;
    line-height: 1.45;
    max-width: 1100px;
    margin: 0 auto;
}

.xf a {
    color: var(--xf-accent);
    text-decoration: none;
}
.xf a:hover { text-decoration: underline; }

.xf-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    padding: .35rem .5rem;
    background: var(--xf-bg);
    border: 1px solid var(--xf-line);
    border-radius: var(--xf-radius);
    box-shadow: var(--xf-shadow);
}
.xf-nav__links {
    display: flex;
    flex-wrap: wrap;
    gap: .15rem;
}
.xf-nav__links a {
    padding: .45rem .85rem;
    border-radius: 3px;
    color: var(--xf-ink);
    font-weight: 600;
    font-size: .92rem;
}
.xf-nav__links a:hover {
    background: var(--xf-page);
    text-decoration: none;
    color: var(--xf-accent);
}
.xf-nav__links a.is-on {
    background: var(--xf-accent);
    color: #fff;
}
.xf-nav__tools {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
}

.xf-search {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--xf-line);
    border-radius: 3px;
    overflow: hidden;
    background: #f7f8fa;
}
.xf-search input {
    border: 0;
    background: transparent;
    padding: .4rem .65rem;
    width: 11rem;
    font-size: .88rem;
    outline: none;
}
.xf-search button {
    border: 0;
    border-left: 1px solid var(--xf-line);
    background: #fff;
    color: var(--xf-muted);
    padding: 0 .65rem;
}
.xf-search button:hover { color: var(--xf-accent); }

.xf-btn {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .4rem .85rem;
    border: 1px solid var(--xf-accent-deep);
    border-radius: 3px;
    background: linear-gradient(#2e86c1, var(--xf-accent));
    color: #fff !important;
    font-weight: 600;
    font-size: .88rem;
    line-height: 1.3;
    text-decoration: none !important;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
}
.xf-btn:hover { filter: brightness(1.06); }
.xf-btn--ghost {
    background: #fff;
    border-color: var(--xf-line);
    color: var(--xf-ink) !important;
    box-shadow: none;
}

.xf-crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .4rem;
    margin: 0 0 .85rem;
    color: var(--xf-muted);
    font-size: .86rem;
}
.xf-crumbs span:last-child { color: var(--xf-ink); }

.xf-pagehead {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: .9rem;
}
.xf-pagehead h1 {
    margin: 0 0 .2rem;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.25;
}
.xf-pagehead p {
    margin: 0;
    color: var(--xf-muted);
    font-size: .9rem;
}

.xf-block {
    background: var(--xf-bg);
    border: 1px solid var(--xf-line);
    border-radius: var(--xf-radius);
    box-shadow: var(--xf-shadow);
    margin-bottom: 1.15rem;
    overflow: hidden;
}
.xf-block__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .5rem .85rem;
    background: linear-gradient(#1f6fa8, var(--xf-accent-deep));
    color: #fff;
}
.xf-block__bar h1,
.xf-block__bar h2 {
    margin: 0;
    font-size: .95rem;
    font-weight: 700;
    letter-spacing: .01em;
}
.xf-block__cols {
    display: none;
    gap: 0;
    color: rgba(255,255,255,.85);
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    font-weight: 600;
}
.xf-block__cols span {
    width: 4.5rem;
    text-align: center;
}
.xf-block__cols .xf-block__last,
.xf-block__cols--thread .xf-block__last {
    width: 12.5rem;
    text-align: left;
    padding-left: .5rem;
}

@media (min-width: 800px) {
    .xf-block__cols { display: flex; }
}

.xf-node,
.xf-thread {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: .75rem 1rem;
    align-items: center;
    padding: .75rem .9rem;
    border-top: 1px solid var(--xf-line-soft);
    background: #fff;
}
.xf-node:hover,
.xf-thread:hover { background: #f7f9fb; }
.xf-thread.is-sticky { background: var(--xf-sticky); }
.xf-thread.is-sticky:hover { background: #fff3cc; }
.xf-node.is-unread .xf-node__title,
.xf-thread.is-unread .xf-thread__title { font-weight: 700; }

@media (min-width: 800px) {
    .xf-node {
        grid-template-columns: 48px minmax(0, 1fr) 9.5rem 13.5rem;
    }
    .xf-thread {
        grid-template-columns: 36px minmax(0, 1fr) 9.5rem 13.5rem;
    }
}

.xf-node__icon,
.xf-thread__icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #f0f3f6;
    color: var(--xf-icon);
    font-size: 1.25rem;
    text-decoration: none !important;
}
.xf-node__icon.is-unread,
.xf-thread__icon.is-unread {
    background: var(--xf-accent-soft);
    color: var(--xf-icon-unread);
}
.xf-thread__icon {
    width: 34px;
    height: 34px;
    font-size: 1.05rem;
}

.xf-node__title,
.xf-thread__title {
    display: inline;
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--xf-accent) !important;
}
.xf-node__desc {
    margin: .2rem 0 0;
    color: var(--xf-muted);
    font-size: .86rem;
}
.xf-meta {
    margin-top: .15rem;
    color: var(--xf-faint);
    font-size: .8rem;
}
.xf-meta a { color: var(--xf-muted); }

.xf-node__stats,
.xf-thread__stats {
    display: none;
}
@media (min-width: 800px) {
    .xf-node__stats,
    .xf-thread__stats {
        display: flex;
        justify-content: space-around;
        gap: .25rem;
    }
}
.xf-node__stats dl,
.xf-thread__stats dl {
    margin: 0;
    text-align: center;
    min-width: 3.6rem;
}
.xf-node__stats dt,
.xf-thread__stats dt {
    display: none;
}
.xf-node__stats dd,
.xf-thread__stats dd {
    margin: 0;
    font-weight: 700;
    font-size: .95rem;
}

.xf-node__extra,
.xf-thread__last {
    display: flex;
    align-items: center;
    gap: .55rem;
    min-width: 0;
}
.xf-node__extra > div,
.xf-thread__last > div {
    min-width: 0;
}
.xf-node__extra a,
.xf-thread__last a {
    display: block;
    font-size: .86rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.xf-mini {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    padding: .65rem .9rem;
    border-top: 1px solid var(--xf-line-soft);
}
.xf-mini a { font-weight: 600; }

.xf-av {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 4px;
    background: hsl(var(--xf-av-h, 200) 42% 42%);
    color: #fff;
    font-weight: 700;
    line-height: 1;
    user-select: none;
}
.xf-av--s { width: 36px; height: 36px; font-size: .85rem; }
.xf-av--m { width: 48px; height: 48px; font-size: 1.05rem; }
.xf-av--l { width: 96px; height: 96px; font-size: 2rem; }

.xf-tag {
    display: inline-block;
    margin-right: .35rem;
    padding: .05rem .4rem;
    border-radius: 2px;
    background: #eceff2;
    color: var(--xf-muted);
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    vertical-align: .1em;
}
.xf-tag--sticky {
    background: #f5c518;
    color: #3d2e00;
}

.xf-filter {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    margin-bottom: .9rem;
}
.xf-filter input,
.xf-filter select,
.xf-reply__form input,
.xf-reply__form select,
.xf-reply__form textarea {
    border: 1px solid var(--xf-line);
    border-radius: 3px;
    background: #fff;
    padding: .45rem .65rem;
    font: inherit;
    color: var(--xf-ink);
}
.xf-filter input { flex: 1 1 14rem; }
.xf-filter button,
.xf-filter select { padding: .45rem .7rem; }
.xf-filter button {
    border: 1px solid var(--xf-line);
    background: #f4f6f8;
    border-radius: 3px;
    font-weight: 600;
}

.xf-empty {
    padding: 1.6rem 1rem;
    text-align: center;
    color: var(--xf-muted);
    background: #f7f8fa;
    border: 1px dashed var(--xf-line);
    border-radius: var(--xf-radius);
    margin-bottom: 1rem;
}

.xf-pager {
    display: flex;
    justify-content: flex-end;
    margin: .75rem 0 1rem;
}
.xf-pager .pagination { margin: 0; }

.xf-messages { display: flex; flex-direction: column; gap: .85rem; }
.xf-msg {
    display: grid;
    grid-template-columns: 1fr;
    background: #fff;
    border: 1px solid var(--xf-line);
    border-radius: var(--xf-radius);
    box-shadow: var(--xf-shadow);
    overflow: hidden;
}
@media (min-width: 760px) {
    .xf-msg { grid-template-columns: 180px minmax(0, 1fr); }
}

.xf-msg__user {
    padding: 1rem .85rem;
    background: #f4f6f8;
    text-align: center;
    border-bottom: 1px solid var(--xf-line-soft);
}
@media (min-width: 760px) {
    .xf-msg__user { border-bottom: 0; border-right: 1px solid var(--xf-line-soft); }
}
.xf-msg__user .xf-av { margin: 0 auto .55rem; }
.xf-msg__name {
    display: block;
    color: var(--xf-accent);
    font-size: .98rem;
}
.xf-msg__title {
    display: block;
    color: var(--xf-faint);
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin: .15rem 0 .55rem;
}
.xf-msg__user dl {
    margin: .4rem 0 0;
    font-size: .78rem;
    color: var(--xf-muted);
    text-align: left;
}
.xf-msg__user dt {
    float: left;
    clear: left;
    width: 4.4rem;
    color: var(--xf-faint);
}
.xf-msg__user dd { margin: 0 0 .15rem 4.4rem; }

.xf-msg__main { min-width: 0; }
.xf-msg__attr {
    display: flex;
    justify-content: space-between;
    gap: .75rem;
    padding: .45rem .9rem;
    background: #fafbfc;
    border-bottom: 1px solid var(--xf-line-soft);
    color: var(--xf-faint);
    font-size: .8rem;
}
.xf-msg__body {
    padding: .9rem;
    font-size: .95rem;
}
.xf-msg__body p { margin: 0 0 .75rem; }
.xf-msg__body p:last-child { margin-bottom: 0; }
.xf-msg__body blockquote {
    margin: .6rem 0;
    padding: .5rem .75rem;
    border-left: 3px solid var(--xf-accent);
    background: #f4f8fb;
    color: #334;
}
.xf-msg__body code {
    background: #eef1f4;
    padding: .05rem .3rem;
    border-radius: 2px;
    font-size: .88em;
}
.xf-msg__body ul,
.xf-msg__body ol { padding-left: 1.25rem; }
.xf-msg__edited {
    margin: 0;
    padding: 0 .9rem .4rem;
    color: var(--xf-faint);
    font-size: .78rem;
    font-style: italic;
}
.xf-msg__bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: .75rem;
    padding: .4rem .9rem;
    border-top: 1px solid var(--xf-line-soft);
    background: #fafbfc;
    font-size: .82rem;
    font-weight: 600;
}
.xf-msg__bar form { display: inline; margin: 0; }
.xf-msg__bar button {
    border: 0;
    background: none;
    color: var(--xf-accent);
    font: inherit;
    font-weight: 600;
    padding: 0;
    cursor: pointer;
}
.xf-msg__bar button:hover { text-decoration: underline; }

.xf-mod {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}
.xf-mod button {
    border: 1px solid var(--xf-line);
    background: #fff;
    border-radius: 3px;
    padding: .3rem .65rem;
    font-size: .8rem;
    font-weight: 600;
}
.xf-mod button.is-danger { color: var(--xf-danger); }

.xf-reply__form {
    display: flex;
    flex-direction: column;
    gap: .65rem;
    padding: .9rem;
}
.xf-reply__form label {
    display: flex;
    flex-direction: column;
    gap: .3rem;
    font-weight: 600;
    font-size: .88rem;
}
.xf-reply__form textarea { min-height: 10rem; resize: vertical; }
.xf-hint {
    margin: 0;
    color: var(--xf-faint);
    font-size: .78rem;
}
.xf-form-acts {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}

@media (max-width: 799px) {
    .xf-node__extra,
    .xf-thread__last { grid-column: 2; }
    .xf-av--l { width: 64px; height: 64px; font-size: 1.4rem; }
}
