/* SENO Avian Genetics Research Center - Custom Styles */

/* ===== LAYOUT: Wide page ===== */
.md-grid {
  max-width: 76rem !important;
}
.md-sidebar--primary {
  width: 12rem !important;
}
.md-content__inner {
  max-width: 100% !important;
  padding-top: 2rem !important;
}
.md-content {
  max-width: 100% !important;
}
.md-typeset {
  max-width: 100% !important;
  line-height: 1.7 !important;
  font-size: 1rem !important;
}
.md-typeset p,
.md-typeset li,
.md-typeset ol,
.md-typeset ul,
.md-typeset table,
.md-typeset div {
  max-width: 100% !important;
}
.md-typeset h2 {
  font-size: 1.4rem !important;
}
.md-typeset h3 {
  font-size: 1.15rem !important;
}
.md-typeset p {
  line-height: 1.7 !important;
  margin: 0.9em 0 !important;
}
.md-typeset li {
  line-height: 1.7 !important;
}

/* Prevent long links/DOIs from overflowing */
.md-typeset a {
  word-break: break-all;
  overflow-wrap: break-word;
}

/* ===== TABLES ===== */
.md-typeset table {
  font-size: 0.85rem !important;
}
.md-typeset table th {
  font-size: 0.85rem !important;
}
.md-typeset table td {
  font-size: 0.85rem !important;
}

/* ===== HERO SECTION ===== */
.hero {
  background: linear-gradient(135deg, #042f2e 0%, #115e59 50%, #0d9488 100%);
  color: white;
  padding: 4rem 0;
  margin: -1.5rem -1.5rem 2rem -1.5rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(45,212,191,0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(20,184,166,0.1) 0%, transparent 50%);
}
.hero-content { position: relative; z-index: 1; text-align: center; max-width: 800px; margin: 0 auto; padding: 0 1.5rem; }
.hero h1 { font-size: 2.5rem; margin-bottom: 1rem; color: white; font-weight: 700; }
.hero p { font-size: 1.1rem; color: rgba(255,255,255,0.85); max-width: 700px; margin: 0 auto 2rem; }
.hero-stats { display: flex; justify-content: center; gap: 3rem; margin-top: 2rem; }
.hero-stat { text-align: center; }
.hero-stat-value { font-size: 1.75rem; font-weight: 800; color: white; }
.hero-stat-label { font-size: 0.8rem; color: rgba(255,255,255,0.6); }

@media (max-width: 768px) {
  .hero { padding: 3rem 0; margin: -1rem -1rem 1.5rem -1rem; }
  .hero h1 { font-size: 1.75rem; }
  .hero-stats { flex-wrap: wrap; gap: 1.5rem; }
}

/* ===== RESEARCH AREA CARDS ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.card-grid-3 {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.card {
  background: var(--md-default-bg-color);
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 8px;
  padding: 1.25rem;
  transition: all 0.2s;
}
.card:hover {
  border-color: var(--md-primary-fg-color);
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.07);
}
.card h3 {
  font-size: 1rem;
  margin-top: 0;
  margin-bottom: 0.5rem;
}
.card p {
  font-size: 0.875rem;
  color: var(--md-default-fg-color--light);
  margin-bottom: 0;
}
.card-meta {
  font-size: 0.75rem;
  color: var(--md-default-fg-color--lighter);
  margin-top: 0.75rem;
}

/* ===== QUICK FACTS TABLE ===== */
.quick-facts {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
  background: var(--md-default-fg-color--lightest);
  border-radius: 8px;
  overflow: hidden;
}
.quick-facts td {
  padding: 0.5rem 1rem;
  border: 1px solid var(--md-default-fg-color--lightest);
  vertical-align: top;
}
.quick-facts tr:nth-child(even) {
  background: var(--md-code-bg-color);
}

/* ===== INFO BOXES ===== */
.info-box {
  border-radius: 8px;
  padding: 1.25rem;
  margin: 1.5rem 0;
  border-left: 4px solid;
}
.info-box.info {
  background: #eff6ff;
  border-color: #93c5fd;
}
.info-box.info p { color: #1e40af; }
.info-box.warning {
  background: #fffbeb;
  border-color: #fcd34d;
}
.info-box.warning p { color: #92400e; }
.info-box.tip {
  background: #f0fdf4;
  border-color: #86efac;
}
.info-box.tip p { color: #166534; }

/* ===== KEY FINDINGS / ABSTRACT BOX ===== */
.abstract-box {
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  border-radius: 8px;
  padding: 1.25rem;
  margin: 1.5rem 0;
}
.abstract-box p {
  margin: 0.4em 0 !important;
  color: #134e4a;
}
.abstract-box strong {
  color: #0f766e;
}

/* ===== REFERENCES ===== */
ol.references {
  margin: 1.5rem 0;
  padding-left: 2rem;
}
ol.references li {
  margin-bottom: 0.4rem;
  font-size: 0.78rem;
  line-height: 1.45;
  word-break: break-word;
  overflow-wrap: break-word;
}
ol.references li a {
  word-break: break-all;
}

/* ===== FAQ (flat div.h3 format — no collapsible) ===== */
div.faq-item {
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 6px;
  margin-bottom: 0.4rem;
  padding: 0.5rem 0.8rem;
}
div.faq-item:nth-child(odd) {
  background: var(--md-code-bg-color);
}
h3.faq-question {
  font-size: 0.85rem !important;
  font-weight: 600;
  margin: 0 0 0.25rem 0 !important;
  color: var(--md-primary-fg-color);
  cursor: default;
}
div.faq-item p {
  margin: 0 0 0.25rem 0 !important;
  font-size: 0.82rem !important;
  line-height: 1.5;
  color: var(--md-default-fg-color--light);
}

/* ===== MISC ===== */
.md-breadcrumb {
  font-size: 0.75rem;
}
.md-sidebar--secondary {
  width: 14rem !important;
}
