:root {
  --brand: #2f74ab;
  --brand-dark: #1f4f78;
  --link: #4e5e6b;
  --link-hover: #1f4f78;
  --panel-border: #337ab7;
  --bg: #ffffff;
  --bg-soft: #f5f5f5;
  --text: #333333;
  --text-muted: #777777;
  --border: #e7e7e7;
  --font-body: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* ==========================================================================
   SNAI conference site — researchr-style academic conference layout
   Modelled on conf.researchr.org (Bootstrap 3 lineage):
   dense two-column information portal, 14px base, 1170px container,
   blue logobar, light navbar, bordered sidebar panels.
   ========================================================================== */

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.428571429;
  color: #333;
  background-color: #fff;
}

a { color: var(--link); text-decoration: none; }
a:hover, a:focus { color: var(--link-hover); text-decoration: underline; }

img { max-width: 100%; height: auto; vertical-align: middle; }

.container {
  width: 100%;
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 15px;
}

/* ---------- Logo bar -------------------------------------------------- */

.logobar {
  background-color: var(--brand);
  color: #fff;
  border-bottom: 3px solid var(--brand-dark);
}

.logobar a { color: #fff; text-decoration: none; }

.logobar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  flex-wrap: wrap;
}

.conf-logo { display: flex; align-items: center; gap: 14px; }

