/* Subforum thread list only. Native MyBB links, sorting and moderation remain intact. */
.nnm-threads {
    --threads-ink: #545454;
    --threads-muted: #777777;
    --threads-purple: var(--primary-color, #873f6e);
    --threads-line: #dddddd;
    clear: both;
    margin: 20px 0 28px;
    color: var(--threads-ink);
    font-family: inherit;
}
.nnm-threads * { box-sizing: border-box; }
.nnm-threads .nnm-threads-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 27px 28px;
    background: var(--primary-color, #873f6e);
    border-top: 4px solid var(--primary-dark, #7d2e52);
    color: #fff;
}
.nnm-threads h1 { margin: 0; font-family: inherit; font-size: 14px; font-weight: 700; line-height: 1.25; color: #fff; text-transform: none; letter-spacing: normal; }
.nnm-threads a.button { border: 1px solid var(--threads-purple); border-radius: 3px; padding: 12px 18px; margin: 0; background: var(--threads-purple); color: #fff; font-size: 13px; font-weight: 400; white-space: nowrap; text-decoration: none; box-shadow: none; }
.nnm-threads .nnm-threads-header a.button { background: #fafbfc; border-color: #fafbfc; color: var(--primary-color, #873f6e); }
.nnm-threads a.button:hover { background: var(--primary-dark, #7d2e52); color: #fff; }
.nnm-threads .nnm-threads-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 16px 24px; background: #fff; border: 1px solid var(--threads-line); border-top: 0; }
.nnm-threads .nnm-threads-tools { margin-left: auto; font-size: 13px; font-weight: 700; color: #888888; }
.nnm-threads .nnm-threads-tools a { color: var(--link-color, #3c699c); text-decoration: none; padding: 5px 0; display: inline-block; }
.nnm-threads .nnm-threads-tools a:hover { color: var(--threads-purple); text-decoration: underline; }
.nnm-threads table.nnm-threads-table { width: 100%; margin: 0; padding: 0; border: 1px solid var(--threads-line); border-top: 0; border-collapse: collapse; border-spacing: 0; background: #fff; table-layout: fixed; }
/* Match the local 1050px layout independently of title length or row count. */
.nnm-threads .nnm-col-status { width: 105px; }
.nnm-threads .nnm-col-icon { width: 28px; }
.nnm-threads .nnm-col-replies { width: 98px; }
.nnm-threads .nnm-col-views { width: 82px; }
.nnm-threads .nnm-col-lastpost { width: 236px; }
.nnm-threads .nnm-col-moderation { width: 46px; }
.nnm-threads .nnm-threads-table .tcat { padding: 13px 12px; background: #e3e8f0; border: 0; color: var(--threads-muted); font-size: 12px; }
.nnm-threads .nnm-threads-table .tcat:first-child { padding-left: 24px; }
.nnm-threads .nnm-threads-table .tcat a { color: var(--link-color, #3c699c); }
.nnm-threads .nnm-threads-table .trow_sep { padding: 11px 24px; border: 0; border-top: 1px solid var(--threads-line); border-bottom: 1px solid var(--threads-line); background: #dddddd; color: #545454; font-size: 12px; font-weight: 600; }
.nnm-threads .nnm-thread-row > td { padding: 19px 12px; border: 0; border-bottom: 1px solid var(--threads-line); background: #fff; vertical-align: middle; transition: background-color .15s; }
.nnm-threads .nnm-thread-row > td.forumdisplay_sticky { background: #fafbfc; }
.nnm-threads .nnm-thread-row:hover > td { background: #f2f5f8; }
.nnm-threads .nnm-thread-row:has(input:checked) > td { background: #e3e8f0; }
.nnm-threads .nnm-thread-row > td.trow_shaded { background: #fff0ed; }
.nnm-threads .nnm-thread-row > td.nnm-thread-status { width: 80px; padding: 16px 4px 16px 22px; }
.nnm-threads .thread_status { display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 60px; margin: 0; background: none; position: static; }
.nnm-threads .icono-estado-tema { display: block; position: static; width: 52px; height: 60px; max-width: 52px; object-fit: contain; margin: 0; transform: none; }
.nnm-threads .nnm-thread-icon { width: 22px; padding-left: 2px !important; padding-right: 2px !important; }
.nnm-threads .nnm-thread-icon img { max-width: 20px; }
.nnm-threads .nnm-thread-title { min-width: 180px; }
.nnm-threads .nnm-thread-subject { font-size: inherit; line-height: 1.5; font-weight: 400; overflow-wrap: anywhere; }
.nnm-threads .nnm-thread-subject a { color: var(--link-color, #3c699c); }
.nnm-threads .nnm-thread-subject a:hover { color: var(--threads-purple); text-decoration: underline; }
/* The theme supplies .subject_new so unread threads retain their original emphasis. */
.nnm-threads .author { margin-top: 8px; line-height: 1.7; color: var(--threads-muted); }
.nnm-threads .nnm-author-label { margin-right: 4px; color: var(--threads-muted); }
.nnm-threads .mpage { display: inline-flex; gap: 4px; align-items: center; flex-wrap: wrap; opacity: 1; }
.nnm-threads .mpage a { display: inline-block; min-width: 22px; padding: 0 5px; border: 1px solid #dddddd; border-radius: 3px; background: #fff; color: var(--link-color, #3c699c); font-size: 11px; text-align: center; }
.nnm-threads .nnm-thread-stat { width: 8%; white-space: nowrap; color: #777777; font-size: 14px; font-variant-numeric: tabular-nums; }
.nnm-threads .nnm-thread-replies a { color: var(--link-color, #3c699c); font-weight: 400; }
.nnm-threads .nnm-thread-lastpost { width: 23%; min-width: 170px; text-align: right; color: var(--threads-muted); }
.nnm-threads .nnm-thread-lastpost .lastpost { line-height: 1.8; }
.nnm-threads .nnm-thread-lastpost .nnm-lastpost-date { color: #777777; }
.nnm-threads .nnm-lastpost-link { color: var(--link-color, #3c699c); margin-right: 4px; }
.nnm-threads input[type="checkbox"] { accent-color: var(--threads-purple); width: 15px; height: 15px; cursor: pointer; }
.nnm-threads .nnm-threads-table .tfoot { padding: 18px 22px; border: 0; background: #e3e8f0; }
.nnm-threads .tfoot form { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin: 0; }
.nnm-threads select { max-width: 100%; min-height: 35px; padding: 7px 28px 7px 10px; border: 1px solid #cccccc; border-radius: 3px; background-color: #fff; color: #545454; font-size: 13px; }
.nnm-threads input.button { min-height: 35px; background: var(--threads-purple); border: 0; color: #fff; border-radius: 3px; }
.nnm-threads .nnm-threads-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; padding: 18px 0; }
.nnm-threads .pagination { margin: 0; padding: 0; }
.nnm-threads .pagination a, .nnm-threads .pagination .pagination_current { display: inline-block; border-radius: 3px; padding: 6px 10px; border: 1px solid #dddddd; background: #fff; color: var(--link-color, #3c699c); }
.nnm-threads .pagination .pagination_current { background: var(--threads-purple); color: #fff; border-color: var(--threads-purple); }
.nnm-threads a:focus-visible, .nnm-threads input:focus-visible, .nnm-threads select:focus-visible { outline: 2px solid var(--primary-color, #873f6e); outline-offset: 3px; }
@media (max-width: 700px) {
    .nnm-forum-page #container { min-width: 0; width: calc(100% - 24px); }
    .nnm-forum-page #content, .nnm-forum-page #logo, .nnm-forum-page #footer { width: 100% !important; }
    .nnm-forum-page #logo img { max-width: 100%; height: auto; }
    .nnm-forum-page .in-rol-date-container { width: 100%; min-height: 30px; height: auto; flex-wrap: wrap; }
    .nnm-forum-page .in-rol-date-container > span { flex-wrap: wrap; justify-content: center; }
    .nnm-forum-page #content .wrapper { width: 100%; padding: 0; }
    .nnm-forum-page #content .wrapper > img, .nnm-forum-page #content .wrapper > a > img { max-width: 100%; height: auto; }
    .nnm-threads .nnm-threads-header { padding: 20px 16px; gap: 16px; flex-wrap: wrap; }

    .nnm-threads .nnm-threads-toolbar { padding: 12px 16px; }
    .nnm-threads .nnm-threads-tools { margin-left: 0; }
    .nnm-threads .nnm-threads-table, .nnm-threads .nnm-threads-table > tbody { display: block; }
    .nnm-threads .nnm-threads-table > colgroup { display: none; }
    .nnm-threads .nnm-threads-table tr.nnm-thread-columns { display: none; }
    .nnm-threads .nnm-threads-table tr { display: block; }
    .nnm-threads .nnm-threads-table td { display: block; width: auto; }
    .nnm-threads .nnm-threads-table .nnm-thread-row { display: grid; grid-template-columns: 60px minmax(0, 1fr) auto; padding: 14px 12px; gap: 8px; border-bottom: 1px solid var(--threads-line); background: #fff; }
    .nnm-threads .nnm-thread-row:has(.forumdisplay_sticky) { background: #fafbfc; }
    .nnm-threads .nnm-thread-row > td { padding: 0 !important; border: 0; background: transparent; }
    .nnm-threads .nnm-thread-row:has(input:checked) { background: #e3e8f0; }
    .nnm-threads .nnm-thread-status { grid-column: 1; grid-row: 1 / 3; }
    .nnm-threads .nnm-thread-title { grid-column: 2; grid-row: 1; min-width: 0; }
    .nnm-threads .nnm-thread-icon { grid-column: 1; grid-row: 3; text-align: center; }
    .nnm-threads .nnm-thread-stat { text-align: left; grid-column: 2; }
    .nnm-threads .nnm-thread-stat::after { content: ' ' attr(data-label); font-size: 10px; font-weight: 400; }
    .nnm-threads .nnm-thread-lastpost { grid-column: 2 / 4; min-width: 0; text-align: left; }
    .nnm-threads .nnm-thread-row > td:last-child:has(input[type="checkbox"]) { grid-column: 3; grid-row: 1; }
    .nnm-threads .tfoot form { justify-content: flex-start; }
    .nnm-threads .tfoot select { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .nnm-threads .nnm-thread-row > td { transition: none; }
}
