/* Graft Byte site layout (2026-11-25): 4 tabs along the top on every screen, the clean landing page, the Skills
   tab and the YouTube channel cards in the footer. Loaded after gb.css on every page. */

/* top bar: logo + Full Tests / Mini Tests / Topics / Skills, always visible (no Menu button) */
.navbtn{display:none!important}
.nav{display:flex!important;position:static!important;flex-direction:row!important;margin-left:auto;gap:2px;
  background:none!important;border:0!important;padding:0!important}
.nav a{padding:8px 12px;white-space:nowrap}
.nav a .sh{display:none}
@media (max-width:640px){
  .site-h .wrap{gap:8px;padding:0 10px}
  .logo>span{display:none}            /* phone: the mark alone, the 4 tabs take the row */
  .logo img{width:32px;height:32px}
  .nav{flex:1;justify-content:space-between}
  .nav a{flex:1;text-align:center;padding:8px 2px;font-size:14px;border-radius:9px}
  .nav a .lg{display:none} .nav a .sh{display:inline}
}

/* landing page */
.hm-hero{padding:18px 0 4px;text-align:center}
.hm-hero h1{margin-bottom:.3em}
.hm-hero .lead{max-width:620px;margin:0 auto;color:var(--mut)}
.hm .sec{margin-top:30px}
.hm .sec-h a{font-weight:600;text-decoration:none}
.hm-topic{padding:16px}
.hm-topic .tt{display:flex;gap:14px;align-items:flex-start;margin-bottom:12px}
.hm-topic .tt img{width:120px;height:auto;flex:none;background:#0f0d26;border-radius:10px;padding:4px}
.hm-topic h3{font-size:20px;margin:0 0 2px}
.hm-topic .tt p{margin:0;color:var(--mut);font-size:14px}
.vids4{display:grid;gap:10px;grid-template-columns:repeat(2,minmax(0,1fr))}
.vids4 .vid figcaption{font-size:12px;line-height:1.35}
.vids4 .vid figcaption a{display:none}
.vids4 .yt span{display:none}            /* the caption under it already names the video */
@media (min-width:860px){.vids4{grid-template-columns:repeat(4,minmax(0,1fr))}}
.hm-topic .acts{margin-top:12px;display:flex;justify-content:flex-end}
@media (max-width:480px){.hm-topic .tt img{width:84px}.vids4{gap:8px}}
.grid2{display:grid;gap:12px;grid-template-columns:repeat(2,minmax(0,1fr))}
.grid2 .tile h3{font-size:15px}
.hm-full{display:flex;gap:14px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.hm-full h2{margin:0 0 2px;font-size:20px}
.hm-full p{margin:0;color:var(--mut);font-size:14px}

/* skills */
.tag.s{background:rgba(251,191,36,.16);color:var(--warn)}
.sk-grid{grid-template-columns:repeat(auto-fill,minmax(160px,1fr))}
.skcard{cursor:default}
.skcard:hover{transform:none;border-color:var(--line)}
.skcard .pic{aspect-ratio:16/10}
.hm-skill.skcard{cursor:pointer}
.hm-skill{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,3fr);align-items:center;text-decoration:none;color:var(--tx)}
.hm-skill .pic{height:100%;aspect-ratio:16/10}
@media (max-width:480px){.hm-skill{grid-template-columns:1fr}}

/* footer: our two YouTube channels */
.yt-ch{border-top:1px solid var(--line);padding:24px 0 6px}
.yt-ch h2{font-size:18px;margin-bottom:12px;color:var(--tx)}
.chs{display:grid;gap:12px;grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}
.ch{display:flex;gap:12px;align-items:center;background:var(--card);border:1px solid var(--line);border-radius:var(--r);padding:12px}
.ch img{width:52px;height:52px;border-radius:50%;flex:none;background:var(--card2)}
.ch div{flex:1;min-width:0}
.ch b{display:block;color:var(--tx);font-size:15px}
.ch span{display:block;font-size:13px;color:var(--mut);line-height:1.35}
.site-f .ch a.subs,.ch a.subs{flex:none;background:#e11d1d;color:#fff;border-radius:999px;padding:8px 14px;font-weight:700;font-size:14px;text-decoration:none;min-height:40px;display:inline-flex;align-items:center}
.ch a.subs:hover{background:#c81414;color:#fff}
[hidden]{display:none!important}   /* .tile sets display:block, which beat the hidden attribute (mini filters showed every card) */

/* more room, less chrome (owner ask 2026-11-25: more room, smoother) */
/* page-to-page cross-fade (@view-transition) removed 2026-11-26: on big pages (Mini Tests, 160 cards) the browser skipped
   it with an AbortError and showed blank frames before the pictures came in */
main{padding:10px 0 28px}
h1{font-size:clamp(22px,5vw,32px);margin-bottom:.45em}
.crumbs{font-size:12px;margin:0 0 6px;opacity:.8}
.sec{margin-top:22px}
.hm .sec{margin-top:22px}
.hm-hero{padding:8px 0 0}
.hm-hero h1{margin:0}
.site-f{padding:14px 0 22px}
@media (max-width:640px){
  .grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .grid .tile .in{padding:8px 9px 10px}
  .grid .tile h3{font-size:14px}
  .grid .tile p{font-size:12px}
}
.btn .done-badge{position:static;transform:none;margin-left:8px}   /* on a Start button the score sits beside the words, not on them */
@media (max-width:640px){
  .yt-ch{padding-top:14px}.yt-ch h2{font-size:15px;margin-bottom:8px}
  .chs{gap:8px}.ch{padding:8px 10px;gap:10px}.ch img{width:36px;height:36px}.ch span{display:none}
  .ch a.subs{padding:6px 12px;font-size:13px;min-height:36px}
}

/* view counters */
h1 .views{display:inline-block;vertical-align:middle;margin-left:10px;font-size:12px;font-weight:600;color:var(--mut);
  background:var(--card2);border:1px solid var(--line);border-radius:999px;padding:2px 9px}
.vcount{display:block;margin-top:4px;font-size:11px;color:var(--mut)}
