/* === Page-wide animated background + content on top (Indico) ===
     - Uses your WebP animation as a full-page background
     - Poster PNG fallback and reduced-motion fallback
     - Header is transparent so the page bg shows through
     - Content sits on translucent “glass” cards for readability
================================================================== */

:root{
  --container:1100px; --menu:220px; --radius:12px;

  /* 🔁 Your assets (already uploaded) */
  --page-anim: url(https://indico.cern.ch/event/1587839/attachments/3139765/5582544/Header-anim.webp);
  --page-poster: url(https://indico.cern.ch/event/1587839/attachments/3139765/5582462/Header-poster.png);

  /* Palette */
  --text:#1a1a1a; --muted:#6b7280; --border:#e5e7eb;
  --panel-bg: rgba(255,255,255,.84);      /* content “glass” */
  --panel-bg-dark: rgba(248,250,252,.84); /* menu “glass” */
}

/* === Global background: draw once, behind everything === */
html, body{
  height:100%;
  background: transparent !important;
}
body::before{
  content:"";
  position: fixed; inset: 0; z-index: -1;   /* behind all content */
  background:
    /* a gentle blue veil to aid contrast (tweak if needed) */
    linear-gradient(180deg, rgba(11,31,53,.28), rgba(11,31,53,.40)),
    var(--page-anim) center/cover no-repeat,
    var(--page-poster) center/cover no-repeat;  /* poster sits under the WebP */
  will-change: transform;
}

/* Respect reduced-motion: show poster only (no animated layer) */
@media (prefers-reduced-motion: reduce){
  body::before{
    background:
      linear-gradient(180deg, rgba(11,31,53,.28), rgba(11,31,53,.40)),
      var(--page-poster) center/cover no-repeat !important;
  }
}

/* === Header: transparent so the page background is visible === */
.confTitleBox{
  position:relative;
  min-height:300px;
  border-top:3px solid #234173;
  border-bottom:1px solid #0f4c80;
  background: transparent !important;
  overflow:hidden;
}
/* Remove prior header-specific image layers if you had them */
.confTitleBox::before, .confTitleBox::after{ content:none !important; }

.confTitle{
  position:relative; z-index:2;
  max-width:var(--container); width:100%;
  margin:0 auto; padding:28px 16px 40px; /* title sits low */
  display:flex; align-items:flex-end; gap:20px;
}
.conference-title-link{
  position:absolute; left:16px; bottom:2px;
  color:#fff !important; text-shadow:0 2px 6px rgba(0,0,0,.35);
  font-weight:700; font-size:clamp(22px, 3.1vw, 36px); line-height:1.15;
  text-decoration:none; z-index:3;
}
/* Logo (top-right slot) */
.confLogoBox{ position:absolute; top:14px; right:16px; z-index:3; }
.confLogoBox img{ max-height:56px; height:auto; filter: drop-shadow(0 2px 2px rgba(0,0,0,.35)); }

/* Subtitle strip: keep light, slightly translucent */
.confSubTitleBox{
  background: rgba(245,250,255,.82);
  border-top:1px solid #d5e4f1; border-bottom:1px solid #d5e4f1;
  backdrop-filter: blur(2px);
}
.confSubTitleContent{
  max-width:var(--container); width:100%;
  margin:0 auto; padding:8px 16px;
  display:flex; flex-wrap:wrap; gap:12px; align-items:center;
  color:#24425a; font-size:13px;
}

/* === Main layout: content “glass” panels on top of the animated bg === */
#confSectionsBox{
  max-width:var(--container); width:100%;
  margin:26px auto 0; padding:0 16px;
  display:grid; grid-template-columns: var(--menu) 1fr; gap:12px;
  position: relative; z-index: 2; /* ensure above bg */
}

/* Left menu on translucent card */
.conf_leftMenu{ width:100%; }
#outer{
  position:sticky; top:16px;
  border:1px solid var(--border);
  background: var(--panel-bg-dark);
  backdrop-filter: blur(6px);
  border-radius: var(--radius);
  overflow:hidden; list-style:none; margin:0; padding:0;
}
#outer li a{
  display:block; font-family:Verdana, Arial, sans-serif; font-size:13px;
  color:#2b2b2b; padding:11px 14px; text-decoration:none; transition: background .15s ease;
}
#outer li a:hover{ background: rgba(255,255,255,.55); }
.menuConfTitle.selected > a, .menuConfMiddleCell.selected > a{
  color:#bd891a; background: rgba(232,237,247,.9);
  border-top:1px solid var(--border); border-bottom:1px solid var(--border);
}
li ul.inner li a{
  padding:7px 14px 7px 32px;
  background:transparent url(/images/conf/left_menu_bullet.png) no-repeat 15px center;
}

