/*!
 * cluster-pages.css — shared styles for the 16-silo authority cluster.
 * Applied to every page generated by tools/build-cluster-page.cjs.
 */

/* ---------- Body / page chrome ---------- */
.cluster-page {
  background: #f8f8f6;
  color: #0b0b0b;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  line-height: 1.65;
}
.cluster-page img { max-width: 100%; height: auto; display: block; }

/* ---------- Breadcrumb ---------- */
.cluster-breadcrumb {
  background: #F8FAFC;
  border-bottom: 1px solid #E2E8F0;
  padding: 0.6rem 0;
  font-size: 0.84rem;
}
.cluster-breadcrumb a    { color: #8a6321; text-decoration: none; }
.cluster-breadcrumb a:hover { text-decoration: underline; }
.cluster-breadcrumb strong { color: #0F172A; font-weight: 600; }

/* ---------- Hero ---------- */
.cluster-hero {
  padding: 3rem 0 2.5rem;
  background: linear-gradient(180deg, #fbf8f1 0%, #ffffff 100%);
  border-bottom: 1px solid rgba(184,137,61,0.15);
}
.cluster-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
.cluster-hero h1 {
  font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  font-size: clamp(1.85rem, 3.5vw, 2.6rem);
  line-height: 1.15;
  color: #0F172A;
  margin: 0 0 0.85rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.cluster-hero-sub {
  color: #334155;
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  margin: 0 0 1rem;
  line-height: 1.6;
}
.cluster-hero-points {
  margin: 1rem 0 1.5rem;
  padding: 0;
  list-style: none;
}
.cluster-hero-points li {
  position: relative;
  padding: 0.35rem 0 0.35rem 1.6rem;
  color: #0F172A;
  font-size: 0.95rem;
}
.cluster-hero-points li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0.45rem;
  color: #8a6321;
  font-weight: 800;
  font-size: 0.9rem;
  background: #f3e9d2;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cluster-hero-cta { margin-top: 1rem; }
.cluster-cta-primary {
  display: inline-block;
  background: linear-gradient(135deg, #0a0e17, #131a28);
  color: #f3e9d2 !important;
  padding: 0.85rem 1.75rem;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(15,23,36,0.15);
  border: 1px solid rgba(184,137,61,0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cluster-cta-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(15,23,36,0.25);
}
.cluster-hero-media img {
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.15);
  object-fit: cover;
  /* When a portrait photo is rendered in a landscape hero, keep the
   * head at the top of the visible area instead of cropping the
   * forehead.  Safe for landscape images too — it just biases the
   * focal point a little upward.  */
  object-position: center top;
}
.cluster-hero-figure {
  margin: 0;
}
.cluster-hero-figure img {
  width: 100%;
  /* Let portrait founder/team photos breathe instead of getting
   * crammed into a 1200x750 landscape box.  Max-height keeps the
   * hero from dominating the viewport.  */
  height: auto;
  max-height: 560px;
  object-fit: contain;
  background: #FAF6EC;
  display: block;
}
.cluster-hero-caption {
  margin-top: 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #475569;
}
.cluster-hero-caption-text {
  font-weight: 600;
  color: #0F172A;
  letter-spacing: 0.01em;
}
.cluster-hero-caption-credit {
  font-style: italic;
  font-size: 0.72rem;
  color: #6B7280;
}
.cluster-hero-gfx {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Sections ---------- */
.cluster-section {
  padding: 2.5rem 0;
  border-bottom: 1px solid #E5E7EB;
}
.cluster-section:nth-child(even of .cluster-section) { background: #F8FAFC; }
.cluster-h2 {
  font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  color: #0F172A;
  margin: 0 0 0.65rem;
  font-weight: 700;
  line-height: 1.2;
}
.cluster-sub {
  color: #475569;
  font-size: 1rem;
  margin: 0 0 1.25rem;
  max-width: 920px;
  line-height: 1.6;
}
.cluster-body {
  font-size: 1rem;
  color: #1E293B;
  line-height: 1.7;
  max-width: 920px;
}
.cluster-body p { margin: 0 0 1rem; }
.cluster-body strong { color: #0F172A; }
.cluster-body a { color: #8a6321; }

.cluster-list {
  margin: 1rem 0;
  padding: 0 0 0 1.1rem;
  color: #334155;
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 920px;
}
.cluster-list li { margin-bottom: 0.4rem; }

/* ---------- Tables ---------- */
.cluster-table-wrap {
  overflow-x: auto;
  margin: 1.25rem 0 1.5rem;
  border-radius: 12px;
  border: 1px solid #E2E8F0;
}
.cluster-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  background: #FFFFFF;
}
.cluster-table th {
  background: #0a0e17;
  color: #f3e9d2;
  text-align: left;
  padding: 0.65rem 0.85rem;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.cluster-table td {
  padding: 0.6rem 0.85rem;
  border-bottom: 1px solid #E2E8F0;
  color: #0F172A;
  vertical-align: top;
}
.cluster-table tr:nth-child(even) td { background: #F8FAFC; }
.cluster-table tr:last-child td      { border-bottom: none; }
.cluster-table strong { color: #8a6321; }

/* ---------- Cards ---------- */
.cluster-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin: 1.25rem 0;
}
.cluster-card {
  padding: 1.25rem 1.35rem;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cluster-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}
.cluster-card-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #f3e9d2, #faf2dc);
  border: 1px solid rgba(184,137,61,0.25);
  border-radius: 50%;
  margin-bottom: 0.5rem;
  color: #8a6321;
}
.cluster-card-photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 0.85rem;
  border: 3px solid #FAF6EC;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(184,137,61,0.4);
  background: #F1F5F9;
}
.cluster-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Founder portrait is taller than wide (1420x1776).  Pull the crop
   * window up so the head is fully visible inside the circle.  */
  object-position: center 12%;
  display: block;
}
.cluster-card-has-photo {
  padding-top: 1.35rem;
}
.cluster-card-has-photo h3 {
  font-size: 1.1rem;
}
.cluster-card-subtitle {
  margin: -0.15rem 0 0.5rem;
  font-size: 0.78rem;
  color: #8a6321;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.cluster-card-meta {
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px dashed #E5E7EB;
  font-size: 0.78rem;
  color: #475569;
  line-height: 1.55;
}
.cluster-card-meta a {
  color: #B8893D;
  font-weight: 600;
  text-decoration: none;
}
.cluster-card-meta a:hover {
  text-decoration: underline;
}
.cluster-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  color: #0F172A;
  font-weight: 700;
}
.cluster-card p {
  margin: 0;
  font-size: 0.88rem;
  color: #475569;
  line-height: 1.55;
}

/* ---------- Callouts ---------- */
.cluster-callout {
  margin: 1.25rem 0;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  border: 1px solid;
  font-size: 0.92rem;
  line-height: 1.6;
  max-width: 920px;
}
.cluster-callout strong { display: block; margin-bottom: 0.3rem; font-size: 0.95rem; }
.cluster-callout-info    { background: #fbf8f1; border-color: rgba(184,137,61,0.25); color: #0a0e17; }
.cluster-callout-success { background: #ECFDF5; border-color: #6EE7B7; color: #065F46; }
.cluster-callout-warning { background: #FEF3C7; border-color: #FCD34D; color: #92400E; }
.cluster-callout-danger  { background: #FEF2F2; border-color: #FCA5A5; color: #991B1B; }

/* ---------- Figure ---------- */
.cluster-fig {
  margin: 1.25rem 0;
}
.cluster-fig img {
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}
.cluster-fig figcaption {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #64748B;
  text-align: center;
  font-style: italic;
}

/* ---------- CTA links inside body ---------- */
.cluster-cta-block { margin: 1rem 0; }
.cluster-cta-link {
  display: inline-block;
  padding: 0.55rem 1.1rem;
  background: linear-gradient(135deg, #b8893d, #8a6321);
  color: #f8f8f6 !important;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.92rem;
}
.cluster-cta-link:hover { box-shadow: 0 4px 12px rgba(184,137,61,0.35); }

/* ---------- FAQ ---------- */
.cluster-faq-section {
  padding: 2.5rem 0;
  background: #F8FAFC;
  border-bottom: 1px solid #E5E7EB;
}
.cluster-faq {
  max-width: 1080px;
  background: #FFFFFF;
  border-radius: 14px;
  border: 1px solid #E2E8F0;
  padding: 0.5rem 1.5rem;
}
.cluster-faq details {
  padding: 1rem 0;
  border-bottom: 1px solid #E2E8F0;
}
.cluster-faq details:last-child { border-bottom: none; }
.cluster-faq summary {
  font-weight: 600;
  color: #0F172A;
  cursor: pointer;
  font-size: 0.98rem;
  padding: 0.25rem 0;
  list-style: none;
  position: relative;
  padding-right: 1.5rem;
}
.cluster-faq summary::-webkit-details-marker { display: none; }
.cluster-faq summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 0;
  font-size: 1.4rem;
  color: #b8893d;
  font-weight: 300;
  transition: transform 0.2s ease;
}
.cluster-faq details[open] summary::after { transform: rotate(45deg); }
.cluster-faq p {
  margin: 0.65rem 0 0;
  color: #475569;
  line-height: 1.65;
  font-size: 0.93rem;
}

/* ---------- Related rail ---------- */
.cluster-related-section {
  padding: 2.5rem 0;
  background: #FFFFFF;
  border-bottom: 1px solid #E5E7EB;
}
.cluster-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.cluster-related-card {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1rem 1.25rem;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  color: #0F172A;
  text-decoration: none;
  transition: all 0.2s ease;
}
.cluster-related-card:hover {
  border-color: #b8893d;
  background: #fbf8f1;
  transform: translateY(-2px);
}
.cluster-related-card strong { color: #0F172A; font-size: 0.95rem; }
.cluster-related-card span   { color: #64748B; font-size: 0.84rem; }

/* ---------- Final CTA strip ---------- */
.cluster-final-cta {
  padding: 3rem 0;
  background: linear-gradient(180deg, #0a0e17, #131a28);
  color: #f3e9d2;
  text-align: center;
  border: 1px solid rgba(184,137,61,0.18);
  border-radius: 14px;
}
.cluster-final-cta h2 {
  font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  color: #f3e9d2;
  margin: 0 0 0.65rem;
}
.cluster-final-cta p {
  color: rgba(243,233,210,0.78);
  font-size: 1rem;
  max-width: 720px;
  margin: 0 auto 1.5rem;
}
.cluster-final-cta .cluster-cta-primary {
  background: linear-gradient(135deg, #b8893d, #8a6321);
  color: #f8f8f6 !important;
  box-shadow: 0 6px 18px rgba(184,137,61,0.35);
  border: none;
}
.cluster-final-cta .cluster-cta-primary:hover { box-shadow: 0 8px 24px rgba(184,137,61,0.5); }
.cluster-final-trust {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: rgba(243,233,210,0.60);
}
.cluster-final-trust a { color: #d4b170; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .cluster-hero-grid { grid-template-columns: 1fr; }
  .cluster-hero { padding: 2rem 0 1.5rem; }
  .cluster-hero-media img { max-height: 320px; }
  .cluster-section { padding: 2rem 0; }
}
@media (max-width: 600px) {
  .cluster-cards, .cluster-related-grid { grid-template-columns: 1fr; }
  .cluster-faq { padding: 0.25rem 1rem; }
}
