/* MedHorizons / MedHorizon in Oncology - Shared Styles */
@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:ital,wght@0,300;0,400;0,600;1,400&family=IBM+Plex+Sans:wght@300;400;500;600&display=swap');

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

:root {
  --red: #e8281e;
  --dark: #1a1a1a;
  --mid: #444;
  --light: #666;
  --border: #ddd;
  --bg: #f7f7f5;
  --white: #ffffff;
  --tag-bg: #eef4fb;
  --tag-color: #1a5ea8;
  --link: #1a5ea8;
}

body {
  font-family: 'IBM Plex Sans', sans-serif;
  color: var(--dark);
  background: var(--white);
  font-size: 15px;
  line-height: 1.6;
}

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

/* TOP NAV */
.top-nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 24px;
  height: 48px;
  font-size: 13px;
}
.top-nav .logo { font-weight: 700; font-size: 15px; color: var(--red); letter-spacing: -0.3px; margin-right: auto; }
.top-nav a { color: var(--mid); font-size: 13px; }
.top-nav .btn-submit {
  background: var(--red);
  color: white !important;
  padding: 6px 14px;
  border-radius: 3px;
  font-weight: 500;
  font-size: 12px;
}
.top-nav .btn-submit:hover { text-decoration: none; background: #c41e14; }

/* JOURNAL NAV */
.journal-nav {
  background: #f0f0ed;
  border-bottom: 1px solid var(--border);
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 0;
  font-size: 13px;
  overflow-x: auto;
}
.journal-nav .journal-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px 10px 0;
  border-right: 1px solid var(--border);
  margin-right: 12px;
  font-weight: 600;
  color: var(--red);
  white-space: nowrap;
}
.journal-nav .journal-brand .icon {
  width: 28px; height: 28px;
  background: var(--red);
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px;
  border-radius: 2px;
}
.journal-nav a {
  color: var(--mid);
  padding: 12px 14px;
  display: block;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.journal-nav a:hover, .journal-nav a.active {
  color: var(--red);
  border-bottom-color: var(--red);
  text-decoration: none;
}
.journal-nav .spacer { flex: 1; }

/* PAGE HEADER */
.page-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 40px 32px;
}
.page-header h1 {
  font-family: 'Source Serif 4', serif;
  font-size: 28px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 8px;
}
.page-header p { color: var(--light); font-size: 14px; max-width: 600px; }

/* MAIN CONTENT */
.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.main-content { padding: 32px 0; }

/* ARTICLE CARD */
.article-card {
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 20px;
  margin-bottom: 16px;
  background: white;
  transition: box-shadow 0.15s;
}
.article-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.article-card .type-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--red);
  background: #fef0ef;
  padding: 2px 8px;
  border-radius: 2px;
  margin-bottom: 8px;
}
.article-card h3 {
  font-family: 'Source Serif 4', serif;
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.4;
}
.article-card h3 a { color: var(--dark); }
.article-card h3 a:hover { color: var(--link); text-decoration: none; }
.article-card .authors { color: var(--light); font-size: 13px; margin-bottom: 8px; }
.article-card .meta { font-size: 12px; color: var(--light); display: flex; gap: 16px; flex-wrap: wrap; }
.article-card .meta span::before { margin-right: 4px; }

/* STATS ROW */
.stats-row {
  display: flex;
  gap: 32px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}
.stat { text-align: center; }
.stat .value { font-size: 28px; font-weight: 700; color: var(--red); }
.stat .label { font-size: 12px; color: var(--light); text-transform: uppercase; letter-spacing: 0.5px; }

