/* #1355: the site's look, shared (looks.py: .mk the look's root, .mk-<page> the page) - #1313's Matches look for every page that
   takes it: the header a band edge to edge in the front page's look ("Scoreline"), under it a working page - the page's width,
   cards, a rail beside the main column ("Dossier"). Linked before a page's own (matches-looks.css, profile-looks.css,
   play-looks.css), beside site.css - its tokens, its buttons, its tags, its tables. Plain CSS, nothing loaded from elsewhere. */

/* ==== the page: its own widths (propeeks_web.page's bleed) - the band edge to edge, the rest the wide pages' width */
main.bleed { max-width: none; margin: 0; padding: 0; }
#ppstart ~ main.bleed { margin-top: var(--s8); }                 /* (Getting started over it: clear of the band) */
#ppstart ~ main.bleed .mk .top { border-top: 1px solid var(--border); }
.mk { --tone: var(--blue); --ink: #0c0d11; --pad: clamp(16px, 4vw, 24px); overflow-x: clip; }
.mk .w { --tone: var(--success); } .mk .l { --tone: var(--danger); } .mk .t { --tone: var(--text-2); }
.mk .a { --tone: var(--accent); }                                /* (a page's own: the site's yellow) */
.mk .wrap { max-width: 1180px; margin: 0 auto; padding: 0 var(--pad); }
.mk .wrap.body { padding-top: var(--s8); padding-bottom: 56px; }

/* ==== shared: a label in mono capitals, a number under its name */
.mk .eye { display: block; margin: 0 0 12px; color: var(--text-2); font: 600 12px/16px var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.mk .nums { display: flex; flex-wrap: wrap; gap: var(--s3) var(--s6); }
.mk .num { display: block; }
.mk .num b { display: block; color: var(--text); font-size: 22px; line-height: 28px; font-weight: 650; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.mk .num span { color: var(--text-3); font: 500 11px/16px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
@media (prefers-reduced-motion: reduce) { .mk * { transition: none !important; } }

/* ==== the header: a band edge to edge - its tone the glow, the type large */
.mk .top { position: relative; isolation: isolate; overflow: hidden; padding: clamp(28px, 4vw, 52px) 0 clamp(24px, 3.4vw, 44px);
  border-bottom: 1px solid var(--border); background: var(--ink);
  background: radial-gradient(60% 90% at 86% 30%, color-mix(in srgb, var(--tone) 13%, transparent), transparent 70%), var(--ink); }
.mk h1 { margin: 0; color: #fff; font-size: clamp(34px, 5vw, 64px); line-height: 1; font-weight: 700; letter-spacing: -.035em; text-wrap: balance; overflow-wrap: break-word; }   /* (a long name: wrapped, never cut by .mk's clip) */
.mk .lead { max-width: 62ch; margin: var(--s4) 0 0; color: var(--text-2); font-size: 16px; line-height: 1.55; text-wrap: pretty; }
.mk .top .msg { margin: var(--s3) 0 0; }
.mk .acts { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s5); margin-top: var(--s5); font-size: 14px; }
.mk .acts .share { margin: 0; }
/* (a band's numbers: large, white - a person's band: their picture by their name) */
.mk .top .nums.big { margin-top: var(--s5); gap: var(--s4) var(--s10); }
.mk .top .nums.big .num b { color: #fff; font-size: clamp(26px, 3.4vw, 40px); line-height: 1.1; }
.mk h1.who { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s5); font-size: clamp(32px, 4.6vw, 60px); }
.mk h1.who .av.big, .mk h1.who img.av { width: clamp(44px, 4.6vw, 60px); height: clamp(44px, 4.6vw, 60px); margin-right: var(--s4); border-radius: 12px; flex: none; }
.mk h1.who a { display: inline-flex; align-items: center; color: inherit; text-decoration: none; }
/* (a player's public page - public_profiles' h1: their picture, their name to their Steam page, their ranks) */
.mk-public h1 { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s5); font-size: clamp(32px, 4.6vw, 60px); }
.mk-public h1 a.steam { display: inline-flex; align-items: center; color: inherit; text-decoration: none; }
.mk-public h1 .av.big { width: clamp(44px, 4.6vw, 60px); height: clamp(44px, 4.6vw, 60px); margin-right: var(--s4); border-radius: 12px; flex: none; }
.mk-public h1 .prem.big, .mk-public h1 img.rank.big { margin-left: 0; }

/* ==== under it: a working page - cards, the main column and a rail */
.mk .body h1 { color: var(--accent); font-size: 30px; line-height: 36px; letter-spacing: -.01em; }   /* (a name inside a page's parts - a board
   item's text: the site's own, not the band's) */
.mk .body h1.btext { color: var(--text); font-size: 20px; line-height: 28px; font-weight: 600; letter-spacing: normal; text-wrap: wrap; }
.mk .body .article h2, .mk .body .post h2 { margin-top: var(--s10); font-size: 22px; line-height: 30px; }   /* (the legal pages' and the blog's, as before) */
.mk .body h2 { margin: var(--s8) 0 var(--s3); color: var(--text); font-size: 20px; line-height: 28px; font-weight: 650; letter-spacing: -.015em; }
.mk .body h2[id] { scroll-margin-top: 96px; }
.mk .cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--s6); align-items: start; }
.mk .cols.first > .rail { grid-column: 2; grid-row: 1; }         /* (the rail first in the page - read first, first on a phone -, beside the main here) */
.mk .cols.first > .main { grid-column: 1; grid-row: 1; }
.mk .cols.left { grid-template-columns: 176px minmax(0, 1fr); }
.mk .cols.one { grid-template-columns: minmax(0, 1fr); }
.mk .main > :first-child, .mk .rail > :first-child, .mk .body .blk > h2:first-child, .mk .body .box > h2:first-child { margin-top: 0; }
.mk .main, .mk .rail { min-width: 0; }
.mk .rail { display: flex; flex-direction: column; }
.mk .rail .box { margin: 0 0 var(--s4); }
.mk .rail .box.plan > h2 { font-size: 17px; line-height: 24px; }
.mk .rail .box.plan > h2 .sub { display: block; letter-spacing: 0; }
.mk .rail .pitem { padding: var(--s3); font-size: 14px; line-height: 21px; }
.mk .rail .pitem .btn { padding: 5px 14px; font-size: 13px; line-height: 18px; }
/* (the plan's table in the rail: a row a block - its name, then this match's, your last matches', the players' under their heads) */
.mk .rail table.pmini, .mk .rail table.pmini tbody { display: block; }
.mk .rail table.pmini tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px var(--s2); padding: var(--s3) 0; border-top: 1px solid var(--border); }
.mk .rail table.pmini tr:first-child { padding: 0 0 6px; border-top: 0; }
.mk .rail table.pmini th, .mk .rail table.pmini td { padding: 0; border: 0; text-align: left; white-space: normal; }
.mk .rail table.pmini th:first-child, .mk .rail table.pmini th:last-child { display: none; }
.mk .rail table.pmini th { font-size: 11px; line-height: 14px; }
.mk .rail table.pmini td:first-child, .mk .rail table.pmini td.pdrill { grid-column: 1 / -1; }
.mk .rail table.pmini td.n { font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.mk .rail table.pmini td.pdrill { margin-top: 4px; }
/* cards: the site's .box, a card's name a mono label where it's one of several (.lbl) */
.mk .body .box.lbl > h2 { margin: 0 0 var(--s3); padding-bottom: var(--s2); border-bottom: 1px solid var(--border); color: var(--text-2);
  font: 600 12px/16px var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.mk .body .box.lbl > h2 .sub { display: inline; font: 400 12px/16px var(--font); letter-spacing: 0; text-transform: none; }
/* (a table wider than its card scrolls inside it, never the page) */
.mk .box, .mk .mtwrap { max-width: 100%; }
.mk .mtwrap { overflow-x: auto; }
/* (nothing yet: a dashed box saying so) */
.mk p.none { margin: var(--s3) 0; padding: var(--s6); border: 1px dashed var(--border-strong); border-radius: var(--r-xl); color: var(--text-2); text-align: center; }
/* (a list of ways on: a row each, the way its link) */
.mk .links { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.mk .links > * { margin: 0; padding: 8px 0; border-top: 1px solid var(--border); font-size: 14px; line-height: 21px; }
.mk .links > :first-child { border-top: 0; padding-top: 0; }
.mk .links > :last-child { padding-bottom: 0; }
.mk .links p, .mk .links form { margin: 0; }

/* ==== narrower: a tablet, then a phone */
@media (max-width: 1000px) {
  .mk .cols, .mk .cols.left { grid-template-columns: minmax(0, 1fr); }
  .mk .cols.first > .rail, .mk .cols.first > .main { grid-column: 1; grid-row: auto; }
}
@media (max-width: 700px) {
  .mk .wrap.body { padding-top: var(--s6); padding-bottom: var(--s10); }
  .mk .lead { font-size: 14px; }
  .mk .top .nums.big { gap: var(--s4) var(--s8); }
}

/* ==== the admin pages, lightly (#1355 phase 3: look=("admin", ...)) - the same type and colours in a compact band; the page as wide
   as the screen allows, its dense tables as they were */
.mk-admin .top { padding: clamp(16px, 2vw, 24px) 0; }
.mk-admin h1 { font-size: clamp(26px, 3vw, 36px); line-height: 1.1; }
.mk-admin .lead { margin-top: var(--s2); font-size: 14px; }
.mk-admin .wrap { max-width: 1480px; }
.mk-admin .wrap.body { padding-top: var(--s5); }
.mk-admin .body h2 { margin-top: var(--s6); font-size: 18px; line-height: 26px; }
.mk-admin .main { overflow-x: auto; }                            /* (a dense table wider than a phone: scrolled in its place, never cut by .mk's clip) */
