/* ==========================================================================
   Review Dashboard
   Used by: [review_dashboard city="..."]
   ========================================================================== */

.th-dash *,
.th-dash *::before,
.th-dash *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.th-dash {
    /* font-family: 'Roboto', system-ui, sans-serif; */
    font-size: 15px;
    color: var(--th-ink);
    line-height: 1.6;
    max-width: 1160px;
    margin: 0 auto;
    padding: 2.5rem 0;
    -webkit-font-smoothing: antialiased;
}

/* ─── Section header ─── */
.th-dash .th-dash__hdr {
    text-align: center;
    margin-bottom: 2rem;
}
.th-dash .th-dash__title {
    font-size: 20px;
    color: var(--th-ink);
    line-height: 1.25;
    margin-bottom: 8px;
}
.th-dash .th-dash__desc {
    font-size: 13.5px;
    color: var(--th-ink-light);
    line-height: 1.7;
    max-width: 480px;
    margin-inline: auto;
    margin-bottom: 20px;
}

/* ─── Metric cards ─── */
.th-dash .th-dash__metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 1.5rem;
}
.th-dash .th-mc {
    background: var(--th-white);
    border: 1px solid var(--th-rule);
    border-radius: var(--th-radius-lg);
    padding: 14px 12px;
    text-align: center;
}
.th-dash .th-mc--feat {
    border-color: var(--th-gold);
    background: var(--th-gold-soft);
}
.th-dash .th-mc__num {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 2px;
}
.th-dash .th-mc__num--gold { color: var(--th-gold-dim); }
.th-dash .th-mc__num--teal { color: var(--th-teal); }
.th-dash .th-mc__num--ink  { color: var(--th-ink); }
.th-dash .th-mc__lbl {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--th-ink-light);
    font-weight: 500;
}

/* ─── Two-column layout ─── */
.th-dash .th-dash__cols {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 1.25rem;
    align-items: start;
    margin-bottom: 1.5rem;
}

/* ─── Chart card (left) ─── */
.th-dash .th-dash__chart {
    background: var(--th-white);
    border: 1px solid var(--th-rule);
    border-radius: var(--th-radius-lg);
    padding: 18px;
}
.th-dash .th-dash__chart-title {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--th-ink);
    margin-bottom: 8px;
}
.th-dash .th-dash__legend {
    display: flex;
    gap: 14px;
    font-size: 11.5px;
    color: var(--th-ink-light);
    margin-bottom: 10px;
}
.th-dash .th-dash__ldot {
    width: 9px;
    height: 9px;
    border-radius: 2px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 4px;
}
.th-dash .th-dash__donut-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 230px;
}
.th-dash .th-dash__donut-wrap svg {
    display: block;
    cursor: pointer;
    max-width: unset;
}

/* ─── Donut tooltip ─── */
.th-dash .th-dash__tooltip {
    position: absolute;
    display: none;
    background: rgba(0, 0, 0, .85);
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    line-height: 1.5;
    pointer-events: none;
    white-space: nowrap;
    z-index: 10;
}
.th-dash .th-dash__tooltip-title {
    font-weight: 700;
    margin-bottom: 3px;
}
.th-dash .th-dash__tooltip-val {
    display: flex;
    align-items: center;
    gap: 6px;
}
.th-dash .th-dash__tooltip-dot {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    flex-shrink: 0;
}

/* ─── Right panel ─── */
.th-dash .th-dash__right {
    min-width: 0;
}

/* ─── Tabs ─── */
.th-dash .th-dash__tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--th-rule);
    margin-bottom: 14px;
}
.th-dash .th-dash__tab {
    padding: 8px 14px;
    font-size: 12.5px;
    font-weight: 500;
    cursor: pointer;
    color: var(--th-ink-light);
    border: none;
    background: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all .15s;
    font-family: inherit;
}
.th-dash .th-dash__tab:hover {
    color: var(--th-ink);
}
.th-dash .th-dash__tab.th-active {
    color: var(--th-gold-dim);
    border-bottom-color: var(--th-gold);
}

