/* Shared top header + app-nav styling for all SeptemberTotSeptember apps. */

.site-header {
  background: #1a1a2e;
  color: #fff;
  border: none;
  padding: 1.2rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-family: system-ui, -apple-system, sans-serif;
  /* Break out of any parent that constrains width (e.g. LesVal's
     body { max-width: 1200px; margin: 0 auto; }) — the header stays
     full-bleed across the viewport. */
  width: 100vw;
  position: relative;
  left: 50%;
  margin-left: -50vw;
  margin-top: 0;
  margin-bottom: 0;
}
.site-header .brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: inherit;
  text-decoration: none;
}
.site-header .brand:hover { text-decoration: none; }
.site-header .brand-text h1,
.site-header h1 { font-size: 1.3rem; font-weight: 600; margin: 0; color: #fff !important; }
.site-header .brand-text p,
.site-header p { font-size: .85rem; color: #aab !important; margin: .25rem 0 0; }

.site-header .auth-nav { font-size: .85rem; display: flex; align-items: center; gap: 1rem; }
.site-header .auth-nav a { color: #fff; text-decoration: none; }
.site-header .auth-nav a:hover { text-decoration: underline; }
.site-header .auth-user { display: inline-flex; gap: 1rem; align-items: center; }
.site-header .auth-user > span:first-child { color: #aab; }

/* Base classes apps can use for their own nav directly under the header. */
.app-nav {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  padding: .55rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: .25rem;
  font-size: .9rem;
  font-family: system-ui, -apple-system, sans-serif;
  /* Same full-bleed escape as the shell header. */
  width: 100vw;
  position: relative;
  left: 50%;
  margin-left: -50vw;
  margin-top: 0;
  margin-bottom: 1rem;
}
.app-nav a {
  color: #374151;
  text-decoration: none;
  padding: .4rem .75rem;
  border-radius: 6px;
}
.app-nav a:hover { background: #f3f4f6; }
.app-nav a.active {
  background: #e0e7ff;
  color: #1d4ed8;
  font-weight: 600;
}
.app-nav .app-nav-spacer { flex: 1; }

/* Optionele tweede rij onder de hoofd-nav voor pagina-specifieke tabs
   (bv. "Jaar 1 / Jaar 2 / ..." op de Leerlijn-pagina). */
.app-subnav {
  background: #fff;
  border-bottom: 1px solid var(--s2s-border);
  padding: .4rem 1.5rem;
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  font-size: .85rem;
  font-family: var(--s2s-font);
  width: 100vw;
  position: relative;
  left: 50%;
  margin-left: -50vw;
}
.app-subnav .label {
  color: var(--s2s-text-muted);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-weight: 600;
  margin-right: .35rem;
}
.app-subnav button {
  background: none;
  border: 1px solid var(--s2s-border);
  border-radius: var(--s2s-radius-sm);
  padding: .25rem .7rem;
  font-size: .8rem;
  cursor: pointer;
  font-family: inherit;
}
.app-subnav button.active {
  background: var(--s2s-primary-soft);
  color: var(--s2s-primary-hover);
  border-color: var(--s2s-primary);
  font-weight: 600;
}
