/* Weekly value layout, scoped so daily rank pages keep their existing rows. */
.kb-rankg-caption{margin:.5rem 0 0;color:#0e7490;font-size:.78rem;line-height:1.6}
.kb-rankg-weekly .kb-rankg-controls select{max-width:15rem}
.kb-rankg-metrics{display:flex;flex-direction:column;align-items:flex-end;flex:0 0 auto;gap:.3rem;min-width:11rem;font-variant-numeric:tabular-nums;white-space:nowrap}
.kb-rankg-metric-main{display:flex;align-items:center;justify-content:flex-end;gap:.7rem}
.kb-rankg-metrics .kb-rankg-change{flex:0 0 auto;font-size:.72rem}
.kb-rankg-value{font-size:.95rem;font-weight:650;color:#0f172a}
.kb-rankg-value-sub{color:#64748b;font-size:.75rem}
.kb-weekly-detail-caption{margin:0 0 1rem;font-size:.78rem;color:#64748b;line-height:1.6}
.kb-weekly-chart-grid{display:grid;gap:1rem;margin-bottom:1rem}
.kb-weekly-chart-card,.kb-weekly-table-card{background:#fff;border:1px solid #e2e8f0;border-radius:.8rem;overflow:hidden}
.kb-weekly-chart-card{padding:1rem .8rem .4rem}
.kb-weekly-chart-heading{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:0 .3rem}
.kb-weekly-chart-heading h2{margin:0;color:#334155;font-size:.9rem;font-weight:650}
.kb-weekly-chart-heading span{color:#94a3b8;font-size:.72rem}
.kb-weekly-chart{height:245px;width:100%;min-width:0}
.kb-weekly-table-card summary{padding:1rem;cursor:pointer;color:#334155;font-size:.85rem;font-weight:600}
.kb-weekly-table-card summary span{margin-left:.4rem;font-weight:400;color:#94a3b8;font-size:.7rem}
.kb-weekly-table-scroll{overflow-x:auto;padding:0 .8rem .8rem}
.kb-weekly-table-scroll table{width:100%;border-collapse:collapse;white-space:nowrap;font-size:.76rem;font-variant-numeric:tabular-nums}
.kb-weekly-table-scroll th{padding:.7rem .55rem;text-align:right;background:#f8fafc;font-weight:500;color:#64748b}
.kb-weekly-table-scroll td{padding:.8rem .55rem;text-align:right;border-top:1px solid #f1f5f9;color:#334155}
.kb-weekly-table-scroll th:first-child,.kb-weekly-table-scroll td:first-child{text-align:left}
@media(max-width:767px){
 .kb-rankg-metrics{min-width:0;max-width:45%;gap:.2rem}
 .kb-rankg-metric-main{gap:.35rem}
 .kb-rankg-value{font-size:.78rem}
 .kb-rankg-value-sub{font-size:.65rem}
 .kb-rankg-metrics .kb-rankg-change{flex-direction:row;font-size:.65rem}
 .kb-rankg-weekly .kb-rankg-icon{flex-basis:2.3rem;width:2.3rem;height:2.3rem}
 .kb-rankg-weekly .kb-rankg-row{gap:.4rem}
 .kb-rankg-weekly .kb-rankg-rank{flex-basis:1.5rem;font-size:1.15rem}
 .kb-rankg-weekly .kb-rankg-title{font-size:.8rem}
 .kb-rankg-weekly .kb-rankg-main .text-xs{font-size:.62rem}
 .kb-rankg-weekly .kb-rankg-controls select{max-width:100%;margin-left:auto}
 .kb-rankg-weekly .kb-rankg-facet-row:has(.kb-rankg-markers){flex-wrap:wrap}
 .kb-rankg-weekly .kb-rankg-markers{display:flex;flex:1 0 100%;justify-content:flex-end}
 .kb-weekly-chart{height:220px}
}
