/* Catalogue: subject sections with material cards; material pages are built from kit/. Tokens from theme.css. */
* { box-sizing: border-box; }
body { margin: 0; background: var(--background); color: var(--foreground); font: 16px/1.5 var(--font-sans); }
a { color: var(--brand); text-decoration: none; }
.hero, main, .foot { max-width: 1040px; margin: 0 auto; padding: 0 28px; }
.hero { padding-top: 48px; }
.hero h1 { font: 600 34px/1.15 var(--font-heading); margin: 0; }
.hero h1 a { color: var(--foreground); }
main { padding-top: 4px; padding-bottom: 56px; }
.subject { margin-top: 40px; }
.subject h1, .subject h2 {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 0 28px 6px 0;
  border-bottom: 2px solid var(--foreground); font: 600 28px/1.2 var(--font-heading);
}
.subject h1 a, .subject h2 a { color: var(--foreground); }
.info {
  position: relative; display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 20px; height: 20px; border: 1.5px solid var(--muted-foreground); border-radius: 50%;
  font: 600 12px/1 var(--font-sans); color: var(--muted-foreground); cursor: help;
}
.info:hover, .info:focus { color: var(--brand); border-color: var(--brand); outline: none; }
.info::after {
  content: attr(data-tip); position: absolute; left: 50%; top: calc(100% + 10px); transform: translateX(-50%); z-index: 5;
  width: max-content; max-width: 300px; padding: 8px 12px; border-radius: var(--radius);
  background: var(--foreground); color: var(--background); font: 400 13px/1.45 var(--font-sans);
  opacity: 0; visibility: hidden; transition: opacity .12s; pointer-events: none;
}
.info:hover::after, .info:focus::after { opacity: 1; visibility: visible; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--card); color: var(--foreground); border: 1px solid var(--border); border-radius: var(--radius);
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
a.card:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: 0 8px 22px -14px rgba(0, 0, 0, .4); }
a.card:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.cv { display: block; aspect-ratio: 16 / 9; background: var(--surface-recessed); border-bottom: 1px solid var(--border); overflow: hidden; }
.cv img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.card .t { padding: 11px 14px 13px; font: 600 17px/1.3 var(--font-heading); }
.card .t .no { display: block; margin-bottom: 6px; font: 600 12px/1 var(--font-mono); letter-spacing: .08em; color: var(--brand); }
.card.soon { background: transparent; border-style: dashed; }
.card.soon .cv { background: transparent; border-bottom-style: dashed; }
.card.soon .t { color: var(--muted-foreground); }
.empty { color: var(--subtle-foreground); font-style: italic; }
.foot { padding-bottom: 32px; font-size: 13px; color: var(--subtle-foreground); }

@media (max-width: 560px) { .hero h1 { font-size: 28px; } .hero, main, .foot { padding: 0 18px; } .hero { padding-top: 32px; } }
/* Stable / Beta switch in the catalogue header */
.hero { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.switch { display: inline-flex; border: 1px solid var(--border); font: 600 15px/1.2 var(--font-heading); }
.switch a { padding: 8px 14px; border-bottom: 2px solid transparent; color: var(--muted-foreground); }
.switch a + a { border-left: 1px solid var(--border); }
.switch a.on { border-bottom-color: var(--brand); color: var(--brand); }
.switch a:not(.on):hover { color: var(--foreground); }
.switch a:focus-visible { outline: 2px solid var(--ring); outline-offset: -3px; }
@media (max-width: 560px) { .info::after { position: fixed; left: 18px; right: 18px; transform: none; width: auto; max-width: none; margin-top: 10px; } }
