/* Knowledge Hub – public and admin styles. No external fonts or scripts. */
:root {
  --yellow: #ffce00;
  --ink: #1d1e20;
  --gray: #63656a;
  --line: #dfe0e3;
  --soft: #f5f5f2;
  --white: #fff;
  --ok-bg: #e6f4ea;
  --ok-ink: #14532d;
  --err-bg: #fde8ec;
  --err-ink: #8a1230;
  --star: #b37700;
  --accent: #63656a;
  --radius: 10px;
  --font: "Hurme Geometric Sans 3", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
}
img { max-width: 100%; height: auto; }
a { color: var(--ink); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 3px; }
h1, h2, h3 { line-height: 1.2; text-wrap: balance; margin: 0 0 0.5em; }
h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.08rem; }
p { margin: 0 0 1em; }
.muted { color: var(--gray); }
.small { font-size: 0.9rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; }
.wrap--narrow { max-width: 46rem; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--white); padding: 0.6rem 1rem; z-index: 10; }
.skip:focus { left: 0; }

/* Header */
.top { border-top: 6px solid var(--yellow); border-bottom: 1px solid var(--line); background: var(--white); }
.top__in { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.5rem; padding-top: 0.8rem; padding-bottom: 0.8rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 700; font-size: 1.15rem; text-decoration: none; margin-right: auto; }
.brand__mark { width: 1.15rem; height: 1.15rem; background: var(--yellow); border: 2px solid var(--ink); border-radius: 3px; }
.nav, .langs { display: flex; flex-wrap: wrap; gap: 0.25rem; }
.nav a, .langs a { padding: 0.35rem 0.7rem; border-radius: 999px; text-decoration: none; }
.nav a:hover, .langs a:hover { background: var(--soft); }
.nav a[aria-current] { background: var(--ink); color: var(--white); }
.langs a { font-size: 0.85rem; font-weight: 600; color: var(--gray); padding: 0.35rem 0.5rem; }
.langs a[aria-current] { color: var(--ink); box-shadow: inset 0 -3px 0 var(--yellow); border-radius: 0; }

/* Hero */
.hero { background: var(--yellow); padding: clamp(2rem, 6vw, 4rem) 0; }
.hero h1 { max-width: 22ch; }
.hero__text { max-width: 44rem; font-size: 1.15rem; }
.search { display: flex; flex-wrap: wrap; gap: 0.5rem; max-width: 40rem; margin-top: 1.5rem; }
.search input { flex: 1 1 14rem; }
input[type="text"], input[type="search"], input[type="password"], input[type="url"], input[type="number"], select, textarea {
  font: inherit; color: inherit; background: var(--white);
  border: 1.5px solid var(--gray); border-radius: 8px; padding: 0.55rem 0.7rem; width: 100%; min-height: 2.75rem;
}
textarea { resize: vertical; }
button, .btn { font: inherit; cursor: pointer; }
.btn, .search button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem;
  background: var(--ink); color: var(--white); border: 1.5px solid var(--ink);
  border-radius: 8px; padding: 0.5rem 1.1rem; min-height: 2.75rem; text-decoration: none; font-weight: 600;
}
.btn:hover, .search button:hover { background: #000; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--soft); }
.btn--danger { background: var(--err-ink); border-color: var(--err-ink); }
.btn--small { min-height: 2.1rem; padding: 0.25rem 0.7rem; font-size: 0.92rem; }

/* Blocks */
.block { margin: 2.5rem 0; }
.page-title { margin: 2rem 0 1.2rem; }
.more { margin-top: 1.5rem; }
.empty { padding: 2rem; background: var(--soft); border-radius: var(--radius); text-align: center; color: var(--gray); }
.count { color: var(--gray); margin: 1.2rem 0 0.8rem; }
.crumb { color: var(--gray); font-size: 0.92rem; margin: 1.5rem 0 0.6rem; }
.crumb a { color: var(--gray); }

/* Project tiles */
.projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 1rem; }
.project {
  display: flex; flex-direction: column; gap: 0.35rem; text-decoration: none;
  border: 1px solid var(--line); border-top: 6px solid var(--accent); border-radius: var(--radius); padding: 1.1rem 1.2rem;
}
.project:hover { border-color: var(--gray); border-top-color: var(--accent); background: var(--soft); }
.project__logo { max-height: 3.2rem; width: auto; align-self: flex-start; margin-bottom: 0.4rem; }
.project__name { font-weight: 700; font-size: 1.15rem; }
.project__tag { color: var(--gray); }
.project__count { margin-top: auto; padding-top: 0.5rem; font-size: 0.9rem; font-weight: 600; }

