/* Tampere Thaiboxing — guides hub, dashboard visual language.
   Built to list many quick guides (one per full guide over time).
   Add cards in the HTML (or via build_hub.py); this grid does not
   need layout changes when the list grows from 9 to 40+.
   Cards must never use background images. */

.dash-hub {
  overflow-x: hidden;
}

/* Language flags stay on the right; breadcrumbs sit with them and
   wrap onto their own row, left-aligned, on narrow screens. */
.dash-hub .dash-top {
  flex-wrap: wrap;
}
.hub-top-end {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: .5rem .75rem;
  margin-left: auto;
  min-width: 0;
  flex: 1 1 12rem;
}
.hub-top-end .dash-crumb {
  text-align: left;
}

.dash-hub .hub-lang {
  margin-left: auto;
}

.hub-lang {
  display: flex;
  align-items: center;
  gap: .35rem;
  flex-shrink: 0;
}

.hub-lang a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  border-radius: .2rem;
  outline-offset: 2px;
  opacity: .72;
}

.hub-lang a.is-active,
.hub-lang a:hover,
.hub-lang a:focus {
  opacity: 1;
}

.hub-lang .lang-flag {
  display: block;
  width: 24px;
  height: 16px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 1px;
}

.dash-hub .dash-crumb {
  max-width: none;
}

.hub-intro {
  margin: 0 0 1.15rem;
  font-size: .95rem;
  line-height: 1.45;
  color: #c9c3b8;
  max-width: 40rem;
}

.hub-cat {
  margin: 0 0 .35rem;
  min-width: 0;
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16.25rem), 1fr));
  gap: .65rem;
  margin: 0 0 1.15rem;
  min-width: 0;
}

.hub-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: .35rem;
  min-width: 0;
  min-height: 7.4rem;
  padding: 1rem .95rem .9rem;
  background: var(--card) !important;
  background-image: none !important;
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  text-decoration: none;
  color: var(--text);
  position: relative;
  overflow: hidden;
}

.hub-card::before,
.hub-card::after {
  content: none !important;
  background: none !important;
  background-image: none !important;
}

.hub-card:hover,
.hub-card:focus {
  border-color: rgba(255, 31, 90, .5);
}

.hub-card:focus-visible {
  outline: 2px solid var(--hot);
  outline-offset: 2px;
}

.hub-card h3 {
  margin: 0;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: clamp(1.2rem, 4.4vw, 1.55rem);
  line-height: 1.05;
  letter-spacing: .03em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.hub-card p {
  margin: 0;
  font-size: .86rem;
  line-height: 1.35;
  color: #c9c3b8;
  overflow-wrap: anywhere;
}

.dash-hub footer.dash-foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .15rem;
  padding: .8rem 0 1.2rem;
}

.dash-hub footer.dash-foot p {
  margin: 0;
}

.dash-hub .guide-byline {
  font-family: "Roboto Condensed", sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--mute);
  margin: 1.25em 0 0;
}

.dash-hub .guide-byline a {
  color: #C40048;
  text-decoration: underline;
}

@media (max-width: 480px) {
  .dash-hub .dash-top {
    padding: .65rem .8rem;
  }
  /* Keep flags on the first row (right); breadcrumbs wrap below, left-aligned. */
  .dash-hub .hub-lang {
    order: 2;
  }
  .dash-hub .dash-crumb {
    flex-basis: 100%;
    text-align: left;
    order: 3;
  }
}

@media (min-width: 760px) {
  .hub-grid {
    gap: .8rem;
    margin-bottom: 1.35rem;
  }
  .hub-card {
    min-height: 8rem;
    padding: 1.15rem 1.05rem 1rem;
  }
}
