/* =============================================
   INNER PAGES — SHARED STYLES
   ============================================= */

.page-header {
  background: var(--ink);
  padding: var(--sp-16) var(--sp-8) var(--sp-12);
}
.page-header .section-label { color: rgba(255,255,255,0.4); }
.page-header h1 {
  color: var(--white);
  font-size: clamp(var(--text-2xl), 5vw, var(--text-3xl));
  margin-bottom: var(--sp-3);
}
.page-header p {
  color: rgba(255,255,255,0.55);
  max-width: 600px;
  font-size: var(--text-md);
}

.page-body {
  max-width: 1100px;
  margin: 0 auto;
  padding: var(--sp-12) var(--sp-8) var(--sp-20);
}

/* ---- CARD GRID ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--sp-4);
}
.card {
  background: var(--cream);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  padding: var(--sp-5) var(--sp-6);
  transition: all var(--transition);
}
.card:hover { box-shadow: var(--shadow); }
.card-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--sp-2);
}
.card-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--sp-2);
}
.card-body {
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.6;
}

/* ---- MODULE SIDEBAR LAYOUT ---- */
.two-col {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - 200px);
}
.sidebar {
  border-right: 1px solid var(--rule);
  padding: var(--sp-6) var(--sp-4);
  position: sticky;
  top: 56px;
  height: calc(100vh - 56px);
  overflow-y: auto;
  background: var(--cream);
}
.sidebar-heading {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--rule);
}
.content-area {
  padding: var(--sp-10) var(--sp-10) var(--sp-16);
  overflow-y: auto;
}

@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; }
  .sidebar {
    position: static;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--rule);
  }
  .content-area { padding: var(--sp-6) var(--sp-5) var(--sp-12); }
}