/* Material cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(17.5rem, 1fr)); gap: 1rem; }
.card {
  display: flex; flex-direction: column; border: 1px solid var(--line); border-left: 5px solid var(--accent);
  border-radius: var(--radius); padding: 1rem 1.1rem; background: var(--white); position: relative;
}
.card:hover { border-color: var(--gray); border-left-color: var(--accent); }
.card__meta { display: flex; flex-wrap: wrap; gap: 0.3rem 0.8rem; font-size: 0.82rem; color: var(--gray); margin: 0 0 0.45rem; }
.card__type { font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink); }
.card__title { font-size: 1.1rem; margin: 0 0 0.4rem; }
.card__title a { text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card__title a:hover { text-decoration: underline; }
.card__text { color: #3c3d40; font-size: 0.96rem; margin: 0 0 0.8rem; }
.card__foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.8rem; font-size: 0.88rem; color: var(--gray); }
.card__chips { display: inline-flex; flex-wrap: wrap; gap: 0.25rem; margin-left: auto; }
.chip { display: inline-block; font-size: 0.74rem; font-weight: 700; padding: 0.1rem 0.4rem; border: 1px solid var(--line); border-radius: 5px; color: var(--gray); background: var(--white); text-decoration: none; }
.chip--lang { background: var(--soft); color: var(--ink); border-color: var(--soft); }
.badge { font-size: 0.74rem; font-weight: 700; background: var(--yellow); padding: 0.1rem 0.45rem; border-radius: 5px; }

/* Stars */
.stars { display: inline-flex; align-items: center; gap: 0.3rem; white-space: nowrap; }
.stars--none { color: var(--gray); }
.stars__bar { position: relative; display: inline-block; line-height: 1; letter-spacing: 0.05em; }
.stars__bar::before { content: "★★★★★"; color: #cfd0d4; }
.stars__fill { position: absolute; left: 0; top: 0; overflow: hidden; white-space: nowrap; }
.stars__fill::before { content: "★★★★★"; color: var(--star); }
.stars__num { font-weight: 700; color: var(--ink); }

/* Filters */
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(11.5rem, 1fr)); gap: 0.8rem; align-items: end; padding: 1.1rem; background: var(--soft); border-radius: var(--radius); }
.field { display: flex; flex-direction: column; gap: 0.25rem; margin: 0; }
.field > span { font-size: 0.86rem; font-weight: 600; }
.field small { color: var(--gray); }
.field--wide { grid-column: 1 / -1; }
.filters__actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.pager { display: flex; align-items: center; justify-content: center; gap: 1rem; margin: 2rem 0; }
.pills { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 0.8rem; }
.pills a { padding: 0.3rem 0.8rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: 0.95rem; }
.pills a:hover { background: var(--soft); }
.pills a[aria-current] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.pills--small a { font-size: 0.85rem; padding: 0.2rem 0.65rem; }

/* Project page */
.phead { border-bottom: 6px solid var(--accent); background: var(--soft); padding: 0.5rem 0 1.6rem; }
.phead__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.phead__logo { max-height: 5rem; max-width: 18rem; width: auto; background: var(--white); padding: 0.8rem 1rem; border-radius: var(--radius); }
.phead__tag { font-size: 1.15rem; max-width: 40rem; }
.funding { border-top: 1px solid var(--line); padding-top: 1.5rem; }
.funding__in { display: flex; flex-wrap: wrap; gap: 1.2rem; align-items: flex-start; }
.funding__in img { max-height: 3.6rem; width: auto; }
.funding__in > div { flex: 1 1 20rem; max-width: 46rem; font-size: 0.95rem; }

