/* =========================================================
   Homepage en vaardighedenoverzicht — Technasium MBH
   Gebaseerd op de goedgekeurde HTML-mockups.
   Alle selectors zijn bewust genamespaceerd.
========================================================= */

:root {
  --tea-brand: #0d5a78;
  --tea-brand-dark: #073f57;
  --tea-brand-soft: #e8f3f7;
  --tea-page: #f4f7f9;
  --tea-surface: #ffffff;
  --tea-ink: #1f2937;
  --tea-muted: #667085;
  --tea-line: #dce5ea;
  --tea-shadow: 0 14px 38px rgba(8, 61, 84, .10);
  --tea-radius: 18px;
}

/* Maak alleen de twee visuele landingspagina's schermbreed. */
.md-main__inner.md-grid:has(.tea-home-page),
.md-main__inner.md-grid:has(.tea-skills-page) {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.md-content:has(.tea-home-page),
.md-content:has(.tea-skills-page) {
  max-width: none;
}

.md-content__inner:has(> .tea-home-page),
.md-content__inner:has(> .tea-skills-page) {
  max-width: none;
  margin: 0;
  padding-top: 0;
}

.md-typeset .tea-home-page a,
.md-typeset .tea-skills-page a {
  color: inherit;
  text-decoration: none;
}

/* =========================
   Startpagina
========================= */

.tea-home-page {
  display: flex;
  min-height: calc(100vh - 8rem);
  flex-direction: column;
  justify-content: center;
  padding: clamp(3rem, 8vh, 6rem) 1.5rem 2rem;
  background: var(--tea-page);
  color: var(--tea-ink);
}

.tea-home-intro {
  max-width: 720px;
  margin: 0 auto 2.4rem;
  text-align: center;
}

.md-typeset .tea-home-intro h1 {
  margin: 0 0 .8rem;
  padding: 0;
  border: 0;
  color: var(--tea-brand-dark);
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.05;
  letter-spacing: -.055em;
}

.tea-home-intro p {
  margin: 0;
  color: var(--tea-muted);
  font-size: 18px;
  line-height: 1.6;
}

.tea-home-choices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
  width: min(1100px, 100%);
  margin: 0 auto;
}

.md-typeset .tea-home-choice {
  position: relative;
  display: flex;
  min-height: 300px;
  flex-direction: column;
  overflow: hidden;
  padding: 1.7rem;
  border: 1px solid var(--tea-line);
  border-radius: var(--tea-radius);
  background: var(--tea-surface);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.md-typeset .tea-home-choice:hover {
  transform: translateY(-5px);
  border-color: #a9c4d0;
  box-shadow: var(--tea-shadow);
}

.md-typeset .tea-home-choice--primary {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(145deg, var(--tea-brand-dark), var(--tea-brand));
  box-shadow: 0 18px 42px rgba(8, 61, 84, .18);
}

.md-typeset .tea-home-choice--primary:hover {
  box-shadow: 0 22px 50px rgba(8, 61, 84, .24);
}

.tea-home-choice--primary::after {
  position: absolute;
  right: -90px;
  bottom: -120px;
  width: 220px;
  height: 220px;
  content: "";
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 50%;
  box-shadow: 0 0 0 42px rgba(255, 255, 255, .035);
}

.tea-home-icon {
  display: grid;
  width: 54px;
  height: 54px;
  margin-bottom: 1.75rem;
  place-items: center;
  border-radius: 14px;
  color: var(--tea-brand);
  background: #e8f3f7;
}

.tea-home-choice--primary .tea-home-icon {
  color: #fff;
  background: rgba(255, 255, 255, .13);
}

.tea-home-icon svg {
  width: 27px;
  height: 27px;
}

.md-typeset .tea-home-choice h2 {
  margin: 0 0 .55rem;
  color: inherit;
  font-size: 23px;
  line-height: 1.2;
  letter-spacing: -.025em;
}

.md-typeset .tea-home-choice--primary h2 {
  color: #fff;
}

.tea-home-choice p {
  max-width: 290px;
  margin: 0;
  color: var(--tea-muted);
  font-size: 14px;
  line-height: 1.6;
}

.tea-home-choice--primary p {
  color: rgba(255, 255, 255, .78);
}

.tea-home-action {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-top: auto;
  padding-top: 1.75rem;
  color: var(--tea-brand);
  font-size: 14px;
  font-weight: 800;
}

.tea-home-choice--primary .tea-home-action {
  color: #fff;
}

.tea-home-arrow {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: #edf4f7;
  transition: transform .18s ease;
}

.tea-home-choice--primary .tea-home-arrow {
  background: rgba(255, 255, 255, .13);
}

.tea-home-choice:hover .tea-home-arrow {
  transform: translateX(3px);
}

.tea-home-footnote {
  margin: 2.2rem 0 0;
  color: #7a8790;
  text-align: center;
  font-size: 12px;
}

/* =========================
   Vaardighedenoverzicht
========================= */

.tea-skills-page {
  background: #f5f7f9;
  color: var(--tea-ink);
  line-height: 1.55;
}

.tea-skills-page button,
.tea-skills-page input {
  font: inherit;
}

.tea-skills-page button {
  cursor: pointer;
}

.tea-skills-page :is(a, button, input):focus-visible,
.tea-home-page a:focus-visible {
  outline: 3px solid #f2b84b;
  outline-offset: 3px;
}

.tea-skills-enhanced-content {
  display: none;
}

.tea-skills-page.tea-skills-enhanced .tea-skills-enhanced-content {
  display: block;
}

.tea-skills-page.tea-skills-enhanced .tea-skills-fallback {
  display: none;
}

.tea-skills-fallback {
  max-width: 1180px;
  margin: auto;
  padding: 2.4rem 1.5rem 4rem;
}

.md-typeset .tea-skills-fallback h2,
.md-typeset .tea-skills-fallback h3 {
  color: var(--tea-ink);
}

.tea-skills-fallback > p {
  color: var(--tea-muted);
}

.tea-skills-fallback-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .85rem;
  margin: 1.25rem 0 2rem;
}

