/* ConfTool custom CSS File */
/* Branding: International Conference on Sustainability, Resilience,
   and Wellbeing in the Built Environment (S-LAB)
   Palette pulled from conference.slabproject.com/assets/css/style.css
     --primary:      #2f4f33  (deep green)
     --primary-dark: #243f28
     --accent:       #ff5b22  (orange)
     --heading:      #2f455d  (slate blue)
     --muted:        #666666
     --border:       #e7e7e7
     --soft:         #f7f7f7
*/

body {
  font-family: Arial, Helvetica, sans-serif;
}

/* .mainbg	{ background-color: #FFFFFF; } */

a:link { text-decoration: none; color: #2f4f33; }
a:visited { text-decoration: none; color: #2f455d; }
a:active { text-decoration: underline; color: #ff5b22; }
a:hover { text-decoration: underline; color: #ff5b22; }

/* Toolbar / command bar background under the header */
.cthead_td_cmds { background-color: #eef2ec; }
.cthead_a { color: #2f4f33; }

/* Thin accent bar used as a navbar border/divider */
.navbarborder { background-color: #2f4f33; }

/* Dialog boxes */
.tbldialog { background: #eef2ec; }
.td_dlg_title { background-color: #2f4f33; color: #ffffff; }

/* Table row banding */
.oddrow  { background-color: #eef2ec; }
.evenrow { background-color: #f7f7f7; }

/* Separators */
.form_td_separator, .form_td_separator_gradient { background: #2f4f33; }
.infoview_sep { background-color: #2f4f33; }

/* Buttons */
input.button, button.button {
  background-color: #2f4f33;
  border-color: #4a6f4f #1c331f #1c331f #4a6f4f;
}
input.button:hover, button.button:hover,
input.button_clear:hover, button.button_clear:hover {
  background-color: #ff5b22;
  box-shadow: none;
}
input.button_clear, button.button_clear {
  background-color: #f7f7f7;
  color: #2f4f33;
  border-color: #e7e7e7 #cccccc #cccccc #e7e7e7;
}

/* Main div for siteheader: two-column layout with a vertical divider,
   text block on the left, logo + tagline on the right */
#siteheader {
    background: #ffffff;
    height: auto;
    padding: 40px 30px;
    font-family: Arial, Helvetica, sans-serif;
}

#siteheader .header-inner {
    display: flex;
    align-items: center;
    gap: 40px;
}

/* Left column: kicker line + big bold title */
#siteheader .header-left {
    flex: 1;
    min-width: 0;
}

#siteheader .kicker-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}
#siteheader .kicker {
    font-size: 13pt;
    font-weight: 700;
    letter-spacing: 2px;
    color: #ff5b22;
    text-transform: uppercase;
    white-space: nowrap;
}
#siteheader .kicker-line {
    flex: 1;
    max-width: 180px;
    height: 1px;
    background: #999999;
}

#siteheader .title {
    margin: 0;
}
#siteheader .title a {
    font-size: 30pt;
    line-height: 1.08;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #171717;
}

/* Vertical divider between the two columns */
#siteheader .header-divider {
    width: 2px;
    align-self: stretch;
    background: #b0b0a8;
}

/* Right column: logo/dates image + tagline underneath */
#siteheader .header-right {
    flex-shrink: 0;
    text-align: center;
}
#siteheader .header-right img {
    max-height: 190px;
    width: auto;
    margin: 0 auto;
    display: block;
}

/* Partner/organiser logos in the footer */
#sitefooter .footer-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 16px;
}
#sitefooter .footer-logos img {
    max-height: 48px;
    width: auto;
    object-fit: contain;
}

/* ==========================================================
   Conference theme / thematic streams / key dates block
   Shown only on the login page (see siteheader.inc.php)
   ========================================================== */
#conftheme {
    padding: 30px;
    font-family: Arial, Helvetica, sans-serif;
}

#conftheme .conftheme-intro {
    font-size: 11pt;
    line-height: 1.6;
    color: #333333;
    max-width: 760px;
    margin: 0 0 24px 0;
}

#conftheme .conftheme-heading {
    font-size: 13pt;
    font-weight: 700;
    color: #2f4f33;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 14px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #eef2ec;
}

#conftheme .conftheme-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 30px;
}