/* Material page */
.mat { display: grid; grid-template-columns: minmax(0, 1fr) 19rem; gap: 2rem; align-items: start; margin-bottom: 3rem; }
.mat__head { margin-bottom: 1rem; }
.mat__stats { display: flex; flex-wrap: wrap; gap: 0.5rem 1.2rem; align-items: center; }
.box { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.3rem; margin: 1.3rem 0; }
.box--project { border-top: 6px solid var(--accent); }
.mat__side .box:first-child { margin-top: 0; }
.prose { max-width: 44rem; }
.prose h2 { margin-top: 1.6em; }
.prose ul { padding-left: 1.2rem; }
.versions { list-style: none; margin: 0; padding: 0; }
.version { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; padding: 0.7rem 0; border-top: 1px solid var(--line); }
.version:first-child { border-top: 0; padding-top: 0; }
.version__label { flex: 1 1 12rem; overflow-wrap: anywhere; }
.details { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 0.4rem 1rem; font-size: 0.95rem; }
.details dt { color: var(--gray); }
.details dd { margin: 0; overflow-wrap: anywhere; }
.side-logo { max-height: 4rem; width: auto; margin-bottom: 0.8rem; }
.side-funder { max-height: 3rem; width: auto; margin: 0.4rem 0 0.8rem; display: block; }
.notice { padding: 0.75rem 1rem; border-radius: 8px; font-weight: 600; margin: 0 0 1rem; }
.notice--ok { background: var(--ok-bg); color: var(--ok-ink); }
.notice--err { background: var(--err-bg); color: var(--err-ink); }

