/* The participant shell shares the homepage mark, type and palette. */
.team-brand {
  --brand-serif: "Source Serif 4", Georgia, Cambria, serif;
  --brand-ink: #153922;
  --brand-green: #194d31;
  --brand-muted: #344a38;
  --brand-paper: #faf4e3;
  --brand-card: #fffdf7;
  --brand-gold: #9a7630;
  --brand-line: #d7c59a;
  --brand-sage: #eaf0e0;
  --bg: var(--brand-paper);
  --surface: var(--brand-card);
  --surface-2: var(--brand-sage);
  --text: var(--brand-ink);
  --muted: var(--brand-muted);
  --border: var(--brand-line);
  --accent: var(--brand-green);
  --accent-hover: #103b24;
  --accent-soft: var(--brand-sage);
  --accent-border: #b4c5a7;
  --focus-ring: #24613d;
  --shadow: 0 5px 24px rgb(61 53 24 / .055);
  color: var(--text);
  background: var(--bg);
}

.team-brand :is(.site-header, .site-footer) {
  background: #fcf7e9;
}

.team-brand .header-inner { min-height: 4.5rem; }

.team-brand .brand {
  gap: .65rem;
  font-family: var(--brand-serif);
  font-size: clamp(1.2rem, 2vw, 1.62rem);
  font-weight: 700;
  letter-spacing: -.025em;
}

.team-brand .brand-motif { width: 2.95rem; height: 2.6rem; }
.team-brand .brand > span { padding-inline-start: .7rem; border-inline-start: 1px solid var(--brand-line); }
.team-brand .brand-name-line { display: inline; }
.team-brand .primary-nav a { color: var(--brand-ink); }
.team-brand .navigation-toggle { background: #fff9ea; }
.team-brand .footer-inner { padding-block: 1.1rem; }

/* The two views of the same illustration preserve its proportions. */
.team-brand:not(.questionnaire-shell) {
  --team-map-wash: rgb(253 250 239 / .62);
  position: relative;
  isolation: isolate;
}

.team-brand:not(.questionnaire-shell)::before,
.team-brand:not(.questionnaire-shell)::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image: linear-gradient(var(--team-map-wash), var(--team-map-wash)), url("./kadet-homepage-background.webp");
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
  pointer-events: none;
  content: "";
}

.team-brand:not(.questionnaire-shell)::after {
  background-position: center bottom;
  mask-image: linear-gradient(transparent 38%, #000 78%);
}

.team-brand:not(.questionnaire-shell) main.shell-container {
  padding-block: clamp(1.5rem, 4vw, 3.25rem) clamp(2.5rem, 6vw, 5rem);
}

.team-brand:not(.questionnaire-shell) h1 {
  font-family: var(--brand-serif);
  font-weight: 700;
  letter-spacing: -.028em;
}

.team-brand :is(.registration-heading, .entry-profile-heading, .team-dashboard-heading) {
  padding: clamp(1.15rem, 3vw, 1.9rem);
  border: 1px solid var(--brand-line);
  border-inline-start: 4px solid var(--brand-gold);
  border-radius: var(--radius);
  background-color: var(--brand-panel);
}

.team-brand :is(.team-entry-empty, .team-entry-card, .entry-online-panel) {
  background-color: var(--brand-panel);
}

.team-brand .registration-auth-card { margin-block: clamp(.15rem, 3vh, 2rem); box-shadow: var(--shadow); }
.team-brand .registration-auth-card h1 { font-size: clamp(1.8rem, 4.5vw, 2.4rem); }
.team-brand .auth-visual { margin-block-end: 1.25rem; border: 1px solid var(--brand-line); }
.team-brand .empty-state-icon { border: 1px solid var(--brand-line); }
.team-brand .entry-member-card { background: #f9f7eb; }
.team-brand .entry-profile-readonly span { overflow-wrap: anywhere; }
.team-brand .new-team-panel {
  border-color: var(--brand-line);
  background-color: rgb(247 246 229 / var(--brand-panel-alpha));
}
.team-brand .registration-notice-success {
  border-inline-start: 4px solid var(--brand-green);
  background-color: rgb(234 240 224 / var(--brand-panel-alpha));
}
.team-brand .registration-notice-closed {
  border-inline-start: 4px solid var(--brand-gold);
  background-color: rgb(255 247 231 / var(--brand-panel-alpha));
}

@media (max-width: 67.999rem) {
  .team-brand .brand-motif { width: 2.65rem; height: 2.35rem; }
}

@media (max-width: 45rem) {
  .team-brand:not(.questionnaire-shell) { --team-map-wash: rgb(253 250 239 / .79); }
  .team-brand:not(.questionnaire-shell)::before { background-position: 22% top; }
  .team-brand:not(.questionnaire-shell)::after { background-position: 82% bottom; }
  .team-brand .brand { gap: .48rem; }
  .team-brand .brand > span { padding-inline-start: .5rem; }
}

@media (max-width: 28rem) {
  .team-brand .brand-motif { width: 2.25rem; }
  .team-brand .brand-name-line { display: block; }
}

@media print {
  .team-brand:not(.questionnaire-shell)::before,
  .team-brand:not(.questionnaire-shell)::after { display: none; }
  .team-brand { background: #fff; }
}