.md-typeset .tea-skills-fallback-grid a {
  display: grid;
  gap: .25rem;
  padding: 1rem;
  border: 1px solid var(--tea-line);
  border-radius: 14px;
  background: #fff;
}

.tea-skills-fallback-grid span {
  color: var(--tea-muted);
  font-size: .85rem;
}

.tea-skills-hero {
  color: #fff;
  background:
    radial-gradient(circle at 90% 20%, rgba(255, 255, 255, .16), transparent 25%),
    linear-gradient(135deg, #083d55, var(--tea-brand));
}

.tea-skills-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
  align-items: center;
  gap: 3.25rem;
  max-width: 1180px;
  margin: auto;
  padding: 3.4rem 1.5rem 3rem;
}

.tea-skills-breadcrumbs {
  margin-bottom: .9rem;
  color: rgba(255, 255, 255, .68);
  font-size: 13px;
}

.md-typeset .tea-skills-hero h1 {
  margin: 0 0 1.1rem;
  padding: 0;
  border: 0;
  color: #fff;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.05;
  letter-spacing: -.045em;
}

.tea-skills-hero p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, .86);
  font-size: 18px;
}

.tea-skills-hero-panel {
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 18px;
  background: rgba(255, 255, 255, .1);
  backdrop-filter: blur(8px);
}

.tea-skills-hero-panel strong {
  display: block;
  margin-bottom: .75rem;
  color: #fff;
  font-size: 15px;
}

.tea-skills-route {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: start;
  gap: .75rem;
  padding: .65rem 0;
  border-top: 1px solid rgba(255, 255, 255, .14);
}

.tea-skills-route:first-of-type {
  border-top: 0;
}

.tea-skills-route-num {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  color: var(--tea-brand);
  background: #fff;
  font-size: 13px;
  font-weight: 800;
}

.tea-skills-route span {
  color: rgba(255, 255, 255, .8);
  font-size: 14px;
}

.tea-skills-main {
  max-width: 1180px;
  margin: auto;
  padding: 1.9rem 1.5rem 4.4rem;
}

.tea-skills-toolbar {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  align-items: center;
  gap: 1rem;
  margin-top: -3.25rem;
  padding: 1.1rem;
  border: 1px solid rgba(219, 227, 232, .8);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(15, 49, 66, .10);
}

.tea-skills-searchbox {
  position: relative;
}

.tea-skills-searchbox svg {
  position: absolute;
  top: 50%;
  left: .95rem;
  color: #718096;
  transform: translateY(-50%);
}

.tea-skills-searchbox input {
  width: 100%;
  height: 50px;
  padding: 0 1rem 0 2.9rem;
  border: 1px solid var(--tea-line);
  border-radius: 12px;
  outline: none;
  color: var(--tea-ink);
  background: #fbfcfd;
}

.tea-skills-searchbox input:focus {
  border-color: #55a2bd;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(13, 90, 120, .10);
}

.tea-skills-level-filter {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}

.tea-skills-level-filter button,
.tea-skills-mobile-cats button {
  padding: .55rem .8rem;
  border: 1px solid var(--tea-line);
  border-radius: 999px;
  color: #475467;
  background: #fff;
  font-size: 13px;
  font-weight: 700;
}

.tea-skills-level-filter button.active,
.tea-skills-mobile-cats button.active {
  border-color: var(--tea-brand);
  color: #fff;
  background: var(--tea-brand);
}

.tea-skills-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.25rem;
  margin: 2.6rem 0 1.1rem;
}

.md-typeset .tea-skills-section-head h2 {
  margin: 0;
  color: var(--tea-ink);
  font-size: 28px;
  letter-spacing: -.025em;
}

.tea-skills-section-head p {
  margin: .25rem 0 0;
  color: var(--tea-muted);
}

.tea-skills-count {
  color: var(--tea-muted);
  white-space: nowrap;
  font-size: 13px;
}

.tea-skills-category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .85rem;
}

.tea-skills-category-card {
  --accent: var(--tea-brand);
  position: relative;
  min-height: 175px;
  overflow: hidden;
  padding: 1.2rem;
  border: 1px solid var(--tea-line);
  border-radius: 16px;
  background: #fff;
  text-align: left;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.tea-skills-category-card::after {
  position: absolute;
  right: -38px;
  bottom: -48px;
  width: 120px;
  height: 120px;
  content: "";
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}

.tea-skills-category-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--tea-line));
  box-shadow: 0 12px 28px rgba(17, 60, 78, .10);
}

.tea-skills-category-card.active {
  padding: calc(1.2rem - 1px);
  border: 2px solid var(--accent);
  box-shadow: 0 10px 26px color-mix(in srgb, var(--accent) 12%, transparent);
}

.tea-skills-cat-icon {
  display: grid;
  width: 44px;
  height: 44px;
  margin-bottom: 1rem;
  place-items: center;
  border-radius: 12px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, white);
}

