/* custom.css — safe visual polish for the existing RapidWeaver/Cameo layout */

/* ---- Base typography + page background ---- */
html, body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background: #f6f7f8;
  color: #1f2937;
}

/* ---- Center and soften the main container ---- */
#container {
  max-width: 1120px;
  margin: 24px auto;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  overflow: hidden; /* rounds header/nav too */
}

/* ---- Header polish ---- */
#pageHeader {
  padding: 22px 28px 10px 28px;
}
#pageHeader h1 {
  font-size: 28px;
  letter-spacing: -0.3px;
  margin: 0;
}
#pageHeader h2 {
  margin-top: 6px;
  color: rgba(31,41,55,0.7);
}

/* ---- Navigation: cleaner + more modern ---- */
#navcontainer {
  padding: 0 18px;
}
#navcontainer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 0 14px 0 !important;
  margin: 0 !important;
  align-items: center;
}
#navcontainer li {
  list-style: none;
  margin: 0 !important;
  padding: 0 !important;
}
#navcontainer a {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  color: #1f2937;
  background: rgba(31,41,55,0.06);
  transition: transform 120ms ease, background 120ms ease;
}
#navcontainer a:hover {
  background: rgba(31,41,55,0.10);
  transform: translateY(-1px);
}
#navcontainer a#current {
  background: rgba(17,24,39,0.12);
}

/* ---- Layout breathing room ---- */
#contentContainer {
  padding: 18px 22px 26px 22px;
}
#content {
  padding-right: 10px;
}

/* ---- Make your H3 sections look like “cards” ---- */
.stacks_in.text_stack h3 {
  font-size: 20px;
  margin: 20px 0 10px 0;
  letter-spacing: -0.2px;
}
#stacks_in_174, #stacks_in_176, #stacks_in_178, #stacks_in_179 {
  background: #ffffff;
  border: 1px solid rgba(31,41,55,0.10);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}

/* ---- Improve readability for your inline span styles ---- */
#content span[style*="font-size:16px"] {
  line-height: 1.65;
}

/* ---- Images: responsive + nicer ---- */
img.imageStyle {
  max-width: 100%;
  height: auto !important;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}

/* ---- Footer spacing ---- */
#footer {
  padding: 14px 22px 18px 22px;
  color: rgba(31,41,55,0.6);
}

/* ---- Mobile: simplify spacing ---- */
@media (max-width: 900px) {
  #container { margin: 0; border-radius: 0; }
  #navcontainer { padding: 0 12px; }
  #contentContainer { padding: 12px; }
}

/* ---- Sidebar removed: restore full-width layout ---- */
#sidebarContainer { display: none !important; }
#contentContainer, #content {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
}
#content { padding-left: 0 !important; }

/* -------- News / Blog page styling -------- */

/* Hide the blog sidebar (archives/RSS) to match the homepage */
#sidebarContainer { display: none !important; }

/* Ensure content expands full width when sidebar is hidden */
#contentContainer, #content {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
}

/* Turn each news item into a card */
.blog-entry {
  background: #ffffff;
  border: 1px solid rgba(31,41,55,0.10);
  border-radius: 16px;
  padding: 16px 18px;
  margin: 0 0 16px 0;
  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}

.blog-entry-title {
  font-size: 20px;
  margin: 0 0 6px 0;
  letter-spacing: -0.2px;
}

.blog-entry-title a {
  text-decoration: none;
  color: #111827;
}
.blog-entry-title a:hover {
  text-decoration: underline;
}

.blog-entry-date {
  color: rgba(31,41,55,0.65);
  font-size: 13px;
  margin-bottom: 10px;
}

.blog-entry-body {
  line-height: 1.65;
}

/* Images inside news posts */
.blog-entry-body img {
  max-width: 100%;
  height: auto !important;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
  margin-top: 10px;
}


/* Hero image size limit so it isn’t too tall */
.hero-image {
  max-width: 100%;
  height: auto;
  max-height: 360px; /* limits tall images */
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}
/* Hide the built-in RapidWeaver page header (prevents double title) */
#pageHeader { display: none !important; }

/* ---- Centered hero image (matches content width) ---- */
.hero {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 24px 0 18px 0;
}

.hero-image {
  width: 100%;
  max-width: 1100px;   /* matches container width */
  height: auto;
  max-height: 360px;   /* prevents giant vertical hero */
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 14px 36px rgba(0,0,0,0.18);
}
/* ---- Homepage content layout ---- */
.home-intro { margin-top: 8px; }
.home-mission {
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 14px 0;
  color: rgba(31,41,55,0.92);
}

/* 3 research pillars */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 10px 0 14px 0;
}

.pillar {
  background: #ffffff;
  border: 1px solid rgba(31,41,55,0.10);
  border-radius: 16px;
  padding: 14px 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}

.pillar-title {
  font-weight: 800;
  margin: 0 0 8px 0;
  letter-spacing: -0.2px;
}

.pillar-text {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(31,41,55,0.90);
}

