/*
    ICDE 2027 – Indico conference stylesheet (v2)
    Palette (unchanged): #141349 #252168 #e7e6f7 #d4d2f3 #f3f3ff #b2b0ff #c9c8f8 #c4c3f4 #ebebf5
*/

/* ----------- Design tokens ----------- */
:root {
  --navy: #141349;
  --navy-2: #252168;
  --lav-100: #f3f3ff;
  --lav-150: #ebebf5;
  --lav-200: #e7e6f7;
  --lav-300: #d4d2f3;
  --lav-400: #c9c8f8;
  --lav-500: #b2b0ff;
  --wrap: 1080px;
  --radius: 10px;
  --shadow: 0 2px 6px rgba(20, 19, 73, .08), 0 8px 24px rgba(20, 19, 73, .08);
}

/* ----------- Base ----------- */
body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.conf {
  width: 100%;
  border: none;
  margin: auto;
}

/* ----------- Header ----------- */
.confTitleBox {
  color: #fff;
  min-height: 110px;
  border-top: 5px solid var(--lav-500);
  border-bottom: none;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  position: relative;
  overflow: hidden;
}

.confTitleBox::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -160px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(178, 176, 255, .28) 0%, rgba(178, 176, 255, 0) 70%);
  pointer-events: none;
}

.confTitle {
  width: var(--wrap);
  max-width: calc(100% - 2rem);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.confTitle h1 { margin: 0; }
.confTitle h1 a { text-decoration: none; }

.confLogoBox {
  float: left;
  padding: 14px 18px 14px 0;
}

.confLogoBox img.confLogo {
  max-height: 82px;
  width: auto;
  display: block;
}

.conference-title-link {
  font-size: 22pt;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: .01em;
  display: block;
  padding: 30px 0;
  color: #fff;
}

.confSubTitleBox {
  background: var(--lav-200);
  border-bottom: 1px solid var(--lav-300);
  border-top: none;
  padding: .85rem 0;
  box-shadow: 0 1px 0 #fff inset;
}

.confSubTitleContent {
  width: var(--wrap);
  max-width: calc(100% - 2rem);
  margin: 0 auto;
  font-size: 11pt;
  color: var(--navy);
}

.f-self-stretch {
  align-content: center;
}

.confSubTitle a { font-size: 11pt; }

.datePlace {
  font-size: 12pt;
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1.75rem;
  align-items: center;
}

.datePlace > div {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 600;
}

.datePlace .date::before,
.datePlace .place::before,
.datePlace .timezone::before {
  font-size: 1.05em;
  font-weight: 400;
}
.datePlace .date::before { content: "\1F4C5"; }
.datePlace .place::before { content: "\1F4CD"; }
.datePlace .timezone { font-weight: 400; opacity: .8; }
.datePlace .timezone::before { content: "\1F552"; }

.simpleTextAnnouncement {
  background: var(--lav-100);
  border-top: 1px solid var(--lav-300);
  font-weight: 600;
  font-size: 10pt;
  text-align: center;
  color: var(--navy);
  padding: 8px 0;
}

/* ----------- Layout ----------- */
#confSectionsBox {
  width: var(--wrap);
  max-width: calc(100% - 2rem);
  margin: 0 auto;
  margin-top: 36px;
  margin-bottom: 48px;
  display: flow-root;            /* contain floats (menu column) */
}

/* ----------- Left menu ----------- */
.conf_leftMenu {
  float: left;
  width: 220px;
}

#outer {
  border: 1px solid var(--lav-300);
  border-radius: var(--radius);
  background: var(--lav-100);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin: 0;
  padding: 0;
}

#outer li a {
  font-family: inherit;
  font-size: 10.5pt;
  font-weight: 500;
  display: block;
  text-decoration: none;
  transition: background .15s ease;
}

#outer li a:hover,
#outer li a:not(.no-link):hover {
  background: var(--lav-500);
}

.menuConfTitle { text-align: left; }

.menuConfTitle a {
  color: var(--navy);
  padding: 11px 16px;
}

