/* Palmarès — Swiss Scoreboard × Panini design system
   Faithful to design.md. One family, two-color semantic, hairlines only,
   the Panini card is the single object with depth. */

:root {
  --white: #FFFFFF;
  --ink: #111111;
  --bleu: #0032FF;
  --gray: #777777;
  --hairline: #E2E2E2;
  --hover: #FAFAFA;
  --placeholder: #F4F4F4;
  --silhouette: #C9C9C9;
  --pad: 72px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--white);
  font-family: 'Inter Tight', system-ui, sans-serif;
  color: var(--ink);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--bleu); }

.tnum { font-variant-numeric: tabular-nums; }

/* ---- shell ---- */
.wrap { min-width: 1000px; padding: 0 var(--pad); }
@media (max-width: 1000px) { .wrap { min-width: 0; overflow-x: hidden; } }
@media (max-width: 900px) { :root { --pad: 40px; } }
@media (max-width: 560px) { :root { --pad: 22px; } }

/* ---- nav ---- */
.nav {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 26px 0; border-bottom: 1px solid var(--hairline);
}
.wordmark { font-weight: 700; font-size: 18px; letter-spacing: -.01em; color: var(--ink); }
.wordmark:hover { color: var(--ink); }
.nav-links { display: flex; align-items: baseline; gap: 36px; }
.nav-links a { font-size: 12px; color: var(--gray); padding-bottom: 4px; }
.nav-links a:hover { color: var(--bleu); }
.nav-links a.active { color: var(--ink); border-bottom: 2px solid var(--bleu); }
.nav-count { font-size: 12px; color: var(--bleu); font-weight: 500; }
@media (max-width: 620px) {
  .nav { flex-wrap: wrap; gap: 10px 18px; padding: 18px 0; }
  .wordmark { font-size: 16px; }
  .nav-links { order: 3; width: 100%; gap: 22px; flex-wrap: wrap; }
}

/* ---- kicker + headings ---- */
.kicker {
  font-weight: 500; font-size: 11.5px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--bleu); margin: 0 0 20px;
}
h1.title {
  font-weight: 700; font-size: 60px; line-height: 1; letter-spacing: -.025em;
  margin: 0; color: var(--ink);
}
h1.title .blue { color: var(--bleu); }
.section-h {
  font-weight: 700; font-size: 20px; letter-spacing: -.015em; margin: 0;
}
.label {
  font-weight: 500; font-size: 10.5px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--gray);
}
.body-copy { font-size: 15px; line-height: 1.6; color: var(--gray); font-weight: 400; }

/* ---- section rule ---- */
.rule-top { border-top: 1px solid var(--ink); }
.rule-hair { border-top: 1px solid var(--hairline); }

/* ---- hero ---- */
.hero { display: flex; flex-wrap: wrap; gap: 64px; align-items: flex-start;
        padding: 64px 0 48px; justify-content: space-between; }
.hero-left { flex: 1 1 520px; max-width: 640px; }
.hero-right { flex: 0 0 auto; }

/* underline search */
.search-wrap { margin: 40px 0 48px; max-width: 520px; }
.search {
  width: 100%; border: none; border-bottom: 1px solid var(--ink);
  font-family: inherit; font-size: 17px; padding: 8px 0; color: var(--ink);
  background: transparent; outline: none;
}
.search::placeholder { color: var(--gray); }

/* hero stats */
.hero-stats { display: flex; gap: 56px; flex-wrap: wrap; }
.hstat .label { display: block; margin-bottom: 6px; }
.hstat .num {
  font-weight: 700; font-size: 35px; letter-spacing: -.02em; line-height: 1;
}
.hstat .num.blue { color: var(--bleu); }

/* ---- Panini card ---- */
.card-fan { position: relative; width: 680px; height: 580px; margin: 0 auto; }
.pcard {
  width: 300px; background: var(--white); border: 1.5px solid var(--ink);
  border-radius: 2px; padding: 9px;
}
.pcard.fan { box-shadow: 0 16px 40px rgba(17,17,17,.12); }
.pcard.front { box-shadow: 0 22px 52px rgba(17,17,17,.16); }
.card-fan .pcard { position: absolute; top: 40px; left: 50px; width: 260px; }
.card-fan .pcard.front { top: 0; z-index: 3; }
@media (max-width: 1080px) {
  .card-fan { transform: scale(.72); transform-origin: top center; height: 420px; }
}
@media (max-width: 640px) {
  .card-fan { transform: scale(.46); transform-origin: top center; height: 300px; }
}
.pcard-head { display: flex; justify-content: space-between; align-items: center;
              padding: 2px 3px 9px; }