/* Rating form */
.rate fieldset { border: 0; padding: 0; margin: 0 0 0.8rem; }
.rate legend { padding: 0; margin-bottom: 0.4rem; }
.rate__stars { display: inline-flex; gap: 0.1rem; }
.rate__stars label { cursor: pointer; position: relative; line-height: 1; }
.rate__stars input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.rate__star { font-size: 2.3rem; color: #cfd0d4; display: block; padding: 0 0.1rem; }
.rate__stars label:has(input:checked) .rate__star,
.rate__stars label:has(~ label input:checked) .rate__star { color: var(--star); }
.rate__stars:hover label .rate__star { color: var(--star); }
.rate__stars label:hover ~ label .rate__star { color: #cfd0d4; }
.rate__stars label:has(input:focus-visible) .rate__star { outline: 3px solid var(--ink); outline-offset: 1px; border-radius: 4px; }
@supports not selector(:has(*)) {
  .rate__stars { gap: 0.9rem; }
  .rate__stars input { position: static; opacity: 1; width: auto; height: auto; }
  .rate__star { display: none; }
  .rate__stars .sr { position: static; width: auto; height: auto; clip: auto; }
}

/* Comments */
.comment { padding: 0.9rem 0; border-top: 1px solid var(--line); scroll-margin-top: 1rem; }
.comment--reply { margin-left: clamp(1rem, 5vw, 2.5rem); padding-left: 1rem; border-left: 3px solid var(--yellow); border-top: 0; }
.comment__head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.7rem; margin: 0 0 0.3rem; }
.comment__head time { color: var(--gray); font-size: 0.88rem; }
.comment__body { margin: 0 0 0.4rem; overflow-wrap: anywhere; }
.comment__actions { display: flex; gap: 1.2rem; align-items: center; }
.comment__actions form { margin: 0; }
.linkish { background: none; border: 0; padding: 0.2rem 0; font-size: 0.92rem; color: var(--gray); text-decoration: underline; text-underline-offset: 0.18em; cursor: pointer; }
.linkish:hover { color: var(--ink); }
.linkish--done { text-decoration: none; cursor: default; color: var(--ok-ink); }
.cform { margin-top: 1.5rem; padding-top: 1.2rem; border-top: 2px solid var(--ink); display: grid; gap: 0.9rem; max-width: 40rem; scroll-margin-top: 1rem; }
.cform h3, .cform p { margin: 0; }
.cform .btn { justify-self: start; }
.rate ~ .muted { margin: 0.7rem 0 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.private-bar { margin: 0; padding: 0.5rem 1.25rem; background: var(--ink); color: var(--white); font-size: 0.9rem; text-align: center; }

/* Footer */
.foot { margin-top: 3rem; border-top: 1px solid var(--line); background: var(--soft); padding: 1.6rem 0; font-size: 0.95rem; }
.foot__in { display: flex; flex-wrap: wrap; gap: 0.6rem 2rem; align-items: baseline; }
.foot__name { font-weight: 700; margin: 0; }
.foot__nav { display: flex; flex-wrap: wrap; gap: 0.3rem 1.2rem; }
.foot__note { margin: 0; color: var(--gray); flex-basis: 100%; }

/* Admin */
.adm { background: var(--soft); min-height: 100vh; }
.adm .top { border-top-color: var(--ink); }
.adm main { padding: 1.5rem 0 3rem; }
.adm h1 { font-size: 1.6rem; margin: 0 0 1rem; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.3rem; margin: 0 0 1.2rem; }
.panel > h2:first-child { margin-top: 0; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 0.8rem; margin-bottom: 1.2rem; }
.tile { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.9rem 1rem; }
.tile b { display: block; font-size: 1.7rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.tile span { color: var(--gray); font-size: 0.9rem; }
.tablewrap { overflow-x: auto; }
table.list { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
table.list th, table.list td { text-align: left; padding: 0.55rem 0.6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
table.list th { font-size: 0.82rem; color: var(--gray); white-space: nowrap; }
table.list td.num, table.list th.num { text-align: right; font-variant-numeric: tabular-nums; }
.formgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 0.9rem; }
.formgrid .field--wide { grid-column: 1 / -1; }
.rowactions { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.rowactions form { margin: 0; }
.langtab { border: 1px solid var(--line); border-radius: 8px; padding: 0.9rem 1rem; margin-bottom: 0.8rem; }
.langtab > summary { font-weight: 700; cursor: pointer; }
.langtab[open] > summary { margin-bottom: 0.8rem; }
.state { font-size: 0.78rem; font-weight: 700; padding: 0.1rem 0.45rem; border-radius: 5px; background: var(--soft); white-space: nowrap; }
.state--published, .state--approved { background: var(--ok-bg); color: var(--ok-ink); }
.state--pending { background: var(--yellow); }
.state--rejected, .state--hidden { background: var(--err-bg); color: var(--err-ink); }
.check { display: flex; align-items: center; gap: 0.5rem; }
.check input { width: 1.15rem; height: 1.15rem; }
.login { max-width: 24rem; margin: 4rem auto; }

@media (max-width: 860px) {
  .mat { grid-template-columns: 1fr; gap: 0; }
  .brand { flex-basis: 100%; }
}
@media (max-width: 520px) {
  body { font-size: 1rem; }
  .version .btn { flex: 1 1 100%; }
  .card__chips { margin-left: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .card, .project, .btn { transition: background-color 0.15s, border-color 0.15s; }
}
@media print {
  .top, .foot, .cform, .rate, .filters, .comment__actions { display: none; }
}

/* ==========================================================================
   Website look – active when app/theme.php ties the hub into the main website
   (body class "themed"). Colours, type and components follow thevisionworks.de.
   ========================================================================== */
.themed {
  --ink: #2b2a28;
  --ink-soft: #3a3835;
  --line: #e4e2dc;
  --soft: #f6f5f2;
  --magenta: #e34b76;
  --orange: #d27832;
  --cyan: #46c8f0;
  --radius: 14px;
  --font: "Hurme Geometric Sans 3", "HurmeGeometricSans3", "Poppins", "Montserrat", "Century Gothic",
          system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
.themed .wrap { max-width: 1120px; }
.themed .wrap--narrow { max-width: 46rem; }
.themed h1, .themed h2 { font-weight: 700; line-height: 1.12; letter-spacing: -0.01em; }
.themed h2 { font-size: clamp(1.35rem, 2.6vw, 1.7rem); }
.themed .box h2 { font-size: 1.2rem; }
/* brand language of the website: headings of the hub itself in lower case; titles of materials and projects keep their spelling */
.themed .hero h1, .themed .page-title, .themed h2[id^="h-"] { text-transform: lowercase; }
.themed .hl {
  background: linear-gradient(104deg, transparent 0 3%, var(--yellow) 3% 97%, transparent 97%);
  padding: 0.05em 0.3em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.themed .kicker {
  display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--gray); margin: 0 0 0.9rem;
}

/* Header of the website */
header.site {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  color: var(--ink);
  border-bottom: 3px solid var(--yellow);
  box-shadow: 0 1px 14px rgba(43, 42, 40, 0.06);
}
.logo-img { display: block; background: url("tvw-logo.png") center / contain no-repeat; }
.site-inner { display: flex; align-items: center; gap: 1rem; padding: 0.65rem 1.25rem; max-width: 1120px; margin: 0 auto; }
.logo { display: block; text-decoration: none; flex-shrink: 0; }
.logo .logo-img { width: 118px; height: 40px; }
nav.main {
  display: flex; gap: 0.25rem; align-items: center; margin-left: auto;
  overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
nav.main::-webkit-scrollbar { display: none; }
nav.main a {
  text-decoration: none; color: var(--ink); font-size: 0.92rem; font-weight: 600;
  padding: 0.45rem 0.7rem; border-radius: 8px; white-space: nowrap;
}
nav.main a:hover { background: rgba(255, 206, 0, 0.28); }
nav.main a[aria-current] { box-shadow: inset 0 -3px 0 var(--yellow); border-radius: 8px 8px 0 0; }
.lang-switch { display: flex; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; flex-shrink: 0; margin-left: 0.5rem; }
.lang-switch a { color: var(--gray); font-size: 0.82rem; font-weight: 700; padding: 0.32rem 0.7rem; text-decoration: none; line-height: 1.65; }
.lang-switch a[aria-current] { background: var(--yellow); color: var(--ink); }

/* Menu of the hub itself, below the website header */
.subnav { background: var(--soft); border-bottom: 1px solid var(--line); }
.subnav__in { display: flex; flex-wrap: wrap; gap: 0.2rem 0.4rem; padding-top: 0.35rem; padding-bottom: 0.35rem; }
.subnav a { text-decoration: none; font-size: 0.9rem; font-weight: 600; color: var(--gray); padding: 0.3rem 0.85rem; border-radius: 999px; border: 1.5px solid transparent; }
.subnav a:hover { border-color: var(--yellow); color: var(--ink); }
.subnav a[aria-current] { background: var(--yellow); color: var(--ink); }

/* Hero: light, with the soft colour clouds of the website */
.themed .hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #fffcf0 0%, #fff 90%); padding: clamp(2.6rem, 6vw, 4.2rem) 0 clamp(2.2rem, 5vw, 3.4rem); }
.themed .hero-bg { position: absolute; inset: 0; pointer-events: none; }
.themed .hero-bg .blob { position: absolute; border-radius: 50%; filter: blur(70px); }
.themed .hero-bg .b1 { top: -30%; left: -8%; width: 520px; height: 520px; background: rgba(255, 206, 0, 0.45); }
.themed .hero-bg .b2 { top: 10%; right: -14%; width: 460px; height: 460px; background: rgba(70, 200, 240, 0.22); }
.themed .hero-bg .b3 { bottom: -70%; left: 32%; width: 420px; height: 420px; background: rgba(227, 75, 118, 0.16); }
.themed .hero__in { position: relative; }
.themed .hero h1 { font-style: italic; transform: skewX(-2deg); transform-origin: left; font-size: clamp(1.9rem, 4.6vw, 3rem); line-height: 1.1; max-width: 24ch; margin-bottom: 1rem; }
.themed .hero__text { color: var(--ink-soft); font-size: 1.08rem; }

/* Buttons and form fields */
.themed .btn, .themed .search button {
  background: var(--yellow); color: var(--ink); border: 2px solid var(--yellow); border-radius: 999px;
  padding: 0.5rem 1.4rem; font-weight: 700; font-size: 0.98rem;
}
.themed .btn:hover, .themed .search button:hover { background: #ffd83d; border-color: #ffd83d; }
.themed .btn--ghost { background: transparent; color: var(--ink); }
.themed .btn--ghost:hover { background: rgba(255, 206, 0, 0.25); border-color: var(--yellow); }
.themed .btn--small { padding: 0.25rem 0.9rem; font-size: 0.9rem; }
.themed input[type="text"], .themed input[type="search"], .themed select, .themed textarea { border: 1.5px solid #b9b7b0; border-radius: 10px; }
.themed .search input { border-radius: 999px; padding-left: 1.1rem; }

/* Tiles, cards, chips */
.themed .project { border-top-width: 5px; padding: 1.35rem 1.3rem; background: #fff; }
.themed .project:hover, .themed .card:hover { border-color: var(--line); background: #fff; box-shadow: 0 14px 30px rgba(43, 42, 40, 0.1); }
.themed .project:hover { border-top-color: var(--accent); }
.themed .card { border-left-width: 6px; padding: 1.2rem 1.25rem; }
.themed .card:hover { border-left-color: var(--accent); }
.themed .card__type { letter-spacing: 0.08em; font-size: 0.72rem; }
.themed .card__text { color: var(--gray); }
.themed .chip { border: 1.5px solid var(--line); border-radius: 999px; padding: 0.08rem 0.55rem; }
.themed .chip--lang { background: var(--soft); border-color: var(--soft); }
.themed .badge { border-radius: 999px; padding: 0.1rem 0.6rem; }
.themed .pills a { border: 1.5px solid var(--line); font-weight: 600; color: var(--gray); }
.themed .pills a:hover { background: #fff; border-color: var(--yellow); color: var(--ink); }
.themed .pills a[aria-current] { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.themed .filters, .themed .phead, .themed .empty { background: var(--soft); }
.themed .cform { border-top: 3px solid var(--yellow); }
.themed .private-bar { background: var(--ink); }

/* Footer of the website */
footer.site { margin-top: 4rem; background: var(--ink); color: #c9c8c4; padding: 3rem 0 2.2rem; font-size: 0.92rem; }
.foot-grid { display: flex; flex-wrap: wrap; gap: 2.5rem; justify-content: space-between; align-items: flex-start; }
.foot-logo { width: 180px; aspect-ratio: 544 / 184; background-position: left center; }
.foot-tag { margin: 0.7rem 0 0; max-width: 20rem; }
.foot-head { margin: 0 0 0.6rem; font-weight: 700; color: #fff; }
footer.site a { color: #fff; text-decoration: none; }
footer.site a:hover { color: var(--yellow); }
footer.site :focus-visible { outline-color: var(--yellow); }
.foot-links { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.social { display: flex; gap: 0.7rem; }
.social a { width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--gray); display: grid; place-items: center; color: #fff; }
.social a:hover { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.social svg { width: 20px; height: 20px; }
.foot-copy { margin: 2.2rem 0 0; color: #a3a29d; font-size: 0.82rem; }

@media (max-width: 520px) {
  .themed { font-size: 16px; }
  .logo .logo-img { width: 96px; height: 32px; }
}
@media (prefers-reduced-motion: no-preference) {
  .themed .card, .themed .project { transition: transform 0.18s ease, box-shadow 0.18s ease; }
  .themed .card:hover, .themed .project:hover { transform: translateY(-3px); }
  .themed .btn { transition: transform 0.15s ease, background 0.15s ease; }
  .themed .btn:hover { transform: translateY(-2px); }
}
@media print {
  header.site, .subnav, footer.site { display: none; }
}
.themed .comment, .themed .cform, .themed .box { scroll-margin-top: 5.5rem; }
.themed .box > h2 { text-transform: lowercase; }
.themed .box--project > h2 { text-transform: none; }
@media (max-width: 700px) {
  .themed .hero-bg .b1 { width: 320px; height: 320px; top: -25%; left: -30%; }
  .themed .hero-bg .b2 { width: 260px; height: 260px; top: 30%; right: -40%; }
  .themed .hero-bg .b3 { display: none; }
}