.menuConfTitle.selected > a,
.menuConfMiddleCell.selected > a {
  color: var(--navy);
  font-weight: 700;
  background: var(--lav-400);
  border-top: 1px solid #c4c3f4;
  border-bottom: 1px solid #c4c3f4;
  box-shadow: inset 4px 0 0 var(--navy);
}

.menuConfSelected,
.menuConfMiddleCellSelected {
  color: var(--navy);
  background: var(--lav-400);
  border-bottom: 1px solid #c4c3f4;
  border-top: 1px solid #c4c3f4;
}

li ul.inner li a {
  padding: 8px 16px 8px 34px;
  font-size: 10pt;
  background: transparent url(/images/conf/left_menu_bullet.png) scroll no-repeat 18px center;
}

/* Contact / support box */
.support_box {
  background: var(--lav-150);
  border: 1px solid var(--lav-300);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 18px;
  box-shadow: var(--shadow);
}

.support_box > h3 {
  color: #f3f3f3;
  background: var(--navy);
  margin: 0;
  padding: 10px 16px;
  font-size: 10.5pt;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.support_box ul {
  margin: 0;
  padding: 12px 16px;
  list-style: none;
  word-break: break-word;
}

.support_box a { color: var(--navy); font-weight: 500; }
.support_box a:hover { text-decoration: underline; }

/* ----------- Main content card ----------- */
.confBodyBox {
  margin-left: 250px;
  display: flow-root;
}

/*
  FIX: Indico floats inner wrappers (.col2 etc.), which made the card collapse
  to its min-height. flow-root makes the card contain its floated children,
  and we neutralise the float/width on the children.
*/
.confBodyBox .mainContent {
  display: flow-root;
  float: none;
  width: auto;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid var(--lav-300);
  border-top: 4px solid var(--navy);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 34px 32px;
  min-height: 320px;
}

.confBodyBox .mainContent .col2 {
  float: none;
  width: auto;
  margin: 0;
  padding: 0;
  display: flow-root;
}

.confBodyBox .conference-page {
  width: auto;
  max-width: 100%;
}

/* Page header (title, back button, description) */
.confBodyBox .conference-page header {
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--lav-300);
}

.confBodyBox .conference-page header .title {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 20px;
}

.confBodyBox .conference-page header h2 {
  color: var(--navy);
  font-size: 20pt;
  font-weight: 600;
  line-height: 1.25;
  margin: 0;
  padding: 0;
  border: 0;
}

.confBodyBox .conference-page header h2 .track-name {
  color: var(--navy-2);
  font-weight: 700;
}

.back-button-container { display: inline-flex; }

.back-button-container .back-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--lav-200);
  color: var(--navy) !important;
  text-decoration: none;
  transition: background .15s ease;
}

.back-button-container .back-button:hover { background: var(--lav-500); }

.conference-page .page-description {
  margin-top: 8px;
  color: var(--navy-2);
  opacity: .85;
  font-size: 11pt;
  line-height: 1.6;
}

