/* tap to chess · ONE brand lockup (Nov 16, 2026; Omar: "I like one logo everywhere").
   The standard is Home's header (nav5.css .n5-wm): round knight mark + the pencil "tap to chess" wordmark (Caveat 700, tilted -2deg)
   + the small mono date line. Every stand-alone screen (Analysis, Line/Endgame Driller, Chess Club, Lichess, Tournament, Study, How it
   works, Journey) uses this file so the header reads the same at each size. Phone (under 900px): mark 34, wordmark 25px, date 10.5px.
   Laptop (900px+): mark 40, wordmark 30px; 900-1099px hides the date (as Home does). Markup (lockup.js fills the date):
     <a class="t2c-bl" href="../../" aria-label="tap to chess home"><img class="t2c-bl-mk" src="../mark.svg" alt="" width="34" height="34">
       <span class="t2c-bl-w"><b>tap to chess</b><small data-bl-date></small></span></a>
   Pages may keep their old class on the <a> (brand / ld-brand / lock) for their scripts; the rules below win over the old look. */
@font-face{font-family:'Caveat';font-weight:700;font-display:swap;src:url(../tourney/fonts/caveat-latin-700-normal.woff2) format("woff2")}
html body a.t2c-bl{display:flex!important;align-items:center!important;gap:10px!important;flex:none!important;min-width:0;width:auto!important;height:auto!important;
  margin:0;padding:0!important;border:0!important;background:none!important;box-shadow:none!important;text-decoration:none!important;color:#353733!important;filter:none!important}
html body a.t2c-bl>img.t2c-bl-mk{display:block!important;flex:none!important;width:34px!important;height:34px!important;margin:0!important;border-radius:50%}
html body a.t2c-bl>.t2c-bl-w{display:flex!important;flex-direction:column!important;justify-content:center!important;align-items:flex-start!important;gap:0!important;
  line-height:1!important;white-space:nowrap!important;margin:0!important;padding:0!important;min-width:0}
html body a.t2c-bl .t2c-bl-w>b{display:inline-block!important;margin:0!important;padding:0!important;font:700 25px/1 Caveat,'Segoe Print','Bradley Hand',cursive!important;
  letter-spacing:.2px!important;text-transform:none!important;color:#353733!important;transform:rotate(-2deg);transform-origin:left center}
html body a.t2c-bl .t2c-bl-w>small{display:block!important;margin:2px 0 0!important;padding:0!important;font:500 10.5px/1.2 "IBM Plex Mono",ui-monospace,monospace!important;
  letter-spacing:.4px!important;text-transform:uppercase!important;color:#5D6158!important;opacity:1!important}
html body a.t2c-bl .t2c-bl-w>small:empty{display:none!important}
html body a.t2c-bl:focus-visible{outline:2px solid #2E5E46;outline-offset:3px;border-radius:8px}
html[data-mode="dark"] body a.t2c-bl,html[data-mode="dark"] body a.t2c-bl .t2c-bl-w>b{color:#ECEDE7!important}
html[data-mode="dark"] body a.t2c-bl .t2c-bl-w>small{color:#A9ADA4!important}
@media (min-width:900px){
  html body a.t2c-bl>img.t2c-bl-mk{width:40px!important;height:40px!important}
  html body a.t2c-bl .t2c-bl-w>b{font-size:30px!important}
}
@media (min-width:900px) and (max-width:1099px){html body a.t2c-bl .t2c-bl-w>small{display:none!important}}
/* Phones: the full lockup is wider than the old small one, so the screen pill (‹ Analyze ›, ‹ Chess Club ›, ‹ Event ›) next to it gets
   slimmer arrows and a label that can shrink (ellipsis) instead of running past the right edge. "‹ Home" and every button stay. */
@media (max-width:899px){
  html body header.top:has(>a.t2c-bl){gap:8px!important;padding-left:12px!important;padding-right:12px!important}
  html body header.top:has(>a.t2c-bl) .pill{flex:0 1 auto!important;min-width:0!important}
  html body header.top:has(>a.t2c-bl) .pill button{width:28px!important;flex:none}
  html body header.top:has(>a.t2c-bl) .pill span{min-width:0!important;padding:0 4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  html body header.top:has(>a.t2c-bl) .homel{flex:none}
}
/* THOR Nov 17: the '‹ Home' pill (Analysis, Play on Lichess, Chess Club) is 26px tall on phones; an invisible 44px tap area, same look */
header.top .homel{position:relative}
header.top .homel::after{content:"";position:absolute;inset:-9px -4px}
