/* ============================================================
   TwinRISE — Indico event theme
   Derived from: TwinRISE Graphic Charter.html (v1.0, Sept 2026)
   Reusable across future TwinRISE Indico events — re-upload via
   `POST /event/<id>/manage/layout/css` (see indico_client.py /
   reference_cern_apis.md for the exact recipe).

   Rebuilt 2026-09-26 from the FULL graphic charter (not just the
   web token file) after the first attempt was abandoned. Key rules
   encoded here that the first attempt missed:
     - Paper (#F7F6F1) is the default light bg, not white.
     - Green (#47C27D) must NEVER be used as text on a light/Paper
       background (2.3:1 contrast) — Green Deep (#2E9D62) instead.
     - Buttons are Trust Blue pills, hover Green Deep; links are
       Trust Blue with a green underline (charter's own `a` rule).
     - 14px corner radius on panels; no drop shadows, no gradients,
       no coloured left-border callouts.
     - Montserrat 800 for headings (sentence case), Open Sans body,
       Space Mono only for kickers/labels/technical values.
     - Logo: the supplied SVG only, untouched, on Paper/White/Ink —
       CSS here does NOT bake a composited logo+text banner (that
       was the earlier mistake); the logo is uploaded separately as
       the event's native logo asset.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700;800&family=Open+Sans:wght@400;600&family=Space+Mono:wght@400;700&display=swap');

:root {
  --tr-ink: #0E1B3D;
  --tr-blue: #1A2E5C;
  --tr-blue-2: #24407E;
  --tr-paper: #F7F6F1;
  --tr-paper-2: #EEEDE5;
  --tr-green: #47C27D;
  --tr-green-deep: #2E9D62;
  --tr-gold: #FFC857;
  --tr-gold-deep: #CAA033;
  --tr-slate: #676E81;
  --tr-line: rgba(26,46,92,.16);
  --tr-fd: 'Montserrat', Arial, sans-serif;
  --tr-fb: 'Open Sans', Arial, sans-serif;
  --tr-fm: 'Space Mono', Consolas, 'Courier New', monospace;
}

/* ---- Page background ---- */
body {
  background: var(--tr-paper) !important;
  font-family: var(--tr-fb);
  color: var(--tr-ink);
}

/* ---- Top utility toolbar (icons row) ---- */
header.page-header {
  background: var(--tr-ink) !important;
}
header.page-header .i-button.icon-only {
  color: rgba(255,255,255,.72) !important;
}
header.page-header .i-button.icon-only:hover {
  color: var(--tr-green) !important;
}

/* ---- Hero / title banner ---- */
.confTitleBox {
  background: var(--tr-ink) !important;
  border-radius: 0;
}
.confTitle h1 a,
.confTitle h1 a:hover {
  color: #fff !important;
  text-decoration: none;
  border-bottom: none;
}
.confTitle h1 a .conference-title-link {
  display: flex !important;
  align-items: center;
  gap: 16px;
}
.confTitle h1 span[itemprop="title"] {
  font-family: var(--tr-fd) !important;
  font-weight: 800 !important;
  letter-spacing: -.018em;
  line-height: 1.05;
}
/* Logo symbol + wordmark lockup: icon + "TWIN"(white)/"RISE"(green) in Space
   Mono Bold, tracked +18%, per charter section 01 (`.lockup`, dark variant).
   Kept separate from the real event title text (Montserrat, "running text"
   per charter section 01) — this is the small brand mark, not a redraw of
   the page's own title. Clear space via padding; aspect ratio preserved by
   only constraining the image's height, per charter section 02. */
.confLogoBannerBox {
  flex: none;
  padding: 6px 0;
  display: flex;
  align-items: center;
}
.confLogoBannerBox img.confLogo {
  order: 1;
  height: 44px;
  width: auto;
  max-width: none;
  margin-right: 10px;
}
.confLogoBannerBox::before {
  order: 2;
  content: "TWIN";
  font-family: var(--tr-fm);
  font-weight: 700;
  letter-spacing: .18em;
  font-size: 13pt;
  color: #fff;
}
.confLogoBannerBox::after {
  order: 3;
  content: "RISE";
  font-family: var(--tr-fm);
  font-weight: 700;
  letter-spacing: .18em;
  font-size: 13pt;
  color: var(--tr-green);
}

