/* Existing table declarations reused from best-countries-to-live.astro; shared styles stay untouched. */
.ranking-scroll{width:100%;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;border:1px solid var(--line-strong);border-radius:var(--radius-md);background:var(--paper);isolation:isolate;scrollbar-color:var(--brand) var(--paper-subtle)}
.indices-table{width:100%;min-width:1150px;table-layout:fixed;border-collapse:separate;border-spacing:0;font-size:14px;font-variant-numeric:tabular-nums}
.indices-table th,.indices-table td{text-align:center;vertical-align:middle}
.indices-table thead th{position:relative;height:152px;padding:14px 8px;background:var(--paper-subtle);font-size:12px;font-weight:700;border-bottom:2px solid var(--line-strong);line-height:1.4}
.indices-table tbody tr{--row-bg:var(--paper)}
.indices-table tbody tr:nth-child(even){--row-bg:#f8fafb}
.indices-table tbody tr:hover{--row-bg:var(--paper-accent)}
.indices-table tbody td,.indices-table tbody th{background:var(--row-bg);padding:8px 7px;height:44px;border-bottom:1px solid var(--line-soft)}
.indices-table tbody tr:last-child td,.indices-table tbody tr:last-child th{border-bottom:0}
/* Layout adaptations for this four/five-column table and ranking-only controls. */
.indices-table{min-width:650px;table-layout:fixed}.indices-table thead th{height:auto}.indices-table tbody th{text-align:left}.indices-table button{font:inherit;color:inherit;background:none;border:0;padding:6px 0;cursor:pointer;text-align:inherit}.indices-table caption{text-align:left;padding:16px;font-weight:700}.ranking-section>p,.coverage{max-width:85ch;overflow-wrap:anywhere}.coverage,figcaption{color:var(--muted);font-size:var(--type-sm)}.ranking-section figure{margin:0}.ranking-section figure img{display:block;width:100%;max-width:1200px;height:auto;aspect-ratio:1200/630}.ranking-section figcaption{margin-top:10px}.ranking-section textarea{box-sizing:border-box;display:block;width:100%;max-width:100%;padding:12px;margin:8px 0 12px;resize:vertical;font:14px/1.5 var(--font-data);color:var(--ink);background:var(--paper);border:1px solid var(--line);border-radius:var(--radius-sm)}.ranking-section code{overflow-wrap:anywhere;font-family:var(--font-data);font-size:13px}.sort-status{min-height:24px}.rankings-group>p{max-width:80ch}.rankings-group h3{margin-top:0}.rankings-group .card p{color:var(--muted)}
