/* ==========================================================================
   Ageless – skin_content.css
   Layout styles for Content.ascx (inner content pages)
   ========================================================================== */

.content-layout {
  background-color: #FDF8F3;
  color: #2D2A3D;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---------- Purple banner ---------- */
.content-banner {
  background-color: #3F2A5E;
  padding: 3.5rem 0;
}

.content-banner-inner {
  max-width: 96rem; /* screen-2xl */
  margin: 0 auto;
  padding: 0 2rem;
}

.content-banner-pane {
  max-width: 48rem; /* ~3xl */
}

/* Banner HTML module helpers (optional classes for module content) */
.content-banner-pane .banner-eyebrow,
.content-banner .banner-eyebrow {
  color: #C8B8E8;
  font-size: 0.75rem;
  letter-spacing: 2.5px;
  font-weight: 500;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.content-banner-pane h1,
.content-banner .banner-title {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  color: #ffffff;
  font-size: 3rem;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0;
}

@media (min-width: 768px) {
  .content-banner-pane h1,
  .content-banner .banner-title {
    font-size: 3.75rem;
  }
}

.content-banner-pane p,
.content-banner .banner-lead {
  margin-top: 1rem;
  font-size: 1.125rem;
  color: #C8B8E8;
  line-height: 1.6;
}

/* ---------- Main column ---------- */
.content-main {
  flex-grow: 1;
}

.content-main-inner {
  max-width: 96rem;
  margin: 0 auto;
  padding: 3.5rem 2rem 2rem;
}

.content-main-center {
  max-width: 56rem; /* ~4xl */
  margin: 0 auto;
}

/* ---------- Prose in ContentPane ---------- */
.content-layout .prose-custom {
  font-size: 15.2px;
  color: #403B4E;
}

.content-layout .prose-custom p {
  margin-bottom: 1.1em;
  line-height: 1.75;
}

.content-layout .prose-custom p.lead,
.content-layout .prose-custom .lead {
  font-size: 1.25rem;
  line-height: 1.65;
  color: #2D2A3D;
}

.content-layout .prose-custom h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.35rem;
  margin-top: 2em;
  margin-bottom: 0.6em;
  color: #3F2A5E;
}

.content-layout .prose-custom strong {
  color: #2D2A3D;
  font-weight: 600;
}

/* ---------- Card editor section ---------- */
.content-cards {
  max-width: 96rem;
  margin: 0 auto;
  padding: 1.5rem 2rem 1.25rem;
}

.content-cards-inner {
  max-width: 56rem;
  margin: 0 auto;
}

.content-cards-eyebrow {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 2px;
  color: #6B5B95;
  font-weight: 600;
  margin-bottom: 1rem;
}

.content-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .content-cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.content-card {
  background: #ffffff;
  border: 1px solid #EDE4D8;
  border-radius: 1.5rem;
  padding: 1.75rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.content-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgb(107 91 149 / 0.1);
}

.content-card.is-draft {
  opacity: 0.55;
  border-style: dashed;
}

.content-card-sort {
  float: right;
  font-size: 0.7rem;
  color: #6B5B95;
  opacity: 0.7;
}

.content-card-icon {
  display: block;
  font-size: 1.875rem;
  color: #6B5B95;
  margin-bottom: 1rem;
}

.content-card-title {
  font-weight: 600;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: #2D2A3D;
}

.content-card-body {
  font-size: 0.875rem;
  color: #524B5E;
  line-height: 1.55;
}

.content-card-actions {
  margin-top: 1rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Admin panel (cream surface – matches trustees editor on light pages) */
.content-cards-admin {
  margin-top: 2.5rem;
  background: #F8F1E9;
  border: 1px solid #EDE4D8;
  border-radius: 1.25rem;
  padding: 1.5rem;
}

.content-cards-admin-label {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.75rem;
  color: #6B5B95;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.content-cards-admin-label span {
  opacity: 0.6;
  font-weight: 500;
}

.content-cards-admin label {
  display: block;
  font-size: 0.75rem;
  color: #524B5E;
  margin-bottom: 0.75rem;
}

.content-cards-admin input[type="text"],
.content-cards-admin input[type="number"],
.content-cards-admin textarea {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.65rem 0.85rem;
  border-radius: 0.75rem;
  border: 1px solid #EDE4D8;
  background: #ffffff;
  color: #2D2A3D;
  font-size: 0.9rem;
  font-family: inherit;
  box-sizing: border-box;
}

.content-cards-admin-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 0.75rem;
}

@media (max-width: 640px) {
  .content-cards-admin-row {
    grid-template-columns: 1fr;
  }
}

.content-cards-admin-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 0.5rem;
}

.content-cards-admin-hint {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: #665E72;
}

.content-cards-admin-hint code {
  font-size: 0.7rem;
  background: rgba(0, 0, 0, 0.04);
  padding: 0.1rem 0.35rem;
  border-radius: 0.25rem;
}

/* Admin buttons (shared look with trustees) */
.content-cards .t-btn,
.content-card-actions .t-btn {
  background: #F3E8FF;
  color: #3F2A5E;
  border: 1px solid #E0D0F0;
  border-radius: 0.5rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
}

.content-cards .t-btn-primary {
  background: #6B5B95;
  color: #ffffff;
  border: none;
  padding: 0.6rem 1.25rem;
  font-weight: 600;
}

.content-cards .t-btn-danger {
  background: #ffffff;
  color: #bb4444;
  border: 1px solid #f0c0c0;
}

.content-cards-error {
  background: rgba(180, 40, 40, 0.12);
  border: 1px solid #f0c0c0;
  color: #7A2035;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
}

/* ---------- LowerContent: intentionally unstyled ---------- */
/* Style modules here with DNN containers only. */

