/* githubrankings.io — Direction A, "Standings". Barlow Condensed + Barlow, deep plum, one amber accent. */
:root {
  --ground: #22132A; --surface: #3A2444; --text: #F4EEF2; --dim: #D9C8E0; --muted: #B79FC0; --accent: #F2B33D; --line: rgba(244,238,242,0.08); --line2: rgba(244,238,242,0.14);
}
* { box-sizing: border-box; }
html { background: var(--ground); }
body { margin: 0; background: var(--ground); background-image: radial-gradient(1200px 600px at 20% -10%, rgba(242,179,61,0.08), transparent 60%); color: var(--text); font-family: "Barlow", "Helvetica Neue", Arial, sans-serif; font-size: 16px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
.num { font-family: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", sans-serif; font-variant-numeric: tabular-nums; }
h1, h2 { margin: 0; font-weight: 700; line-height: 1; }
code { font-family: "Barlow", sans-serif; }
.sub { font-size: 15px; color: var(--muted); }
.r { text-align: right; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px clamp(16px, 4vw, 56px) 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.brand { display: flex; align-items: baseline; gap: 14px; }
.brand .num { font-size: 30px; font-weight: 800; letter-spacing: -0.01em; }
.brand .tag { font-size: 14px; color: var(--muted); }
.top nav { display: flex; align-items: center; gap: 26px; font-size: 16px; font-weight: 500; flex-wrap: wrap; }
.top nav a.active { color: var(--accent); border-bottom: 2px solid var(--accent); padding-bottom: 2px; }
.top nav a.cta.active { border-bottom: 0; }
.find { display: flex; align-items: center; gap: 10px; background: rgba(244,238,242,0.06); border: 1px solid var(--line2); border-radius: 6px; padding: 8px 12px; color: var(--muted); width: 240px; }
.find input { background: transparent; border: 0; outline: 0; color: var(--text); font: inherit; width: 100%; }
.find input::placeholder { color: var(--muted); }
.find:focus-within { border-color: var(--accent); }
.cta { background: var(--accent); color: var(--ground) !important; font-size: 18px; font-weight: 700; padding: 10px 18px; border-radius: 6px; }
.cta:hover { background: #FFC85A; }
.cta.block { display: block; text-align: center; margin-top: 16px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

main { padding: 0 clamp(16px, 4vw, 56px) 48px; }
.hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; padding: 44px 0 18px; }
.hero h1 { font-size: clamp(44px, 6vw, 72px); letter-spacing: -0.015em; line-height: 0.95; max-width: 900px; }
.lede { font-size: 18px; color: var(--dim); margin: 16px 0 0; max-width: 760px; }
.aside { text-align: right; color: var(--muted); font-size: 14px; line-height: 1.5; white-space: nowrap; }

.board .head, .row { display: grid; grid-template-columns: 150px minmax(0, 1fr) 300px 190px 120px 80px; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.board .head { font-size: 14px; color: var(--muted); border-bottom-color: var(--line2); padding-top: 10px; padding-bottom: 10px; }
.row { color: var(--text); }
.row:nth-child(odd) { background: rgba(244,238,242,0.025); }
.row:hover { background: rgba(242,179,61,0.08); color: var(--text); }
.row .rank { font-size: 44px; font-weight: 700; line-height: 0.8; color: var(--dim); letter-spacing: -0.02em; }
.row .who { display: flex; align-items: center; gap: 16px; min-width: 0; }
.row .who > div { min-width: 0; }
.row .name { font-size: 20px; font-weight: 600; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .repo .rn { font-size: 16px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .stars { font-size: 30px; font-weight: 700; text-align: right; }
.row .chg { text-align: right; font-size: 20px; font-weight: 600; }
.row .tc { text-align: right; }
.av { width: 44px; height: 44px; border-radius: 50%; background: var(--surface); object-fit: cover; flex: none; }
.av.lg { width: 64px; height: 64px; }
.mv.up { color: var(--accent); } .mv.down, .mv.same { color: var(--muted); } .mv.new { color: var(--dim); font-size: 0.8em; }
.tier { display: inline-block; color: var(--ground); font-family: "Barlow Condensed", sans-serif; font-size: 18px; font-weight: 800; padding: 3px 11px; border-radius: 4px; line-height: 1.2; }
.tier.big { font-size: 26px; padding: 4px 14px; }
.row.p1 { background: rgba(242,179,61,0.06); }
.row.p1 .rank { font-size: 148px; color: var(--accent); letter-spacing: -0.04em; font-weight: 800; }
.row.p2 .rank { font-size: 108px; color: var(--text); letter-spacing: -0.04em; font-weight: 800; }
.row.p3 .rank { font-size: 84px; color: var(--text); letter-spacing: -0.04em; font-weight: 800; }
.row.p1 .name, .row.p2 .name, .row.p3 .name { font-family: "Barlow Condensed", sans-serif; font-weight: 700; }
.row.p1 .name { font-size: 34px; } .row.p2 .name { font-size: 30px; } .row.p3 .name { font-size: 28px; }
.row.p1 .av { width: 64px; height: 64px; } .row.p2 .av { width: 56px; height: 56px; } .row.p3 .av { width: 52px; height: 52px; }
.row.p1 .stars { font-size: 44px; } .row.p2 .stars { font-size: 40px; } .row.p3 .stars { font-size: 36px; }
.empty { padding: 40px 20px; color: var(--dim); font-size: 18px; }

.pager { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 24px; flex-wrap: wrap; }
.pl { display: flex; gap: 12px; }
.btn { font-size: 20px; font-weight: 700; border: 1px solid rgba(244,238,242,0.25); padding: 10px 20px; border-radius: 6px; }
.btn:hover { border-color: var(--accent); }

.twoup { margin-top: 64px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.cell { border-top: 3px solid rgba(244,238,242,0.25); padding-top: 20px; }
.cell.accent { border-top-color: var(--accent); }
.cell h2 { font-size: 34px; }
.cell p { color: var(--dim); margin: 12px 0 0; max-width: 560px; line-height: 1.6; }
.badgerow { margin-top: 20px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.snip, .badgerow code { display: block; font-size: 14px; background: rgba(0,0,0,0.35); border: 1px solid var(--line2); padding: 10px 14px; border-radius: 6px; color: var(--dim); word-break: break-all; line-height: 1.5; }
.more { display: inline-block; margin-top: 14px; font-weight: 600; color: var(--accent); }

.profile { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 56px; align-items: start; padding-top: 40px; }
.rankblock { display: flex; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.bigrank { font-size: clamp(120px, 15vw, 220px); font-weight: 800; line-height: 0.82; letter-spacing: -0.05em; color: var(--accent); margin-top: 6px; }
.ident { padding-bottom: 12px; min-width: 0; }
.ident .who { display: flex; align-items: center; gap: 16px; }
.ident h1 { font-size: 40px; }
.facts { display: flex; gap: 36px; margin-top: 26px; flex-wrap: wrap; }
.facts .sub { font-size: 14px; }
.fv { font-size: 48px; font-weight: 700; line-height: 1; }
.fv .mv.up { color: var(--accent); }
.profile h2 { font-size: 26px; margin-top: 48px; }
.bars { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.bar { display: grid; grid-template-columns: 220px minmax(0, 1fr) 110px; align-items: center; gap: 16px; }
.bar .bn { font-size: 17px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar .bt { height: 26px; background: rgba(244,238,242,0.08); border-radius: 3px; }
.bar .bf { height: 26px; background: var(--accent); border-radius: 3px; }
.bar .bv { font-size: 22px; font-weight: 700; text-align: right; }
.bar.rest .bn, .bar.rest .bv { color: var(--muted); }
.bar.rest .bf { background: #8A6B99; }
.histhead { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.histhead h2 { margin-top: 48px; }
.hist { width: 100%; height: auto; margin-top: 12px; display: block; }
.hist .grid { stroke: rgba(244,238,242,0.10); }
.hist .lbl { fill: var(--muted); font-family: "Barlow", sans-serif; font-size: 13px; }
.hist .line { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.hist .dot { fill: var(--accent); }
.side { background: rgba(244,238,242,0.04); border: 1px solid rgba(244,238,242,0.10); border-radius: 8px; padding: 26px; margin-top: 30px; }
.side h2 { font-size: 26px; margin: 0; }
.side p { font-size: 15px; color: var(--dim); margin: 10px 0 0; }
.badges { margin-top: 18px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.badges img { height: 20px; }
.side .snip { margin-top: 18px; font-size: 13px; }
.meta { margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(244,238,242,0.10); font-size: 14px; color: var(--muted); line-height: 1.6; }
.meta a { color: var(--dim); text-decoration: underline; }
h1.big { font-size: clamp(36px, 5vw, 56px); margin-top: 8px; }

.prose { max-width: 760px; padding-top: 44px; }
.prose h1 { font-size: clamp(40px, 5vw, 56px); letter-spacing: -0.015em; }
.prose h2 { font-size: 28px; margin-top: 36px; }
.prose p { color: var(--dim); line-height: 1.6; margin: 12px 0 0; }
.prose p a { color: var(--accent); }
.prose code { background: rgba(0,0,0,0.3); padding: 1px 6px; border-radius: 4px; }
.prose .snip { margin-top: 12px; }
.styles { margin-top: 28px; display: grid; grid-template-columns: 200px minmax(0, 1fr); row-gap: 22px; column-gap: 24px; align-items: center; }
.sb { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }

.foot { display: flex; justify-content: space-between; gap: 24px; padding: 24px clamp(16px, 4vw, 56px) 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; flex-wrap: wrap; }
.foot a { margin-left: 16px; color: var(--dim); }

@media (max-width: 1100px) {
  .board .head, .row { grid-template-columns: 90px minmax(0, 1fr) 150px 90px; }
  .board .head > :nth-child(3), .row .repo, .board .head > :nth-child(6), .row .tc { display: none; }
  .row .stars { font-size: 26px; }
  .profile { grid-template-columns: 1fr; gap: 32px; }
  .twoup { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .board .head, .row { grid-template-columns: 56px minmax(0, 1fr) 112px; padding: 12px 10px; gap: 8px; }
  .brand .tag { display: none; }
  .row .who { gap: 10px; }
  .row .name { font-size: 17px; }
  .board .head > :nth-child(5), .row .chg { display: none; }
  .row .rank { font-size: 32px; }
  .row.p1 .rank { font-size: 72px; } .row.p2 .rank { font-size: 56px; } .row.p3 .rank { font-size: 48px; }
  .row.p1 .name, .row.p2 .name, .row.p3 .name { font-size: 24px; }
  .row .stars, .row.p1 .stars, .row.p2 .stars, .row.p3 .stars { font-size: 22px; }
  .row.p1 .av, .row.p2 .av, .row.p3 .av { width: 44px; height: 44px; }
  .hero { flex-direction: column; align-items: flex-start; }
  .aside { text-align: left; white-space: normal; }
  .find { width: 100%; }
  .top nav { gap: 16px; }
  .facts { gap: 20px; }
  .fv { font-size: 34px; }
  .bar { grid-template-columns: 110px minmax(0, 1fr) 80px; gap: 10px; }
  .styles { grid-template-columns: 1fr; row-gap: 10px; }
  .styles .sr + .sr { margin-top: 12px; }
}