#conftheme .conftheme-card {
    background: #f9faf8;
    border: 1px solid #e7e7e7;
    border-radius: 6px;
    padding: 16px 18px;
}
#conftheme .conftheme-num {
    display: block;
    font-size: 18pt;
    font-weight: 900;
    color: #ff5b22;
    line-height: 1;
    margin-bottom: 6px;
}
#conftheme .conftheme-card h4 {
    margin: 0 0 8px 0;
    font-size: 11pt;
    font-weight: 700;
    color: #171717;
    line-height: 1.3;
}
#conftheme .conftheme-card p {
    margin: 0;
    font-size: 9.5pt;
    line-height: 1.5;
    color: #555555;
}

#conftheme .conftheme-dates {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 24px;
}
#conftheme .conftheme-date {
    flex: 1;
    min-width: 150px;
    background: #2f4f33;
    color: #ffffff;
    border-radius: 6px;
    padding: 12px 16px;
    text-align: center;
}
#conftheme .conftheme-date strong {
    display: block;
    font-size: 12pt;
    margin-bottom: 4px;
}
#conftheme .conftheme-date span {
    display: block;
    font-size: 8.5pt;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #cfe0d1;
}

#conftheme .conftheme-cta {
    margin: 0;
    text-align: center;
}
#conftheme .conftheme-cta a {
    display: inline-block;
    font-weight: 700;
    font-size: 10.5pt;
    color: #ff5b22;
}
#conftheme .conftheme-cta a:hover {
    text-decoration: underline;
}

/* ==========================================================
   Co-author builder (Name / Email / Affiliation rows)
   on the paper submission form
   ========================================================== */
#coauthor-builder {
    width: 100%;
}
.coauthor-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 10px;
}
.coauthor-table th {
    font-size: 9pt;
    color: #555555;
    font-weight: 700;
    padding: 4px 6px;
    border-bottom: 2px solid #e7e7e7;
}
.coauthor-table td {
    padding: 4px 6px;
    vertical-align: middle;
}
.coauthor-table input[type="text"] {
    padding: 5px 6px;
    border: 1px solid #cccccc;
    border-radius: 4px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 9.5pt;
}
.coauthor-table .ca-remove {
    font-size: 8.5pt;
    color: #a33333;
    background: #f7f7f7;
    border: 1px solid #e7e7e7;
    border-radius: 4px;
    padding: 4px 8px;
    cursor: pointer;
}
.coauthor-table .ca-remove:hover {
    background: #fbeaea;
}
#coauthor-add-btn {
    background-color: #2f4f33;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    padding: 7px 14px;
    font-size: 9.5pt;
    font-weight: 700;
    cursor: pointer;
}
#coauthor-add-btn:hover {
    background-color: #ff5b22;
}

/* ==========================================================
   Container width fix (applies at ALL screen sizes)
   ConfTool hardcodes .main / .main_elements to a fixed 900px
   width (from conftool.inc.php's $ctconf['totalwidth']) via an
   inline <style> block. On any window narrower than 900px this
   forces horizontal overflow â€” the header (widest element) was
   spilling off the right edge with a scrollbar. Making the
   container fluid up to that same 900px cap fixes it everywhere,
   not just below a mobile breakpoint.
   ========================================================== */
body {
  min-width: 0 !important;
}
.main, .main_elements {
  width: 100% !important;
  max-width: 900px !important;
  box-sizing: border-box !important;
}

/* ==========================================================
   Mobile responsiveness overrides
   Typography/layout adjustments for small screens. Width
   containment itself is handled above at all sizes.
   ========================================================== */
@media (max-width: 700px) {
  .main, .main_elements {
    padding: 8px 4px !important;
    box-shadow: none !important;
  }

  /* Header: stack the two columns, drop the vertical divider */
  #siteheader {
    padding: 24px 16px;
  }
  #siteheader .header-inner {
    flex-direction: column;
    text-align: center;
    gap: 18px;
  }
  #siteheader .header-left {
    text-align: center;
  }
  #siteheader .kicker-row {
    justify-content: center;
  }
  #siteheader .kicker-line {
    max-width: 60px;
  }
  #siteheader .title a {
    font-size: 20pt;
  }
  #siteheader .header-divider {
    display: none;
  }
  #siteheader .header-right img {
    max-height: 130px;
  }

  /* Footer logos: smaller and tighter on phones */
  #sitefooter .footer-logos {
    gap: 12px;
  }
  #sitefooter .footer-logos img {
    max-height: 34px;
  }

  /* Conference theme block: single column on phones */
  #conftheme {
    padding: 18px 12px;
  }
  #conftheme .conftheme-grid {
    grid-template-columns: 1fr;
  }
  #conftheme .conftheme-dates {
    flex-direction: column;
  }

  /* Let wide data tables (submissions, schedules) scroll within
     themselves instead of blowing out the whole page width */
  table {
    max-width: 100%;
  }
}