/* --- Home page: map of the research lines, after the figure in the research statement --- */

.rmap {
  margin: 0.5rem 0 2rem;
  font-size: 0.84rem;
  color: #0C1A2E;
}

.rmap a {
  color: inherit;
  text-decoration: none;
}

/* line I, the core: a tinted panel with its three parts */

.rmap-core {
  background: rgba(24, 95, 165, 0.06);
  border: 1px solid rgba(24, 95, 165, 0.35);
  border-radius: 10px;
  padding: 0.85rem 0.9rem 0.95rem;
}

.rmap-label {
  font-family: 'Lora', serif;
  font-weight: 500;
  font-size: 1.02rem;
  color: #185FA5;
  margin-bottom: 0.7rem;
}

.rmap-label a:hover,
.rmap-head a:hover {
  text-decoration: underline;
}

.rmap-note {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6c757d;
  margin-left: 0.6rem;
}

.rmap-row3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.rmap-box {
  background: #fff;
  border: 1px solid;
  border-radius: 8px;
  padding: 0.7rem 0.8rem 0.75rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.rmap-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(12, 26, 46, 0.1);
}

.rmap-box.l1 { border-color: #185FA5; }
.rmap-box.l2 { border-color: #0F6E56; }
.rmap-box.l3 { border-color: #854F0B; }

.rmap-head {
  font-family: 'Lora', serif;
  font-weight: 500;
  font-size: 0.95rem;
  margin-bottom: 0.45rem;
}

.l1 .rmap-head { color: #185FA5; }
.l2 .rmap-head { color: #0F6E56; }
.l3 .rmap-head { color: #854F0B; }

.rmap-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.rmap-box li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.6rem;
  padding: 0.14rem 0;
  line-height: 1.35;
}

.rmap-box li a {
  border-bottom: 1px dotted rgba(12, 26, 46, 0.35);
}

.rmap-box li a:hover {
  color: #185FA5;
  border-bottom-color: #185FA5;
}

/* status tags: published, submitted, in preparation */

.rmap .tag {
  flex: none;
  font-size: 0.66rem;
  line-height: 1.5;
  padding: 0 0.35rem;
  border-radius: 3px;
  white-space: nowrap;
}

.rmap .tag.pub {
  background: #0C1A2E;
  color: #F0F4FA;
}

.rmap .tag.sub {
  border: 1px solid rgba(12, 26, 46, 0.55);
}

.rmap .tag.prep {
  color: #8a94a3;
}

.rmap-open {
  margin-top: auto;
  padding-top: 0.45rem;
  border-top: 1px solid #E5E9F0;
  font-style: italic;
  font-size: 0.78rem;
  color: #495057;
  display: flex;
  flex-direction: column;
}

.rmap-box ul + .rmap-open {
  margin-top: 0.5rem;
}

/* the toolbox strip, feeding the core above and the two lines below */

.rmap-feed {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
  color: #8BA3C0;
  font-size: 1rem;
  line-height: 1;
  margin: 0.3rem 0;
}

.rmap-toolbox {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: center;
  gap: 0.6rem 2rem;
  padding: 0.75rem 1rem;
  background: #0C1A2E;
  border-radius: 8px;
  color: #F0F4FA;
  text-align: center;
}

.rmap-tool b {
  display: block;
  font-family: 'Lora', serif;
  font-weight: 500;
  font-size: 0.95rem;
  color: #EFD99A;
  margin-bottom: 0.2rem;
}

.rmap-models {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.rmap-models span {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.rmap-models i {
  font-size: 0.7rem;
  color: #8BA3C0;
}

.rmap-formula {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 0.95rem;
}

/* lines II and III, joined by the slow-fast bridge */

.rmap-row2 {
  display: grid;
  grid-template-columns: 1fr 8.5rem 1fr;
  gap: 0.75rem;
  margin-top: 0.3rem;
}

.rmap-row2 > div {
  display: flex;
  flex-direction: column;
}

.rmap-row2 .rmap-box {
  flex: 1;
}

.rmap-drop {
  text-align: center;
  font-size: 0.74rem;
  font-style: italic;
  color: #6c757d;
  margin-bottom: 0.3rem;
}

.rmap-bridge {
  align-self: center;
  text-align: center;
  font-size: 0.72rem;
  font-style: italic;
  line-height: 1.35;
  color: #6c757d;
}

.rmap-bridge span {
  display: block;
  font-size: 1.3rem;
  font-style: normal;
  color: #8BA3C0;
}

.rmap-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem 1.1rem;
  margin-top: 0.7rem;
  font-size: 0.74rem;
  color: #6c757d;
}

/* section headings inside the research-line cards */

.mario-app section#research .card-subtitle {
  font-family: 'Lora', serif;
  font-weight: 500;
  font-size: 0.98rem;
  color: #0C1A2E;
}

@media (max-width: 991px) {
  .rmap-row3 { grid-template-columns: 1fr; }
  .rmap-row2 { grid-template-columns: 1fr; }
  .rmap-feed { display: none; }
  .rmap-toolbox { margin-top: 0.75rem; }
  .rmap-row2 { margin-top: 0.75rem; }
}

/* links inside running text on the home page */
.mario-app .text-link {
  color: #185FA5;
  text-decoration: none;
  border-bottom: 1px solid rgba(24, 95, 165, 0.35);
}

.mario-app .text-link:hover {
  border-bottom-color: #185FA5;
}