/* GRID */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
@media(max-width: 768px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* SECTION CARD */
.section-card {
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 20px;
  background: white;
}
.section-card h3 { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.section-card p { font-size: 13px; color: var(--light); }

/* TAGS */
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tag {
  display: inline-block;
  font-size: 12px;
  background: var(--tag-bg);
  color: var(--tag-color);
  padding: 3px 10px;
  border-radius: 12px;
  cursor: pointer;
}
.tag:hover { background: #dce9f7; }

/* FOOTER */
footer {
  background: #1a1a1a;
  color: #aaa;
  padding: 48px 32px 32px;
  margin-top: 64px;
  font-size: 13px;
}
footer .footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto 32px;
}
footer h4 { color: white; font-size: 13px; font-weight: 600; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
footer a { color: #aaa; display: block; margin-bottom: 6px; font-size: 13px; }
footer a:hover { color: white; text-decoration: none; }
footer .footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid #333;
  padding-top: 20px;
  font-size: 12px;
  color: #666;
}
@media(max-width: 768px) {
  footer .footer-grid { grid-template-columns: 1fr 1fr; }
  .top-nav { padding: 0 16px; gap: 12px; }
  .journal-nav { padding: 0 16px; }
  .page-header { padding: 24px 16px; }
  .container { padding: 0 16px; }
}

/* SEARCH BOX */
.search-box {
  display: flex;
  gap: 0;
  margin-bottom: 24px;
}
.search-box input {
  flex: 1;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-right: none;
  border-radius: 3px 0 0 3px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
}
.search-box input:focus { border-color: var(--link); }
.search-box button {
  padding: 10px 20px;
  background: var(--red);
  color: white;
  border: none;
  border-radius: 0 3px 3px 0;
  cursor: pointer;
  font-size: 14px;
  font-family: inherit;
}

/* FORM STYLES */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 500; margin-bottom: 6px; font-size: 14px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 3px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--link); }
.form-group textarea { resize: vertical; min-height: 100px; }
.btn-primary {
  background: var(--red);
  color: white;
  border: none;
  padding: 12px 28px;
  border-radius: 3px;
  font-size: 14px;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
}
.btn-primary:hover { background: #c41e14; }
.btn-secondary {
  background: white;
  color: var(--mid);
  border: 1px solid var(--border);
  padding: 10px 20px;
  border-radius: 3px;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  display: inline-block;
}
.btn-secondary:hover { background: var(--bg); text-decoration: none; }

/* SIDEBAR LAYOUT */
.sidebar-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 32px;
  padding: 32px 0;
}
@media(max-width: 768px) { .sidebar-layout { grid-template-columns: 1fr; } }
.sidebar-box {
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 16px;
  margin-bottom: 16px;
}
.sidebar-box h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--light); margin-bottom: 12px; font-weight: 600; }

/* PERSON CARD */
.person-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: white;
  margin-bottom: 12px;
}
.person-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px;
  flex-shrink: 0;
  color: white;
}
.person-card h4 { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.person-card .role { font-size: 12px; color: var(--red); font-weight: 500; }
.person-card .affil { font-size: 12px; color: var(--light); }

/* TABS */
.tabs { display: flex; border-bottom: 1px solid var(--border); margin-bottom: 24px; }
.tab { padding: 10px 20px; font-size: 14px; cursor: pointer; border-bottom: 2px solid transparent; color: var(--light); }
.tab.active { color: var(--red); border-bottom-color: var(--red); font-weight: 500; }
.tab:hover { color: var(--dark); }

/* BREADCRUMB */
.breadcrumb { font-size: 13px; color: var(--light); margin-bottom: 16px; }
.breadcrumb a { color: var(--link); }
.breadcrumb span { margin: 0 6px; }

/* AUTHOR TOOLTIP */
.author-tip {
  position: relative;
  color: var(--link);
  cursor: pointer;
  font-weight: 600;
  display: inline-block;
}
.author-tip .tip-popup {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  padding: 12px 14px;
  z-index: 200;
  min-width: 220px;
  max-width: 300px;
  white-space: normal;
  text-align: left;
  pointer-events: none;
}
.author-tip .tip-popup::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #fff;
}
.author-tip .tip-popup::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 7px solid transparent;
  border-top-color: var(--border);
  margin-top: 1px;
}
.author-tip:hover .tip-popup { display: block; }
.author-tip .tip-name { font-size: 13px; font-weight: 600; color: var(--dark); margin-bottom: 4px; }
.author-tip .tip-affil { font-size: 12px; color: var(--light); line-height: 1.5; }