/**
 * Copyright (c) 2026 DNA Genics, S.L. All rights reserved.
 *
 * Shared Traits chart regions, exact-value tables and print presentation.
 */
.hts-page .htg-chart-region { min-width:0; }
.hts-page .htg-chart-host { position:relative; min-height:0 !important; width:100%; min-width:0; height:400px; max-width:780px; margin-inline:auto; }
.hts-page .htg-chart-host--politics { height:420px; }
.hts-page .htg-chart-host canvas { display:block; max-width:100%; }
.hts-page .htg-chart-status { margin:12px 0; color:var(--hd-muted); font-size:13px; line-height:1.7; }
.hts-page .htg-chart-retry { min-height:44px; margin:0 0 16px; padding:10px 16px; border:1px solid var(--hd-border); border-radius:6px; background:var(--hd-surface); color:var(--hd-forest); font-size:14px; }
.hts-page .htg-chart-values { margin-top:18px; border-top:1px solid var(--hd-border); padding-top:12px; }
.hts-page .htg-chart-values summary { min-height:44px; padding:10px 0; color:var(--hd-forest); font-weight:600; cursor:pointer; }
.hts-page .htg-chart-table-region { max-width:100%; overflow:auto; }
.hts-page .htg-chart-table { width:100%; min-width:240px; border-collapse:collapse; margin:8px 0 0; font-size:14px; text-align:left; }
.hts-page .htg-chart-table caption { caption-side:top; padding:0 0 12px; color:var(--hd-muted); font-size:13px; }
.hts-page .htg-chart-table :is(th,td) { padding:10px 12px; border-bottom:1px solid var(--hd-border); overflow-wrap:anywhere; }
.hts-page .htg-chart-table thead th { background:var(--hd-sand); color:var(--hd-forest); }
.hts-page .htg-chart-table tbody th { width:70%; font-weight:500; }
@media screen {
    .hts-page .htg-chart-table :is(th,td) { overflow-wrap:normal; word-break:normal; }
    .hts-page .htg-chart-table thead th { white-space:nowrap; }
}
@media screen {
    /* The radar's series and labels are drawn in dark ink. Keep their
       original contrast and data colors when the surrounding page is dark. */
    :is([data-theme="dark"], .theme-dark, .dark-theme) .hts-page .htg-chart-host canvas {
        background-color: #faf8f4;
        outline: 1px solid #819980;
        border-radius: 8px;
    }
    :is([data-theme="dark"], .theme-dark, .dark-theme) .hts-page .htg-chart-values summary,
    :is([data-theme="dark"], .theme-dark, .dark-theme) .hts-page .htg-chart-retry {
        color: #f3eee3 !important;
        background-color: #20372a;
        border-color: #819980;
    }
    :is([data-theme="dark"], .theme-dark, .dark-theme) .hts-page .htg-chart-values summary:focus-visible,
    :is([data-theme="dark"], .theme-dark, .dark-theme) .hts-page .htg-chart-retry:focus-visible {
        outline: 3px solid #dfc58b;
        outline-offset: 3px;
    }
}
@media(max-width:575px) { .hts-page .htg-chart-host,.hts-page .htg-chart-host--politics { height:340px; } .hts-page .htg-chart-table :is(th,td) { padding:10px 8px; } }
@media print { .hts-page .htg-chart-host,.hts-page .htg-chart-host--politics { height:360px; max-width:600px; break-inside:avoid; } .hts-page .htg-chart-values { display:block !important; } .hts-page .htg-chart-retry { display:none !important; } .hts-page .htg-chart-table-region { overflow:visible; } }