.tea-skills-cat-icon svg {
  width: 23px;
  height: 23px;
}

.md-typeset .tea-skills-category-card h3 {
  max-width: 90%;
  margin: 0 0 .45rem;
  color: var(--tea-ink);
  font-size: 16px;
  line-height: 1.25;
}

.tea-skills-category-card p {
  margin: 0 0 .75rem;
  color: var(--tea-muted);
  font-size: 13px;
  line-height: 1.45;
}

.tea-skills-meta {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.tea-skills-resource-shell {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  align-items: start;
  gap: 1.35rem;
}

.tea-skills-side-nav {
  position: sticky;
  top: 5.4rem;
  padding: .6rem;
  border: 1px solid var(--tea-line);
  border-radius: 15px;
  background: #fff;
}

.tea-skills-side-nav-title {
  padding: .55rem .65rem .45rem;
  color: #98a2b3;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.tea-skills-side-nav button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: .6rem .68rem;
  border: 0;
  border-radius: 9px;
  color: #475467;
  background: transparent;
  text-align: left;
  font-size: 13px;
  font-weight: 650;
}

.tea-skills-side-nav button:hover {
  background: #f3f7f9;
}

.tea-skills-side-nav button.active {
  color: var(--tea-brand);
  background: var(--tea-brand-soft);
  font-weight: 800;
}

.tea-skills-side-nav em {
  padding: .05rem .42rem;
  border-radius: 999px;
  background: #edf1f3;
  font-size: 11px;
  font-style: normal;
}

.tea-skills-resource-list {
  display: grid;
  gap: .75rem;
}

.tea-skills-resource-card {
  --accent: var(--tea-brand);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  border: 1px solid var(--tea-line);
  border-radius: 14px;
  background: #fff;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.md-typeset .tea-skills-resource-link {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: .95rem;
  width: 100%;
  padding: 1rem;
  text-align: left;
}

.tea-skills-resource-card:hover {
  transform: translateX(2px);
  border-color: color-mix(in srgb, var(--accent) 42%, var(--tea-line));
  box-shadow: 0 8px 22px rgba(17, 60, 78, .08);
}

.tea-skills-resource-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 12px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 11%, white);
}

.tea-skills-resource-icon svg {
  width: 23px;
  height: 23px;
}

.md-typeset .tea-skills-resource-card h3 {
  margin: 0 0 .2rem;
  color: var(--tea-ink);
  font-size: 16px;
}

.tea-skills-resource-card p {
  margin: 0;
  color: var(--tea-muted);
  font-size: 13px;
}

.tea-skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .38rem;
  margin-top: .55rem;
}

.tea-skills-tag {
  padding: .23rem .48rem;
  border-radius: 999px;
  color: #596579;
  background: #f0f3f5;
  font-size: 11px;
  font-weight: 750;
}

.tea-skills-tag--level {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, white);
}

.tea-skills-arrow {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: #98a2b3;
}

.tea-skills-arrow svg {
  width: 18px;
  height: 18px;
}

.tea-skills-resource-details {
  margin-right: 1rem;
  padding: .5rem .7rem;
  border: 1px solid var(--tea-line);
  border-radius: 9px;
  color: var(--tea-brand);
  background: #f8fbfc;
  font-size: 12px;
  font-weight: 800;
}

.tea-skills-resource-details:hover {
  border-color: var(--tea-brand);
  background: var(--tea-brand-soft);
}

.tea-skills-empty {
  display: none;
  padding: 2.6rem 1.25rem;
  border: 1px dashed #cbd5dc;
  border-radius: 14px;
  color: var(--tea-muted);
  background: #fff;
  text-align: center;
}

.tea-skills-clear-btn {
  margin-top: .75rem;
  padding: .55rem .8rem;
  border: 0;
  border-radius: 9px;
  color: #fff;
  background: var(--tea-brand);
  font-weight: 750;
}

.tea-skills-footer-note {
  margin-top: 1.75rem;
  padding: 1rem 1.1rem;
  border-left: 4px solid var(--tea-brand);
  border-radius: 0 12px 12px 0;
  color: #315466;
  background: var(--tea-brand-soft);
  font-size: 14px;
}

.tea-skills-mobile-cats {
  display: none;
}

.tea-skills-backdrop {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: none;
  align-items: stretch;
  justify-content: flex-end;
  background: rgba(10, 29, 39, .48);
}

.tea-skills-backdrop.open {
  display: flex;
}

.tea-skills-drawer {
  width: min(520px, 100%);
  height: 100%;
  overflow: auto;
  padding: 1.6rem;
  color: var(--tea-ink);
  background: #fff;
  box-shadow: -18px 0 45px rgba(0, 0, 0, .18);
  animation: tea-skills-slide .22s ease;
}

@keyframes tea-skills-slide {
  from { transform: translateX(35px); opacity: .65; }
  to { transform: translateX(0); opacity: 1; }
}

.tea-skills-drawer-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1.25rem;
}

.tea-skills-drawer-close {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 10px;
  color: #4b5b65;
  background: #edf2f4;
  font-size: 1.4rem;
}

