/* ============================================================
   profile-pages.css — Freedom History Project
   Extends style.css with the profile page layout.
   Place at: D:\xampp\htdocs\freedom\assets\css\profile-pages.css
   Link from header.php after style.css, OR include inline.
   ============================================================ */

/* ── 2-column layout wrapper ──────────────────────────────── */
.profile-layout { background: var(--white); }
.profile-layout-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(40px, 5vw, 72px) clamp(20px, 4vw, 40px);
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: clamp(40px, 5vw, 72px);
  align-items: start;
}

/* ── Body column ──────────────────────────────────────────── */
.profile-body-col { min-width: 0; }

/* Override the global .profile-body max-width for 2-col layout */
.profile-body-col .profile-body {
  max-width: 100%;
  margin: 0;
  padding: 0;
}

/* ── Sections ─────────────────────────────────────────────── */
.pb-section {
  margin-bottom: clamp(36px, 4.5vw, 58px);
  padding-bottom: clamp(36px, 4.5vw, 58px);
  border-bottom: 1px solid var(--border);
}
.pb-section:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.pb-section h2 {
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  font-weight: 900;
  color: var(--black);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

.pb-section p {
  font-size: clamp(.9rem, 1.35vw, .99rem);
  line-height: 1.9;
  color: var(--dark-grey);
  margin-bottom: 18px;
}
.pb-section p:last-child { margin-bottom: 0; }

/* ── Further reading ──────────────────────────────────────── */
.pb-reading ul {
  list-style: none;
  padding: 0;
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pb-reading ul li {
  font-size: .87rem;
  line-height: 1.65;
  color: var(--dark-grey);
  padding-left: 18px;
  position: relative;
}
.pb-reading ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* ── Sidebar ──────────────────────────────────────────────── */
.profile-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 16px);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ps-block {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  padding: 20px 18px;
  margin-bottom: 2px;
}

.ps-dark {
  background: var(--black);
  border-top-color: var(--charcoal);
}

.ps-heading {
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--charcoal);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

/* Facts list */
.ps-facts {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.ps-facts li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  font-size: .76rem;
}
.ps-facts li:last-child { border-bottom: none; }
.psf-label {
  font-size: .59rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mid-grey);
  flex-shrink: 0;
}
.psf-val {
  color: var(--charcoal);
  text-align: right;
  line-height: 1.4;
}

/* Timeline */
.ps-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  list-style: none;
  padding: 0;
}
.ps-timeline li {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: .74rem;
  line-height: 1.5;
}
.ps-timeline li:last-child { border-bottom: none; }
.pst-year {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .76rem;
  color: var(--accent);
  flex-shrink: 0;
}
.pst-event { color: var(--dark-grey); }

/* Related links */
.ps-related {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.ps-related li { border-bottom: 1px solid var(--border); }
.ps-related li:last-child { border-bottom: none; }
.ps-related a {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 9px 0;
  font-size: .8rem;
  font-weight: 600;
  color: var(--charcoal);
  text-decoration: none;
  transition: color .18s, padding-left .18s;
}
.ps-related a:hover { color: var(--accent); padding-left: 4px; }
.ps-related span {
  font-size: .62rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--mid-grey);
  font-weight: 400;
}

/* Dark sidebar blockquote */
.ps-dark blockquote p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: .88rem;
  color: rgba(255,255,255,.82);
  line-height: 1.65;
  margin-bottom: 10px;
}
.ps-dark blockquote cite {
  font-size: .6rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  font-style: normal;
}
.ps-dark .ps-heading {
  color: rgba(255,255,255,.45);
  border-color: rgba(255,255,255,.08);
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1000px) {
  .profile-layout-inner { grid-template-columns: 1fr 260px; }
}
@media (max-width: 768px) {
  .profile-layout-inner { grid-template-columns: 1fr; }
  .profile-sidebar { position: static; }
}
