/* ============================================================
   Lokey Lab Knowledge Base — styled to match lab WordPress site
   (Twenty Eleven UCSC theme)
   ============================================================ */

/* --- Color palette from lab site --- */
:root {
  --lab-blue:       #1982d1;
  --lab-blue-dark:  #006ba1;
  --lab-text:       #373737;
  --lab-mid-gray:   #666666;
  --lab-light-gray: #e2e2e2;
  --lab-white:      #ffffff;
}

/* --- Custom primary color overrides --- */
[data-md-color-primary="custom"] {
  --md-primary-fg-color:        #1982d1;
  --md-primary-fg-color--light: #4aa3e0;
  --md-primary-fg-color--dark:  #006ba1;
  --md-primary-bg-color:        #ffffff;
}

[data-md-color-accent="custom"] {
  --md-accent-fg-color: #1982d1;
}

/* --- Typography: match lab site --- */
body,
.md-typeset {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 300;
  font-size: 15px;
  color: #373737;
  line-height: 1.625;
}

.md-typeset h1,
.md-typeset h2,
.md-typeset h3,
.md-typeset h4 {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 400;
  color: #373737;
  letter-spacing: 0;
}

.md-typeset h1 { font-size: 1.8em; }
.md-typeset h2 { font-size: 1.4em; border-bottom: 1px solid #e2e2e2; padding-bottom: 0.3em; }
.md-typeset h3 { font-size: 1.15em; }

/* --- Links --- */
.md-typeset a {
  color: #1982d1;
  font-weight: 400;
}
.md-typeset a:hover {
  color: #006ba1;
  text-decoration: underline;
}

/* --- Header: white bar like the lab site --- */
.md-header {
  background-color: #ffffff;
  color: #373737;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}

.md-header__title,
.md-header__topic {
  color: #373737;
}

.md-header__button.md-logo {
  color: #373737;
}

/* Search bar in header */
.md-search__input {
  background-color: #f5f5f5;
  color: #373737;
}

/* --- Navigation tabs --- */
.md-tabs {
  background-color: #1982d1;
}

.md-tabs__link {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 14px;
  opacity: 0.85;
}

.md-tabs__link--active,
.md-tabs__link:hover {
  opacity: 1;
}

/* --- Sidebar nav --- */
.md-nav__title {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 400;
  color: #373737;
}

.md-nav__link {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 300;
  color: #373737;
}

.md-nav__link--active {
  color: #1982d1;
  font-weight: 400;
}

/* --- Content area: clean white like lab site --- */
.md-content {
  background-color: #ffffff;
}

.md-main {
  background-color: #f4f4f4;
}

/* --- Tables --- */
.md-typeset table:not([class]) {
  border: 1px solid #e2e2e2;
  font-size: 14px;
}

.md-typeset table:not([class]) th {
  background-color: #1982d1;
  color: #ffffff;
  font-weight: 400;
}

.md-typeset table:not([class]) tr:nth-child(even) {
  background-color: #f9f9f9;
}

/* --- Code blocks --- */
.md-typeset code {
  background-color: #f4f4f4;
  color: #373737;
  font-size: 0.88em;
  border-radius: 3px;
  padding: 0.1em 0.3em;
}

/* --- Admonitions --- */
.md-typeset .admonition,
.md-typeset details {
  border-left-color: #1982d1;
  font-size: 14px;
}

/* --- Footer --- */
.md-footer {
  background-color: #373737;
  color: #e2e2e2;
}

.md-footer-meta {
  background-color: #2a2a2a;
}

/* --- Grid cards on homepage --- */
.md-typeset .grid.cards > ul > li {
  border: 1px solid #e2e2e2;
  border-top: 3px solid #1982d1;
  border-radius: 3px;
  padding: 1em 1.2em;
  display: flex;
  flex-direction: column;
}

.md-typeset .grid.cards > ul > li:hover {
  box-shadow: 2px 2px 8px rgba(0,0,0,0.1);
  border-top-color: #006ba1;
}

/* Card title (the bold text with icon) */
.md-typeset .grid.cards > ul > li > p:first-child {
  font-size: 1.1em;
  margin-bottom: 0.4em;
}

/* Card description */
.md-typeset .grid.cards > ul > li > p:nth-child(2) {
  flex: 1;
  color: #666666;
  font-size: 0.9em;
  margin-bottom: 0.8em;
}

/* Card link */
.md-typeset .grid.cards > ul > li > p:last-child a {
  display: inline-block;
  background-color: #1982d1;
  color: #ffffff !important;
  padding: 0.35em 1em;
  border-radius: 3px;
  font-size: 0.85em;
  font-weight: 400;
  text-decoration: none;
  transition: background-color 0.2s;
}

.md-typeset .grid.cards > ul > li > p:last-child a:hover {
  background-color: #006ba1;
  text-decoration: none;
}