.tea-skills-drawer-kicker {
  color: var(--tea-brand);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.md-typeset .tea-skills-drawer h2 {
  margin: .4rem 0 .65rem;
  color: var(--tea-ink);
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -.025em;
}

.md-typeset .tea-skills-drawer h3 {
  margin: 1.55rem 0 .55rem;
  color: var(--tea-ink);
  font-size: 15px;
}

.tea-skills-drawer-intro {
  color: var(--tea-muted);
  font-size: 15px;
}

.tea-skills-drawer ul {
  margin: 0;
  padding-left: 1.25rem;
  color: #475467;
  font-size: 14px;
}

.tea-skills-drawer li {
  margin: .42rem 0;
}

.tea-skills-drawer-actions {
  display: flex;
  gap: .65rem;
  margin-top: 1.75rem;
}

.md-typeset .tea-skills-primary,
.tea-skills-secondary {
  padding: .7rem .95rem;
  border-radius: 10px;
  font-weight: 800;
}

.md-typeset .tea-skills-primary {
  border: 1px solid var(--tea-brand);
  color: #fff;
  background: var(--tea-brand);
}

.tea-skills-secondary {
  border: 1px solid var(--tea-line);
  color: #475467;
  background: #fff;
}

@media (max-width: 960px) {
  .tea-skills-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tea-skills-hero-inner {
    grid-template-columns: 1fr;
  }

  .tea-skills-hero-panel {
    display: none;
  }

  .tea-skills-resource-shell {
    grid-template-columns: 1fr;
  }

  .tea-skills-side-nav {
    display: none;
  }

  .tea-skills-mobile-cats {
    display: flex;
    gap: .5rem;
    overflow: auto;
    margin-bottom: .6rem;
    padding: .1rem 0 .6rem;
  }

  .tea-skills-mobile-cats button {
    white-space: nowrap;
  }
}

@media (max-width: 850px) {
  .tea-home-choices {
    grid-template-columns: 1fr;
  }

  .md-typeset .tea-home-choice {
    min-height: 210px;
  }

  .tea-home-choice p {
    max-width: 520px;
  }
}

@media (max-width: 700px) {
  .tea-home-page {
    justify-content: flex-start;
    padding: 2.6rem 1rem 2rem;
  }

  .tea-home-intro {
    margin-bottom: 1.75rem;
  }

  .tea-home-intro p {
    font-size: 16px;
  }

  .md-typeset .tea-home-choice {
    min-height: 220px;
    padding: 1.35rem;
  }

  .tea-home-icon {
    margin-bottom: 1.2rem;
  }

  .tea-skills-hero-inner {
    padding: 2.4rem 1.1rem 3rem;
  }

  .tea-skills-main {
    padding: 1.5rem .9rem 3.75rem;
  }

  .tea-skills-toolbar {
    grid-template-columns: 1fr;
    margin-top: -2.6rem;
    padding: .8rem;
  }

  .tea-skills-level-filter {
    flex-wrap: nowrap;
    overflow: auto;
  }

  .tea-skills-level-filter button {
    white-space: nowrap;
  }

  .tea-skills-category-grid {
    grid-template-columns: 1fr;
  }

  .tea-skills-category-card {
    min-height: 150px;
  }

  .tea-skills-section-head {
    align-items: start;
    flex-direction: column;
    gap: .3rem;
  }

  .tea-skills-resource-card {
    grid-template-columns: 1fr;
  }

  .md-typeset .tea-skills-resource-link {
    grid-template-columns: 44px minmax(0, 1fr) 18px;
    gap: .7rem;
    padding: .8rem;
  }

  .tea-skills-resource-details {
    justify-self: start;
    margin: 0 0 .8rem 4.25rem;
  }

  .tea-skills-resource-icon {
    width: 44px;
    height: 44px;
  }

  .tea-skills-drawer {
    padding: 1.25rem;
  }

  .md-typeset .tea-skills-drawer h2 {
    font-size: 26px;
  }

  .tea-skills-fallback {
    padding: 2rem 1rem 3rem;
  }

  .tea-skills-fallback-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tea-home-choice,
  .tea-home-arrow,
  .tea-skills-category-card,
  .tea-skills-resource-card,
  .tea-skills-drawer {
    transition: none;
    animation: none;
  }
}

/* =========================
   Route-indexpagina's
   (.tea-route-*)
========================= */

/* Maak route-indexpagina's ook schermbreed */
.md-main__inner.md-grid:has(.tea-route-page),
.md-content:has(.tea-route-page) {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.md-content__inner:has(> .tea-route-page) {
  max-width: none;
  margin: 0;
  padding-top: 0;
}

.md-typeset .tea-route-page a {
  color: inherit;
  text-decoration: none;
}

.tea-route-page {
  background: #f5f7f9;
  color: var(--tea-ink);
  line-height: 1.55;
}

/* --- Hero --- */

.tea-route-hero {
  color: #fff;
  background:
    radial-gradient(circle at 90% 20%, rgba(255, 255, 255, .14), transparent 26%),
    linear-gradient(135deg, #083d55, var(--tea-brand));
}

.tea-route-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  align-items: center;
  gap: 3rem;
  max-width: 1180px;
  margin: auto;
  padding: 3rem 1.5rem 2.75rem;
}

.tea-route-breadcrumb {
  margin-bottom: .75rem;
  color: rgba(255, 255, 255, .68);
  font-size: 13px;
}

.md-typeset .tea-route-hero h1 {
  margin: 0 0 1rem;
  padding: 0;
  border: 0;
  color: #fff;
  font-size: clamp(30px, 4.5vw, 50px);
  line-height: 1.07;
  letter-spacing: -.04em;
}

.tea-route-hero-lead {
  max-width: 640px;
  margin: 0;
  color: rgba(255, 255, 255, .85);
  font-size: 17px;
  line-height: 1.6;
}

/* Info panel inside hero */
.tea-route-hero-panel {
  padding: 1.2rem;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 16px;
  background: rgba(255, 255, 255, .1);
  backdrop-filter: blur(8px);
  font-size: 14px;
}

.tea-route-hero-panel strong {
  display: block;
  margin-bottom: .7rem;
  color: #fff;
  font-size: 14px;
}

.tea-route-hero-panel dl {
  margin: 0;
}

.tea-route-hero-panel dt {
  margin-top: .6rem;
  color: rgba(255, 255, 255, .6);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.tea-route-hero-panel dd {
  margin: .15rem 0 0;
  color: rgba(255, 255, 255, .88);
}

/* --- Compact nav bar below hero --- */

.tea-route-nav {
  background: #fff;
  border-bottom: 1px solid var(--tea-line);
}

.tea-route-nav-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  max-width: 1180px;
  margin: auto;
  padding: .7rem 1.5rem;
}

.tea-route-nav-inner a,
.tea-route-nav-inner button {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .42rem .78rem;
  border: 1px solid var(--tea-line);
  border-radius: 999px;
  color: #475467;
  background: #f8fafb;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: border-color .15s, background .15s;
}

.tea-route-nav-inner a:hover,
.tea-route-nav-inner button:hover {
  border-color: #a9c4d0;
  background: #edf4f7;
}

.tea-route-nav-inner a.tea-route-nav-primary {
  border-color: var(--tea-brand);
  color: var(--tea-brand);
  background: var(--tea-brand-soft);
}

.tea-route-nav-inner a.tea-route-nav-primary:hover {
  background: #d5e9f0;
}

.tea-route-nav-spacer {
  flex: 1;
}

/* Focus states */
.tea-route-page :is(a, button):focus-visible {
  outline: 3px solid #f2b84b;
  outline-offset: 3px;
}

/* --- Main content --- */

.tea-route-main {
  max-width: 1180px;
  margin: auto;
  padding: 2.4rem 1.5rem 4rem;
}

/* --- Phase sections --- */

.tea-route-section {
  margin-bottom: 2.4rem;
}

.tea-route-section-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 1rem;
}

.tea-route-section-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #fff;
  background: var(--tea-brand);
  font-size: 14px;
  font-weight: 800;
}

