.hhq-trends {
    --trends-panel: #151e28;
    --trends-border: #2a3949;
    --trends-muted: #9cabbc;
    --trends-accent: #2de2e6;
    max-width: 1180px;
    margin: 0 auto 48px;
    color: #f5f7fa;
}

.hhq-trends__header {
    margin: 18px 0 24px;
}

.hhq-trends__eyebrow {
    color: var(--trends-accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
}

.hhq-trends__header h1 {
    margin: 8px 0;
    color: #fff;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.12;
}

.hhq-trends__header p,
.hhq-trends__chart-heading p {
    max-width: 760px;
    margin: 8px 0 0;
    color: var(--trends-muted);
    line-height: 1.6;
}

.hhq-trends__segments,
.hhq-trends__periods {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin: 16px 0;
}

.hhq-trends__segments a,
.hhq-trends__periods a {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border: 1px solid var(--trends-border);
    border-radius: 999px;
    background: var(--trends-panel);
    color: #dce5ee;
    font-size: 14px;
    text-decoration: none;
}

.hhq-trends__segments a:hover,
.hhq-trends__periods a:hover {
    border-color: var(--trends-accent);
    color: #fff;
}

.hhq-trends__segments a[aria-current="page"],
.hhq-trends__periods a[aria-current="page"] {
    border-color: var(--trends-accent);
    background: rgba(45, 226, 230, .12);
    color: #fff;
    font-weight: 700;
}

.hhq-trends__periods > span {
    margin-right: 4px;
    color: var(--trends-muted);
    font-size: 14px;
    font-weight: 700;
}

.hhq-trends__coverage {
    margin: 22px 0 12px;
    color: var(--trends-muted);
    font-size: 14px;
}

.hhq-trends__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 16px 0 22px;
}

.hhq-trends__stat {
    display: flex;
    min-height: 132px;
    flex-direction: column;
    gap: 8px;
    padding: 18px;
    border: 1px solid var(--trends-border);
    border-radius: 12px;
    background: var(--trends-panel);
}

.hhq-trends__stat > span {
    color: var(--trends-muted);
    font-size: 13px;
    font-weight: 700;
}

.hhq-trends__stat strong {
    color: #fff;
    font-size: clamp(21px, 2.2vw, 29px);
    line-height: 1.2;
}

.hhq-trends__stat small {
    margin-top: auto;
    color: var(--trends-muted);
    font-size: 12px;
    line-height: 1.45;
}

.hhq-trends__chart-panel,
.hhq-trends__empty,
.hhq-trends__table,
.hhq-trends__method {
    margin: 18px 0;
    border: 1px solid var(--trends-border);
    border-radius: 12px;
    background: var(--trends-panel);
}

.hhq-trends__chart-panel {
    padding: 18px 20px 12px;
}

.hhq-trends__chart-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.hhq-trends__chart-heading h2,
.hhq-trends__empty h2 {
    margin: 0;
    color: #fff;
    font-size: 20px;
}

.hhq-trends__chart-heading p {
    font-size: 13px;
}

.hhq-trends__legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 14px;
    color: var(--trends-muted);
    font-size: 12px;
}

.hhq-trends__legend span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.hhq-trends__legend i {
    display: inline-block;
    width: 20px;
    height: 3px;
    background: var(--trends-accent);
}

.hhq-trends__legend .hhq-trends__legend-band {
    height: 12px;
    border: 1px solid rgba(45, 226, 230, .42);
    background: rgba(45, 226, 230, .16);
}

.hhq-trends__chart {
    width: 100%;
    overflow: hidden;
}

.hhq-trends__svg {
    display: block;
    width: 100%;
    height: auto;
    min-height: 230px;
}

.hhq-trends__table,
.hhq-trends__method {
    padding: 0 18px;
}

.hhq-trends__table summary,
.hhq-trends__method summary {
    padding: 16px 0;
    color: #f5f7fa;
    cursor: pointer;
    font-weight: 700;
}

.hhq-trends__table-scroll {
    max-height: 420px;
    overflow: auto;
    border-top: 1px solid var(--trends-border);
}

.hhq-trends__table table {
    width: 100%;
    border-collapse: collapse;
    color: #e8edf3;
    font-size: 14px;
}

.hhq-trends__table th,
.hhq-trends__table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--trends-border);
    text-align: left;
    white-space: nowrap;
}

.hhq-trends__table thead th {
    position: sticky;
    top: 0;
    background: #1b2632;
    color: var(--trends-muted);
}

.hhq-trends__method ul {
    margin: 0;
    padding: 0 0 18px 20px;
    color: var(--trends-muted);
    line-height: 1.65;
}

.hhq-trends__method li + li {
    margin-top: 6px;
}

.hhq-trends__empty {
    padding: 24px;
}

.hhq-trends__empty p {
    margin: 8px 0 0;
    color: var(--trends-muted);
    line-height: 1.6;
}

@media (max-width: 760px) {
    .hhq-trends__stats {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .hhq-trends__stat {
        min-height: 112px;
    }

    .hhq-trends__chart-panel {
        padding: 16px 10px 10px;
    }

    .hhq-trends__chart-heading {
        flex-direction: column;
    }

    .hhq-trends__legend {
        justify-content: flex-start;
    }

    .hhq-trends__svg {
        min-height: 190px;
    }
}