/* ─── Tab content ─── */
.th-dash .th-dash__tc {
    display: none;
}
.th-dash .th-dash__tc.th-active {
    display: block;
}

/* ─── Tags ─── */
.th-dash .th-dash__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}
.th-dash .th-dash__tag {
    font-size: 11.5px;
    font-weight: 500;
    padding: 4px 11px;
    border-radius: 20px;
    line-height: 1.3;
}
.th-dash .th-dash__tag--pos {
    background: var(--th-teal-soft);
    color: var(--th-teal);
    border: 1px solid rgba(13, 115, 119, .2);
}
.th-dash .th-dash__tag--neg {
    background: var(--th-red-soft);
    color: var(--th-red);
    border: 1px solid rgba(217, 64, 64, .15);
}

/* ─── Horizontal bars ─── */
.th-dash .th-dash__bar {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 5px;
}
.th-dash .th-dash__bar-label {
    font-size: 12px;
    color: #4a4a4a;
    width: 160px;
    flex-shrink: 0;
    text-align: right;
}
.th-dash .th-dash__bar-track {
    flex: 1;
    height: 16px;
    background: var(--th-bg);
    border-radius: 3px;
    overflow: hidden;
}
.th-dash .th-dash__bar-fill {
    height: 100%;
    border-radius: 3px;
}
.th-dash .th-dash__bar-fill--pos { background: var(--th-teal); }
.th-dash .th-dash__bar-fill--neg { background: var(--th-red); }
.th-dash .th-dash__bar-ct {
    font-size: 11.5px;
    color: var(--th-ink-light);
    width: 22px;
    text-align: left;
}

/* ─── Quotes ─── */
.th-dash .th-dash__quote {
    background: var(--th-bg);
    border: 1px solid var(--th-rule);
    border-radius: var(--th-radius);
    padding: 10px 13px;
    margin-bottom: 6px;
}
.th-dash .th-dash__quote-text {
    font-size: 12.5px;
    color: #4a4a4a;
    line-height: 1.6;
    font-style: italic;
}
.th-dash .th-dash__quote-src {
    font-size: 11px;
    color: var(--th-ink-light);
    margin-top: 4px;
    font-style: normal;
}

/* ─── Sentiment label ─── */
.th-dash .th-dash__sl {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 8px;
}
.th-dash .th-dash__sl--pos {
    background: var(--th-teal-soft);
    color: var(--th-teal);
    border: 1px solid rgba(13, 115, 119, .2);
}
.th-dash .th-dash__sl--neg {
    background: var(--th-red-soft);
    color: var(--th-red);
    border: 1px solid rgba(217, 64, 64, .15);
}

/* ─── Verdict box ─── */
.th-dash .th-dash__verdict {
    background: var(--th-gold-soft);
    border: 1px solid var(--th-gold-mid);
    border-radius: var(--th-radius-lg);
    padding: 18px 20px;
}
.th-dash .th-dash__verdict-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--th-gold-dim);
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: 6px;
}
.th-dash .th-dash__verdict p {
    font-size: 13.5px;
    color: #4a4a4a;
    line-height: 1.7;
    margin-bottom: 8px !important;
}
.th-dash .th-dash__verdict p:last-child {
    margin-bottom: 0 !important;
}
.th-dash .th-dash__verdict strong {
    color: var(--th-ink);
}

/* ─── Responsive ─── */
@media (max-width: 767px) {
    .th-dash {
        padding: 3.5rem 0 1.5rem;
        clear: both;
    }
    .th-dash .th-dash__desc{
        font-size: 12.5px;
        line-height: 1.5;
    }
    .th-dash .th-dash__cols {
        grid-template-columns: 1fr;
    }
    .th-dash .th-dash__bar-label {
        width: 120px;
        font-size: 11px;
    }
    .th-dash .th-dash__tab {
        padding: 7px 10px;
        font-size: 11.5px;
    }
}