.pcard-name { font-weight: 700; font-size: 15px; letter-spacing: -.01em; }
.pcard-no {
  width: 24px; height: 24px; display: grid; place-items: center;
  color: #fff; font-weight: 700; font-size: 11px; background: var(--ink);
}
.pcard-no.tier1 { background: var(--bleu); }
.pcard-portrait {
  aspect-ratio: 3/4; border: 1px solid var(--hairline); background: var(--placeholder);
  filter: grayscale(1) contrast(1.06); overflow: hidden; position: relative;
}
.pcard-portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pcard-portrait.empty::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 50% 38%, var(--silhouette) 0 34px, transparent 35px),
    radial-gradient(ellipse 60px 46px at 50% 108%, var(--silhouette) 0 60%, transparent 61%);
}
.pcard-stats {
  display: grid; grid-template-columns: 1fr 1fr; margin-top: 9px;
  border-top: 1px solid var(--hairline);
}
.pcard-stats .cell { padding: 9px 4px 4px; }
.pcard-stats .cell + .cell { border-left: 1px solid var(--hairline); padding-left: 12px; }
.pcard-stats .label { display: block; margin-bottom: 4px; }
.pcard-stats .v { font-weight: 700; font-size: 26px; letter-spacing: -.02em; line-height: 1; }
.pcard-stats .v.blue { color: var(--bleu); }
.pcard-foot {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1.5px solid var(--ink); margin-top: 9px; padding: 8px 3px 3px;
}
.pcard-foot .pm { font-weight: 500; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; }
.pcard-foot .no { font-weight: 500; font-size: 10px; letter-spacing: .12em; color: var(--bleu); }

/* floating stat tags */
.tag {
  position: absolute; z-index: 6; background: #fff; border: 1px solid var(--ink);
  padding: 6px 9px; font-size: 11px; white-space: nowrap;
  box-shadow: 0 6px 18px rgba(17,17,17,.10);
}
.tag.blue { border-color: var(--bleu); color: var(--bleu); }
.tag .tl { font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--gray); display: block; }

/* ---- tables ---- */
.tbl { margin: 8px 0 0; }
.tbl-head, .tbl-row {
  display: grid; gap: 16px; align-items: center;
}
.tbl-head {
  padding: 12px 0; border-bottom: 1px solid var(--ink);
}
.tbl-head .th {
  font-weight: 500; font-size: 10.5px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--gray); cursor: pointer; user-select: none;
}
.tbl-head .th.sorted { color: var(--ink); }
.tbl-head .th .arw { color: var(--bleu); }
.tbl-head .th.num, .tbl-row .num { text-align: right; justify-self: end; }
.tbl-row {
  padding: 15px 0; border-bottom: 1px solid var(--hairline); font-size: 14px;
}
.tbl-row:hover { background: var(--hover); }
.tbl-row .aname { font-weight: 700; font-size: 16px; display: flex; align-items: center; gap: 11px; min-width: 0; }
.tbl-row .aname span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-avatar {
  width: 30px; height: 30px; flex: 0 0 auto; object-fit: cover; object-position: top center;
  filter: grayscale(1) contrast(1.06); background: var(--hairline); display: block;
}
.row-avatar.empty { background: var(--hairline); }
.tbl-row .muted { color: var(--gray); }
.pos-sq {
  width: 26px; height: 26px; display: grid; place-items: center;
  background: var(--ink); color: #fff; font-weight: 700; font-size: 13px;
}
.pos-plain { color: var(--gray); font-weight: 500; padding-left: 6px; }
.val-blue { color: var(--bleu); font-weight: 500; }
.val-undisclosed { color: var(--gray); }

