:root {
  --page-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
  font-size: 16px;
  line-height: 1.5;
  overflow-y: scroll;
  color: #222;
  background: #fff;
  font-family: var(--page-font);
}

button, .leaflet-container, .leaflet-container *, #view-list {
  font-family: var(--page-font);
}

body *::selection {
  background: #e74c3c;
  color: #fff;
}

.container {
  max-width: 1120px;
}

.top-strip {
  background: #333;
  height: 4px;
  width: 100%;
}

h1,h2,h3 {
  /* font-weight: 300; */
  margin: 0;
  padding: 0;
}

h1 {
  margin: 3px 0 8px;
  font-size: 36px;
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 700;
}

h2 {
  font-size: 1em;
  line-height: 1.25;
  font-weight: 600;
}

.page-header {
  margin: 32px 0 20px;
  padding: 0;
  border: 0;
}

.hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}

.hero-copy {
  max-width: 680px;
  margin: 0;
  color: #444;
  font-size: 16px;
  text-align: left;
}

.maintainer {
  margin: 8px 0 0;
  color: #555;
  font-size: 13px;
  text-align: left;
}

.maintainer a {
  color: #333;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
  max-width: 370px;
}

.hero-meta span,
.hero-meta a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 5px 10px;
  border: 0;
  border-radius: 0;
  background: #fff;
  color: #444;
  font-size: 12px;
  white-space: nowrap;
}

p.authors {
  margin-bottom: 5px;
  color: #808080;
  font-size: 20px;
}

p.authors a {
  border-color: #dedede;
}

img {
  max-width: 100%;
}

p {
  text-align: justify;
}

a {
  text-decoration: none;
  border-bottom: 1px solid #aaa;
  color: #333;
}

p.lead.authors a {
  border-bottom: none;
}

a:hover, a:focus {
  color: inherit;
  text-decoration: none;
}

.past {
  opacity: 0.5;
}

.mytitle {
  display: inline-block;
  width: 180px;
  text-align:left;
}

.timer {
  font-size: 1.5em;
  line-height: 1.25em;
}

.checkbox {
  margin-right: 1em;
}

footer {
  margin-bottom: 2em;
}

.view-tabs {
  display: inline-flex;
  gap: 3px;
  margin: 24px 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #fff;
}

.view-tab {
  border: 0;
  background: transparent;
  color: #555;
  padding: 7px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 0;
  border-bottom: 2px solid transparent;
}

.view-tab.active {
  background: #fff;
  color: #111;
  border-bottom-color: #222;
}

.view-tab:focus-visible,
.deadline-card:focus-visible {
  outline: 2px solid #555;
  outline-offset: 2px;
}

.map-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 315px;
  overflow: hidden;
  border: 1px solid #ccc;
  border-radius: 0;
  background: #fff;
}

#conf-map {
  height: 600px;
  width: 100%;
  border-right: 1px solid #ddd;
  background: #fff;
}

.map-hint {
  margin: 10px 2px 0;
  color: #555;
  font-size: 12px;
  text-align: left;
}

.map-sidebar {
  max-height: 600px;
  overflow-y: auto;
  padding: 22px 18px;
}

.sidebar-heading {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0 3px 16px;
}

.sidebar-heading h2 {
  font-size: 17px;
  line-height: 1.25;
}

.sidebar-heading p {
  margin: 3px 0 0;
  color: #555;
  font-size: 12px;
  line-height: 1.4;
  text-align: left;
}

.live-dot {
  display: none;
}

#map-deadline-list {
  display: grid;
  gap: 8px;
}

.deadline-card {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid #d5d5d5;
  border-radius: 4px;
  background: #fff;
  color: #222;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: background-color 0.15s, border-color 0.15s;
}

.deadline-card:hover {
  background: #f7f7f7;
  border-color: #999;
}

.deadline-card:active {
  background: #eee;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08);
}

.deadline-card-main {
  min-width: 0;
}

