/* ============================================================
   Rotman brand — source of truth: docs/branding/Rotman_Latex_2026.tex
   (Rotman Pink #DA116F on black/white, Helvetica, thin black rules,
   pink bold titles). See docs/branding/BRANDING.md.
   ============================================================ */
:root {
  --rotman-pink: #DA116F;
  --rotman-pink-dark: #B80E5D;
  --rotman-black: #000000;
  --rotman-gray: #888888;

  --bs-link-color: var(--rotman-pink);
  --bs-link-hover-color: var(--rotman-pink-dark);
  --bs-link-color-rgb: 218, 17, 111;
  --bs-link-hover-color-rgb: 184, 14, 93;
}

html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

html {
  position: relative;
  min-height: 100%;
}

body {
  font-family: "Helvetica Neue", Helvetica, Arial, -apple-system, sans-serif;
  color: var(--rotman-black);
  background-color: #fff;
  margin-bottom: 60px;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem var(--rotman-pink);
}

.form-check-input:checked {
  background-color: var(--rotman-pink);
  border-color: var(--rotman-pink);
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* --- Chrome: white, framed by black rules (template's header/footer rules) --- */

header .navbar {
  background-color: #fff;
  border-bottom: 2.5px solid var(--rotman-black);
}

header .navbar .navbar-brand {
  color: var(--rotman-black);
  font-weight: 700;
}

/* Pink accent bar before the brand (title-slide accent bar) */
header .navbar .navbar-brand::before {
  content: "";
  display: inline-block;
  width: 26px;
  height: 8px;
  background: var(--rotman-pink);
  margin-right: 10px;
  vertical-align: middle;
}

header .navbar .nav-link,
header .navbar .btn-link.nav-link {
  color: var(--rotman-black);
  font-weight: 500;
}

header .navbar .nav-link:hover,
header .navbar .nav-link:focus,
header .navbar .btn-link.nav-link:hover {
  color: var(--rotman-pink);
}

.result-category-tabs {
  display: flex;
  gap: .5rem;
  overflow-x: auto;
  padding: .2rem 0 .45rem;
}

.result-category-tab {
  flex: 0 0 auto;
  border: 1px solid #cfd8e3;
  border-radius: 999px;
  color: #004990;
  background: #f4f8fc;
  font-weight: 600;
  padding: .55rem 1rem;
  text-decoration: none;
}

.result-category-tab:hover,
.result-category-tab:focus,
.result-category-tab.active {
  color: #fff;
  background: #004990;
  border-color: #004990;
}

.result-released-badge {
  color: #075a49;
  background: #e5f5f1;
  border: 1px solid #a9d8cc;
}

.published-result-table thead th {
  color: #24415f;
  background: #f3f7fa;
}

.published-result-table .published-rank {
  display: inline-flex;
  min-width: 2.35rem;
  min-height: 2.35rem;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #004990;
  background: #e8f1f8;
  font-size: 1.1rem;
  font-weight: 700;
}

.published-result-table .own-team-result > * {
  background: #fff8dc;
}

.password-input-wrap {
  position: relative;
}

.password-input-wrap > .form-control {
  padding-right: 2.75rem;
}

.password-visibility-toggle {
  position: absolute;
  top: 50%;
  right: .55rem;
  display: inline-flex;
  width: 1.8rem;
  height: 1.8rem;
  align-items: center;
  justify-content: center;
  padding: 0;
  transform: translateY(-50%);
  border: 0;
  border-radius: .35rem;
  color: #526273;
  background: transparent;
}

.password-visibility-toggle:hover,
.password-visibility-toggle:focus {
  color: #004990;
  background: #e8f1f8;
}

.password-visibility-toggle svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: currentColor;
}

header .navbar .dropdown-item:active {
  background-color: var(--rotman-pink);
}

@media (min-width: 576px) {
  header .navbar .nav-hover-dropdown:hover > .dropdown-menu,
  header .navbar .nav-hover-dropdown:focus-within > .dropdown-menu {
    display: block;
    margin-top: 0;
  }
}

.footer {
  border-top: 1px solid var(--rotman-black) !important;
  color: var(--rotman-gray);
  font-size: 0.85rem;
  padding-top: 0.75rem;
}

/* --- Typography: pink bold titles (Beamer frametitle) --- */

h1 {
  color: var(--rotman-pink);
  font-weight: 700;
}

h1 small, h1 .text-muted {
  color: var(--rotman-gray) !important;
}

/* --- Components --- */

.btn-primary {
  --bs-btn-bg: var(--rotman-pink);
  --bs-btn-border-color: var(--rotman-pink);
  --bs-btn-hover-bg: var(--rotman-pink-dark);
  --bs-btn-hover-border-color: var(--rotman-pink-dark);
  --bs-btn-active-bg: var(--rotman-pink-dark);
  --bs-btn-active-border-color: var(--rotman-pink-dark);
}

.btn-outline-primary {
  --bs-btn-color: var(--rotman-pink);
  --bs-btn-border-color: var(--rotman-pink);
  --bs-btn-hover-bg: var(--rotman-pink);
  --bs-btn-hover-border-color: var(--rotman-pink);
  --bs-btn-active-bg: var(--rotman-pink-dark);
  --bs-btn-active-border-color: var(--rotman-pink-dark);
}

/* Tables: pink bold headers over a black rule (template table style) */
.table thead th {
  color: var(--rotman-pink);
  border-bottom: 2px solid var(--rotman-black);
}

.card {
  border-color: #ddd;
}

.card > .card-header {
  background-color: #fff;
  color: var(--rotman-pink);
  font-weight: 700;
  border-bottom: 1px solid var(--rotman-black);
}

.competition-schedule .schedule-intro {
  padding-inline: 0.25rem;
}

.competition-schedule .schedule-day-card {
  overflow: hidden;
  border: 1px solid #c9ced4;
  box-shadow: 0 0.25rem 0.75rem rgba(33, 37, 41, 0.08);
}

.competition-schedule .schedule-day-header {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.85rem 1.25rem;
  color: #fff;
  background: #004990;
  border-bottom: 0;
}

.competition-schedule .schedule-day-name {
  font-size: 1.2rem;
  font-weight: 700;
}

.competition-schedule .schedule-day-date {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
}

.competition-schedule .schedule-table {
  width: 100%;
  min-width: 52rem;
  table-layout: fixed;
}

.competition-schedule .schedule-time-column { width: 19%; }
.competition-schedule .schedule-group-column { width: 12%; }
.competition-schedule .schedule-activity-column { width: 45%; }
.competition-schedule .schedule-location-column { width: 24%; }

.competition-schedule .schedule-table thead th {
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
  color: #495057;
  background: #f8f9fa;
  border-bottom: 1px solid #adb5bd;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.competition-schedule .schedule-table tbody td {
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
}

.competition-schedule .schedule-period-divider > th {
  padding: 0.55rem 1.5rem;
  color: #212529;
  background: #e5e7e9;
  border-top: 3px solid #343a40;
  border-bottom: 2px solid #6c757d;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.competition-schedule .schedule-period-divider:first-child > th {
  border-top-width: 2px;
}

.competition-schedule .schedule-group-badge {
  min-width: 4.4rem;
  color: #33475b;
  background: rgba(255, 255, 255, .72);
  border: 1px solid #9eabb8;
}

.competition-schedule .schedule-activity-cell,
.competition-schedule .schedule-location-cell {
  overflow-wrap: anywhere;
}

.competition-schedule .schedule-category-competition > td {
  background: #edf5fb;
  border-bottom-color: #bdd1e4;
}

.competition-schedule .schedule-category-mealandrefreshment > td {
  background: #fff9df;
  border-bottom-color: #eadc91;
}

.competition-schedule .schedule-category-eventhallprogram > td {
  background: #f4f9e7;
  border-bottom-color: #ccdaa2;
}

.competition-schedule .schedule-category-general > td {
  background: #f7f8fa;
}

.competition-schedule .schedule-category-sponsorinterview > td {
  background: #fff0f5;
  border-bottom-color: #edb7cf;
}

.competition-schedule .schedule-category-label {
  display: inline-block;
  margin-left: .55rem;
  color: #5e6b78;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .025em;
  text-transform: uppercase;
}

.competition-schedule .schedule-interviews {
  background: #fff1f7;
  border-color: #edb7cf;
}

@media (max-width: 575.98px) {
  .competition-schedule .schedule-day-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.1rem;
  }
}

