/* Boards | Robots category switch: sticker segmented control. Shared by / and /robots/ (self-contained, hard colours). */
.rl-cat { display: inline-flex; align-items: stretch; gap: 3px; padding: 3px; margin: 0; flex: none; box-sizing: border-box;
  border: 2px solid #1a1410; border-radius: 999px; background: #fffaf1; box-shadow: 3px 3px 0 #1a1410;
  font: 600 15px/1 "Fraunces","Iowan Old Style","Palatino Linotype",Georgia,serif; letter-spacing: 0; text-transform: none; }
.rl-cat a { display: inline-flex; align-items: center; justify-content: center; min-height: 30px; padding: 0 15px; border-radius: 999px; border: 0;
  color: #4a3f34; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color .16s, color .16s, transform .12s; }
.rl-cat a:hover { background: #f6e4c3; color: #1a1410; }
.rl-cat a[aria-current="page"] { background: #1a1410; color: #fffaf1; cursor: default; box-shadow: inset 0 -3px 0 #ff5a3c; }
.rl-cat a:active { transform: translateY(1px); }
.rl-cat a:focus-visible { outline: 3px solid #2f7bff; outline-offset: 2px; }
.rl-cat--card { display: flex; width: max-content; max-width: 100%; margin: 0 0 12px; font-size: 14.5px; box-shadow: 2px 2px 0 #1a1410; }
.rl-cat--card a { min-height: 28px; padding: 0 14px; }
@media (max-width: 640px) {
  .rl-cat { font-size: 14px; }
  .rl-cat a { min-height: 28px; padding: 0 11px; }
  .rl-cat--card { margin-bottom: 9px; }
}

/* robots page: brand chip like the boards page (the bar itself is styled by robots/css/site.css) */
#bar .brand { display: inline-flex; align-items: center; gap: 8px; height: auto; padding: 6px 12px 6px 8px; border: 2px solid #1a1410; border-radius: 14px; background: #ff5a3c; color: #1a1410; box-shadow: 3px 3px 0 #1a1410; transform: rotate(-1.5deg); font: 580 17px/1 "Fraunces",Georgia,serif; letter-spacing: -.01em; text-transform: none; cursor: pointer; }
#bar .brand:hover { transform: rotate(0) translateY(-1px); }
#bar .brand-mark { width: 22px; height: 22px; background: none; clip-path: none; fill: none; stroke: #1a1410; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
#bar .brand-word { font: inherit; letter-spacing: inherit; text-transform: none; padding: 0; color: inherit; }
#bar .rl-cat { margin-left: 4px; }
#hero .rl-cat--card { pointer-events: auto; }
@media (max-width: 640px) { #bar .brand-word { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } #bar .brand { padding: 6px; } }
@media (max-width: 640px) { body > .fw-card { bottom: auto !important; top: 66px; } }
@media (max-width: 640px) { .top .nav { min-width: 0; overflow-x: auto; scrollbar-width: none; } .top .nav::-webkit-scrollbar { display: none; } .top .nav a { flex: none; } }

/* one switch per screen — the header switch stays visible everywhere; the copy on the hero card was a duplicate in the same view */
.rl-cat--card { display: none !important; }

/* 2026-12-06: bigger, exactly in the middle of the header, a small board / robot picture in each tab */
.rl-cat { font-size: 17px; }
.rl-cat a { min-height: 40px; gap: 7px; padding: 0 16px 0 7px; }
.rl-cat-img { flex: none; height: 30px; width: auto; max-width: 40px; object-fit: contain; }
.rl-cat a[aria-current="page"] .rl-cat-img { filter: drop-shadow(0 0 1.5px rgba(255, 250, 241, .9)); }
@media (min-width: 1100px) {
  .top > .rl-cat, #bar > .rl-cat { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); margin: 0; z-index: 2; }
}
@media (max-width: 640px) { .rl-cat a { padding: 0 11px 0 5px; } .rl-cat-img { height: 24px; max-width: 30px; } }
/* the centred switch needs the nav a bit tighter on mid-size screens; below 1380 px it sits in the header flow (between logo and nav) */
@media (min-width: 1100px) and (max-width: 1599px) { .top .nav a { padding: 7px 11px; } }
@media (min-width: 1100px) and (max-width: 1379px) { .top > .rl-cat { position: static; transform: none; } }

/* the nav carries DESIGN.md too: on mid-size screens it gets tighter and Music shows only its bars */
@media (min-width: 1100px) and (max-width: 1599px) { .top .nav { font-size: 15px; } .top .nav a { padding: 7px 9px; } .top .nav .lofi-btn .lofi-t { display: none; } }
