/* Phase 1B result presentation. Scoped to the rebuilt, non-blog shell. */
.non-blog-page {
    --kq-result-navy: #102f58;
    --kq-result-blue: #1d4ed8;
    --kq-result-blue-light: #eff6ff;
    --kq-result-ink: #132b4f;
    --kq-result-muted: #526987;
    --kq-result-border: #d5e1ef;
    --kq-result-row: #f7faff;
    --kq-result-danger: #cf2732;
}

.non-blog-page .box:has([data-id="kq"]) {
    min-width: 0;
    margin: 0 0 16px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--kq-result-border);
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(16, 47, 88, .05);
}

.non-blog-page .box:has([data-id="kq"]) > .tit-mien,
.non-blog-page .box:has([data-id="kq"]) > .kq-result-header {
    min-height: 64px;
    padding: 11px 14px 10px;
    color: #fff;
    text-align: left;
    background: linear-gradient(110deg, var(--kq-result-navy) 0%, #173f7d 54%, var(--kq-result-blue) 100%);
    border: 0;
}

.non-blog-page .box:has([data-id="kq"]) > .tit-mien h2,
.non-blog-page .box:has([data-id="kq"]) > .kq-result-header h2 {
    margin: 0 0 3px;
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: -.01em;
}

.non-blog-page .box:has([data-id="kq"]) > .tit-mien div,
.non-blog-page .box:has([data-id="kq"]) > .kq-result-header div {
    color: rgba(255, 255, 255, .82);
    font-size: 13px;
    line-height: 1.55;
}

.non-blog-page .box:has([data-id="kq"]) > .tit-mien a,
.non-blog-page .box:has([data-id="kq"]) > .kq-result-header a,
.non-blog-page .box:has([data-id="kq"]) > .tit-mien a:visited,
.non-blog-page .box:has([data-id="kq"]) > .kq-result-header a:visited {
    color: #fff;
    text-decoration-color: rgba(255, 255, 255, .45);
    text-underline-offset: 2px;
}

.non-blog-page .box:has([data-id="kq"]) [data-id="kq"] {
    max-width: 100%;
    overflow-x: auto;
    background: #fff;
    scrollbar-color: #a8bdd7 #eef4fb;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.non-blog-page .box:has([data-id="kq"]) table.extendable {
    width: 100%;
    margin: 0;
    border-spacing: 0;
    border-collapse: collapse;
    font-variant-numeric: tabular-nums;
}

.non-blog-page .box:has([data-id="kq"]) table.extendable th,
.non-blog-page .box:has([data-id="kq"]) table.extendable td {
    border-color: var(--kq-result-border);
}

.non-blog-page .box:has([data-id="kq"]) table.extendable tr:nth-child(even) > td {
    background-color: var(--kq-result-row);
}

.non-blog-page .box:has([data-id="kq"]) table.extendable th {
    padding: 10px 8px;
    color: #17457f;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.3;
    background: var(--kq-result-blue-light);
}

.non-blog-page .box:has([data-id="kq"]) table.extendable th a,
.non-blog-page .box:has([data-id="kq"]) table.extendable th a:visited {
    color: #17457f;
    text-decoration: none;
}

.non-blog-page .box:has([data-id="kq"]) table.extendable th a:hover {
    color: var(--kq-result-blue);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.non-blog-page .box:has([data-id="kq"]) table.kqmb td.txt-giai,
.non-blog-page .box:has([data-id="kq"]) table.kqmb td.titgiai,
.non-blog-page .box:has([data-id="kq"]) table.colgiai > tbody > tr > td:first-child {
    width: 72px;
    min-width: 72px;
    padding: 8px 6px;
    color: var(--kq-result-muted);
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
    background: #f8fafc;
}

.non-blog-page .box:has([data-id="kq"]) table.kqmb td.v-giai,
.non-blog-page .box:has([data-id="kq"]) table.colgiai > tbody > tr > td:not(:first-child) {
    color: var(--kq-result-ink);
    font-weight: 800;
    text-align: center;
}

.non-blog-page .box:has([data-id="kq"]) table.kqmb td.number {
    color: var(--kq-result-ink);
    font-size: 24px;
    line-height: 1.25;
}

.non-blog-page .box:has([data-id="kq"]) table.kqmb td.v-giai span[class^="v-g"] {
    min-height: 38px;
    padding-top: 7px;
    padding-bottom: 7px;
}

.non-blog-page .box:has([data-id="kq"]) table.kqmb .db td.number,
.non-blog-page .box:has([data-id="kq"]) table.colgiai tr.gdb td:not(:first-child),
.non-blog-page .box:has([data-id="kq"]) table.colgiai tr.g8 td:not(:first-child) {
    color: var(--kq-result-danger);
}

.non-blog-page .box:has([data-id="kq"]) table.kqmb .db td.number {
    font-size: 30px;
}

.non-blog-page .box:has([data-id="kq"]) .madb {
    padding: 8px 10px;
    color: #1e40af;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .02em;
    background: #f8fbff;
}

.non-blog-page .box:has([data-id="kq"]) table.colgiai td > div[class^="v-g"] {
    min-height: 34px;
    padding: 5px 3px;
    color: inherit;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.15;
}

.non-blog-page .box:has([data-id="kq"]) table.colgiai tr.gdb td > div,
.non-blog-page .box:has([data-id="kq"]) table.colgiai tr.g8 td > div {
    font-size: 25px;
}

.non-blog-page .box:has([data-id="kq"]) .control-panel {
    min-height: 38px;
    padding: 7px 12px;
    color: var(--kq-result-muted);
    background: #f8fafc;
    border-top: 1px solid var(--kq-result-border);
    border-bottom: 1px solid var(--kq-result-border);
}

.non-blog-page .box:has([data-id="kq"]) .list-number {
    color: #24476f;
    font-size: 13px;
    background: #fff;
}

.non-blog-page .box:has([data-id="kq"]) .col-firstlast {
    max-width: 100%;
    padding: 12px;
    overflow-x: auto;
    background: #fff;
    -webkit-overflow-scrolling: touch;
}

.non-blog-page .box:has([data-id="kq"]) .col-firstlast:has(.firstlast-mb) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
}

.non-blog-page .box:has([data-id="kq"]) .firstlast-mb.fl,
.non-blog-page .box:has([data-id="kq"]) .firstlast-mb.fr {
    float: none;
    width: 100%;
}

.non-blog-page .box:has([data-id="kq"]) .col-firstlast table {
    width: 100%;
    border-spacing: 0;
    border-collapse: separate;
    border: 1px solid var(--kq-result-border);
    border-radius: 7px;
    overflow: hidden;
    color: var(--kq-result-ink);
    font-variant-numeric: tabular-nums;
}

.non-blog-page .box:has([data-id="kq"]) .col-firstlast th,
.non-blog-page .box:has([data-id="kq"]) .col-firstlast td {
    padding: 7px 8px;
    border-color: var(--kq-result-border);
    line-height: 1.35;
}

.non-blog-page .box:has([data-id="kq"]) .col-firstlast thead th,
.non-blog-page .box:has([data-id="kq"]) .col-firstlast tr.header th {
    color: #17457f;
    background: var(--kq-result-blue-light);
}

.non-blog-page .box:has([data-id="kq"]) .col-firstlast tbody tr:nth-child(even) > * {
    background: var(--kq-result-row);
}

.non-blog-page .box:has([data-id="kq"]) .col-firstlast .clnote {
    width: 48px;
    color: var(--kq-result-blue);
    text-align: center;
    background: #f8fafc;
}

.non-blog-page .tab-panel {
    display: flex;
    gap: 6px;
    max-width: 100%;
    margin: 10px 0 12px;
    padding: 0 0 2px;
    overflow-x: auto;
    list-style: none;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.non-blog-page .tab-panel > li {
    flex: 0 0 auto;
}

.non-blog-page .tab-panel > li > a {
    display: flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    color: #23558f;
    font-weight: 700;
    background: #fff;
    border: 1px solid var(--kq-result-border);
    border-radius: 7px;
}

.non-blog-page .tab-panel > li.active > a {
    color: #fff;
    background: var(--kq-result-blue);
    border-color: var(--kq-result-blue);
}

.non-blog-page .province-hub,
.non-blog-page .site-province-hub {
    border-color: var(--kq-result-border);
    border-radius: 9px;
    overflow: hidden;
}

@media (max-width: 767px) {
    .non-blog-page .box:has([data-id="kq"]) {
        margin-bottom: 13px;
        border-radius: 8px;
    }

    .non-blog-page .box:has([data-id="kq"]) > .tit-mien,
    .non-blog-page .box:has([data-id="kq"]) > .kq-result-header {
        min-height: 0;
        padding: 9px 11px;
    }

    .non-blog-page .box:has([data-id="kq"]) > .tit-mien h2,
    .non-blog-page .box:has([data-id="kq"]) > .kq-result-header h2 {
        font-size: 16px;
        line-height: 1.3;
    }

    .non-blog-page .box:has([data-id="kq"]) > .tit-mien div,
    .non-blog-page .box:has([data-id="kq"]) > .kq-result-header div {
        font-size: 12px;
    }

    .non-blog-page .box:has([data-id="kq"]) table.kqmb td.txt-giai,
    .non-blog-page .box:has([data-id="kq"]) table.kqmb td.titgiai,
    .non-blog-page .box:has([data-id="kq"]) table.colgiai > tbody > tr > td:first-child {
        width: 48px;
        min-width: 48px;
        padding-right: 4px;
        padding-left: 4px;
        font-size: 12px;
    }

    .non-blog-page .box:has([data-id="kq"]) table.kqmb td.number {
        font-size: 20px;
    }

    .non-blog-page .box:has([data-id="kq"]) table.kqmb .db td.number {
        font-size: 27px;
    }

    .non-blog-page .box:has([data-id="kq"]) table.colgiai td > div[class^="v-g"] {
        min-height: 31px;
        padding: 4px 2px;
        font-size: 19px;
    }

    .non-blog-page .box:has([data-id="kq"]) table.colgiai tr.gdb td > div,
    .non-blog-page .box:has([data-id="kq"]) table.colgiai tr.g8 td > div {
        font-size: 22px;
    }

    .non-blog-page .box:has([data-id="kq"]) table.colfourcity {
        min-width: 520px;
    }

    .non-blog-page .box:has([data-id="kq"]) table.colthreecity {
        min-width: 360px;
    }

    .non-blog-page .box:has([data-id="kq"]) .col-firstlast {
        padding: 8px;
    }

    .non-blog-page .box:has([data-id="kq"]) .col-firstlast th,
    .non-blog-page .box:has([data-id="kq"]) .col-firstlast td {
        padding: 6px;
        font-size: 12px;
    }

    .non-blog-page .box:has([data-id="kq"]) .col-firstlast:has(.firstlast-mb) {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .non-blog-page .tab-panel > li > a {
        min-height: 40px;
        padding: 8px 13px;
    }
}