.schedule-editor-table {
  min-width: 110rem;
}

.schedule-editor-table th:nth-child(1) { min-width: 14rem; }
.schedule-editor-table th:nth-child(2) { min-width: 7rem; }
.schedule-editor-table th:nth-child(3) { min-width: 12rem; }
.schedule-editor-table th:nth-child(4) { min-width: 13rem; }
.schedule-editor-table th:nth-child(5) { min-width: 6rem; }
.schedule-editor-table th:nth-child(6),
.schedule-editor-table th:nth-child(7) { min-width: 11rem; }
.schedule-editor-table th:nth-child(8) { min-width: 10rem; }
.schedule-editor-table th:nth-child(9) { min-width: 13rem; }
.schedule-editor-table th:nth-child(10) { min-width: 12rem; }

.case-time {
  color: #495057;
  font-size: 0.82rem;
  font-weight: 500;
}

.team-switcher {
  display: flex;
  align-items: center;
  gap: .45rem;
  overflow-x: auto;
  padding: .55rem;
  border: 1px solid #d8e0e8;
  border-radius: .65rem;
  background: #f7f9fb;
}

.team-switcher-label {
  margin-right: .15rem;
  color: #566777;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
}

.team-switcher-link {
  padding: .45rem .75rem;
  border: 1px solid #c7d3df;
  border-radius: .5rem;
  color: #004990;
  background: #fff;
  text-decoration: none;
  white-space: nowrap;
}

