/* BER Data Lakehouse — section tints echoing the retired infosite palette. */

/* Header + tabs: dark purple to match the Data Lakehouse section. */
.md-header,
.md-tabs {
  background-color: #352F44;
  color: #fff;
}
.md-header a,
.md-header__topic,
.md-header__title,
.md-tabs a {
  color: #fff;
}
.md-search__input {
  background-color: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.md-search__input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

/* Hero banner (top of home page). */
.hero {
  position: relative;
  width: 100%;
  min-height: 30vh;
  padding: 2rem 1rem;
  margin-bottom: 2rem;
  background: #4A3F6B;
  color: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero h1 {
  color: #fff;
  font-size: 3.2rem;
  margin: 0.2em 0;
}

.hero .hero-tagline {
  font-size: 1.2rem;
  max-width: 50ch;
  margin: 0 auto 1rem;
}

/* Uniform look for all hero buttons, regardless of .md-button--primary. */
.hero .md-button,
.hero .md-button--primary {
  background-color: rgba(255, 255, 255, 0.12);
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.6);
}
.hero .md-button:hover,
.hero .md-button:focus,
.hero .md-button--primary:hover,
.hero .md-button--primary:focus {
  background-color: #fff;
  color: #352F44 !important;
  border-color: #fff;
}

.section--funding {
  padding: 1.5rem 2rem;
  text-align: center;
  background: transparent;
  box-shadow: none;
  color: inherit;
}

.funding-attribution {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 0;
  font-size: 1rem;
}

.funding-attribution .doe-logo {
  height: 72px;
  width: auto;
  vertical-align: middle;
}

/* Colored content sections, one per logical block. */
.section {
  padding: 2rem;
  margin: 2rem 0;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
}

.section h2 {
  margin-top: 0;
}

.section--infrastructure {
  background: #352F44;
  color: #fff;
}
.section--infrastructure a,
.section--infrastructure h2,
.section--infrastructure h3 {
  color: #fff;
}
.section--infrastructure a:hover {
  color: #c8e6ff;
}

.section--modeling {
  background: #E8EEF4;
  color: #1a1a1a;
}
.section--modeling a {
  color: #352F44;
}
.section--modeling h2,
.section--modeling h3 {
  color: #1a1a1a;
}

.section--bertron {
  background: #D3CDE2;
  color: #000;
}
.section--bertron a {
  color: #352F44;
}

.section--welcome {
  background: #FAF0E6;
  color: #000;
}
.section--welcome a {
  color: #352F44;
}

.section--contribs {
  background: #FAF0E6;
  color: #000;
}
.section--contribs a {
  color: #352F44;
}

/* Make grid cards readable when nested inside a colored section. */
.section .grid.cards > ul > li,
.section .grid.cards > ol > li {
  background: rgba(255, 255, 255, 0.92);
  color: #111;
  border: none;
}
.section .grid.cards > ul > li,
.section .grid.cards > ol > li,
.section .grid.cards > ul > li a,
.section .grid.cards > ol > li a,
.section .grid.cards > ul > li strong,
.section .grid.cards > ol > li strong {
  color: #111;
}
.section .grid.cards > ul > li a:hover,
.section .grid.cards > ol > li a:hover {
  color: #352F44;
}
.section--contribs .grid.cards > ul > li,
.section--contribs .grid.cards > ol > li {
  background: #fff;
}

/* Tighten staff/partner card visuals. */
.grid.cards img {
  display: block;
  margin: 0 auto 0.5rem;
  border-radius: 20%;
  max-width: 160px;
}

/* Compact staff grid: roughly half-size cards with smaller portraits. */
.grid.cards.staff-compact {
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.5rem;
}
.grid.cards.staff-compact > ul,
.grid.cards.staff-compact > ol {
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.5rem;
}
.grid.cards.staff-compact > ul > li,
.grid.cards.staff-compact > ol > li {
  padding: 0.5rem;
  font-size: 0.72rem;
  line-height: 1.2;
}
.grid.cards.staff-compact img {
  max-width: 80px;
  margin: 0 auto 0.25rem;
}
/* Partner cards: ~3/4-scale grid with a uniform logo slot. */
.grid.cards.partner-logo {
  grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
  gap: 0.75rem;
}
.grid.cards.partner-logo > ul,
.grid.cards.partner-logo > ol {
  grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
  gap: 0.75rem;
}
.grid.cards.partner-logo > ul > li,
.grid.cards.partner-logo > ol > li {
  padding: 0.75rem;
}

.grid.cards.partner-logo img {
  border-radius: 0;
  width: 100%;
  height: 90px;
  max-width: none;
  object-fit: contain;
}

/* DOE BER banner card: single wide card showcasing the image, left-aligned. */
.grid.cards.doe-ber {
  grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr));
  max-width: 720px;
  margin: 1rem 0 0;
}
.grid.cards.doe-ber > ul,
.grid.cards.doe-ber > ol {
  grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr));
}
.grid.cards.doe-ber > ul > li,
.grid.cards.doe-ber > ol > li {
  padding: 0.75rem;
  text-align: left;
}
.grid.cards.doe-ber img {
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  margin: 0;
  border-radius: 0;
}

/* Lakehouse / schema cards: compact but wide enough for two pill links. */
.grid.cards.lakehouses {
  grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
  gap: 0.75rem;
}
.grid.cards.lakehouses > ul,
.grid.cards.lakehouses > ol {
  grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
  gap: 0.75rem;
}
.grid.cards.lakehouses > ul > li,
.grid.cards.lakehouses > ol > li {
  padding: 0.75rem;
  font-size: 0.8rem;
  line-height: 1.3;
  overflow: hidden;
}
.grid.cards.lakehouses img {
  width: 100%;
  height: 64px;
  max-width: none;
  object-fit: contain;
  margin: 0 auto 0.5rem;
}

/* Two disambiguated action links (Docs / Code) side-by-side in a card. */
.grid.cards p.card-links {
  display: flex;
  gap: 0.35rem;
  margin-top: 0.5rem;
  margin-bottom: 0;
  font-size: 0.75rem;
  flex-wrap: nowrap;
}
.grid.cards .card-btn {
  flex: 1 1 0;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.3rem 0.4rem;
  border: 1px solid rgba(53, 47, 68, 0.3);
  border-radius: 999px;
  text-decoration: none !important;
  white-space: nowrap;
  color: #352F44 !important;
  background: rgba(255, 255, 255, 0.6);
  box-sizing: border-box;
}
.grid.cards .card-btn:hover {
  background: #352F44;
  color: #fff !important;
  border-color: #352F44;
}
.grid.cards .card-btn .twemoji {
  height: 0.95em;
  width: 0.95em;
}
