/* CWE / RWTH theme for Indico (eacwe.cwe-aachen.de) – same look as booking.cwe-aachen.de:
   white top bar with the CWE | RWTH logo, RWTH-blue navigation, bordeaux accents, neutral greys.
   Loaded on every page from CUSTOMIZATION_DIR/css (Indico includes *.css there automatically).
   Logo: LOGO_URL in indico.conf -> /static/custom/files/cwe-rwth-logo.png */

:root {
  --rwth-blue: #00549F;
  --rwth-blue-dark: #003560;
  --rwth-blue-light: #8EBAE5;
  --rwth-blue-pale: #E8F1FA;
  --cwe-bordeaux: #A11035;
  --cwe-bordeaux-dark: #870D2C;
  --rwth-grey-800: #2F3337;
  --rwth-grey-300: #D9DEE3;
  --rwth-grey-100: #F5F6F7;
}

/* ---- Header: white bar with the colour logo (like the booking system) ---- */
.page-header {
  background: #fff !important;
  border-bottom: 0;
}
.page-header #header-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  padding: 14px 0 14px 4px;
}
.page-header img.header-logo {
  height: 44px !important;
  width: auto !important;
  max-height: none;
}
/* generic site name next to the logo (bordeaux, like "LibreBooking" on the booking page) – not event-specific */
.page-header #header-logo::after {
  content: "Conference System";
  color: var(--cwe-bordeaux);
  font-size: 1.35em;
  font-weight: 600;
  margin-left: 18px;
  white-space: nowrap;
}

/* ---- Global menu bar: RWTH blue instead of dark grey ---- */
.global-menu,
.global-menu > menu > li > a,
.global-menu > menu > li > button,
.global-menu ind-menu > button,
.global-menu ind-with-tooltip > a {
  background-color: var(--rwth-blue) !important;
  color: #fff !important;
}
.global-menu > menu > li > a:hover,
.global-menu > menu > li > a.open,
.global-menu > menu > li > button:hover,
.global-menu ind-menu > button:hover,
.global-menu ind-menu > button[aria-expanded="true"],
.global-menu ind-with-tooltip > a:hover {
  background-color: var(--rwth-blue-dark) !important;
}

/* ---- Links and headings ---- */
a, a:link, a:visited { color: var(--rwth-blue); }
a:hover { color: var(--rwth-blue-dark); }
.global-menu a, .global-menu a:visited { color: #fff; }
.category-title,
.page-title,
h1.page-title { color: var(--rwth-blue) !important; }

/* ---- Buttons ---- */
.i-button.highlight,
.i-button.accept,
.ui.primary.button,
.ui.primary.buttons .button,
.ui.blue.button {
  background: var(--rwth-blue) !important;
  border-color: var(--rwth-blue-dark) !important;
  color: #fff !important;
  text-shadow: none !important;
}
.i-button.highlight:hover,
.i-button.accept:hover,
.ui.primary.button:hover,
.ui.primary.buttons .button:hover,
.ui.blue.button:hover {
  background: var(--rwth-blue-dark) !important;
}
.i-button.danger,
.ui.red.button { background: var(--cwe-bordeaux) !important; border-color: var(--cwe-bordeaux-dark) !important; color: #fff !important; }

/* ---- Form focus / small accents ---- */
input:focus, textarea:focus, select:focus,
.ui.input > input:focus, .ui.form input:focus {
  border-color: var(--rwth-blue-light) !important;
}
.ui.toggle.checkbox input:checked ~ label::before,
.ui.toggle.checkbox input:focus:checked ~ label::before {
  background-color: var(--rwth-blue) !important;
}

/* ---- Footer: thin RWTH line ---- */
.footer { border-top: 3px solid var(--rwth-blue); }

/* ===== Conference pages (event "conference" theme) ===== */
/* white strip with the CWE | RWTH logo above the title, aligned with the 950px content column */
.confheader { background: var(--rwth-blue) !important; border: 0 !important; }
.confheader::before {
  content: "";
  display: block;
  max-width: 950px;
  height: 68px;
  margin: 0 auto;
  background: #fff url("/static/custom/files/cwe-rwth-logo.png") left center / auto 40px no-repeat;
  box-shadow: 0 0 0 100vmax #fff;      /* white across the full width */
  clip-path: inset(0 -100vmax);
}
.confTitleBox { background: var(--rwth-blue) !important; }
.confTitleBox, .confTitleBox a, .confTitleBox h1 { color: #fff !important; }
.confSubTitleBox {
  background: var(--rwth-blue-pale) !important;
  border-bottom: 1px solid var(--rwth-grey-300) !important;
  color: var(--rwth-grey-800) !important;
}
/* left menu: neutral grey box, selected item RWTH blue with bordeaux marker */
#outer { background: var(--rwth-grey-100) !important; border-color: var(--rwth-grey-300) !important; }
#outer li a { color: var(--rwth-blue) !important; }
#outer li.menuConfSelected,
#outer li.selected { background: var(--rwth-blue-pale) !important; box-shadow: inset 4px 0 0 var(--cwe-bordeaux); }
#outer li.menuConfSelected > a,
#outer li.selected > a { color: var(--rwth-blue-dark) !important; font-weight: 600; }
#outer li a:hover { background: var(--rwth-blue-pale) !important; }
@media (max-width: 1000px) { .confheader::before { margin: 0 16px; } }