.conf-logo-mark {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  background-color: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.conf-logo-mark img { width: 52px; height: 52px; }

.conf-logo-text .conf-name {
  display: block;
  font-size: 26px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.conf-logo-text .conf-sub {
  display: block;
  font-size: 13px;
  opacity: 0.85;
  margin-top: 4px;
}

.conf-meta { text-align: right; font-size: 13px; line-height: 1.5; }
.conf-meta .conf-when { display: block; font-weight: 700; }
.conf-meta .conf-where { display: block; opacity: 0.9; }

.conf-meta .conf-edition {
  display: inline-block;
  margin-top: 6px;
  padding: 1px 8px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 10px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ---------- Navigation ------------------------------------------------ */

.navbar {
  background-color: #f8f8f8;
  border-bottom: 1px solid #e7e7e7;
  position: relative;
  z-index: 100;
}

.navbar .container { display: flex; align-items: center; }

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid #ddd;
  border-radius: 3px;
  padding: 6px 10px;
  margin: 8px 0;
  font-size: 16px;
  color: #777;
  cursor: pointer;
}

.main-nav { display: flex; flex-wrap: wrap; align-items: stretch; }

.main-nav > a,
.main-nav .dropdown > .dropdown-toggle {
  display: block;
  padding: 15px;
  font-size: 14px;
  color: #777;
  line-height: 20px;
  text-decoration: none;
  border-bottom: 3px solid transparent;
}

.main-nav > a:hover,
.main-nav .dropdown:hover > .dropdown-toggle,
.main-nav > a:focus {
  color: #333;
  background-color: #eee;
  text-decoration: none;
}

.main-nav > a.active {
  color: var(--brand);
  border-bottom-color: var(--brand);
  background-color: #fff;
}

.nav-right { margin-left: auto; }

/* Dropdowns */
.dropdown { position: relative; }

.dropdown-toggle::after {
  content: "";
  display: inline-block;
  margin-left: 5px;
  border-top: 4px solid;
  border-right: 4px solid transparent;
  border-left: 4px solid transparent;
  vertical-align: middle;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  background-color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 0 0 4px 4px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
  padding: 5px 0;
  display: none;
}

.dropdown:hover > .dropdown-menu,
.dropdown.open > .dropdown-menu { display: block; }

.dropdown-menu a {
  display: block;
  padding: 5px 20px;
  font-size: 14px;
  line-height: 20px;
  color: #333;
  white-space: nowrap;
}

.dropdown-menu a:hover { background-color: #f5f5f5; color: #262626; text-decoration: none; }

.dropdown-menu .divider { height: 1px; margin: 6px 0; background-color: #e5e5e5; }

.dropdown-menu .dropdown-header {
  display: block;
  padding: 5px 20px;
  font-size: 12px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.nav-current {
  display: inline-block;
  margin-left: 6px;
  padding: 0 6px;
  border-radius: 9px;
  background-color: var(--brand);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ---------- Photo strip ----------------------------------------------- */

.photo-strip {
  position: relative;
  background-color: #22303c;
  overflow: hidden;
  height: 360px;
}

.photo-strip img { width: 100%; height: 360px; object-fit: cover; display: block; }

.photo-strip .photo-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 10px 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0));
  color: #fff;
  font-size: 13px;
  text-align: center;
}

/* ---------- Page layout ----------------------------------------------- */

.main-wrap { padding: 25px 15px 40px; }

.row { display: flex; flex-wrap: wrap; margin: 0 -15px; }

.col-main { flex: 0 0 66.6667%; max-width: 66.6667%; padding: 0 15px; }
.col-side { flex: 0 0 33.3333%; max-width: 33.3333%; padding: 0 15px; }
.col-full { flex: 0 0 100%; max-width: 100%; padding: 0 15px; }
.col-half { flex: 0 0 50%; max-width: 50%; padding: 0 15px; }

/* ---------- Typography ------------------------------------------------ */

h1, h2, h3, h4, h5 {
  font-family: inherit;
  font-weight: 500;
  color: #333;
  line-height: 1.1;
}

h1 { font-size: 36px; margin: 0 0 20px; }
h2 { font-size: 30px; margin: 30px 0 15px; }
h3 { font-size: 24px; margin: 25px 0 12px; }
h4 { font-size: 18px; margin: 20px 0 10px; }
h5 { font-size: 14px; margin: 15px 0 8px; font-weight: 700; }

h2:first-child, h3:first-child { margin-top: 0; }

p { margin: 0 0 10px; }

.lead { font-size: 16px; line-height: 1.5; color: #444; margin-bottom: 15px; }

.text-muted { color: #777; }
.text-center { text-align: center; }
.small { font-size: 12px; }

ul, ol { margin: 0 0 10px 25px; }
li { margin-bottom: 4px; }

ul.plain { list-style: none; margin-left: 0; }

hr { border: 0; border-top: 1px solid #eee; margin: 25px 0; }

blockquote {
  padding: 10px 20px;
  margin: 0 0 20px;
  border-left: 5px solid #eee;
  font-size: 15px;
}

code {
  font-family: Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  background-color: #f9f2f4;
  color: #c7254e;
  padding: 2px 4px;
  border-radius: 3px;
}

/* ---------- Page heading (subpages) ----------------------------------- */

.page-head {
  border-bottom: 1px solid #e7e7e7;
  padding-bottom: 12px;
  margin-bottom: 20px;
}

.page-head h1 { margin-bottom: 6px; }
.page-head p { color: #777; margin: 0; }

/* ---------- Panels (sidebar + content boxes) -------------------------- */

.panel {
  background-color: #fff;
  border: 1px solid var(--panel-border);
  border-radius: 4px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
}

.panel-heading {
  background-color: var(--panel-border);
  color: #fff;
  padding: 10px 15px;
  border-radius: 3px 3px 0 0;
  font-size: 14px;
  font-weight: 500;
}

.panel-body { padding: 15px; }
.panel-body > :last-child { margin-bottom: 0; }

.panel-default { border-color: #ddd; }
.panel-default > .panel-heading { background-color: #f5f5f5; color: #333; border-bottom: 1px solid #ddd; }

/* Link list inside a panel */
.panel-list { list-style: none; margin: 0; }
.panel-list li { margin: 0; border-bottom: 1px solid #f0f0f0; }
.panel-list li:last-child { border-bottom: 0; }
.panel-list a { display: block; padding: 6px 0; color: #777; font-size: 13px; }
.panel-list a:hover { color: var(--link-hover); text-decoration: none; }
.panel-list .muted { color: #aaa; font-size: 12px; }

/* News list inside a panel */
.news-list { list-style: none; margin: 0; }
.news-list li { padding: 10px 0; border-bottom: 1px solid #f0f0f0; }
.news-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.news-list .news-date { display: block; color: #999; font-size: 12px; margin-bottom: 2px; }
.news-list .news-title { font-weight: 500; color: #333; display: block; margin-bottom: 3px; }
.news-list p { font-size: 13px; color: #666; margin: 0; }

/* ---------- Well / callout -------------------------------------------- */

.well {
  background-color: #f5f5f5;
  border: 1px solid #e3e3e3;
  border-radius: 4px;
  padding: 19px;
  margin-bottom: 20px;
}

.alert {
  padding: 15px;
  margin-bottom: 20px;
  border: 1px solid transparent;
  border-radius: 4px;
}

.alert-info    { background-color: #d9edf7; border-color: #bce8f1; color: #31708f; }
.alert-warning { background-color: #fcf8e3; border-color: #faebcc; color: #8a6d3b; }
.alert-success { background-color: #dff0d8; border-color: #d6e9c6; color: #3c763d; }
.alert-muted   { background-color: #f5f5f5; border-color: #e3e3e3; color: #666; }
.alert a { font-weight: 500; }

/* Archived-edition strip */
.archive-banner {
  background-color: #fcf8e3;
  border-bottom: 1px solid #faebcc;
  color: #8a6d3b;
  font-size: 13px;
  padding: 10px 0;
}

.archive-banner .container {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; flex-wrap: wrap; text-align: center;
}

.archive-banner a { color: #6b5423; font-weight: 700; text-decoration: underline; }

/* ---------- Tables ---------------------------------------------------- */

.table-responsive { overflow-x: auto; margin-bottom: 20px; }

table.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-bottom: 20px;
}

table.table th,
table.table td {
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
  border-top: 1px solid #ddd;
}

table.table thead th {
  border-top: 0;
  border-bottom: 2px solid #ddd;
  font-weight: 700;
  color: #333;
  white-space: nowrap;
}

table.table tbody tr:nth-child(odd) { background-color: #f9f9f9; }
table.table tbody tr:hover { background-color: #f0f4f8; }

table.table td.time {
  white-space: nowrap; color: #777; width: 110px;
  font-variant-numeric: tabular-nums;
}

table.table tr.session-keynote { background-color: #fcf8e3 !important; }
table.table tr.session-break td { color: #999; font-style: italic; }

/* ---------- Definition-style listings (dates) -------------------------- */

dl.dl-dates { margin: 0; }

dl.dl-dates dt {
  float: left; clear: left; width: 190px;
  font-weight: 700; color: #333; padding: 6px 0;
}

dl.dl-dates dd {
  margin-left: 205px; padding: 6px 0; color: #555;
  border-bottom: 1px solid #f0f0f0;
}

dl.dl-dates dd:last-child { border-bottom: 0; }
dl.dl-dates dd.past { color: #999; }

/* Paper listing */
.paper-list { list-style: none; margin: 0 0 20px; }
.paper-list > li { padding: 10px 0; border-bottom: 1px solid #eee; }
.paper-list > li:last-child { border-bottom: 0; }
.paper-title { font-weight: 500; color: #333; display: block; margin-bottom: 3px; }
.paper-authors { color: #777; font-size: 13px; }

/* ---------- Committee listings ---------------------------------------- */

.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.person {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 1px solid #eee;
  border-radius: 3px;
  background-color: #fdfdfd;
}

.person-avatar {
  width: 48px; height: 48px; flex: 0 0 48px;
  border-radius: 50%;
  background-color: var(--brand);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
  overflow: hidden;
}

.person-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.person-name { display: block; font-weight: 500; color: #333; font-size: 13px; }
.person-affil { display: block; color: #888; font-size: 12px; }

/* Compact multi-column name list (large PCs) */
.name-columns {
  column-count: 3;
  column-gap: 25px;
  list-style: none;
  margin: 0 0 20px;
  font-size: 13px;
}

.name-columns li { break-inside: avoid; padding: 3px 0; color: #555; }
.name-columns li strong { color: #333; font-weight: 500; }

/* ---------- Statistics ------------------------------------------------ */

.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 1px;
  background-color: #e7e7e7;
  border: 1px solid #e7e7e7;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 20px;
}

.stat { background-color: #fff; padding: 15px 10px; text-align: center; }
.stat-number { display: block; font-size: 26px; font-weight: 500; color: var(--brand); line-height: 1.1; }
.stat-label { display: block; font-size: 12px; color: #888; margin-top: 4px; }

/* ---------- Track chips ------------------------------------------------ */

.track-index { list-style: none; margin: 0 0 20px; padding: 0; }
.track-index li { display: inline; }

.track-index a {
  display: inline-block;
  margin: 0 4px 6px 0;
  padding: 4px 10px;
  border: 1px solid #ddd;
  border-radius: 3px;
  background-color: #f8f8f8;
  color: #555;
  font-size: 13px;
}

.track-index a:hover {
  background-color: var(--brand);
  border-color: var(--brand);
  color: #fff;
  text-decoration: none;
}

/* ---------- Keynote entries -------------------------------------------- */

.keynote { display: flex; gap: 18px; padding: 18px 0; border-bottom: 1px solid #eee; }
.keynote:last-child { border-bottom: 0; }

.keynote-photo {
  width: 90px; height: 90px; flex: 0 0 90px;
  border-radius: 4px;
  background-color: var(--brand);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 500;
}

.keynote-body h3 { margin: 0 0 4px; font-size: 20px; }
.keynote-speaker { color: #777; font-size: 13px; margin-bottom: 8px; }

/* ---------- Buttons ---------------------------------------------------- */

.btn {
  display: inline-block;
  padding: 6px 12px;
  margin-bottom: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.428571429;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
}

.btn:hover, .btn:focus { text-decoration: none; }

.btn-primary { background-color: var(--brand); border-color: var(--brand-dark); color: #fff; }
.btn-primary:hover { background-color: var(--brand-dark); color: #fff; }

.btn-default { background-color: #fff; border-color: #ccc; color: #333; }
.btn-default:hover { background-color: #e6e6e6; color: #333; }

.btn-lg { padding: 10px 16px; font-size: 18px; border-radius: 6px; }
.btn-block { display: block; width: 100%; }

/* ---------- Labels ------------------------------------------------------ */

.label {
  display: inline-block;
  padding: 2px 6px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  border-radius: 3px;
  vertical-align: middle;
  white-space: nowrap;
}

.label-primary { background-color: var(--brand); }
.label-award   { background-color: #b8860b; }
.label-muted   { background-color: #999; }
.label-success { background-color: #5cb85c; }

/* ---------- Footer ------------------------------------------------------ */

.site-footer {
  background-color: #f8f8f8;
  border-top: 1px solid #e7e7e7;
  margin-top: 40px;
  padding: 30px 0 20px;
  font-size: 13px;
  color: #777;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 25px;
  margin-bottom: 20px;
}

.footer-grid h4 {
  font-size: 13px;
  font-weight: 700;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 8px;
}

.footer-grid ul { list-style: none; margin: 0; }
.footer-grid li { margin-bottom: 5px; }
.footer-grid a { color: #777; }
.footer-grid a:hover { color: var(--link-hover); }

.footer-bottom {
  border-top: 1px solid #e7e7e7;
  padding-top: 15px;
  text-align: center;
  color: #999;
  font-size: 12px;
}

/* ---------- Back to top -------------------------------------------------- */

.back-to-top {
  position: fixed;
  right: 20px; bottom: 20px;
  width: 38px; height: 38px;
  border: 1px solid #ccc;
  border-radius: 3px;
  background-color: rgba(255, 255, 255, 0.95);
  color: #777;
  font-size: 16px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
  z-index: 200;
}

.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background-color: var(--brand); color: #fff; border-color: var(--brand); }

/* ---------- Utilities ---------------------------------------------------- */

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 10px !important; }
.mb-2 { margin-bottom: 20px !important; }
.mt-1 { margin-top: 10px !important; }
.mt-2 { margin-top: 20px !important; }
.text-right { text-align: right; }

/* ---------- Responsive --------------------------------------------------- */

@media (max-width: 991px) {
  .col-main, .col-side { flex: 0 0 100%; max-width: 100%; }
  .col-side { margin-top: 25px; }
  .name-columns { column-count: 2; }
}

@media (max-width: 767px) {
  .menu-toggle { display: block; }
  .navbar .container { flex-wrap: wrap; }
  .main-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; }
  .main-nav.active { display: flex; }
  .main-nav > a, .main-nav .dropdown > .dropdown-toggle { border-bottom: 1px solid #e7e7e7; }
  .nav-right { margin-left: 0; }
  .dropdown-menu {
    position: static; box-shadow: none; border: 0;
    border-bottom: 1px solid #e7e7e7; background-color: #fbfbfb; border-radius: 0;
  }
  .dropdown-menu a { padding-left: 35px; }
  .logobar-inner { flex-direction: column; align-items: flex-start; }
  .conf-meta { text-align: left; }
  .conf-logo-text .conf-name { font-size: 24px; }
  .photo-strip, .photo-strip img { height: 170px; }
  .name-columns { column-count: 1; }
  dl.dl-dates dt { float: none; width: auto; padding-bottom: 0; }
  dl.dl-dates dd { margin-left: 0; }
  .col-half { flex: 0 0 100%; max-width: 100%; }
}