/* Content column on translucent card */
.confBodyBox{
  min-width:0; color:var(--text);
  background: var(--panel-bg);
  backdrop-filter: blur(6px);
  border:1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  line-height:1.6;
  margin-left:0 !important;
}

/* General polish */
.confBodyBox p{ margin:0 0 .9rem; }
.confBodyBox img{ max-width:100%; height:auto; display:block; margin:12px auto; border-radius:8px; }
.confBodyBox table{ width:100%; border-collapse:collapse; }
.confBodyBox th, .confBodyBox td{ border-bottom:1px solid var(--border); padding:10px; }
.confBodyBox ul{ margin:0 0 1rem 1.2rem; }

/* Anchor offset (so hashes don’t hide under header) */
.confBodyBox h2, .confBodyBox h3, .confBodyBox h4{ scroll-margin-top: 90px; }

/* ===== Mobile tweaks ===== */
@media (min-width:1200px){ .confTitleBox{ min-height:340px; } }
@media (max-width:900px){
  #confSectionsBox{ grid-template-columns:1fr; gap:10px; }
  .confTitle{ align-items:flex-start; padding:20px 12px 30px; }
  .conference-title-link{ left:12px; bottom:2px; font-size:clamp(20px, 5.2vw, 30px); }
}
/* Hide the header block entirely so only the animated page background shows */
.confTitleBox{
  background: transparent !important;
  min-height: 0 !important;
  height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
}
.confTitleBox::before,
.confTitleBox::after,
.conference-title-link,
.confLogoBox{
  display: none !important;
}

/* Pull the subtitle strip up to the top */
.confSubTitleBox{ margin-top: 0 !important; }

/* Since the header is gone, reduce anchor offset a bit */
.confBodyBox h2, .confBodyBox h3, .confBodyBox h4{ scroll-margin-top: 40px; }

/* === Footer: dark star field + white links + white CERN logo === */
footer, .footer, #page-footer, .i-footer{
  position: relative;
  background: #0f1a30 !important;       /* deep blue */
  color: #fff !important;
  border-top: 0 !important;
  padding: 14px 0 !important;
  overflow: hidden;
}

/* starry backdrop (subtle, performant) */
footer::before, .footer::before, #page-footer::before, .i-footer::before{
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    radial-gradient(2px 2px at 12% 24%, rgba(255,255,255,.35) 40%, transparent 41%),
    radial-gradient(2px 2px at 31% 62%, rgba(255,255,255,.28) 40%, transparent 41%),
    radial-gradient(2px 2px at 48% 18%, rgba(255,255,255,.30) 40%, transparent 41%),
    radial-gradient(2px 2px at 63% 71%, rgba(255,255,255,.26) 40%, transparent 41%),
    radial-gradient(2px 2px at 79% 35%, rgba(255,255,255,.34) 40%, transparent 41%),
    radial-gradient(2px 2px at 92% 68%, rgba(255,255,255,.28) 40%, transparent 41%);
  opacity: .9;
  z-index: 0;
}

/* keep real footer content above the stars */
footer *, .footer *, #page-footer *, .i-footer *{ position: relative; z-index: 1; }

/* links: white, with tasteful hover */
footer a, .footer a, #page-footer a, .i-footer a{
  color: #fff !important;
  text-decoration: none;
}
footer a:hover, .footer a:hover, #page-footer a:hover, .i-footer a:hover{
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* CERN / Indico logos in white (invert the image) */
footer img, .footer img, #page-footer img, .i-footer img{
  filter: brightness(0) invert(1);
  opacity: .95;
}

/* optional: align/size tweaks (uncomment if needed) */
/*
#page-footer .branding img{ max-height:22px; }
#page-footer .links{ gap:10px; }
*/

/* === Compact dark header: date pill (left) + rounded search (right)
   - Hides the usual subtitle links
   - Works with the standard Indico markup (no HTML needed)
   - Keeps your dark blue theme
==================================================================== */

/* Make the subtitle strip a dark header */
.confSubTitleBox{
  background: #0f1a30 !important;       /* deep blue */
  border: 0 !important;
  box-shadow: 0 1px 0 rgba(255,255,255,.06) inset;
}
.confSubTitleContent{
  max-width: var(--container);
  width: 100%;
  margin: 0 auto;
  padding: 10px 16px;
  display: grid;
  grid-template-columns: 1fr auto;      /* left block + search on the right */
  align-items: center;
  gap: 14px;
  color: #cfe2ff;                        /* soft bluish text */
  font-size: 14px;
}