/* ----------- Overview page ----------- */
.conferenceDetails .description { color: #2b2a52; }

.conferenceDetails .description p {
  font-size: 11.5pt !important;
  line-height: 1.75 !important;
  margin: 0 0 .9em;
}

.conferenceDetails .description > p:first-child {
  background: linear-gradient(135deg, var(--lav-200), var(--lav-100));
  border-left: 5px solid var(--navy);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 14px 20px;
  font-size: 13pt !important;
  color: var(--navy);
}

.conferenceDetails .description hr {
  border: 0;
  height: 1px;
  background: var(--lav-300);
  margin: 26px 0;
}

.conferenceDetails .description > p[dir="ltr"] > strong:only-child { color: var(--navy); }

.conferenceDetails .description p[style*="text-indent"] {
  display: block;
  text-indent: 0 !important;
  margin: 0 0 8px;
  padding: 10px 16px;
  background: var(--lav-100);
  border: 1px solid var(--lav-300);
  border-left: 4px solid var(--lav-500);
  border-radius: 8px;
  line-height: 1.4 !important;
  color: var(--navy);
  transition: transform .15s ease, background .15s ease;
}

.conferenceDetails .description p[style*="text-indent"]:hover {
  background: var(--lav-200);
  transform: translateX(3px);
}

.infogrid {
  margin-top: 28px;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  
}

.infoline {
  background: var(--lav-100);
  border: 1px solid var(--lav-300);
  border-radius: var(--radius);
  padding: 14px 18px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  color: var(--navy);
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
}

.infoline .icon { color: var(--navy-2); }
.infoline .label { font-weight: 700; margin-right: .4em; }
.infoline a { color: var(--navy-2); font-weight: 600; }
.infoline a:hover { text-decoration: underline; }
.infoline .empty { opacity: .65; font-style: italic; }

/* ----------- Call for abstracts ----------- */
.call-for-abstracts {
  color: #2b2a52;
  line-height: 1.7;
  font-size: 11.5pt;
}

/* Timeline: opening day -> deadline */
.call-for-abstracts .steps {
  list-style: none !important;
  margin: 4px 0 26px !important;
  padding: 18px 12px 14px !important;
  background: var(--lav-100) !important;
  border: 1px solid var(--lav-300) !important;
  border-radius: var(--radius) !important;
}

.call-for-abstracts .steps li { color: var(--navy) !important; }

.call-for-abstracts .steps .label {
  font-size: 9.5pt !important;
  font-weight: 700 !important;
  letter-spacing: .06em !important;
  text-transform: uppercase !important;
  color: var(--navy-2) !important;
}

.call-for-abstracts .steps .text,
.call-for-abstracts .steps .text span,
.call-for-abstracts .steps .text time {
  font-size: 10.5pt !important;
  font-weight: 600 !important;
  color: var(--navy) !important;
}

/*
  Timeline geometry: each step is a 3-row grid (label / track / date).
  The line and the circle share the SAME grid cell (row 2), so the circle is
  always centered on the line regardless of Indico's own offsets.
*/
.call-for-abstracts .steps li {
  display: grid !important;
  grid-template-columns: 100% !important;
  grid-template-rows: auto 28px auto !important;
  row-gap: 4px !important;
  align-items: center !important;
  justify-items: center !important;
  position: relative !important;
}

.call-for-abstracts .steps li > .label {
  grid-row: 1 !important;
  grid-column: 1 !important;
}

.call-for-abstracts .steps li > .text {
  grid-row: 3 !important;
  grid-column: 1 !important;
  width: 100% !important;
}

/* thin line */
.call-for-abstracts .steps .horizontal-line {
  grid-row: 2 !important;
  grid-column: 1 !important;
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  transform: none !important;
  width: 100% !important;
  height: 3px !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 2px !important;
  box-shadow: none !important;
  background: var(--lav-300) !important;
  align-self: center !important;
}

.call-for-abstracts .steps li.completed .horizontal-line {
  background: var(--navy) !important;
}

/* circle, centered on the line */
.call-for-abstracts .steps .circle {
  grid-row: 2 !important;
  grid-column: 1 !important;
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  transform: none !important;
  z-index: 1 !important;
  box-sizing: border-box !important;
  width: 20px !important;
  height: 20px !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  align-self: center !important;
  justify-self: center !important;
  border-radius: 50% !important;
  border: 3px solid var(--lav-500) !important;
  background: #fff !important;
  background-image: none !important;
  box-shadow: 0 0 0 4px var(--lav-100) !important;
}

.call-for-abstracts .steps li.completed .circle {
  border-color: var(--navy) !important;
  background: var(--navy) !important;
}

.call-for-abstracts .steps .circle::before,
.call-for-abstracts .steps .circle::after {
  display: none !important;
}

/* Announcement text */
.cfa-announcement p { margin: 0 0 .8em; }

.cfa-announcement > p:first-child {
  font-size: 14pt;
  color: var(--navy);
  margin-bottom: 12px;
}

.cfa-announcement p:not(:first-child):not(:last-child):not(:nth-child(2)):not(:nth-child(3)) {
  padding: 8px 14px;
  background: var(--lav-100);
  border-left: 4px solid var(--lav-500);
  border-radius: 6px;
  margin-bottom: 6px;
}

.cfa-announcement p > b {
  display: block;
  padding: 14px 18px;
  margin-top: 8px;
  background: var(--lav-200);
  border: 1px solid var(--lav-300);
  border-left: 5px solid var(--navy);
  border-radius: 8px;
  color: var(--navy);
  font-weight: 600;
}

/* keep the committee name inline inside its sentence */
.cfa-announcement p:nth-child(3) > b {
  display: inline;
  padding: 0;
  margin: 0;
  background: none;
  border: 0;
  border-radius: 0;
  font-weight: 700;
}

.cfa-infoline-section { margin-top: 24px; }

/* Status banner (open / closed) */
.action-box.highlight {
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow);
}

