
:root{
  --trb-red: #e3342a;
  --trb-muted: #8a2b24;
  --trb-logo-size: 400px; /* sensible default for stacked layout */
  --trb-gap: 16px;
  --trb-max-width: 1400px;
}

.trb-header{
  max-width: var(--trb-max-width);
  margin: 18px auto;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;    /* ALWAYS stacked */
  align-items: center;
  gap: var(--trb-gap);
  box-sizing: border-box;
  background: transparent;
}

/* make the anchor wrap logo + brand in a column */
.trb-brand-link {
  display: flex;
  flex-direction: column;    /* logo above brand */
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

/* logo: responsive but capped so it won't blow the layout */
.trb-brand-link .trb-logo,
.trb-header .trb-logo {
  width: clamp(300px, 6vw, 220px);
  height: auto;
  flex: 0 0 auto;
  display: block;
}

/* brand text centered under the logo */
.trb-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 0;
}

/* title: allow wrapping and keep readable size */
.trb-brand h1 {
  margin: 0;
  font-family: 'Comic Neue', 'Comic Sans MS', cursive;
  font-weight: 900;
  font-size: clamp(20px, 6.5vw, 44px);
  color: var(--trb-red);
  letter-spacing: 2px;
  line-height: 1.05;
  text-transform: uppercase;
  white-space: normal; /* wrap if needed */
  max-width: 90vw;
}

/* subtitle */
.trb-brand .trb-subtitle {
  margin-top: 6px;
  font-size: clamp(12px, 2.6vw, 16px);
  color: var(--trb-red);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* nav centered under brand */
.trb-header .nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 6px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 90vw;
}

/* subtle separator */
.trb-header::after {
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, rgba(0,0,0,0.04), rgba(0,0,0,0.02));
  margin-top: 12px;
}