/* Custom styles for Essentials of EAI Research */

/* Wider content area */
.md-grid {
  max-width: 1440px;
}

/* Math block styling */
.arithmatex {
  overflow-x: auto;
}

/* Algorithm box styling */
.admonition.algorithm {
  border-left-color: #7c4dff;
}
.admonition.algorithm > .admonition-title {
  background-color: rgba(124, 77, 255, 0.1);
}
.admonition.algorithm > .admonition-title::before {
  content: "";
}

/* Paper reference styling */
.paper-ref {
  background: var(--md-code-bg-color);
  padding: 0.8rem 1rem;
  border-radius: 0.2rem;
  margin: 0.5rem 0;
  border-left: 3px solid var(--md-accent-fg-color);
}

.paper-ref .paper-title {
  font-weight: 600;
  color: var(--md-accent-fg-color);
}

.paper-ref .paper-authors {
  font-style: italic;
  font-size: 0.9em;
  color: var(--md-default-fg-color--light);
}

/* Definition list improvements */
dt {
  font-weight: 600;
  color: var(--md-accent-fg-color);
}

/* Table styling */
.md-typeset table:not([class]) {
  font-size: 0.85rem;
}

/* Code annotation improvements */
.md-typeset .md-annotation__index {
  font-size: 0.7rem;
}

/* Navigation section headers */
.md-nav__item--section > .md-nav__link {
  font-weight: 600;
}

/* Hero section on home page */
.hero {
  text-align: center;
  padding: 2rem 0;
  margin-bottom: 2rem;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.hero p {
  font-size: 1.2rem;
  color: var(--md-default-fg-color--light);
  max-width: 600px;
  margin: 0 auto;
}

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.feature-card {
  padding: 1.5rem;
  border-radius: 0.5rem;
  border: 1px solid var(--md-default-fg-color--lightest);
  transition: box-shadow 0.2s;
}

.feature-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.feature-card h3 {
  margin-top: 0;
}