.team-switcher-link.active {
  color: #fff;
  background: #004990;
  border-color: #004990;
}

.team-switcher-link.active code { color: inherit; }

.case-planning-schedule {
  position: sticky;
  top: .75rem;
  z-index: 8;
  padding: .8rem;
  border: 1px solid #c8d5e2;
  border-radius: .75rem;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 .35rem 1rem rgba(0, 73, 144, .10);
}

.case-planning-days {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: .65rem;
  max-height: 15rem;
  overflow: auto;
}

.case-planning-day {
  overflow: hidden;
  border: 1px solid #d8e0e8;
  border-radius: .55rem;
  background: #fff;
}

.case-planning-day-title {
  padding: .35rem .55rem;
  color: #fff;
  background: #004990;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.case-planning-item {
  display: grid;
  grid-template-columns: 6.2rem minmax(0, 1fr) auto;
  gap: .45rem;
  align-items: center;
  padding: .35rem .5rem;
  border-bottom: 1px solid rgba(44, 62, 80, .09);
  font-size: .76rem;
}

.case-planning-item:last-child { border-bottom: 0; }
.case-planning-item time { color: #35485b; font-variant-numeric: tabular-nums; white-space: nowrap; }
.case-planning-title { overflow: hidden; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.case-planning-group { color: #566777; font-size: .7rem; white-space: nowrap; }
.case-planning-item.category-competition { background: #edf5fb; }
.case-planning-item.category-mealandrefreshment { background: #fff9df; }
.case-planning-item.category-eventhallprogram { background: #f4f9e7; }
.case-planning-item.category-sponsorinterview { background: #fff0f5; }
.case-planning-item.category-general { background: #f7f8fa; }

@media (max-width: 767.98px) {
  .case-planning-schedule { position: static; }
  .case-planning-days { max-height: 12rem; }
}

.onboarding-choice {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .9rem 1rem;
  border: 1px solid #d8dee6;
  border-radius: .6rem;
  background: #fff;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}

.onboarding-choice:hover,
.onboarding-choice:focus-within {
  border-color: #0d6efd;
  background: #f7faff;
  box-shadow: 0 0 0 .15rem rgba(13, 110, 253, .08);
}

.onboarding-choice:has(input:checked) {
  border-color: #0d6efd;
  background: #eef5ff;
}

.onboarding-choice input {
  margin-top: .2rem;
  flex: 0 0 auto;
}

.onboarding-choice small {
  display: block;
  margin-top: .2rem;
  color: #5f6873;
  line-height: 1.35;
}

.role-help {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 1.15rem;
  height: 1.15rem;
  margin-left: .25rem;
  border-radius: 50%;
  background: #0d6efd;
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  cursor: help;
}

.role-help > [role="tooltip"] {
  position: absolute;
  z-index: 1080;
  left: 50%;
  bottom: calc(100% + .55rem);
  width: min(22rem, 78vw);
  padding: .65rem .75rem;
  border-radius: .4rem;
  background: #1f2937;
  color: #fff;
  font-size: .82rem;
  font-weight: 400;
  line-height: 1.4;
  text-align: left;
  box-shadow: 0 .3rem 1rem rgba(0, 0, 0, .2);
  transform: translateX(-50%);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity .12s ease;
}

.role-help:hover > [role="tooltip"],
.role-help:focus > [role="tooltip"] {
  visibility: visible;
  opacity: 1;
}
.audience-preview-form {
  max-width: 960px;
}
