/*
 * Fightsol forum: compact directory and recent discussion summaries.
 * Loaded after existing forum, mobile and dark theme styles.
 */
.fp-recent-panel {
    margin-bottom: 14px;
}

.fp-recent-heading,
.fp-home-forums .fp-home-heading {
    padding: 11px 16px;
    gap: 8px 14px;
    background: var(--soft);
    color: var(--text);
}

.fp-recent-heading h2 {
    margin: 0;
    font-family: Barlow, system-ui, sans-serif;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.3;
    text-transform: none;
}

.fp-recent-heading > span {
    font-size: 12px;
    color: var(--muted);
}

.fp-home-forums .fp-home-heading h1 {
    margin: 0;
    font-size: 20px;
    line-height: 1.3;
    font-family: Barlow, system-ui, sans-serif;
    font-weight: 800;
    text-transform: none;
}

.fp-recent-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.fp-recent-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px;
}

.fp-recent-item + .fp-recent-item {
    border-top: 1px solid var(--line);
}

.fp-recent-main {
    min-width: 0;
    flex: 1 1 auto;
}

.fp-recent-topic {
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.fp-recent-topic:hover,
.fp-recent-topic:focus-visible {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.fp-recent-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 3px 6px;
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
}

.fp-recent-count {
    color: var(--muted);
    flex: 0 0 auto;
    font-size: 12px;
    white-space: nowrap;
}

.fp-recent-empty {
    padding: 12px 16px;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

/* Forum directory: remove purely decorative space and tighten each item. */
.fp-home-forums .fp-forum-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 11px 16px;
}

.fp-home-forums .fp-forum-copy h3 {
    margin: 0 0 2px;
    font-size: 16px;
    line-height: 1.3;
}

.fp-home-forums .fp-forum-copy p {
    font-size: 12px;
    line-height: 1.35;
}

.fp-home-forums .fp-forum-count {
    grid-column: auto;
    text-align: right;
    color: var(--muted);
    white-space: nowrap;
    font-size: 12px;
}

.fp-home-forums .fp-forum-count strong {
    display: inline;
    font-size: 13px;
}

.fp-home-forums .fp-forum-count span {
    display: inline;
    font-size: 12px;
}

.fp-home-forums .fp-subforums {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0 16px 7px;
    border: 0;
    padding: 0;
    gap: 2px 18px;
}

.fp-home-forums .fp-subforums a {
    min-width: 0;
    padding: 3px 0;
    font-size: 13px;
}

.fp-home-stats-footer {
    margin: 12px 2px 0;
    text-align: right;
    font-size: 13px;
}

.fp-home-stats-footer a {
    color: var(--accent);
    font-weight: 700;
    text-underline-offset: 3px;
}

/* Topic rows: the obsolete T marker is gone. */
.fp-topic-row {
    grid-template-columns: minmax(0, 1fr) 92px 150px;
    gap: 12px;
    padding: 12px 16px;
}

.fp-topic-main h3 {
    margin-bottom: 3px;
    font-size: 16px;
    line-height: 1.35;
}

.fp-topic-main p {
    font-size: 12px;
    line-height: 1.45;
}

.fp-topic-stats strong {
    font-size: 17px;
}

@media (max-width: 760px) {
    .fp-recent-panel {
        margin-bottom: 10px;
    }

    .fp-recent-heading,
    .fp-home-forums .fp-home-heading {
        padding: 10px 12px;
    }

    .fp-recent-heading h2 {
        font-size: 15px;
    }

    .fp-recent-heading > span {
        display: none;
    }

    .fp-recent-item {
        align-items: flex-start;
        flex-direction: column;
        gap: 2px;
        padding: 9px 12px;
    }

    .fp-recent-count {
        font-size: 11px;
    }

    .fp-home-forums .fp-forum-row {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 6px;
        padding: 9px 12px;
    }

    .fp-home-forums .fp-forum-copy h3 {
        font-size: 15px;
    }

    .fp-home-forums .fp-forum-copy p {
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
        font-size: 12px;
    }

    .fp-home-forums .fp-forum-count {
        grid-column: auto;
        align-self: center;
        font-size: 11px;
    }

    .fp-home-forums .fp-subforums {
        grid-template-columns: 1fr;
        margin: 0 12px 6px;
    }

    .fp-home-forums .fp-subforums a {
        padding: 2px 0;
        font-size: 12px;
    }

    .fp-topic-row {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 4px 12px;
        padding: 10px 12px;
    }

    .fp-topic-main {
        grid-column: 1 / -1;
    }

    .fp-topic-stats {
        grid-column: 1;
        justify-self: start;
        text-align: left;
        gap: 4px;
    }

    .fp-topic-last {
        grid-column: 2;
        justify-self: end;
        text-align: right;
        gap: 4px;
    }

    .fp-topic-stats strong {
        font-size: 12px;
    }

    .fp-topic-stats span,
    .fp-topic-last span,
    .fp-topic-last strong {
        font-size: 11px;
    }
}

/* Pinned topics in a forum's list: light green background, green edge and a
   "Fijado" label, so they stand out from ordinary topics. */
.fp-topic-row.is-sticky{background:#ecf8ef;box-shadow:inset 4px 0 0 #2e7d32}
.fp-topic-row.is-sticky:hover{background:#e2f4e6}
.fp-topic-badge-sticky{display:inline-block;margin-right:8px;padding:1px 8px;border-radius:999px;background:#2e7d32;color:#fff;font-size:11px;font-weight:800;line-height:1.7;letter-spacing:.06em;text-transform:uppercase;vertical-align:2px}
[data-theme="dark"] .fp-topic-row.is-sticky{background:#2a6342;box-shadow:inset 4px 0 0 #6ee07f}
[data-theme="dark"] .fp-topic-row.is-sticky:hover{background:#306c49}
[data-theme="dark"] .fp-topic-badge-sticky{background:#6ee07f;color:#06140a}
/* Brighter small text on the lighter green, so it keeps enough contrast. */
[data-theme="dark"] .fp-topic-row.is-sticky .fp-topic-main p,
[data-theme="dark"] .fp-topic-row.is-sticky .fp-topic-stats span,
[data-theme="dark"] .fp-topic-row.is-sticky .fp-topic-last span{color:#dce9e0}

/* "Últimos temas y respuestas": topics nobody has answered yet stand out. */
.fp-recent-new{color:var(--accent);font-weight:700}