/* wide data tables scroll sideways on small screens instead of squishing */
.tscroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 760px) {
  .tscroll > * { min-width: 620px; }
  .tscroll > #index-table, .tscroll > .tbl { min-width: 720px; }
}

/* ---- profile ---- */
.crumb { font-size: 12px; color: var(--gray); padding: 24px 0 0; }
.crumb a:hover { color: var(--bleu); }
.poster { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start;
          padding: 32px 0 48px; }
.poster-id { flex: 1 1 480px; }
.poster-nums { display: flex; gap: 48px; flex-wrap: wrap; align-items: flex-end; margin: 24px 0 20px; }
.poster-num .label { display: block; margin-bottom: 8px; }
.poster-num .n { font-weight: 700; font-size: 132px; line-height: .9; letter-spacing: -.02em; }
.poster-num .n.blue { color: var(--bleu); }
.poster-num .n.sub { font-size: 96px; }
.ratio-bar { height: 6px; background: var(--hairline); max-width: 520px; margin: 4px 0 0; }
.ratio-bar > span { display: block; height: 100%; background: var(--bleu); }
.poster-meta { font-size: 14px; color: var(--gray); margin-top: 18px; line-height: 1.7; }
.poster-meta strong { color: var(--ink); font-weight: 500; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; padding: 8px 0 40px; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }
.col-h { display: flex; align-items: baseline; gap: 10px; padding-bottom: 12px;
         border-bottom: 1px solid var(--ink); margin-bottom: 4px; }
.col-h .dot { width: 9px; height: 9px; }
.col-h .dot.ink { background: var(--ink); }
.col-h .dot.blue { background: var(--bleu); }
.dl-row { display: flex; justify-content: space-between; gap: 16px;
          padding: 13px 0; border-bottom: 1px solid var(--hairline); font-size: 14px; }
.dl-row .k { color: var(--gray); }
.dl-row .v { text-align: right; font-weight: 500; }
.dl-row .v.blue { color: var(--bleu); }

/* deal sheet */
.deal-sheet { padding: 8px 0 40px; }
.deal-row { display: grid; grid-template-columns: 22px 1.6fr 1fr .9fr .8fr;
            gap: 16px; align-items: center; padding: 14px 0;
            border-bottom: 1px solid var(--hairline); font-size: 14px; }
.deal-row .co { font-weight: 500; }
.deal-row .sector { color: var(--gray); }
.conf { font-size: 15px; line-height: 1; }
.conf.verified { color: var(--bleu); }
.conf.reported { color: var(--ink); }
.conf.rumored { color: var(--gray); }
.chip { display: inline-block; border: 1px solid var(--ink); padding: 2px 7px;
        font-size: 10.5px; letter-spacing: .04em; }
.chip.blue { border-color: var(--bleu); color: var(--bleu); }

.legend { display: flex; gap: 22px; flex-wrap: wrap; font-size: 12px; color: var(--gray); padding: 12px 0; }

/* vehicle + sources cards (hairline blocks, not shadowed) */
.vehicle-block { border: 1px solid var(--ink); padding: 20px; margin: 4px 0; }
.vehicle-block .vn { font-weight: 700; font-size: 18px; letter-spacing: -.015em; }
.sources { font-size: 12px; color: var(--gray); line-height: 1.8; }
.sources a { color: var(--gray); text-decoration: underline; text-underline-offset: 2px; }
.sources a:hover { color: var(--bleu); }
.fn { font-size: 10px; vertical-align: super; color: var(--bleu); }

.pending { color: var(--gray); font-size: 13px; font-style: normal;
           border: 1px dashed var(--hairline); padding: 14px 16px; }

/* ---- footer ---- */
.footer { display: flex; justify-content: space-between; align-items: baseline;
          border-top: 1px solid var(--ink); margin-top: 40px; padding: 24px 0 56px; flex-wrap: wrap; gap: 12px; }
.footer .left { font-weight: 700; font-size: 16px; }
.footer .right a { color: var(--bleu); font-weight: 500; font-size: 14px; }

/* ---- misc ---- */
.section { padding: 40px 0 8px; }
.section .section-h { margin-bottom: 0; }
.empty-note { color: var(--gray); font-size: 14px; padding: 24px 0; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