.md-typeset .tea-route-section h2 {
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--tea-ink);
  font-size: 20px;
  letter-spacing: -.02em;
}

/* --- Card grid --- */

.tea-route-grid {
  display: grid;
  gap: .65rem;
}

/* --- Individual card --- */

.tea-route-card {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: .9rem;
  padding: .9rem 1rem;
  border: 1px solid var(--tea-line);
  border-radius: 14px;
  background: #fff;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.tea-route-card:hover {
  transform: translateX(2px);
  border-color: #a9c4d0;
  box-shadow: 0 6px 18px rgba(17, 60, 78, .08);
}

/* Opdracht-kaarten krijgen een subtiele linkerrand */
.tea-route-card--opdracht {
  border-left: 3px solid var(--tea-brand);
}

.tea-route-card-body {
  display: flex;
  flex-direction: column;
  gap: .2rem;
}

/* Number badge */
.tea-route-number {
  display: grid;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 12px;
  color: var(--tea-brand);
  background: var(--tea-brand-soft);
  font-size: 15px;
  font-weight: 800;
}

.tea-route-card--opdracht .tea-route-number {
  color: #fff;
  background: var(--tea-brand);
}

/* Card title */
.md-typeset .tea-route-card h3 {
  margin: 0;
  color: var(--tea-ink);
  font-size: 15px;
  line-height: 1.3;
}

/* Short description */
.tea-route-card-desc {
  margin: 0;
  color: var(--tea-muted);
  font-size: 13px;
  line-height: 1.45;
}

/* Type badge */
.tea-route-type {
  display: inline-flex;
  align-items: center;
  margin-top: .25rem;
  padding: .18rem .44rem;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .03em;
}

.tea-route-type--uitleg {
  color: #1b607a;
  background: #ddf0f8;
}

.tea-route-type--opdracht {
  color: #2d5a1b;
  background: #d9f0d0;
}

.tea-route-type--hulpmiddel {
  color: #5a4a1b;
  background: #f5edcd;
}

/* Open link button */
.tea-route-card-link {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .48rem .75rem;
  border: 1px solid var(--tea-line);
  border-radius: 10px;
  color: var(--tea-brand);
  background: #f8fbfc;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  transition: border-color .15s, background .15s;
}

.tea-route-card-link::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 14px;
}

.tea-route-card-link:hover {
  border-color: var(--tea-brand);
  background: var(--tea-brand-soft);
}

/* Info note at bottom */
.tea-route-info-note {
  margin-top: 1.75rem;
  padding: 1rem 1.1rem;
  border-left: 4px solid var(--tea-brand);
  border-radius: 0 12px 12px 0;
  color: #315466;
  background: var(--tea-brand-soft);
  font-size: 14px;
}

/* --- Domain index (larger route cards) --- */

.tea-route-domain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.tea-route-domain-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 160px;
  overflow: hidden;
  padding: 1.3rem;
  border: 1px solid var(--tea-line);
  border-radius: 16px;
  background: #fff;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.tea-route-domain-card:hover {
  transform: translateY(-3px);
  border-color: #a9c4d0;
  box-shadow: 0 10px 26px rgba(17, 60, 78, .10);
}

.tea-route-domain-card::after {
  position: absolute;
  right: -36px;
  bottom: -44px;
  width: 110px;
  height: 110px;
  content: "";
  border-radius: 50%;
  background: rgba(13, 90, 120, .06);
}