.action-box.highlight .section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.action-box.highlight .text { color: #e7e6f7; }

.action-box.highlight .label {
  font-size: 13pt;
  font-weight: 600;
  letter-spacing: .02em;
  color: #fff;
  margin-bottom: 2px;
}

/* Primary action button ("Submit new abstract") */
.action-box.highlight .toolbar { display: flex; gap: 10px; }

.i-button.highlight,
.action-box.highlight .i-button {
  background: var(--lav-500);
  border: 1px solid var(--lav-500);
  color: var(--navy);
  font-weight: 700;
  border-radius: 8px;
  padding: .65em 1.4em;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}

.i-button.highlight:hover,
.action-box.highlight .i-button:hover {
  background: var(--lav-400);
  border-color: var(--lav-400);
  color: var(--navy);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
}

/* ----------- Reviewing area ----------- */
.track-review-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.track-review-row { margin: 0; }

.track-review-row li {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  background: var(--lav-100);
  border: 1px solid var(--lav-300);
  border-left: 5px solid var(--lav-500);
  border-radius: var(--radius);
  transition: background .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}

.track-review-row li:hover {
  background: var(--lav-200);
  border-left-color: var(--navy);
  transform: translateX(3px);
  box-shadow: 0 4px 14px rgba(20, 19, 73, .08);
}

.track-review-row .title { flex: 1; min-width: 0; }

.track-review-row .title a {
  color: var(--navy);
  font-size: 12pt;
  font-weight: 600;
  text-decoration: none;
}

.track-review-row .title a:hover { text-decoration: underline; }

.track-review-row .label.i-tag,
.track-review-row .i-tag {
  flex-shrink: 0;
  background: var(--lav-400);
  color: var(--navy);
  border: 1px solid #c4c3f4;
  border-radius: 999px;
  padding: .2em .9em;
  font-size: 9.5pt;
  font-weight: 700;
  letter-spacing: .03em;
}

/* ----------- Empty / info messages ----------- */
.info-message-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--lav-100);
  border: 1px solid var(--lav-300);
  border-left: 5px solid var(--navy);
  border-radius: var(--radius);
  color: var(--navy);
}

.info-message-box .icon { color: var(--navy-2); }
.info-message-box .message-text { font-size: 11.5pt; font-weight: 500; }

/* ----------- Links & buttons ----------- */
.confBodyBox a { color: #09c; }
.confBodyBox a:hover { color: #007298; }

.i-button { border-radius: 6px; }

/* ----------- Footer ----------- */
.footer {
  margin-top: 24px;
  border-top: 1px solid var(--lav-300);
}

/* ----------- Responsive ----------- */
@media (max-width: 860px) {
  .conf_leftMenu {
    float: none;
    width: auto;
    margin-bottom: 22px;
  }

  .confBodyBox { margin-left: 0; }

  .confBodyBox .mainContent { padding: 20px 18px 24px; }

  .conference-title-link { font-size: 16pt; padding: 20px 0; }

  .confLogoBox img.confLogo { max-height: 56px; }
  .confLogoBox { padding: 12px 12px 12px 0; }

  .datePlace { font-size: 11pt; gap: .25rem 1rem; }

  .confBodyBox .conference-page header h2 { font-size: 16pt; }

  .track-review-row li { flex-wrap: wrap; }

  .action-box.highlight .section { flex-direction: column; align-items: flex-start; }
}