/* ============================================================
   MMRL Equipment Pages - shared stylesheet
   Purdue brand colors:
     Boilermaker Gold  #CFB991
     Aged Gold         #8E6F3E
     Rush (bright)     #DAAA00
     Black             #000000
     Steel gray        #555960
   ============================================================ */

:root {
  --gold: #CFB991;
  --aged-gold: #8E6F3E;
  --rush: #DAAA00;
  --black: #000000;
  --steel: #555960;
  --bg: #ffffff;
  --bg-soft: #f5f3ef;
  --line: #e3ded4;
}

.equip-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 24px 24px;
}


/* ---------- Section headings on the index ---------- */

.section-heading {
  margin: 44px 0 0 0;
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.section-sub {
  font-size: 1rem;
  margin-bottom: 18px;
}

/* ---------- Equipment card grid ---------- */

.equip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-bottom: 20px;
}

@media (max-width: 860px) { .equip-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .equip-grid { grid-template-columns: 1fr; } }

.block .body-copy.basic-text a.equip-card,
.block a.equip-card,
.equip-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  transition: box-shadow 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}

.equip-card:hover {
  border-color: var(--gold);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.equip-card img,
.block .body-copy.basic-text .equip-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background: var(--bg-soft);
  border-bottom: 3px solid var(--gold);
}

/* Manufacturer product shots: show the whole machine instead of cropping */
.equip-card img.product-shot,
.block .body-copy.basic-text .equip-card img.product-shot {
  object-fit: contain;
  background: #fff;
  padding: 10px;
}

.equip-card .card-body { padding: 14px 16px 16px; }

.equip-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 4px;
  margin-top: 0;
}

.equip-card .card-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--aged-gold);
}

.equip-card p {
  font-size: 1rem;
  color: #444;
  margin-top: 6px;
}

/* ---------- Detail page ---------- */

.detail-hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: start;
  padding: 0 0 1.5rem 0;
}

@media (max-width: 760px) { .detail-hero { grid-template-columns: 1fr; } }

.detail-hero img,
.block .body-copy.basic-text .detail-hero img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg-soft);
  margin: 0;
}

.detail-hero h2 {
  font-size: 1.6rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.detail-hero .lede { color: #333; }

/* Quick spec strip under the hero text */
.spec-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  margin-top: 18px;
  list-style: none; /* Removes bullet points */
  padding: 0;        /* Removes default browser list padding */
}

.spec-strip li { 
  background: #fff; 
  padding: 10px 14px; 
}

.spec-strip .spec-dt {
  display: block; /* Makes the span behave like a block element */
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--steel);
  font-weight: 700;
}

.spec-strip .spec-dd { 
  display: block; /* Makes the span behave like a block element */
  font-size: 1rem; 
  color: var(--black); 
}

/* An odd last spec spans both columns so no empty cell shows */
.spec-strip li:last-child:nth-child(odd) { 
  grid-column: 1 / -1; 
}


/* Keep tall (portrait) photos from dominating the hero */
.detail-hero img { max-height: 560px; object-fit: contain; }

/* In the Lab photo gallery */
.photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  max-width: 900px;
}

.photo-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 6px;
  transition: border-color 0.15s ease;
}

.photo-gallery a:hover img { border-color: var(--gold); }

/* Section blocks */
.detail-section { padding: 26px 0 6px; }

.detail-section h2 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 12px;
  padding-left: 12px;
  border-left: 5px solid var(--gold);
}

.detail-section p { max-width: 800px; margin-bottom: 12px; }

/* Unique capabilities: highlighted list */
.capabilities {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  max-width: 900px;
}

@media (max-width: 700px) { .capabilities { grid-template-columns: 1fr; } }

.capabilities li {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold);
  border-radius: 6px;
  padding: 12px 14px;
  font-size: 0.93rem;
}

.capabilities li strong { display: block; color: var(--black); margin-bottom: 2px; }

/* Citations */
.citations { max-width: 850px; }

.citations ol {
  counter-reset: cite;
  list-style: none;
}

.citations li {
  counter-increment: cite;
  position: relative;
  padding: 10px 14px 10px 46px;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
  color: #333;
}

.citations li::before {
  content: "[" counter(cite) "]";
  position: absolute;
  left: 10px;
  top: 10px;
  font-weight: 700;
  color: var(--aged-gold);
}

.citations .placeholder {
  color: var(--steel);
  font-style: italic;
  background: white;
  cursor: default;
  opacity: 1;
}

/* Back link + footer */
.back-link {
  display: inline-block;
  margin: 26px 0 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
}
