/* Public person page (/p/<name>) and its not-found page. Rendered by src/server/profile/page-html.ts.
   Palette and type as the rest of hr.world: black, white, warm grays, Montserrat. No blue. */

:root {
  --ink: #1c1c1c;
  --paper: #ffffff;
  --warm: #f4f2ee;
  --line: #e3e1da;
  --muted: #3f3c36;
  --soft: #5a564e;
  --faint: #6a665e;
  --accent: #4a4741;
  --tint: #ecebe6;
  --light: #c9c6bf;
  --top: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.pp-body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--warm); color: var(--ink); font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif; font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--ink); }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--light); outline-offset: 2px; }
img { display: block; max-width: 100%; }
h1, h2, p { margin: 0; }

.pp-skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 14px; border-radius: 4px; background: var(--ink); color: var(--paper); font-weight: 700; font-size: 14px; }
.pp-skip:focus { top: 12px; color: var(--paper); }

/* Top bar (brochure header) */
.pp-top { position: sticky; top: 0; z-index: 40; height: var(--top); padding: 0 max(16px, 4vw); display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--paper); border-bottom: 1px solid var(--line); }
.pp-logo img { height: 36px; width: auto; }
/* The brand mark in the top bar is the plain asset (board 43 V23): never the entry-logo tile below. */
.pp-top .pp-logo { width: auto; height: auto; border: 0; border-radius: 0; background: none; }
.pp-actions { display: flex; align-items: center; gap: 10px; }
.pp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 4px; border: 1.5px solid var(--light); background: var(--paper); color: var(--ink); font-family: inherit; font-size: 14px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.pp-btn:hover { border-color: var(--ink); color: var(--ink); }
.pp-btn.primary { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.pp-btn.primary:hover { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.pp-btn.big { min-height: 48px; padding: 0 20px; }
.pp-me { display: inline-flex; width: 40px; height: 40px; border-radius: 50%; background: var(--tint); color: var(--accent); align-items: center; justify-content: center; font-size: 15px; }

/* Layout: menu | content | skills. --pp-max is set on .pp-wrap by the page (PUBLIC_PAGE_MAX_WIDTH). */
.pp-wrap { --pp-gutter: clamp(16px, 2vw, 32px); flex: 1 1 auto; width: 100%; max-width: var(--pp-max, 1920px); margin: 0 auto; padding: 24px var(--pp-gutter) 64px; }
.pp-wrap:focus { outline: none; }
.pp-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr) 320px; grid-template-areas: "menu header header" "menu main skills"; gap: 20px 28px; align-items: start; }
.pp-layout.pp-no-skills { grid-template-areas: "menu header header" "menu main main"; }
.pp-layout.pp-no-menu { grid-template-columns: minmax(0, 1fr) 320px; grid-template-areas: "header header" "main skills"; }
.pp-layout.pp-no-menu.pp-no-skills { grid-template-columns: minmax(0, 1fr); grid-template-areas: "header" "main"; }
.pp-header { grid-area: header; }
.pp-menu { grid-area: menu; }
.pp-skills { grid-area: skills; }
.pp-main { grid-area: main; display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.pp-bar, .pp-sheet { display: none; }

/* Cards */
.pp-panel { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 22px 26px; min-width: 0; }
.pp-panel h2 { margin: 0 0 4px; font-size: 18px; font-weight: 800; line-height: 1.3; display: flex; align-items: center; gap: 10px; }
.pp-panel h2 i { font-size: 15px; color: var(--ink); }
.pp-section { scroll-margin-top: calc(var(--top) + 16px); }
.pp-section:focus { outline: none; }
.pp-section[hidden] { display: none; }

/* Header card */
.pp-header { padding: 0; overflow: hidden; }
.pf-banner { position: relative; width: 100%; aspect-ratio: 4 / 1; min-height: 120px; max-height: 200px; background: linear-gradient(120deg, #1c1c1c 0%, #4a4741 55%, #8a867d 100%); box-shadow: inset 0 -1px 0 rgba(28, 28, 28, 0.12); }
.pf-banner-paper { background: #f4f2ee; }
.pf-banner-linen { background: repeating-linear-gradient(135deg, #f4f2ee 0 6px, #ecebe6 6px 8px); }
.pf-banner-warm { background: linear-gradient(120deg, #c9c6bf, #ecebe6); }
.pf-banner-graphite { background: linear-gradient(120deg, #4a4741, #6a665e); }
.pf-banner-ink { background: #1c1c1c; }
.pf-banner-grid { background-color: #1c1c1c; background-image: linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px); background-size: 24px 24px; }
.pf-banner-img { background: #ecebe6; }
.pf-banner-img > img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--bx, 50%) var(--by, 50%); border-radius: inherit; }
.pp-header-body { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 0 24px; padding: 0 26px 20px; align-items: start; }
.pp-head-actions { padding-top: 16px; display: flex; gap: 10px; }
.pp-photo { position: relative; z-index: 1; display: inline-flex; width: 120px; height: 120px; margin-top: -60px; border-radius: 50%; border: 4px solid var(--paper); background: var(--ink); color: var(--paper); overflow: hidden; align-items: center; justify-content: center; box-shadow: 0 1px 3px rgba(28, 28, 28, 0.2); }
.pp-photo img { width: 100%; height: 100%; object-fit: cover; }
.pp-initials { font-size: 40px; font-weight: 700; }
.pp-id { display: flex; flex-direction: column; gap: 4px; padding-top: 12px; min-width: 0; }
.pp-id h1 { font-size: 26px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.25; overflow-wrap: anywhere; }
.pp-headline { font-size: 16px; color: var(--muted); overflow-wrap: anywhere; }
.pp-meta { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--soft); }
.pp-meta > span { display: inline-flex; align-items: center; gap: 6px; min-width: 0; overflow-wrap: anywhere; }
.pp-meta i { font-size: 12px; width: 14px; text-align: center; }

/* Section menu (900 px and up) */
.pp-menu { position: sticky; top: calc(var(--top) + 24px); display: flex; flex-direction: column; gap: 2px; }
.pp-menu-label { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); padding: 0 10px 8px; }
.pp-menu-section { display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 0 10px; border-radius: 4px; font-size: 14px; font-weight: 700; color: var(--ink); }
.pp-menu-section:hover { background: var(--tint); color: var(--ink); }
.pp-menu-section.is-current { background: var(--tint); }

/* About */
.pp-about-text { margin-top: 8px; font-size: 14px; line-height: 1.65; color: var(--muted); display: flex; flex-direction: column; gap: 10px; }
.pp-about-text p { white-space: pre-line; overflow-wrap: anywhere; }
.pp-about-text.is-collapsed { max-height: 9.3em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.pp-more { align-self: flex-start; margin-top: 6px; min-height: 40px; padding: 0; border: 0; background: none; font-family: inherit; font-size: 13px; font-weight: 700; color: var(--accent); cursor: pointer; }
.pp-more:hover { color: var(--ink); }
.pp-about { display: flex; flex-direction: column; }

.pp-note { margin: 0; text-align: center; font-size: 13px; line-height: 1.5; color: var(--soft); }
.pp-note i { margin-right: 8px; }

.pp-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.pp-btn.sm { min-height: 36px; padding: 0 12px; font-size: 13px; }

/* Menu: companies under Experience */
.pp-menu { max-height: calc(100vh - var(--top) - 48px); overflow-y: auto; scrollbar-width: thin; }
.pp-menu-entries, .pp-sheet-entries { display: flex; flex-direction: column; border-left: 2px solid var(--line); margin: 2px 0 6px 18px; }
.pp-menu-entry { display: flex; align-items: center; gap: 10px; min-height: 34px; padding: 4px 10px 4px 12px; border-radius: 0 4px 4px 0; font-size: 13px; font-weight: 500; line-height: 1.3; color: var(--soft); }
.pp-menu-entry:hover { background: var(--tint); color: var(--ink); }
.pp-menu-entry.is-current { background: var(--tint); color: var(--ink); box-shadow: inset 2px 0 0 var(--ink); }
.pp-menu-entry[hidden] { display: none; }
.pp-menu-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-width: 0; }
.pp-logo-s { flex: 0 0 auto; display: inline-flex; width: 22px; height: 22px; border-radius: 5px; background: var(--warm); border: 1px solid var(--line); color: var(--accent); align-items: center; justify-content: center; font-size: 10px; }
.pp-menu-section.is-dim, .pp-sheet-link.is-dim { opacity: 0.5; }

/* Experience */
.pp-entries { display: flex; flex-direction: column; }
.pp-entry { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--top) + 16px); }
.pp-entry:first-child { border-top: 0; padding-top: 8px; }
.pp-entry:focus { outline: none; }
.pp-entry[hidden] { display: none; }
.pp-logo { display: inline-flex; width: 48px; height: 48px; border-radius: 8px; background: var(--warm); border: 1px solid var(--line); color: var(--accent); align-items: center; justify-content: center; font-size: 18px; }
.pp-entry-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pp-company > .pp-entry-main { gap: 3px; }
.pp-entry h3 { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.pp-sub { font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.pp-line { font-size: 13px; color: var(--soft); line-height: 1.5; }
/* References (P4) */
.pp-ref-photo { display: inline-flex; width: 48px; height: 48px; border-radius: 50%; overflow: hidden; background: var(--ink); color: var(--paper); font-size: 15px; font-weight: 700; align-items: center; justify-content: center; }
.pp-ref-photo img { width: 100%; height: 100%; object-fit: cover; }
.pp-ref-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pp-badge { display: inline-flex; align-items: center; min-height: 24px; padding: 0 9px; border-radius: 999px; background: var(--tint); color: var(--accent); font-size: 12px; font-weight: 600; white-space: nowrap; }
.pp-quote { margin: 8px 0 0; padding: 10px 14px; border-left: 3px solid var(--light); font-size: 14px; line-height: 1.6; color: var(--muted); white-space: pre-line; overflow-wrap: anywhere; }
.pp-desc { margin-top: 6px; font-size: 14px; line-height: 1.6; color: var(--muted); white-space: pre-line; overflow-wrap: anywhere; }
.pp-desc.pp-rich { white-space: normal; }
.pp-rich p { margin: 0 0 6px; }
.pp-rich p:last-child { margin-bottom: 0; }
.pp-rich ul, .pp-rich ol { margin: 0 0 6px; padding-left: 20px; }
.pp-rich ul:last-child, .pp-rich ol:last-child { margin-bottom: 0; }
.pp-rich ul { list-style: disc outside; }
.pp-rich ol { list-style: decimal outside; }
.pp-rich li { margin: 2px 0; padding: 0; border: 0; }
.pp-rich li::before { content: none; }
.pp-rich strong { font-weight: 700; color: var(--ink); }
.pp-desc + .pp-resp { margin-top: 6px; }
/* Board 63: job responsibilities, one row per line with its own bullet (shown rows only). */
.pp-resp { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 5px; font-size: 14px; line-height: 1.5; color: var(--muted); max-width: 75ch; }
.pp-resp li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; margin: 0; padding: 0; border: 0; overflow-wrap: anywhere; }
.pp-resp li::before { content: none; }
.pp-g { display: inline-flex; justify-content: center; padding-top: 1px; font-size: 12px; color: var(--muted); }
.pp-g-dot i { font-size: 6px; padding-top: 7px; }
.pp-g-star i { font-size: 10px; padding-top: 3px; }
.pp-g-num { font-weight: 700; font-size: 13px; }
.pp-tags { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pp-tag { display: inline-flex; align-items: center; min-height: 24px; padding: 0 9px; border-radius: 999px; background: var(--tint); color: var(--accent); font-size: 12px; font-weight: 600; }
.pp-tag.is-match { background: var(--ink); color: var(--paper); }
.pp-tag[hidden] { display: none; }
/* "N more" / "Show less" after a position's tags. Every tag shows without pp.js (no .js on <html>); with it, the tags
   past POSITION_TAGS_SHOWN wait for the button. */
.js .pp-tags:not(.is-open) .pp-tag-extra { display: none; }
html:not(.js) .pp-tag-more { display: none; }
.pp-tag.pp-tag-more { padding: 0; background: none; }
.pp-tag-more button { display: inline-flex; align-items: center; gap: 6px; min-height: 24px; padding: 0 9px; border: 1px solid var(--light); border-radius: 999px; background: var(--paper); font-family: inherit; font-size: 12px; font-weight: 700; color: var(--accent); cursor: pointer; }
.pp-tag-more button:hover { border-color: var(--ink); color: var(--ink); }
.pp-tag-more i { font-size: 10px; }
.pp-roles { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; }
.pp-role { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 0 0 14px 20px; border-left: 2px solid var(--line); scroll-margin-top: calc(var(--top) + 16px); }
.pp-role:last-child, .pp-role.is-last { padding-bottom: 0; }
.pp-role[hidden] { display: none; }
.pp-role::before { content: ''; position: absolute; left: -7px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: var(--paper); border: 2px solid var(--accent); }
.pp-role h4 { margin: 0; font-size: 15px; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }

/* Issuer groups in the menu and the sheet ("OSHA · 3") */
.pp-menu-group { display: flex; flex-direction: column; }
.pp-menu-group-toggle { width: 100%; border: 0; background: none; font-family: inherit; text-align: left; cursor: pointer; }
.pp-menu-group-toggle .pp-menu-name { flex: 1 1 auto; }
.pp-menu-group-toggle .pp-chev { flex: 0 0 auto; font-size: 10px; color: var(--soft); }
.pp-menu-group-items { display: flex; flex-direction: column; margin-left: 12px; border-left: 2px solid var(--line); }
.pp-menu-group-items[hidden], [data-collapse-entries][hidden] { display: none; }

/* Licenses & certifications: the attached document */
.pp-doc { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; min-height: 32px; margin-top: 4px; font-size: 13px; font-weight: 700; color: var(--accent); }
.pp-doc:hover { color: var(--ink); }
/* P6: links row, organization letters, publication kinds, languages */
.pp-links { display: flex; flex-wrap: wrap; gap: 0 16px; }
.pp-initials-tile { font-size: 14px; font-weight: 800; letter-spacing: 0.02em; color: var(--muted); }
/* Catalog logos (L1): the organization's mark on a white tile with the same hairline; nothing else moves. */
.pp-logo.pp-logo-img, .pp-logo-s.pp-logo-img { background: var(--paper); overflow: hidden; }
.pp-logo.pp-logo-img img, .pp-logo-s.pp-logo-img img { display: block; width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.pp-logo-s.pp-logo-img img { padding: 2px; }
.pp-entry h4 { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.pp-kind { margin: 14px 0 2px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.pp-kind-group:first-of-type .pp-kind { margin-top: 10px; }
.pp-kind-group .pp-entry:first-child { padding-top: 6px; }
.pp-langs { list-style: none; margin: 0; padding: 8px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pp-lang { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--light); background: var(--paper); font-size: 13px; font-weight: 600; }
.pp-lang-level { font-weight: 500; color: var(--soft); }

/* Filter banner */
.pp-filter { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border: 1px solid var(--light); border-radius: 6px; background: var(--tint); font-size: 14px; }
.pp-filter[hidden] { display: none; }
.pp-filter p { flex: 1 1 auto; min-width: 0; }
.pp-filter strong { font-weight: 700; }

/* Skills card below 1200 px; a plain rail like "On this page" at 1200 px and up (see the media query below) */
.pp-skills { padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; }
.pp-skills:focus { outline: none; }
.pp-skills h2 { margin: 0; }
.pp-hint { font-size: 13px; line-height: 1.5; color: var(--soft); }
.pp-hint[hidden] { display: none; }
.pp-find { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 10px; border: 1.5px solid var(--light); border-radius: 4px; background: var(--paper); color: var(--soft); font-size: 12px; }
.pp-find:focus-within { border-color: var(--ink); outline: 3px solid var(--light); outline-offset: 1px; }
.pp-find input { flex: 1 1 auto; min-width: 0; min-height: 36px; border: 0; padding: 0; background: transparent; font-family: inherit; font-size: 13px; color: var(--ink); }
.pp-find input:focus { outline: none; }
.pp-find input::placeholder { color: #8a867d; }
.pp-skill-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pp-skill { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 6px 0 12px; border-radius: 999px; border: 1px solid var(--light); background: var(--paper); font-family: inherit; font-size: 13px; font-weight: 600; color: var(--ink); cursor: pointer; text-align: left; }
.pp-skill[hidden] { display: none; }
button.pp-skill:hover { border-color: var(--ink); }
.pp-skill-count { display: inline-flex; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--tint); color: var(--ink); font-size: 12px; font-weight: 700; align-items: center; justify-content: center; }
.pp-skill-x { display: none; font-size: 11px; margin-right: 4px; }
.pp-skill[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.pp-skill[aria-pressed="true"] .pp-skill-count { background: rgba(255, 255, 255, 0.22); color: var(--paper); }
.pp-skill[aria-pressed="true"] .pp-skill-x { display: inline; }
.pp-skill-unlinked { padding: 0 12px; border-style: dashed; color: var(--faint); font-weight: 500; cursor: default; }
.pp-skills.is-collapsed .pp-skill-chips { max-height: 106px; overflow: hidden; }
.pp-skills-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 0; min-height: 32px; }
.pp-skills-more[hidden] { display: none; }
.pp-skills.is-flash { animation: pp-flash 1.2s ease-out; }
@keyframes pp-flash { 0% { box-shadow: 0 0 0 4px var(--light); } 100% { box-shadow: 0 0 0 4px transparent; } }

@media (min-width: 1200px) {
  /* No panel: sticky beside the content like the menu rail, scrolling on its own when taller than the window. The 6px
     inset keeps chip focus rings inside the scroll box without moving the rail's edges. */
  .pp-panel.pp-skills { position: sticky; top: calc(var(--top) + 24px); max-height: calc(100vh - var(--top) - 48px); overflow-y: auto; scrollbar-width: thin; margin: -6px; padding: 6px; background: none; border: 0; border-radius: 4px; }
  .pp-skills h2.pp-skills-label { margin: 0; display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.55; color: var(--faint); }
  .pp-skills h2.pp-skills-label i { display: none; }
}
@media (min-width: 900px) and (max-width: 1199px) {
  .pp-layout { grid-template-columns: 224px minmax(0, 1fr); grid-template-areas: "menu header" "menu skills" "menu main"; }
  .pp-layout.pp-no-skills { grid-template-areas: "menu header" "menu main"; }
  .pp-layout.pp-no-menu { grid-template-columns: minmax(0, 1fr); grid-template-areas: "header" "skills" "main"; }
}

/* Footer */
.pp-foot { background: var(--ink); color: var(--light); font-size: 13px; padding: 20px max(16px, 4vw); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.pp-foot a { color: var(--light); }
.pp-foot a:hover { color: var(--paper); }

/* 404 / 429 */
.pp-missing-wrap { display: flex; align-items: center; justify-content: center; padding-top: 48px; padding-bottom: 48px; }
.pp-missing { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 40px 36px; max-width: 560px; width: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.pp-missing-icon { display: inline-flex; width: 64px; height: 64px; border-radius: 50%; background: var(--tint); color: var(--accent); align-items: center; justify-content: center; font-size: 24px; }
.pp-missing h1 { font-size: 24px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.25; }
.pp-missing p { font-size: 14px; line-height: 1.6; color: var(--soft); max-width: 42ch; }
.pp-missing-btns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; padding-top: 6px; }

/* Below 900 px: one column, the section bar under the top bar, the Jump to sheet */
@media (max-width: 899px) {
  .pp-layout, .pp-layout.pp-no-skills, .pp-layout.pp-no-menu, .pp-layout.pp-no-menu.pp-no-skills { grid-template-columns: minmax(0, 1fr); grid-template-areas: "bar" "header" "skills" "main"; gap: 12px; }
  .pp-layout.pp-no-skills { grid-template-areas: "bar" "header" "main"; }
  .pp-layout.pp-no-menu { grid-template-areas: "header" "skills" "main"; }
  .pp-layout.pp-no-menu.pp-no-skills { grid-template-areas: "header" "main"; }
  .pp-menu { display: none; }
  .pp-bar { grid-area: bar; display: flex; align-items: center; gap: 8px; position: sticky; top: var(--top); z-index: 30; margin: -24px calc(-1 * var(--pp-gutter)) 0; padding: 8px var(--pp-gutter); background: var(--warm); border-bottom: 1px solid var(--line); }
  .pp-bar-chips { display: flex; gap: 6px; overflow-x: auto; flex: 1 1 auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .pp-bar-chips::-webkit-scrollbar { display: none; }
  .pp-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--light); background: var(--paper); font-family: inherit; font-size: 13px; font-weight: 600; white-space: nowrap; color: var(--soft); cursor: pointer; }
  .pp-chip.is-current { background: var(--tint); border-color: var(--ink); color: var(--ink); }
  .pp-jump { flex: 0 0 auto; color: var(--ink); }
  .pp-section { scroll-margin-top: calc(var(--top) + 64px); }
  .pp-sheet[open] { display: flex; flex-direction: column; gap: 4px; position: fixed; inset: auto 0 0 0; margin: 0; width: 100%; max-width: none; max-height: 80vh; padding: 12px 16px 24px; border: 0; border-radius: 12px 12px 0 0; background: var(--paper); color: var(--ink); box-shadow: 0 -12px 40px rgba(28, 28, 28, 0.25); overflow-y: auto; }
  .pp-sheet::backdrop { background: rgba(28, 28, 28, 0.45); }
  .pp-sheet-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 6px; }
  .pp-sheet-head b { font-size: 16px; font-weight: 800; }
  .pp-x { width: 44px; height: 44px; border: 0; background: transparent; color: var(--soft); font-size: 18px; cursor: pointer; }
  .pp-sheet nav { display: flex; flex-direction: column; }
  .pp-sheet-link { min-height: 44px; display: flex; align-items: center; font-size: 15px; font-weight: 700; color: var(--ink); padding: 0 8px; margin: 0 -8px; border-radius: 4px; }
  .pp-sheet-link.is-current { background: var(--tint); }
  .pp-sheet-entries { border-left: 0; margin: 0 0 4px; }
  .pp-sheet-entries .pp-menu-entry { min-height: 40px; padding-left: 18px; font-size: 14px; }
  .pp-sheet-entries .pp-menu-entry.is-current { box-shadow: none; }
}
@media (max-width: 700px) {
  :root { --top: 60px; }
  .pp-top { padding: 0 16px; }
  .pp-logo img { height: 30px; }
  .pp-hrcheck { display: none; }
  .pp-me { width: 36px; height: 36px; }
  .pp-wrap { padding: 12px 12px 24px; }
  .pp-bar { margin: -12px -12px 0; padding: 8px 12px; }
  .pp-panel { padding: 16px; }
  .pp-panel h2 { font-size: 16px; gap: 8px; }
  .pf-banner { aspect-ratio: auto; height: 120px; min-height: 0; }
  .pp-header { padding: 0; }
  .pp-header-body { grid-template-columns: minmax(0, 1fr); padding: 0 16px 16px; }
  .pp-head-actions { padding-top: 12px; }
  .pp-entry h4 { font-size: 15px; }
  .pp-initials-tile { font-size: 12px; }
  .pp-logo.pp-logo-img img { padding: 3px; }
  .pp-photo { width: 88px; height: 88px; margin-top: -44px; border-width: 3px; }
  .pp-initials { font-size: 30px; }
  .pp-id { padding-top: 6px; }
  .pp-id h1 { font-size: 22px; line-height: 1.2; }
  .pp-headline { font-size: 14px; }
  .pp-meta { flex-direction: row; flex-wrap: wrap; gap: 0; font-size: 12px; }
  .pp-meta i { display: none; }
  .pp-meta > span { gap: 0; }
  .pp-meta > span + span::before { content: '\00b7'; margin: 0 6px; }
  .pp-about-text { font-size: 13px; line-height: 1.6; }
  .pp-skills { padding: 16px; gap: 8px; }
  .pp-skills > .pp-hint:not([data-find-empty]), .pp-find { display: none; }
  .pp-skill { min-height: 34px; gap: 6px; }
  .pp-skills.is-collapsed .pp-skill-chips { max-height: 118px; }
  .pp-entry { grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 14px 0; }
  .pp-logo { width: 40px; height: 40px; border-radius: 6px; font-size: 16px; }
  .pp-ref-photo { width: 40px; height: 40px; font-size: 13px; }
  .pp-entry h3 { font-size: 15px; }
  .pp-sub { font-size: 13px; }
  .pp-line { font-size: 12px; }
  .pp-desc { font-size: 13px; }
  .pp-tag { min-height: 22px; padding: 0 8px; font-size: 11px; }
  .pp-role { padding-left: 16px; }
  .pp-role h4 { font-size: 14px; }
  .pp-filter { flex-wrap: wrap; padding: 10px 12px; font-size: 13px; }
  .pp-missing { padding: 32px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---------- C4: "View attachments (N)" and the viewer ---------- */
.pp-att { margin-top: 4px; }
.pp-att-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0; border: 0; background: none; font-family: inherit; font-size: 13px; font-weight: 700; color: var(--accent); cursor: pointer; }
.pp-att-toggle:hover { color: var(--ink); }
.pp-att-toggle .pp-chev { font-size: 10px; color: var(--soft); }
.pp-att-strip { list-style: none; margin: 6px 0 4px; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.js .pp-att-strip:not(.is-open) { display: none; }
.pp-att-thumb { display: flex; flex-direction: column; gap: 6px; width: 96px; color: var(--muted); }
.pp-att-thumb:hover { color: var(--ink); }
.pp-att-img { display: flex; width: 96px; height: 72px; border-radius: 4px; border: 1px solid var(--line); background: var(--warm); overflow: hidden; align-items: center; justify-content: center; }
.pp-att-img img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.pp-att-img.is-icon i { font-size: 26px; color: var(--accent); }
.pp-att-thumb:hover .pp-att-img { border-color: var(--ink); }
.pp-att-name { display: block; font-size: 12px; font-weight: 600; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

body.pp-lb-open { overflow: hidden; }
.pp-lb { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; background: rgba(20, 19, 17, 0.94); color: #ffffff; font-family: inherit; }
.pp-lb[hidden] { display: none; }
.pp-lb-btn[hidden] { display: none; }
.pp-lb-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.pp-lb-file { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pp-lb-file > i { flex: 0 0 auto; font-size: 22px; color: #d9d6cf; }
.pp-lb-file-text { display: flex; flex-direction: column; min-width: 0; }
.pp-lb-file-text b { font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp-lb-file-text span { font-size: 12px; color: #d9d6cf; }
.pp-lb-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.pp-lb-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 4px; border: 1.5px solid rgba(255, 255, 255, 0.5); background: transparent; color: #ffffff; font-family: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.pp-lb-btn:hover { border-color: #ffffff; color: #ffffff; background: rgba(255, 255, 255, 0.08); }
.pp-lb-btn.primary { background: #ffffff; border-color: #ffffff; color: var(--ink); }
.pp-lb-btn.primary:hover { background: #e9e7e2; color: var(--ink); }
.pp-lb-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.1); color: #ffffff; font-size: 18px; cursor: pointer; }
.pp-lb-icon:hover { background: rgba(255, 255, 255, 0.2); }
.pp-lb-icon:disabled { opacity: 0.35; cursor: default; }
.pp-lb-icon[hidden] { display: none; }
.pp-lb a:focus-visible, .pp-lb button:focus-visible { outline: 3px solid #ffffff; outline-offset: 2px; }
.pp-lb-stage { position: relative; flex: 1 1 auto; min-height: 0; display: flex; align-items: center; gap: 12px; padding: 16px; }
.pp-lb-frame { flex: 1 1 auto; min-width: 0; height: 100%; display: flex; align-items: center; justify-content: center; overflow: auto; }
.pp-lb-frame img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; background: #ffffff; box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4); }
.pp-btn.pp-resume:disabled { opacity: 0.55; cursor: not-allowed; border-color: var(--light); color: var(--soft); }
.pp-lb:focus { outline: none; }
.pp-lb-frame.is-doc { align-items: stretch; overflow: hidden; }
.pp-lb-docframe { display: block; width: 100%; max-width: 900px; height: 100%; margin: 0 auto; border: 0; border-radius: 4px; background: #f4f2ee; box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4); }
.pp-lb-none { display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: 420px; padding: 32px 24px; text-align: center; font-size: 14px; color: #e9e7e2; }
.pp-lb-none > i { font-size: 56px; color: #d9d6cf; margin-bottom: 6px; }
.pp-lb-none b { font-size: 16px; color: #ffffff; overflow-wrap: anywhere; }
.pp-lb-loading { font-size: 14px; color: #d9d6cf; }
.pp-lb-pager { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 0 16px 8px; font-size: 13px; font-weight: 600; color: #e9e7e2; }
.pp-lb-pager[hidden] { display: none; }
.pp-lb-foot { padding: 8px 16px 14px; text-align: center; font-size: 12px; color: #d9d6cf; }
@media (max-width: 700px) {
  .pp-att-toggle { min-height: 44px; }
  .pp-att-strip { gap: 10px; }
  .pp-lb-top { padding: 8px 8px 8px 12px; }
  .pp-lb-btn { padding: 0 12px; }
  .pp-lb-btn-text { display: none; }
  .pp-lb-stage { padding: 8px; gap: 0; }
  .pp-lb-stage > .pp-lb-icon { position: absolute; top: 50%; transform: translateY(-50%); z-index: 1; background: rgba(20, 19, 17, 0.7); }
  .pp-lb-stage > .pp-lb-prev { left: 6px; }
  .pp-lb-stage > .pp-lb-next { right: 6px; }
  .pp-lb-keys { display: none; }
}

/* A certification's credential link: "View credential" to the issuer's page, the host muted after it. */
.pp-cred a { font-weight: 600; overflow-wrap: anywhere; }
.pp-cred i { font-size: 11px; }
.pp-cred-host { color: var(--soft); font-size: 12px; margin-left: 4px; }
