/* ===================================================================
   CAMP — Consortium for the Advancement of Manufacturing of Pharmaceuticals
   Recreated stylesheet. Color palette derived from the original 2002 site:
     navy   #181861 / #1c1a87   cornflower #666699
     olive  #787902            lavender rule #d9d9ec
   =================================================================== */

:root {
  --navy:        #181861;
  --navy-link:   #1c1a87;
  --cornflower:  #666699;
  --olive:       #787902;
  --lavender:    #d9d9ec;
  --bg-light:    #f5f5f5;
  --text:        #333333;
  --maxw:        980px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text);
  background: #ffffff;
}

a        { color: var(--navy-link); }
a:hover  { color: var(--olive); }

img { border: 0; max-width: 100%; height: auto; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Masthead ----------------------------------------------
   Recreates the original layout: the CAMP logo butted directly against
   a section banner image. Both are real images shown at their native
   pixel size; the strip is centered on the navy background so there
   are no stretched edges or white gaps. The banner art already fades
   into the navy, so it blends seamlessly. */
.masthead {
  background: var(--navy);
  overflow: hidden;
}
.masthead .strip {
  display: flex;
  justify-content: center;
  align-items: stretch;
  line-height: 0;
}
.masthead .strip img { display: block; height: auto; }
.logo { display: block; line-height: 0; flex: 0 0 auto; }

/* the banner shrinks gracefully on narrow screens */
.masthead .banner-img {
  flex: 0 1 auto;
  min-width: 0;
  object-fit: cover;
}

/* ---------- Primary navigation ------------------------------------ */
.mainnav {
  background: var(--bg-light);
  border-bottom: 2px solid var(--cornflower);
}
.mainnav ul {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
}
.mainnav a {
  display: block;
  padding: 12px 20px;
  text-decoration: none;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--navy);
}
.mainnav a:hover,
.mainnav a.active {
  background: var(--cornflower);
  color: #ffffff;
}

/* ---------- Layout: content + sidebar ----------------------------- */
.layout {
  display: flex;
  gap: 36px;
  padding: 32px 0;
  align-items: flex-start;
}
.content { flex: 1 1 auto; min-width: 0; }
.sidebar {
  flex: 0 0 220px;
  background: var(--bg-light);
  border-top: 3px solid var(--olive);
  padding: 18px;
  font-size: 12px;
}
.sidebar b { color: var(--navy); }

/* sub-navigation inside a section */
.subnav {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  border-left: 3px solid var(--lavender);
}
.subnav a {
  display: block;
  padding: 7px 14px;
  text-decoration: none;
  font-weight: bold;
  font-size: 12px;
}
.subnav a:hover,
.subnav a.active {
  border-left: 3px solid var(--olive);
  margin-left: -3px;
  background: var(--bg-light);
}

/* ---------- Typography -------------------------------------------- */
h2 {
  color: var(--navy);
  font-size: 17px;
  margin: 0 0 12px;
}
.section-head {
  color: var(--cornflower);
  font-size: 15px;
  font-weight: bold;
  margin: 26px 0 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--lavender);
}
.section-head:first-child { margin-top: 0; }

.lead { font-size: 14px; }
.more { font-weight: bold; }

hr.rule {
  border: 0;
  border-top: 1px solid var(--lavender);
  margin: 22px 0;
}

/* definition-style lists (guiding principles, management) */
.deflist { width: 100%; border-collapse: collapse; }
.deflist th {
  text-align: left;
  color: var(--cornflower);
  white-space: nowrap;
  padding: 5px 16px 5px 0;
  vertical-align: top;
}
.deflist td { padding: 5px 0; vertical-align: top; }

/* news / link lists with olive bullets */
.linklist { list-style: none; margin: 0; padding: 0; }
.linklist li {
  padding: 6px 0 6px 18px;
  position: relative;
}
.linklist li::before {
  content: "\00BB";
  color: var(--olive);
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* ---------- Home page two-column ---------------------------------- */
.home-cols {
  display: flex;
  gap: 36px;
  padding: 32px 0;
  flex-wrap: wrap;
}
.home-cols > div { flex: 1 1 320px; }

.loginbox {
  background: var(--bg-light);
  border: 1px solid var(--lavender);
  padding: 16px;
  margin-top: 16px;
}
.loginbox label { display: block; font-weight: bold; margin-top: 8px; }
.loginbox input[type=text],
.loginbox input[type=password] {
  width: 100%;
  padding: 5px;
  border: 1px solid var(--cornflower);
}
.loginbox button {
  margin-top: 10px;
  background: var(--navy);
  color: #fff;
  border: 0;
  padding: 7px 18px;
  cursor: pointer;
  font-weight: bold;
}

/* people cards (research pages) */
.person {
  display: flex;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--lavender);
}
.person .name { color: var(--cornflower); font-weight: bold; }
.person .photo {
  flex: 0 0 70px;
  height: 90px;
  background: var(--lavender);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cornflower);
  font-size: 22px;
  font-weight: bold;
}

/* member-company grid */
.members {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 14px;
}
.members li {
  border: 1px solid var(--lavender);
  padding: 16px 12px;
  text-align: center;
  font-weight: bold;
  color: var(--navy);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 96px;
}
.members li img {
  max-width: 130px;
  max-height: 44px;
  width: auto;
}
.members li span { font-size: 11px; }

/* ---------- Footer ------------------------------------------------ */
.site-footer {
  background: var(--navy);
  color: #b6b6d6;
  font-size: 11px;
  padding: 18px 0;
  margin-top: 30px;
}
.site-footer a { color: #ffffff; }

/* ---------- Responsive -------------------------------------------- */
@media (max-width: 720px) {
  .layout { flex-direction: column; }
  .sidebar { flex-basis: auto; width: 100%; }
  .mainnav ul { flex-direction: column; }
}
