/* Member profile. Public records page in the roster's register: hairlines,
   one type family, gold only for focus and links on hover, colour only for
   real state (online, vacation, bad behaviour, promotion/demotion). */
.pf { max-width: var(--admin-max, 1400px); margin: 0 auto; padding: 36px var(--page-pad, 40px) 72px; background: var(--page); color: var(--ink-2); font: var(--fs-base)/1.5 var(--font-sans); }
.pf * { box-sizing: border-box; }
.pf :is(a, button):focus-visible { outline: 2px solid var(--sapd-gold); outline-offset: 3px; }
.pf h1, .pf h2, .pf h3, .pf p, .pf dl, .pf dd { margin: 0; }

/* ── Identity ── */
.pf-head { display: flex; align-items: center; gap: 24px; padding-bottom: 28px; }
.pf-avatar { position: relative; width: 88px; height: 88px; flex: none; display: grid; place-items: center; overflow: hidden; border-radius: var(--r); background: var(--page-3); color: var(--ink-3); font: 600 28px/1 var(--font-condensed); }
.pf-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pf-id { min-width: 0; }
.pf-rank { font-size: var(--fs-sm); color: var(--ink-3); }
.pf-head h1 { margin: 2px 0 8px; font: 600 clamp(34px, 3.4vw, 46px)/1 var(--font-condensed); letter-spacing: -.01em; color: var(--ink); overflow-wrap: anywhere; }
.pf-code { color: var(--ink-3); font-weight: 500; }
.pf-line { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: var(--fs-sm); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.pf-online { color: var(--ink); }
.pf-online::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: var(--r); background: var(--green); vertical-align: 1px; }
.pf-vacation { color: var(--amber); }

/* ── Facts: one ruled row of label/value pairs, not cards ── */
.pf-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border-top: 1px solid var(--rule-strong); border-bottom: 1px solid var(--rule); }
.pf-facts > div { padding: 14px 20px 14px 0; }
.pf-facts dt { font-size: var(--fs-xs); color: var(--ink-3); }
.pf-facts dd { margin-top: 4px; font-size: var(--fs-md); color: var(--ink); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.pf-facts dd.is-empty { color: var(--ink-4); }

/* ── Sections ── */
.pf-sec { margin-top: 56px; }
.pf-sec-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; padding-bottom: 12px; border-bottom: 1px solid var(--rule-strong); }
.pf-sec-head h2 { font: 600 var(--fs-2xl)/1.1 var(--font-condensed); color: var(--ink); }
.pf-sec-head p { font-size: var(--fs-sm); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.pf-link { display: inline-flex; align-items: center; gap: 10px; min-height: 36px; padding: 0; border: 0; background: none; color: var(--ink); font: 500 var(--fs-sm)/1.2 var(--font-sans); text-decoration: underline; text-decoration-color: var(--rule-strong); text-underline-offset: 6px; cursor: pointer; transition: text-decoration-color .14s ease-out; }
.pf-link:hover { text-decoration-color: var(--sapd-gold); }
.pf-link span { color: var(--ink-3); text-decoration: none; }
.pf-more { margin-top: 14px; }
.pf-more[aria-expanded="true"] span { display: inline-block; rotate: 180deg; }
.pf-empty { margin-top: 40px; font-size: var(--fs-sm); color: var(--ink-3); }
.pf-all { margin-top: 12px; }
.pf-forum { min-height: 0; }

/* Patrols and trainings side by side on wide screens. */
.pf-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 72px; }
.pf-duo > .pf-sec:only-child { grid-column: 1 / -1; max-width: 820px; }

/* ── Feed: one readable line per item, not a grid of columns ──
   date | sentence (with a muted detail line) | report link */
.pf-feed { list-style: none; margin: 0; padding: 0; }
/* Patrol and training rows are one link each; activity rows are not links. */
.pf-feed li { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; align-items: baseline; gap: 0 18px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.pf-feed li[hidden] { display: none; }
.pf-when { font-size: var(--fs-sm); color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pf-what { font-size: var(--fs-md); line-height: 1.45; color: var(--ink-2); min-width: 0; }
.pf-what b { font-weight: 600; color: var(--ink); }
.pf-meta { display: block; margin-top: 2px; font-size: var(--fs-sm); color: var(--ink-3); }
.pf-meta.is-bad { color: var(--red); }
.pf-ref { font-size: var(--fs-sm); color: var(--ink-2); font-variant-numeric: tabular-nums; text-decoration: underline; text-decoration-color: var(--rule-strong); text-underline-offset: 4px; transition: text-decoration-color .14s ease-out, color .14s ease-out; }
.pf-feed--links li { display: block; padding: 0; }
.pf-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; align-items: baseline; gap: 0 18px; padding: 14px 10px; margin: 0 -10px; color: inherit; text-decoration: none; transition: background-color .14s ease-out; }
.pf-row:hover { background: var(--page-3); }
.pf-row:hover .pf-ref { color: var(--ink); text-decoration-color: var(--sapd-gold); }
.pf-row:focus-visible { outline: 2px solid var(--sapd-gold); outline-offset: -2px; }

/* Wall of shame: only rendered when there is an entry, right under the
   officer's details. Red is limited to the heading and each reason. */
.pf-shame { margin-top: 44px; }
.pf-shame .pf-sec-head h2 { color: var(--red); }
.pf-note { margin: 12px 0 0; font-size: var(--fs-sm); color: var(--ink-3); }
.pf-shame-kind { margin: 30px 0 4px; font: 600 var(--fs-xs)/1.3 var(--font-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.pf-shame-kind span { margin-left: 6px; font-weight: 400; letter-spacing: 0; }
.pf-shame .pf-meta.is-bad { font-weight: 600; }
.pf-quote { display: block; margin-top: 4px; font-size: var(--fs-sm); color: var(--ink-2); font-style: italic; }

/* Activity: the same line, without a report link, kept to a readable width. */
.pf-log { max-width: 820px; }
.pf-log li { grid-template-columns: 96px minmax(0, 1fr); }
.pf-event { color: var(--ink); font-weight: 500; }
.pf-event.is-up { color: var(--green); }
.pf-event.is-down { color: var(--amber); }
.pf-detail { display: block; margin-top: 2px; font-size: var(--fs-sm); color: var(--ink-2); }

@media (max-width: 1100px) {
  .pf-duo { grid-template-columns: 1fr; }
  .pf-duo > .pf-sec:only-child { max-width: none; }
}
@media (max-width: 760px) {
  .pf { padding: 24px var(--page-pad-sm, 16px) 56px; }
  .pf-head { gap: 16px; padding-bottom: 22px; }
  .pf-avatar { width: 64px; height: 64px; font-size: 22px; }
  .pf-facts { grid-template-columns: 1fr 1fr; }
  .pf-sec { margin-top: 44px; }
  /* Phone: the date moves above the sentence. */
  .pf-feed li, .pf-row { grid-template-columns: minmax(0, 1fr) auto; gap: 2px 14px; }
  .pf-feed .pf-when { grid-column: 1 / -1; }
  .pf-log li { grid-template-columns: 1fr; }
}
