/* Calgary's rankings (scripts/top_pages.py): what these pages add to /pages.css. */
.rankings .lead { margin: 4px 0 12px; }
.siblings { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 4px; padding: 0; list-style: none; }
.siblings a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); font-size: 14px; font-weight: 600; text-decoration: none; }
.siblings a[aria-current] { background: var(--accent); color: var(--on-accent, #fff); box-shadow: none; }
ol.rank { list-style: none; margin: 0; padding: 0; }
ol.rank li { border-top: 1px solid var(--line); }
ol.rank li:first-child { border-top: 0; }
ol.rank:not(.all) li.rest { display: none; }
/* (rows start-aligned on lines of one height, not on their baselines: Safari made a baseline-aligned two-line row 0.38px
   taller than Chrome did, 7px by the list's foot) */
ol.rank a { display: grid; grid-template-columns: 2.2em minmax(0, 1fr) auto; gap: 2px 10px; align-items: start; min-height: 56px; padding: 9px 4px; margin: 0 -4px; border-radius: 10px; color: inherit; text-decoration: none; }
ol.rank a:hover, ol.rank a:focus-visible { background: var(--line); }
ol.rank .n { color: var(--muted); font-variant-numeric: tabular-nums; font-weight: 650; text-align: right; padding-right: 4px; }
ol.rank li:nth-child(-n+3) .n { color: var(--accent); }
ol.rank .who { min-width: 0; }
ol.rank b { font-weight: 650; }
ol.rank .who b { display: block; overflow-wrap: anywhere; }
/* (whole-pixel line heights: at 17.55px and 25.5px Chrome and Safari rounded a row differently, a pixel each, 20px by the list's foot) */
ol.rank small { display: block; color: var(--muted); font-size: 13px; line-height: 18px; }
ol.rank .fig { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
ol.rank .fig { font-size: 17px; line-height: 24px; } /* (the figure's size on its box, so the line is the bold figure's own 24px: set on the <b> alone, the line was 24.38px in Safari) */
ol.rank .mark { grid-column: 2 / -1; color: #9a5b00; font-size: 13px; line-height: 20px; }
ol.rank li:target a { background: var(--line); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 2px; }
.actions button { min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; font: inherit; font-weight: 650; font-size: 15px; cursor: pointer; background: var(--accent); color: var(--on-accent, #fff); }
/* (the second button, as Your tax bill's: white, dark words) */
.actions button.quiet { background: rgba(255, 255, 255, 0.6); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(13, 20, 34, 0.1); }
.method p { margin: 0 0 10px; color: var(--ink-2); font-size: 15px; }
.method p:last-child { margin: 0; }
.rankings .head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.rankings .head { flex-wrap: wrap; }
.rankings .head h2 { white-space: nowrap; }
.rankings .head span { color: var(--muted); font-size: 13px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 12px; margin: 10px 0 22px; }
.cards a { display: block; background: var(--card); border-radius: 20px; padding: 14px 16px; box-shadow: 0 6px 24px rgba(15, 23, 42, 0.08); color: inherit; text-decoration: none; }
.cards a:hover, .cards a:focus-visible { box-shadow: 0 6px 24px rgba(15, 23, 42, 0.08), inset 0 0 0 2px var(--accent); }
.cards h3 { margin: 0 0 2px; font-size: 16px; color: var(--accent); }
.cards p { margin: 0 0 8px; color: var(--muted); font-size: 13px; }
.cards ol { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.cards li { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; }
.cards li span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cards li span:last-child { color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rankings h2.group { margin: 22px 0 0; font-size: 20px; letter-spacing: -0.01em; }
/* (the page's column is /pages.css's own now, 860px, and its bar the site's: nothing to add here) */
@media (max-width: 560px) {
  ol.rank a { grid-template-columns: 1.8em minmax(0, 1fr); }
  ol.rank .fig { grid-column: 2; text-align: left; white-space: normal; }
  ol.rank .fig b, ol.rank .fig small { display: inline; }
  ol.rank .fig small { margin-left: 6px; line-height: 1; } /* (the line is as tall as its bold figure in every browser: the small words' own line box made it 24.38px in Safari) */
}
@media (max-width: 420px) { header { gap: 4px; } }