.deadline-card-main strong,
.deadline-card-main span {
  display: block;
}

.deadline-card-main strong {
  overflow: hidden;
  color: #222;
  font-size: 13px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.deadline-card-main span {
  margin-top: 3px;
  color: #555;
  font-size: 11px;
}

.deadline-card-time {
  flex: 0 0 auto;
  padding: 4px 7px;
  border-radius: 0;
  background: transparent;
  color: #222;
  font-size: 11px;
  font-weight: 700;
}

.deadline-card-time.urgent { color: #a32626; }
.deadline-card-time.soon { color: #222; }

.conference-marker-wrap {
  background: transparent;
  border: 0;
  display: grid;
  place-items: center;
}

.conference-marker {
  display: grid;
  width: 12px;
  height: 12px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #333;
  box-shadow: 0 0 0 1px #555;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.conference-marker-wrap:hover .conference-marker,
.conference-marker-wrap:focus .conference-marker,
.conference-marker-wrap.is-selected .conference-marker {
  box-shadow: 0 0 0 1px #333, 0 0 0 5px rgba(0,0,0,0.12);
}

.country-name {
  color: #444;
  font-size: 10px;
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
  text-shadow: 0 1px 2px #fff, 1px 0 2px #fff, -1px 0 2px #fff;
}

.conference-marker.urgent { background: #a32626; }
.conference-marker.soon { background: #333; }

.leaflet-tile-pane {
  filter: none;
}

.leaflet-container,
.leaflet-control,
.leaflet-tooltip,
.leaflet-popup-content,
.leaflet-popup-content-wrapper {
  font-family: inherit;
}

.leaflet-tooltip.pin-label {
  background: #fff;
  border: 1px solid #d5d5d5;
  border-radius: 4px;
  box-shadow: none;
  padding: 3px 7px;
  font-family: inherit;
  line-height: 1.3;
  white-space: nowrap;
  color: #333;
}

.leaflet-tooltip.pin-label::before {
  display: none;
}

.pin-line {
  display: block;
  font-size: 11px;
}

.pin-name {
  font-weight: 600;
}

.pin-days {
  margin-left: 5px;
  font-weight: 700;
}

.pin-days.urgent {
  color: #c0392b;
}

.pin-days.soon {
  color: #333;
}

.pin-days.later {
  color: #333;
}

.pin-place {
  display: block;
  font-size: 10px;
  color: #808080;
}

.map-popup {
  font-size: 13px;
  line-height: 1.4;
}

.popup-place {
  font-weight: 600;
  margin-bottom: 4px;
  color: #808080;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.03em;
}

.popup-conf {
  margin-bottom: 4px;
}

.popup-date {
  color: #808080;
}

.popup-row {
  margin-top: 2px;
}

.popup-row.popup-past {
  color: #999;
}

.popup-timer {
  font-weight: 600;
}

.popup-sep {
  margin: 8px 0;
  border-color: #eee;
}

.leaflet-popup-content-wrapper {
  border-radius: 3px;
  border: 1px solid #ccc;
  box-shadow: none;
}

.leaflet-popup-content a {
  color: #333;
}

#view-list {
  padding: 20px;
  border: 1px solid #ccc;
  border-radius: 0;
  background: #fff;
}

footer {
  padding-top: 24px;
  color: #7b8794;
  font-size: 13px;
}

@media (max-width: 767px) {
  .container { padding-right: 16px; padding-left: 16px; }
  .page-header { margin-top: 24px; }
  .hero { align-items: flex-start; flex-direction: column; gap: 18px; }
  h1 { font-size: 30px; }
  .hero-meta { justify-content: flex-start; }
  .map-shell { grid-template-columns: 1fr; }
  #conf-map { height: 430px; border-right: 0; border-bottom: 1px solid #ddd; }
  .map-sidebar { max-height: none; padding: 18px 14px; }
  .deadline-card-main strong { white-space: normal; }
}