.md-typeset .tea-route-domain-card h3 {
  margin: 0 0 .4rem;
  color: var(--tea-ink);
  font-size: 17px;
}

.tea-route-domain-card p {
  margin: 0 0 .75rem;
  color: var(--tea-muted);
  font-size: 13px;
  line-height: 1.45;
}

.tea-route-domain-meta {
  margin-top: auto;
  color: var(--tea-brand);
  font-size: 12px;
  font-weight: 800;
}

/* --- Responsive --- */

@media (max-width: 960px) {
  .tea-route-hero-inner {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    padding: 2.4rem 1.25rem 2.5rem;
  }

  .tea-route-hero-panel {
    max-width: 520px;
  }
}

@media (max-width: 700px) {
  .tea-route-hero-inner {
    padding: 2rem 1rem 2.25rem;
  }

  .tea-route-hero-panel {
    display: none;
  }

  .tea-route-main {
    padding: 1.6rem .9rem 3rem;
  }

  .tea-route-card {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: .7rem;
    padding: .8rem;
  }

  .tea-route-card-link {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .md-typeset .tea-route-card h3 {
    font-size: 14px;
  }

  .tea-route-number {
    width: 38px;
    height: 38px;
    font-size: 13px;
  }

  .tea-route-nav-inner {
    padding: .6rem 1rem;
  }

  .tea-route-domain-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tea-route-card,
  .tea-route-domain-card,
  .tea-route-card-link,
  .tea-route-nav-inner a {
    transition: none;
  }
}

/* =========================================================
   Inhoudspagina's — training, technische les, project
   Alle selectors zijn genamespaceerd met .tea-*
========================================================= */

/* Verwijder Material-breedte voor inhoudspagina's */
.md-main__inner.md-grid:has(.tea-content-page) {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.md-content:has(.tea-content-page) {
  max-width: none;
}

.md-content__inner:has(> .tea-content-page) {
  max-width: none;
  margin: 0;
  padding-top: 0;
}

/* Basis inhoudspagina */
.tea-content-page {
  box-sizing: border-box;
  width: 100%;
  padding: 2rem 1.5rem 4rem;
  margin: 0 auto;
}

/* Breedtes per paginatype */
.tea-training-page  { max-width: 920px; }
.tea-technical-page { max-width: 980px; }
.tea-project-page   { max-width: 1120px; }

/* --- Hero (compacte koptekst boven de inhoud) --- */

.tea-content-hero {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  padding: 1.25rem 0 1.5rem;
  border-bottom: 1px solid var(--tea-line);
  margin-bottom: 1.75rem;
}

.tea-content-hero__back {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .8rem;
  font-weight: 600;
  color: var(--tea-brand);
  text-decoration: none;
  letter-spacing: .01em;
  transition: color .15s;
}

.tea-content-hero__back:hover {
  color: var(--tea-brand-dark);
  text-decoration: underline;
}

.tea-content-hero__back-label {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  color: var(--tea-muted);
  letter-spacing: .01em;
}

/* --- Meta-chipjes --- */

.tea-content-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.tea-content-meta__item {
  display: inline-flex;
  align-items: center;
  padding: .2rem .65rem;
  border: 1px solid var(--tea-line);
  border-radius: 9999px;
  background: var(--tea-brand-soft);
  color: var(--tea-brand-dark);
  font-size: .75rem;
  font-weight: 600;
  white-space: nowrap;
}

.tea-content-meta__item--level {
  background: var(--tea-brand);
  border-color: var(--tea-brand);
  color: #fff;
}

/* --- Horizontale springnavigatie boven de inhoud ---
   Optioneel element; gebruik via <nav class="tea-content-jumpnav">
   op lange pagina's waar een compacte inhoudsopgave gewenst is.
   --- */

.tea-content-jumpnav {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  padding: .75rem 0 1.5rem;
  border-bottom: 1px solid var(--tea-line);
  margin-bottom: 2rem;
  list-style: none;
}

.tea-content-jumpnav a {
  display: inline-block;
  padding: .25rem .7rem;
  border: 1px solid var(--tea-line);
  border-radius: 9999px;
  background: var(--tea-surface);
  color: var(--tea-brand);
  font-size: .78rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s, border-color .15s;
}

.tea-content-jumpnav a:hover {
  background: var(--tea-brand-soft);
  border-color: var(--tea-brand);
}

/* --- Vorige/volgende navigatie onderaan --- */

.tea-content-footer-nav {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem;
  padding-top: 2.5rem;
  margin-top: 3rem;
  border-top: 1px solid var(--tea-line);
}

.tea-content-footer-nav a {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .55rem 1.1rem;
  border: 1px solid var(--tea-line);
  border-radius: 8px;
  background: var(--tea-surface);
  color: var(--tea-brand);
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s, border-color .15s, box-shadow .15s;
}

.tea-content-footer-nav a:hover {
  background: var(--tea-brand-soft);
  border-color: var(--tea-brand);
  box-shadow: 0 2px 8px rgba(13, 90, 120, .08);
}

/* --- Abstract-admonition als "Training in het kort"-kaart --- */

.tea-training-page .md-typeset .admonition.abstract,
.tea-training-page .md-typeset details.abstract {
  border: none;
  border-left: 4px solid var(--tea-brand);
  border-radius: 10px;
  background: var(--tea-brand-soft);
  box-shadow: none;
  padding: 1rem 1.25rem;
}

.tea-training-page .md-typeset .admonition.abstract > .admonition-title,
.tea-training-page .md-typeset details.abstract > summary {
  background: transparent;
  color: var(--tea-brand-dark);
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 0 0 .5rem;
  margin-bottom: .5rem;
  border-bottom: 1px solid rgba(13, 90, 120, .15);
}

.tea-training-page .md-typeset .admonition.abstract > .admonition-title::before,
.tea-training-page .md-typeset details.abstract > summary::before {
  background-color: var(--tea-brand);
}

/* --- Project: leeskolom voor lopende tekst --- */

.tea-project-page .md-typeset > p,
.tea-project-page .md-typeset > ul,
.tea-project-page .md-typeset > ol,
.tea-project-page .md-typeset > blockquote {
  max-width: 780px;
}

/* Tabellen en afbeeldingen mogen de volledige projectbreedte gebruiken */
.tea-project-page .md-typeset table,
.tea-project-page .md-typeset img {
  max-width: 100%;
}

/* --- Responsive --- */

@media (max-width: 960px) {
  .tea-training-page,
  .tea-technical-page {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}

@media (max-width: 700px) {
  .tea-content-page {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .tea-content-hero {
    padding-top: .9rem;
    margin-bottom: 1.25rem;
  }

  .tea-content-footer-nav {
    flex-direction: column;
  }

  .tea-content-footer-nav a {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tea-content-hero__back,
  .tea-content-jumpnav a,
  .tea-content-footer-nav a {
    transition: none;
  }
}


/* =========================================================
   Projectenindex — .tea-projects-*
   Namespaced selectors; no global rules.
========================================================= */

/* Make the projects page full width like the skills page */
.md-main__inner.md-grid:has(.tea-projects-page),
.md-content:has(.tea-projects-page) {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.md-content__inner:has(> .tea-projects-page) {
  max-width: none;
  margin: 0;
  padding-top: 0;
}

.md-typeset .tea-projects-page a {
  color: inherit;
  text-decoration: none;
}

/* --- Hero --- */

.tea-projects-hero {
  background: linear-gradient(135deg, var(--tea-brand-dark) 0%, #1a6f91 100%);
  color: #fff;
  padding: clamp(2.5rem, 6vh, 5rem) 1.5rem;
}

.tea-projects-hero-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
}

.tea-projects-hero-inner > div:first-child {
  flex: 1 1 320px;
  min-width: 0;
}

.tea-projects-breadcrumbs {
  font-size: .8rem;
  font-weight: 600;
  color: rgba(255,255,255,.65);
  letter-spacing: .04em;
  margin-bottom: .75rem;
}

.md-typeset .tea-projects-hero h1 {
  margin: 0 0 .75rem;
  padding: 0;
  border: 0;
  color: #fff;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
  letter-spacing: -.04em;
}

.tea-projects-hero p {
  margin: 0;
  color: rgba(255,255,255,.85);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 560px;
}

/* Hero panel */
.tea-projects-hero-panel {
  flex: 0 0 260px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  color: rgba(255,255,255,.9);
}

.tea-projects-hero-panel strong {
  display: block;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .9rem;
  color: #fff;
}

.tea-projects-route {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  margin-bottom: .7rem;
  font-size: .88rem;
  line-height: 1.45;
}

.tea-projects-route:last-child {
  margin-bottom: 0;
}

.tea-projects-route-num {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: rgba(255,255,255,.25);
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Fallback (no-JS) --- */

.tea-projects-fallback {
  max-width: 780px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

.tea-projects-fallback-inner h2 {
  margin-top: 0;
}

/* Hide fallback when JS runs; JS sets hidden attr */
.tea-projects-fallback[hidden] {
  display: none;
}

/* --- Enhanced content --- */

.tea-projects-enhanced-content {
  /* shown by JS */
}

/* --- Section --- */

.tea-projects-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

.tea-projects-section + .tea-projects-section {
  padding-top: 0;
}

.tea-projects-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.tea-projects-section-head--muted h2 {
  color: var(--tea-muted);
  font-size: 1.1rem;
}

.md-typeset .tea-projects-section h2 {
  margin: 0 0 .2rem;
  padding: 0;
  border: 0;
  font-size: 1.5rem;
  color: var(--tea-brand-dark);
  line-height: 1.2;
}

.tea-projects-school-year {
  margin: 0;
  color: var(--tea-muted);
  font-size: .9rem;
}

.tea-projects-count {
  margin-left: auto;
  background: var(--tea-brand-soft);
  color: var(--tea-brand-dark);
  border: 1px solid var(--tea-line);
  border-radius: 9999px;
  padding: .2rem .9rem;
  font-size: .82rem;
  font-weight: 700;
  white-space: nowrap;
}

/* --- Filters --- */

.tea-projects-filters {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 2rem;
}

.tea-projects-filters button {
  appearance: none;
  border: 1px solid var(--tea-line);
  border-radius: 9999px;
  background: var(--tea-surface);
  color: var(--tea-ink);
  font-size: .85rem;
  font-weight: 600;
  padding: .35rem 1rem;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
  white-space: nowrap;
}

.tea-projects-filters button:hover {
  background: var(--tea-brand-soft);
  border-color: var(--tea-brand);
  color: var(--tea-brand-dark);
}

.tea-projects-filters button.active {
  background: var(--tea-brand);
  border-color: var(--tea-brand);
  color: #fff;
}

.tea-projects-filters button:focus-visible {
  outline: 3px solid var(--tea-brand);
  outline-offset: 2px;
}

/* --- Group heading --- */

.tea-projects-group {
  margin-bottom: 2rem;
}

.md-typeset .tea-projects-group-heading {
  margin: 0 0 1rem;
  padding: 0;
  border: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--tea-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* --- Grid --- */

.tea-projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

/* --- Card --- */

.md-typeset .tea-projects-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--tea-line);
  border-radius: var(--tea-radius);
  background: var(--tea-surface);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(8,61,84,.06);
  transition: box-shadow .18s, border-color .18s, transform .18s;
  color: var(--tea-ink);
  text-decoration: none;
}

.md-typeset .tea-projects-card:hover {
  border-color: var(--tea-brand);
  box-shadow: var(--tea-shadow);
  transform: translateY(-2px);
}

.md-typeset .tea-projects-card:focus-visible {
  outline: 3px solid var(--tea-brand);
  outline-offset: 2px;
}

/* Archived card: slightly muted */
.md-typeset .tea-projects-card--archived {
  border-style: dashed;
  opacity: .9;
}

/* Card image */
.tea-projects-card-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--tea-brand-soft);
  flex-shrink: 0;
}

.tea-projects-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tea-projects-card-img--placeholder {
  background: linear-gradient(135deg, var(--tea-brand-soft) 0%, #dae8f0 100%);
}

/* Card body */
.tea-projects-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1rem 1.1rem;
  gap: .5rem;
}

/* Chips */
.tea-projects-card-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
}

.tea-projects-chip {
  display: inline-flex;
  align-items: center;
  padding: .15rem .55rem;
  border: 1px solid var(--tea-line);
  border-radius: 9999px;
  background: var(--tea-brand-soft);
  color: var(--tea-brand-dark);
  font-size: .72rem;
  font-weight: 700;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.tea-projects-chip--grade {
  background: var(--tea-brand);
  border-color: var(--tea-brand);
  color: #fff;
}

.tea-projects-chip--archive {
  background: var(--tea-muted);
  border-color: var(--tea-muted);
  color: #fff;
}

/* Card title */
.md-typeset .tea-projects-card-title {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--tea-ink);
  overflow-wrap: break-word;
}

/* Card summary */
.tea-projects-card-summary {
  margin: 0;
  font-size: .85rem;
  color: var(--tea-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Card footer */
.tea-projects-card-footer {
  margin-top: auto;
  padding-top: .75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
  border-top: 1px solid var(--tea-line);
}

.tea-projects-card-client {
  font-size: .78rem;
  color: var(--tea-muted);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.tea-projects-card-action {
  font-size: .82rem;
  font-weight: 700;
  color: var(--tea-brand);
  white-space: nowrap;
  flex-shrink: 0;
}

.md-typeset .tea-projects-card:hover .tea-projects-card-action {
  color: var(--tea-brand-dark);
}

/* --- Empty state --- */

.tea-projects-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--tea-muted);
  font-size: .95rem;
}

.tea-projects-empty[hidden] {
  display: none;
}

.tea-projects-clear-btn {
  appearance: none;
  margin-top: 1rem;
  border: 1px solid var(--tea-line);
  border-radius: 9999px;
  background: var(--tea-surface);
  color: var(--tea-brand);
  font-size: .85rem;
  font-weight: 600;
  padding: .35rem 1rem;
  cursor: pointer;
}

.tea-projects-clear-btn:hover {
  background: var(--tea-brand-soft);
  border-color: var(--tea-brand);
}

/* --- Archive section --- */

.tea-projects-archive-section {
  padding-top: 1rem;
  border-top: 2px solid var(--tea-line);
  margin-top: 1rem;
}

.tea-projects-archive-section[hidden] {
  display: none;
}

/* --- Tools/interactive examples card --- */

.tea-projects-tools-section {
  padding-top: 1rem;
  border-top: 2px solid var(--tea-line);
  margin-top: 1rem;
}

.tea-projects-tools-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 2rem;
  border: 1px solid var(--tea-line);
  border-radius: var(--tea-radius);
  background: var(--tea-brand-soft);
}

.tea-projects-tools-card-body {
  flex: 1 1 300px;
}

.md-typeset .tea-projects-tools-card h2 {
  margin: 0 0 .4rem;
  font-size: 1.15rem;
  color: var(--tea-brand-dark);
}

.tea-projects-tools-card p {
  margin: 0;
  color: var(--tea-muted);
  font-size: .9rem;
}

.tea-projects-tools-link {
  display: inline-block;
  padding: .55rem 1.4rem;
  border-radius: 9999px;
  background: var(--tea-brand);
  color: #fff !important;
  font-size: .9rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background .15s;
}

.tea-projects-tools-link:hover {
  background: var(--tea-brand-dark) !important;
}

.tea-projects-tools-link:focus-visible {
  outline: 3px solid var(--tea-brand);
  outline-offset: 2px;
}

/* --- Responsive --- */

@media (max-width: 1100px) {
  .tea-projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .tea-projects-hero-panel {
    flex: 1 1 100%;
  }

  .tea-projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .tea-projects-grid {
    grid-template-columns: 1fr;
  }

  .tea-projects-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: .25rem;
    scrollbar-width: thin;
  }

  .tea-projects-card-img {
    aspect-ratio: 16 / 7;
  }
}

@media (prefers-reduced-motion: reduce) {
  .md-typeset .tea-projects-card,
  .tea-projects-filters button,
  .tea-projects-tools-link {
    transition: none;
  }
}