/* Kill the tiny menu links that normally sit here */
.confSubTitle a{ display: none !important; }

/* Turn the date/location block into a nice pill */
.datePlace{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,.10);     /* translucent pill */
  color: #fff;
  padding: 8px 14px;
  border-radius: 999px;
  line-height: 1.2;
  font-weight: 700;
  white-space: nowrap;
}

/* If Indico splits date & place into their own spans, make them breathe */
.datePlace > span,
.datePlace > strong,
.datePlace > b{
  display: inline-block;
  margin-right: 8px;
}
.datePlace > :last-child{ margin-right: 0; }

/* Style the search field like in the example */
.confSubTitleBox input[type="text"],
.confSubTitleBox input[type="search"],
.confSubTitleBox .search-input,
.confSubTitleBox .ui.input > input{
  background: #ffffff !important;
  color: #0f1a30 !important;
  border: 2px solid #ef6aa6 !important;  /* rosy border like the example; change if you want all-blue */
  border-radius: 12px !important;
  padding: 10px 14px !important;
  min-width: 260px;
  outline: none !important;
  box-shadow: 0 2px 0 rgba(0,0,0,.08) inset;
}
.confSubTitleBox input[type="text"]::placeholder,
.confSubTitleBox input[type="search"]::placeholder{
  color: #7a8399 !important;
}

/* If there is a search button next to the input, round it too */
.confSubTitleBox .i-button,
.confSubTitleBox .button,
.confSubTitleBox .ui.button{
  border-radius: 12px !important;
  padding: 10px 14px !important;
}

/* Mobile: stack date pill above the search */
@media (max-width: 700px){
  .confSubTitleContent{
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .confSubTitleBox input[type="text"],
  .confSubTitleBox input[type="search"],
  .confSubTitleBox .search-input,
  .confSubTitleBox .ui.input > input{
    min-width: 0;
    width: 100%;
  }
}

/* --- Make the subtitle search bar blue (kill pink) --- */
.confSubTitleBox input[type="search"],
.confSubTitleBox input[type="text"],
.confSubTitleBox .search-input,
.confSubTitleBox .ui.input > input,
.confSubTitleBox .ui.icon.input > input{
  background: #fff !important;
  color: #0f1a30 !important;
  border: 2px solid #1a64a0 !important;             /* blue border */
  border-radius: 12px !important;
  box-shadow: 0 0 0 3px rgba(26,100,160,.15) !important; /* soft blue glow */
  outline: none !important;
}

/* Focus/hover states: keep it blue */
.confSubTitleBox .ui.input > input:focus,
.confSubTitleBox .ui.icon.input > input:focus,
.confSubTitleBox input[type="search"]:focus,
.confSubTitleBox input[type="text"]:focus{
  border-color: #1a64a0 !important;
  box-shadow: 0 0 0 3px rgba(26,100,160,.22) !important;
}

/* Search icon color */
.confSubTitleBox .ui.icon.input > i.icon,
.confSubTitleBox .ui.icon.input > i.search.icon{
  color: #1a64a0 !important;
}

/* If there’s a separate search button next to the field, make it blue too */
.confSubTitleBox .i-button,
.confSubTitleBox .button,
.confSubTitleBox .ui.button{
  background: #1a64a0 !important;
  border-color: #1a64a0 !important;
  color: #fff !important;
  border-radius: 12px !important;
  box-shadow: none !important;
}

/* Bigger date in the header pill */
.confSubTitleContent .datePlace{
  font-size: clamp(18px, 2.2vw, 22px);   /* ↑ make the pill text larger */
  padding: 10px 16px;                    /* a bit more breathing room */
  font-weight: 800;                      /* stronger weight for the date */
}

/* Keep the location/timezone smaller so the DATE stands out */
.confSubTitleContent .datePlace > *:not(:first-child){
  font-size: .80em;                      /* smaller than the date */
  font-weight: 600;
  opacity: .9;
  margin-left: 8px;
}

/* Mobile tweak */
@media (max-width: 700px){
  .confSubTitleContent .datePlace{
    font-size: 16px;
    padding: 8px 12px;
  }
}

/* --- Contact box: rounded glass card, sticky under the menu --- */

/* Adjust this if the contact box overlaps the menu on your screen */
:root{ --contact-stick-top: 420px; }  /* try 380–520px depending on menu height */

@media (min-width: 1000px){
  /* Style the contact block in the left column */
  .conf_leftMenu .support_box,
  .conf_leftMenu .personCard,
  .conf_leftMenu .contact-box{
    border: 1px solid var(--border);
    background: var(--panel-bg-dark);
    backdrop-filter: blur(6px);
    border-radius: 12px;
    padding: 10px;
    position: sticky;          /* <-- stays in place while scrolling */
    top: var(--contact-stick-top);
    z-index: 2;
  }

  /* Nice header bar like the menu */
  .conf_leftMenu .support_box > h3{
    margin: -10px -10px 10px;
    padding: 10px 12px;
    border-radius: 12px 12px 0 0;
    background: rgba(255,255,255,.12);
    color: #0f1a30;
    font-weight: 700;
  }

  /* Email row inside the card */
  .conf_leftMenu .support_box a,
  .conf_leftMenu .personCard a,
  .conf_leftMenu .contact-box a{
    text-decoration: none;
  }
  .conf_leftMenu .support_box a:hover,
  .conf_leftMenu .personCard a:hover,
  .conf_leftMenu .contact-box a:hover{
    text-decoration: underline;
    text-underline-offset: 2px;
  }
}

/* Centered icon+link row under the title */
.confBodyBox .overview-links{
  display: flex;
  justify-content: center;      /* center the whole row */
  align-items: flex-start;
  gap: 32px;                    /* space between items */
  margin: 8px 0 20px;
  flex-wrap: wrap;              /* wrap if there's no room */
}

/* Each item = vertical stack: icon on top, label below */
.confBodyBox .overview-links .ov-link{
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;        /* no underline until hover */
}

/* Consistent icon size */
.confBodyBox .overview-links .ov-link img{
  width: 72px;                  /* adjust to taste (64–80) */
  height: 72px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.15));
}