/* ---- Sub-title bar (dates / place / timezone) ---- */
.confSubTitleBox {
  background: var(--tr-paper) !important;
  color: var(--tr-ink) !important;
  border-bottom: 1px solid var(--tr-line);
}
.confSubTitleBox * {
  color: var(--tr-ink);
}
.confSubTitleBox .discreet,
.confSubTitleBox small {
  color: var(--tr-slate) !important;
}

/* ---- Left navigation menu ---- */
.conf_leftMenu {
  background: transparent;
}
.conf_leftMenu a {
  font-family: var(--tr-fb) !important;
  color: var(--tr-blue) !important;
  border-radius: 8px;
}
.conf_leftMenu a:hover {
  color: var(--tr-green-deep) !important;
  background: var(--tr-paper-2);
}
.conf_leftMenu li.selected > a,
.conf_leftMenu .menuConfSelected > a {
  background: var(--tr-paper-2) !important;
  color: var(--tr-blue) !important;
  font-weight: 600;
}

/* ---- Buttons (real CTAs, not bare toolbar icons) ---- */
.i-button:not(.icon-only) {
  font-family: var(--tr-fb) !important;
  background: var(--tr-blue) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 999px !important;
  box-shadow: none !important;
  text-shadow: none !important;
}
.i-button:not(.icon-only):hover,
.i-button:not(.icon-only):focus {
  background: var(--tr-green-deep) !important;
  color: #fff !important;
}
.i-button.highlight:not(.icon-only) {
  background: var(--tr-green-deep) !important;
}
.i-button.highlight:not(.icon-only):hover {
  background: var(--tr-ink) !important;
}

/* ---- Content typography & links ---- */
.page-content,
.conferenceDetails {
  font-family: var(--tr-fb);
  color: var(--tr-ink);
}
.page-content h1,
.page-content h2,
.page-content h3,
.conferenceDetails h1,
.conferenceDetails h2,
.conferenceDetails h3,
.title-with-actions h1,
.title-with-actions h2,
.title-with-actions h3 {
  font-family: var(--tr-fd) !important;
  font-weight: 800 !important;
  letter-spacing: -.018em;
  color: var(--tr-ink) !important;
}
.page-content a,
.conferenceDetails a,
.footer a {
  color: var(--tr-blue) !important;
  text-decoration: none;
  border-bottom: 1px solid rgba(71,194,125,.55);
}
.page-content a:hover,
.conferenceDetails a:hover,
.footer a:hover {
  color: var(--tr-green-deep) !important;
}

/* ---- Home page (Accueil): description + event-info panel ---- */
.conferenceDetails {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 28px 26px;
  margin: 24px 0;
  background: var(--tr-paper-2);
  border-radius: 14px;
}
.conferenceDetails .description {
  max-width: 68ch;
  line-height: 1.55;
}
.conferenceDetails .infogrid {
  flex: 1 1 100%;
  border-top: 1px solid var(--tr-line);
  padding-top: 18px;
  margin-top: 4px;
}
.conferenceDetails .infogrid .clock-icon,
.conferenceDetails .infogrid .location-icon,
.conferenceDetails .infogrid i {
  color: var(--tr-blue) !important;
}

/* ---- Panels / boxes: 14px radius, no shadow ---- */
.i-box,
.timetable-item,
.timetable-block {
  border-radius: 14px !important;
  box-shadow: none !important;
}
.i-box-header {
  border-radius: 14px 14px 0 0 !important;
}

/* ---- Tables ---- */
.page-content table th,
.conferenceDetails table th {
  font-family: var(--tr-fm);
  font-size: 8.5pt;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--tr-slate);
  border-bottom: 1.5px solid var(--tr-ink) !important;
}
.page-content table td,
.conferenceDetails table td {
  border-bottom: 1px solid var(--tr-line) !important;
}

/* ---- Footer ---- */
.footer {
  background: var(--tr-paper) !important;
  color: var(--tr-slate) !important;
  border-top: 1px solid var(--tr-line);
}