/* ─────────────────────────────────────────
   VOICES OF COURAGE — a journalist's own page

   Loaded only by the nine profile pages (sevinj-vagifgizi.html and the
   others, written by tools/build-profiles.js), after style.css and before
   fonts.css and type.css, which stay last on every page.
   Colours, spacing and the three font roles come from their variables; the
   fallbacks after a comma only matter if type.css is ever not loaded.

   The page is a document, not a card: her name, the facts, the portrait at
   full strength, then reading text in one column.
───────────────────────────────────────── */

.pf {
  --pf-measure: 68ch;
  --pf-rule: 1px solid var(--border);
  --pf-read: var(--font-text, var(--font-accent));
  --pf-mono: var(--font-mono, ui-monospace, Menlo, monospace);
  max-width: 1100px;
  margin: 0 auto;
  padding: 7rem var(--space-md) var(--space-lg);
  color: var(--text-primary);
}

.pf a { text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
.pf a:hover { color: var(--amber); }
.pf .btn-primary, .pf .btn-ghost { text-decoration: none; }
.pf .btn-primary:hover { color: #fff; }
/* Its hover background is near-black: crimson text on it would be 2.5:1. */
.pf .btn-ghost:hover { color: var(--paper); }

/* ── the top: name, facts, portrait ─────────────────────────────────────── */

.pf-head {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 3rem;
  align-items: start;
}

.pf-crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.pf-crumbs li + li::before { content: "/"; margin-right: 0.5rem; color: var(--text-muted); }

.pf-tag { color: var(--gold-ink); letter-spacing: 0.14em; }

.pf h1 {
  font-size: clamp(2.5rem, 5.4vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin: 0 0 0.75rem;
}
.pf-h1-alt {
  font-size: 0.5em;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--text-secondary);
  white-space: nowrap;
}

.pf-aka {
  margin: 0 0 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--text-secondary);
}
.pf-aka-label {
  margin-right: 0.5rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.pf-status { margin: 0; }
.pf-badge {
  display: inline-block;
  padding: 0.4em 0.9em;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
/* No longer held: neither the sentenced nor the on-trial colour. */
.pf-badge:not([class*="status-"]) { background: var(--gunmetal); color: #fff; }

.pf-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem 2rem;
  margin: 1.75rem 0 0;
  padding-top: 1.5rem;
  border-top: var(--pf-rule);
}
.pf-fact dt {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.pf-fact dd { margin: 0.15rem 0 0; line-height: 1.45; }
.pf-fact time,
.pf-days {
  font-family: var(--pf-mono);
  font-size: 0.9375rem;
  font-weight: 400;
  letter-spacing: 0;
}
/* .card-days is the hook app.js fills in; on a card it is a small flex row. */
.pf-days { display: block; margin: 0.15rem 0 0; color: var(--ember); }

.pf-portrait { margin: 0; }
.pf-portrait img {
  width: 100%;
  height: auto;
  border: var(--pf-rule);
  border-radius: 4px;
  background: var(--snow);
}

/* ── the reading column and the contents list beside it ─────────────────── */

.pf-layout {
  display: grid;
  grid-template-columns: minmax(0, var(--pf-measure)) minmax(0, 1fr);
  gap: 4rem;
  align-items: start;
  margin-top: 3.5rem;
}
/* The list comes first in the page so that on a narrow screen it sits above
   the text; here it moves to the right and stays in view while reading. */
.pf-main { order: 1; min-width: 0; }
.pf-aside {
  order: 2;
  position: sticky;
  top: 6.5rem;
  padding-left: 2rem;
  border-left: var(--pf-rule);
}
.pf-toc h2 {
  margin: 0 0 0.9rem;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.pf-toc ol { list-style: none; margin: 0; padding: 0; }
.pf-toc li + li { margin-top: 0.55rem; }
.pf-toc a { font-size: 0.9375rem; line-height: 1.35; text-decoration: none; }
.pf-toc a:hover { text-decoration: underline; }
.pf-aside-action { margin-top: 1.75rem; }

/* ── reading text ───────────────────────────────────────────────────────── */

.pf-body {
  font-family: var(--pf-read);
  font-size: var(--type-read, 1.0625rem);
  line-height: var(--type-leading, 1.6);
}
.pf-body p { margin: 0 0 1.1rem; }
/* The lead paragraph. Not :first-child — a hidden heading comes first. */
.pf-body > p:first-of-type { font-size: 1.25rem; line-height: 1.5; }
.pf-body h2 { font-size: 1.55rem; margin: 2.5rem 0 0.75rem; }
.pf-body a { color: var(--amber); }

/* style.css gives every <section> the padding of a full-width band. */
.pf-section {
  margin-top: 3.5rem;
  padding: 2rem 0 0;
  border-top: var(--pf-rule);
}
.pf-section > h2,
.pf-nine > h2 { font-size: 1.75rem; margin: 0 0 1.25rem; }

.pf-note { margin: -0.5rem 0 1rem; font-size: 0.875rem; color: var(--text-muted); }

.pf-more { margin: 1.5rem 0 0; font-size: 0.9375rem; font-weight: 600; }
.pf-more a { color: var(--amber); text-decoration: none; }
.pf-more a:hover { text-decoration: underline; }

/* ── her words ──────────────────────────────────────────────────────────── */

.pf-letter { margin: 0 0 2rem; }
.pf-letter blockquote {
  margin: 0;
  padding-left: 1.25rem;
  border-left: 3px solid var(--amber);
}
.pf-letter blockquote p {
  margin: 0;
  font-family: var(--pf-read);
  font-style: italic;
  font-size: 1.1875rem;
  line-height: 1.5;
}
.pf-letter figcaption {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  margin: 0.7rem 0 0 1.25rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-secondary);
}
.pf-letter-authors { flex-basis: 100%; font-weight: 600; color: var(--text-primary); }
.pf-letter figcaption a { color: var(--amber); }

/* ── case updates ───────────────────────────────────────────────────────── */

.pf-news { list-style: none; margin: 0; padding: 0; }
.pf-news-item { padding: 1.4rem 0; border-top: 1px solid var(--border-light); }
.pf-news-item:first-child { padding-top: 0; border-top: 0; }
.pf-meta { margin: 0; font-size: 0.8125rem; line-height: 1.4; color: var(--text-muted); }
.pf-meta time { font-family: var(--pf-mono); }
.pf-category {
  margin-left: 0.75rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-ink);
}
.pf-news-item h3 {
  margin: 0.4rem 0 0.5rem;
  font-family: var(--font-heading);
  font-size: 1.3125rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.pf-news-item > p:not(.pf-meta):not(.pf-source) {
  margin: 0;
  font-family: var(--pf-read);
  font-size: var(--type-read-small, 1rem);
  line-height: var(--type-leading-small, 1.55);
  color: var(--text-secondary);
}
.pf-source { margin: 0.6rem 0 0; font-size: 0.875rem; }
.pf-source a { color: var(--amber); text-decoration: none; }
.pf-source a:hover { text-decoration: underline; }

/* ── timeline ───────────────────────────────────────────────────────────── */

.pf-timeline { list-style: none; margin: 0; padding: 0; }
.pf-timeline li {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: 1rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--border-light);
  line-height: 1.5;
}
.pf-timeline li:first-child { border-top: 0; padding-top: 0; }
.pf-timeline time { font-family: var(--pf-mono); font-size: 0.8125rem; color: var(--text-muted); padding-top: 0.15rem; }
.pf-timeline strong { display: block; }
.pf-timeline span { color: var(--text-secondary); font-size: 0.9375rem; }

/* ── video, links ───────────────────────────────────────────────────────── */

.pf-videos, .pf-links { list-style: none; margin: 0; padding: 0; }
.pf-videos li + li { margin-top: 1.25rem; }
.pf-video-title { margin: 0; font-family: var(--font-heading); font-size: 1.1875rem; line-height: 1.3; }
.pf-channel { display: block; font-family: var(--font-body); font-size: 0.8125rem; color: var(--text-muted); }
.pf-videos li > p:not(.pf-video-title) { margin: 0.35rem 0 0; color: var(--text-secondary); font-size: 0.9375rem; line-height: 1.5; }

.pf-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; font-size: 0.9375rem; }

/* ── the Azerbaijani summary ────────────────────────────────────────────── */

.pf-az p:not(.pf-more) {
  margin: 0;
  font-family: var(--pf-read);
  font-size: var(--type-read, 1.0625rem);
  line-height: var(--type-leading, 1.6);
}

/* ── take action ────────────────────────────────────────────────────────── */

.pf-section#pf-act { border-top: 3px solid var(--amber); }
#pf-act > p:not(.pf-actions) { margin: 0 0 1.5rem; font-family: var(--pf-read); font-size: var(--type-read, 1.0625rem); line-height: var(--type-leading, 1.6); }
.pf-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 0; }

/* ── the nine ───────────────────────────────────────────────────────────── */

.pf-nine { margin-top: 4.5rem; padding-top: 2rem; border-top: var(--pf-rule); }
.pf-nine ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.pf-nine li { line-height: 1.3; }
.pf-nine li a { font-family: var(--font-heading); font-size: 1.1875rem; font-weight: 600; text-decoration: none; }
.pf-nine li a:hover { text-decoration: underline; }
.pf-nine li a[aria-current="page"] { color: var(--amber); }
.pf-nine li span { display: block; margin-top: 0.15rem; font-size: 0.8125rem; color: var(--text-muted); }

/* ── narrower screens ───────────────────────────────────────────────────── */

@media (max-width: 1000px) {
  .pf-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .pf-aside {
    order: 0;
    position: static;
    margin-bottom: 2.25rem;
    padding: 0 0 1.5rem;
    border-left: 0;
    border-bottom: var(--pf-rule);
  }
  .pf-toc ol { display: flex; flex-wrap: wrap; gap: 0 1.4rem; }
  .pf-toc li + li { margin-top: 0; }
  /* A row of short links under a thumb: each gets the height of a finger. */
  .pf-toc a { display: inline-block; padding: 0.45rem 0; }
  /* The sticky bar at the foot of the screen already carries the call to act. */
  .pf-aside-action { display: none; }
  .pf-main { max-width: var(--pf-measure); }
}

@media (max-width: 860px) {
  .pf { padding-top: 6rem; }
  .pf-head { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .pf-portrait { max-width: 26rem; }
  .pf-nine ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .pf { padding-left: 1.25rem; padding-right: 1.25rem; }
  .pf-h1-alt { display: block; margin-top: 0.35rem; white-space: normal; }
  .pf-facts { gap: 1rem 1.25rem; }
  .pf-timeline li { grid-template-columns: minmax(0, 1fr); gap: 0.15rem; }
  .pf-timeline time { padding-top: 0; }
  .pf-nine ul { grid-template-columns: minmax(0, 1fr); }
  .pf-actions > a { flex: 1 1 100%; text-align: center; }
}