/* Label style */
.confBodyBox .overview-links .ov-link span{
  margin-top: 8px;
  font-weight: 700;
  color: #1a64a0;               /* Indico-ish blue; inherit if you prefer */
  text-align: center;
}

/* Hover effect */
.confBodyBox .overview-links .ov-link:hover span{
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Mobile: keep centered, allow wrap */
@media (max-width: 600px){
  .confBodyBox .overview-links{ gap: 20px; }
  .confBodyBox .overview-links .ov-link img{ width: 64px; height: 64px; }
}

/* ===== OPTION A: all Overview text hyperlinks slightly bigger & dark blue ===== */
body.event-home .confBodyBox p a:not(.i-button):not(.button):not(.ui.button){
  color: #0f1a30 !important;       /* dark blue */
  font-size: 1.05em;               /* ~10% bigger */
  font-weight: 700;                /* bolder */
  text-decoration: none;
}
body.event-home .confBodyBox p a:hover{
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Overview: style the “CERN openlab website” link */
body.event-home .confBodyBox a[href*="openlab.cern"],
body.event-home .confBodyBox a[href*="openlab.cern"]:visited,
body.event-home #description a[href*="openlab.cern"],
body.event-home #description a[href*="openlab.cern"]:visited,
body.event-home .event-description a[href*="openlab.cern"],
body.event-home .event-description a[href*="openlab.cern"]:visited{
  color: #0f1a30 !important;    /* dark blue */
  font-size: 1.06em !important; /* ~6% larger */
  font-weight: 700 !important;
  text-decoration: none !important;
}

body.event-home .confBodyBox a[href*="openlab.cern"]:hover,
body.event-home #description a[href*="openlab.cern"]:hover,
body.event-home .event-description a[href*="openlab.cern"]:hover{
  text-decoration: underline !important;
  text-underline-offset: 2px !important;
}

/* Overview: style the “CERN openlab on LinkedIn” link */
body.event-home .confBodyBox a[href*="linkedin.com/showcase/cernopenlab"],
body.event-home .confBodyBox a[href*="linkedin.com/showcase/cernopenlab"]:visited,
body.event-home #description a[href*="linkedin.com/showcase/cernopenlab"],
body.event-home #description a[href*="linkedin.com/showcase/cernopenlab"]:visited,
body.event-home .event-description a[href*="linkedin.com/showcase/cernopenlabn"],
body.event-home .event-description a[href*="linkedin.com/showcase/cernopenlab"]:visited{
  color: #0f1a30 !important;    /* dark blue */
  font-size: 1.06em !important; /* ~6% larger */
  font-weight: 700 !important;
  text-decoration: none !important;
}

body.event-home .confBodyBox a[href*="linkedin.com/showcase/cernopenlab"]:hover,
body.event-home #description a[href*="linkedin.com/showcase/cernopenlab"]:hover,
body.event-home .event-description a[href*="linkedin.com/showcase/cernopenlab"]:hover{
  text-decoration: underline !important;
  text-underline-offset: 2px !important;
}