/* crops line + CTA buttons */
.crop-line {
  margin: 6px 0 14px 0;
  color: rgba(31,41,55,0.85);
}

.home-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }

/* reuse your button styles if you already have them; otherwise: */
.btn {
  display: inline-block;
  padding: 9px 14px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  background: rgba(17,24,39,0.10);
  color: #111827;
}
.btn:hover { transform: translateY(-1px); }

.btn--ghost {
  background: transparent;
  border: 1px solid rgba(17,24,39,0.20);
}

/* ---- Homepage news cards ---- */
.home-news { margin-top: 10px; }
.news-item {
  background: #ffffff;
  border: 1px solid rgba(31,41,55,0.10);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
  margin: 0 0 12px 0;
}
.news-title { font-weight: 800; margin-bottom: 6px; }
.news-title a { color: #111827; text-decoration: none; }
.news-title a:hover { text-decoration: underline; }
.news-date { font-size: 13px; color: rgba(31,41,55,0.65); margin-bottom: 8px; }
.news-text { line-height: 1.65; }

.news-footer { margin-top: 6px; }

/* responsive */
@media (max-width: 900px) {
  .pillars { grid-template-columns: 1fr; }
}

/* Make the epigenetic clock image smaller */
#stacks_in_50 img {
  max-width: 65%;
  height: auto;
}
/* ===== PEOPLE PAGE: SIMPLE MODERN POLISH (SAFE) ===== */

/* Space between each row of people */
.com_yourhead_stack_four_columns_stack .s3_row {
  margin: 12px 0 28px 0;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(31,41,55,0.10);
}

/* Headshots: consistent visual size, centered */
.com_yourhead_stack_four_columns_stack img.imageStyle,
.com_yourhead_stack_four_columns_stack img.stacksImage {
  width: 100% !important;
  max-width: 260px !important;  /* adjust 240–300 */
  height: 260px !important;     /* consistent “card-like” look */
  object-fit: cover !important;
  border-radius: 14px;
  display: block;
  margin: 0 auto 10px auto;
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}

/* Names: consistent typography */
.com_yourhead_stack_four_columns_stack .stacks_in.text_stack > span {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  color: #111827 !important;
}

/* Body text: cleaner */
.com_yourhead_stack_four_columns_stack .stacks_in.text_stack {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(17,24,39,0.85);
}

/* Links */
.com_yourhead_stack_four_columns_stack a {
  font-weight: 700;
  text-decoration: none;
}
.com_yourhead_stack_four_columns_stack a:hover {
  text-decoration: underline;
}
/* ===== PEOPLE PAGE: STYLISH IMAGE FRAMING ===== */

/* Wrap image in a soft panel */
.com_yourhead_stack_four_columns_stack .image_stack,
.com_yourhead_stack_four_columns_stack .site_image_stack {
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.9),
    rgba(248,250,252,0.9)
  );
  border-radius: 18px;
  padding: 12px;
  box-shadow:
    0 8px 20px rgba(0,0,0,0.08),
    inset 0 1px 0 rgba(255,255,255,0.6);
  margin-bottom: 10px;
}

/* The actual photo */
.com_yourhead_stack_four_columns_stack img.imageStyle,
.com_yourhead_stack_four_columns_stack img.stacksImage {
  border-radius: 14px;
  display: block;
  width: 100%;
  max-width: 260px;
  height: 260px;
  object-fit: cover;
  margin: 0 auto;
  box-shadow: 0 10px 24px rgba(0,0,0,0.18);
}
/* ===== PEOPLE PAGE: ACCENT RING + HOVER ===== */

/* Soft plant-green accent ring around photo panel */
.com_yourhead_stack_four_columns_stack .image_stack,
.com_yourhead_stack_four_columns_stack .site_image_stack {
  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,0.95),
      rgba(248,250,252,0.95)
    );
  border-radius: 18px;
  padding: 12px;
  box-shadow:
    0 0 0 2px rgba(34, 139, 94, 0.18),   /* plant green ring */
    0 10px 26px rgba(0,0,0,0.10),
    inset 0 1px 0 rgba(255,255,255,0.6);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

/* Headshot itself */
.com_yourhead_stack_four_columns_stack img.imageStyle,
.com_yourhead_stack_four_columns_stack img.stacksImage {
  border-radius: 14px;
  display: block;
  width: 100%;
  max-width: 260px;
  height: 260px;
  object-fit: cover;
  margin: 0 auto;
  box-shadow: 0 10px 24px rgba(0,0,0,0.18);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

/* Hover interaction */
.com_yourhead_stack_four_columns_stack .image_stack:hover,
.com_yourhead_stack_four_columns_stack .site_image_stack:hover {
  transform: translateY(-4px);
  box-shadow:
    0 0 0 2px rgba(34, 139, 94, 0.35),
    0 18px 40px rgba(0,0,0,0.18);
}

.com_yourhead_stack_four_columns_stack .image_stack:hover img,
.com_yourhead_stack_four_columns_stack .site_image_stack:hover img {
  box-shadow: 0 18px 38px rgba(0,0,0,0.22);
}
