/* Tortilla section tidy — 1 Dec 2026. 80×80 section cards. */
ul.kh-cards.kh-cards--thumbs{
  display:grid;
  gap:12px;
  grid-template-columns:repeat(4,minmax(0,1fr));
  list-style:none;
  margin:12px 0 0;
  padding:0;
}
ul.kh-cards.kh-cards--thumbs a{
  display:flex;
  flex-direction:row;
  flex-wrap:nowrap;
  gap:10px;
  align-items:flex-start;
  background:#fff;
  border:3px solid var(--eo-ink,#16141f);
  box-shadow:4px 4px 0 var(--eo-ink,#16141f);
  padding:10px;
  text-decoration:none;
  color:inherit;
  transform:none;
}
ul.kh-cards.kh-cards--thumbs a:hover,
ul.kh-cards.kh-cards--thumbs a:focus-visible{
  transform:translate(-1px,-1px);
  box-shadow:6px 6px 0 var(--eo-ink,#16141f);
}
ul.kh-cards.kh-cards--thumbs img{
  width:80px;
  height:80px;
  object-fit:cover;
  flex:0 0 80px;
  background:#fff;
  display:block;
  max-width:80px;
}
ul.kh-cards.kh-cards--thumbs .kh-ct{
  min-width:0;
  flex:1 1 auto;
}
ul.kh-cards.kh-cards--thumbs strong{
  display:block;
  font:800 1.02rem/1.2 "CO Title","Arial Black",sans-serif;
}
ul.kh-cards.kh-cards--thumbs .kh-ct > span{
  display:block;
  margin-top:4px;
  font-size:.9rem;
  color:var(--eo-muted,#555);
}
/* Do not upscale the small press photo on the tools page. */
.kh-hero-fig img[src*="Tortpress"]{
  width:auto;
  max-width:220px;
  height:auto;
}
@media (max-width:900px){
  ul.kh-cards.kh-cards--thumbs{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:620px){
  ul.kh-cards.kh-cards--thumbs{grid-template-columns:1fr}
}

ul.kh-cards.kh-cards--thumbs li{display:flex}
ul.kh-cards.kh-cards--thumbs a{flex:1 1 auto;min-height:100px}

/* Hero pictures: sit smaller, and align the title to the top so they do not
   open a gap between the section menu and the text. 80x80 hub cards unchanged. */
main .gd-hero{
  align-items:start;
}
main .gd-hero .kh-hero-fig img{
  width:100%;
  max-width:280px;
  height:auto;
  aspect-ratio:4/3;
}
@media (max-width:620px){
  main .gd-hero .kh-hero-fig img{
    max-width:220px;
  }
}
/* Tools press photo is already small; do not upscale it past its own size. */
main .gd-hero .kh-hero-fig img[src*="Tortpress"]{
  width:auto;
  max-width:220px;
  height:auto;
  aspect-ratio:auto;
}
