/* Leadership (/leadership) and profiles (/leadership/<slug>): resources/views/snu-site/pages/people|person|_person-card.blade.php.
   Built on the website's tokens (palette.css / style.css: navy, blue, gold, surfaces, lines, radii, shadows), so the Theme Builder's
   colours and fonts apply here too. Prefix pd-. Sections: portraits · SNU Governance (head and team) · Staff Directorate · filters · A–Z · cards · pages ·
   profile (identity, tabs, tables) · sidebar (Achievements / Awards) · small screens · print. */

/* ---------------------------------------------------------------- portraits (Html::portrait): a photo, or the initials */
.pd-photo, .pd-gov-photo, .pd-portrait { position: relative; display: grid; place-items: center; overflow: hidden; background: linear-gradient(140deg, var(--blue-600), var(--navy)); }
.pd-photo::before, .pd-gov-photo::before, .pd-portrait::before { content: attr(data-initials); color: rgba(255, 255, 255, .92); font-family: var(--font-serif); font-weight: 700; font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: .02em; }
.pd-photo img, .pd-gov-photo img, .pd-portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }

/* ---------------------------------------------------------------- SNU Governance: the head (the Rector) on top, the team (the Deputy Rectors) in one row beneath */
.page-hero.pd-hero-top { padding: 1.3rem 0 1.6rem; }   /* the Leadership page's head: short, so the people start on the first screen */
.pd-hero-top .page-title { margin-bottom: 0; }
.pd-gov { padding: clamp(1.25rem, 2.6vw, 1.75rem) 0 clamp(2rem, 4vw, 3rem); background: linear-gradient(180deg, var(--blue-700), var(--navy)); color: var(--white); border-top: 6px solid var(--gold);
  scroll-margin-top: var(--sticky-h, 0px); --pd-gap: 1.1rem; --pd-stem: 1.1rem; --pd-line: rgba(255, 255, 255, .5); }
.pd-gov-title { margin: 0 0 .9rem; color: var(--white); font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; letter-spacing: -.01em; }
.pd-gov-title-lite { font-weight: 300; }
.pd-gov-tiers { display: flex; flex-direction: column; align-items: center; }
.pd-gov-photo { aspect-ratio: 300 / 320; border-radius: calc(var(--radius) - 4px); }
.pd-gov-role { display: inline-block; padding: .25rem .6rem; background: var(--gold); color: var(--navy-900, #071c33); font-weight: 700; font-size: .84rem; line-height: 1.3; }

/* the head: portrait beside the name, a few words and the way into the profile */
.pd-gov-head { position: relative; display: grid; grid-template-columns: minmax(140px, 184px) minmax(0, 1fr); align-items: center; gap: clamp(1rem, 2.5vw, 1.75rem); width: min(100%, 820px);
  padding: 8px; border-radius: var(--radius); background: var(--white); color: var(--ink); box-shadow: 0 14px 30px -16px rgba(0, 0, 0, .6); }
.pd-gov-head-photo { display: block; border-radius: calc(var(--radius) - 4px); }
.pd-gov-head-body { min-width: 0; padding: .5rem clamp(.5rem, 2vw, 1.25rem) .5rem 0; }
.pd-gov-head-role { margin: 0 0 .5rem; }
.pd-gov-head-role .pd-gov-role { font-size: .9rem; letter-spacing: .04em; text-transform: uppercase; }
.pd-gov-head-name { margin: 0 0 .5rem; font-family: var(--font-sans); font-size: clamp(1.25rem, 2.1vw, 1.6rem); font-weight: 800; line-height: 1.2; letter-spacing: -.01em; overflow-wrap: anywhere; }
.pd-gov-head-name a { color: var(--navy); text-decoration: none; }
.pd-gov-head-name a:hover { color: var(--blue-700); text-decoration: underline; text-underline-offset: 4px; }
.pd-gov-head-name a:focus-visible, .pd-gov-head-links a:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.pd-gov-head-sum { margin: 0 0 .8rem; color: var(--ink-2); font-size: .95rem; line-height: 1.5; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.pd-gov-head-links { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.25rem; margin: 0; }
.pd-gov-head-links .btn { min-height: 44px; }

/* the team: one row (at most six side by side), each card a portrait with the name and the post under it */
.pd-gov-team { --pd-n: var(--pd-wide, 5); list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--pd-gap); width: 100%; margin: calc(2 * var(--pd-stem)) 0 0; padding: 0;
  scroll-margin-top: calc(var(--sticky-h, 0px) + 1rem); }   /* #deputies (the site menu) lands on it below the pinned header */
.pd-gov-card { position: relative; flex: 0 1 min(232px, calc((100% - (var(--pd-n) - 1) * var(--pd-gap)) / var(--pd-n) - .1px)); min-width: 0; margin: 0; }
.pd-gov-link { display: flex; flex-direction: column; height: 100%; padding: 6px; border-radius: var(--radius); background: var(--white); color: var(--ink); text-decoration: none;
  box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .55); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.pd-gov-link:hover { transform: translateY(-3px); box-shadow: 0 16px 32px -16px rgba(0, 0, 0, .6); }
.pd-gov-link:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.pd-gov-cap { display: flex; flex-direction: column; gap: .3rem; padding: .7rem .5rem .55rem; text-align: center; }
.pd-gov-cap .pd-gov-name { color: var(--navy); font-weight: 800; font-size: .98rem; line-height: 1.25; overflow-wrap: anywhere; }
.pd-gov-cap .pd-gov-role { padding: 0; background: none; color: var(--ink-2); font-weight: 600; font-size: .86rem; line-height: 1.35; }
.pd-gov-link:hover .pd-gov-name { color: var(--blue-700); }

/* the chart's lines: a stem down from the head, a bar over the row, a drop onto each card (only while the team is one row) */
.pd-gov-head.has-team::after, .pd-gov-card::before, .pd-gov-card::after { content: ""; position: absolute; pointer-events: none; }
.pd-gov-head.has-team::after { left: calc(50% - 1px); top: 100%; height: var(--pd-stem); border-left: 2px solid var(--pd-line); }
.pd-gov-card::before { left: calc(50% - 1px); bottom: 100%; height: var(--pd-stem); border-left: 2px solid var(--pd-line); }
.pd-gov-card::after { left: calc(var(--pd-gap) / -2); right: calc(var(--pd-gap) / -2); bottom: calc(100% + var(--pd-stem) - 2px); border-top: 2px solid var(--pd-line); }
.pd-gov-card:first-child::after { left: calc(50% - 1px); }
.pd-gov-card:last-child::after { right: calc(50% - 1px); }
.pd-gov-team--rows .pd-gov-card::before, .pd-gov-team--rows .pd-gov-card::after { display: none; }

/* ---------------------------------------------------------------- Staff Directorate: everyone else, with the filters */
.pd-staff { scroll-margin-top: var(--sticky-h, 0px); }
.pd-staff-head { margin: 0 0 1.4rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); position: relative; }
.pd-staff-head::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 72px; height: 3px; background: var(--gold); }
.pd-staff-title { margin: 0 0 .4rem; color: var(--navy); font-family: var(--font-sans); font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; letter-spacing: -.01em; }
.pd-staff-title-lite { font-weight: 300; }
.pd-staff-lead { margin: 0; max-width: 760px; color: var(--ink-2); font-size: 1.02rem; line-height: 1.55; }
.pd-empty a { color: var(--blue-700); font-weight: 700; text-underline-offset: 3px; }

/* ---------------------------------------------------------------- filters */
.pd-filters { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.25fr) auto; align-items: end; gap: 1rem 1.1rem; margin: 0 0 1.25rem;
  padding: 1.25rem 1.4rem 1.4rem; border: 1px solid var(--line); border-top: 4px solid var(--blue-600); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-sm); }
.pd-field { display: flex; flex-direction: column; gap: .4rem; min-width: 0; }
.pd-field label { color: var(--ink-2); font-size: .9rem; font-weight: 700; }
.pd-field select, .pd-field input { width: 100%; min-height: 46px; padding: .5rem .85rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white);
  color: var(--ink); font: inherit; font-size: .95rem; text-overflow: ellipsis; }
.pd-field select:focus, .pd-field input:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-100); }
.pd-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.pd-actions .btn { min-height: 46px; padding: .5rem 1.25rem; white-space: nowrap; }
.pd-role-chip { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: -.25rem 0 1rem; color: var(--ink-2); font-size: .9rem; font-weight: 700; }
.pd-role-chip[hidden] { display: none; }
.pd-role-chip .chip { gap: .45rem; min-height: 40px; text-decoration: none; }
.pd-role-chip .chip:hover, .pd-role-chip .chip:focus-visible { border-color: var(--blue); color: var(--blue-700); }

/* ---------------------------------------------------------------- A–Z */
.pd-az { margin: 0 0 1.5rem; }
.pd-az ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem; }
.pd-az li { margin: 0; }
.pd-az a, .pd-az-off { display: inline-grid; place-items: center; min-width: 38px; min-height: 40px; padding: 0 .4rem; border-radius: var(--radius-sm); font-weight: 700; font-size: .98rem; line-height: 1; }
.pd-az a { color: var(--blue-700); text-decoration: none; }
.pd-az a:hover { background: var(--blue-50); color: var(--navy); }
.pd-az a:focus-visible { outline: 3px solid var(--blue); outline-offset: 1px; }
.pd-az a[aria-current="true"] { background: var(--navy); color: var(--white); }
.pd-az-off { color: var(--muted); opacity: .5; }
.pd-az-all { padding: 0 .8rem !important; }
@media (pointer: coarse) { .pd-az a, .pd-az-off { min-width: 44px; min-height: 44px; } }   /* finger-sized on touch screens */

/* ---------------------------------------------------------------- the directory: cards */
.pd-all-head { margin: 0 0 1rem; }
.pd-count { margin: 0; color: var(--muted); font-size: .92rem; font-weight: 700; }
.pd-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem 1.25rem; }
.pd-card { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 0 0 1rem; border: 1px solid var(--line); border-top: 0; border-radius: var(--radius);
  background: var(--white); box-shadow: 0 6px 18px -14px rgba(15, 30, 60, .45); transition: box-shadow .2s var(--ease), transform .2s var(--ease); }
.pd-card::before { content: ""; height: 7px; border-radius: var(--radius) var(--radius) 0 0; background: var(--gold); }
.pd-card--lead::before { background: var(--navy); }
.pd-card--admin::before { background: var(--blue-600); }
.pd-card[hidden] { display: none; }
.pd-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.pd-card-link { position: relative; display: block; margin: 6px 6px 0; border-radius: calc(var(--radius) - 4px); overflow: hidden; color: inherit; text-decoration: none; }
.pd-card-link:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.pd-photo { aspect-ratio: 1 / 1; }
.pd-card-link:hover .pd-photo img { transform: scale(1.03); }
.pd-photo img { transition: transform .35s var(--ease); }
.pd-name { position: absolute; left: 0; bottom: .7rem; max-width: calc(100% - .7rem); margin: 0; }
.pd-name span { display: inline-block; padding: .35rem .65rem; background: rgba(15, 76, 140, .94); color: var(--white); font-family: var(--font-sans); font-size: 1rem; font-weight: 800;
  line-height: 1.3; overflow-wrap: anywhere; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.pd-card-body { padding: .85rem 1rem 0; text-align: center; }
.pd-pos { margin: 0 0 .25rem; color: var(--ink); font-size: .98rem; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.pd-where { margin: 0; color: var(--ink-2); font-size: .92rem; line-height: 1.45; overflow-wrap: anywhere; }
.pd-empty { padding: 1.4rem 1.5rem; border-radius: var(--radius); background: var(--surface); color: var(--ink-2); }
.pd-empty[hidden] { display: none; }
.pd-empty p { margin: 0 0 .9rem; }

/* ---------------------------------------------------------------- pages */
.pd-pager { margin: 2rem 0 0; }
.pd-pager[hidden] { display: none; }
.pd-pager ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .35rem; }
.pd-pager li { margin: 0; }
.pd-pager a, .pd-page-off, .pd-page-gap { display: inline-flex; align-items: center; justify-content: center; gap: .35rem; min-width: 44px; min-height: 44px; padding: 0 .75rem;
  border-radius: var(--radius-sm); font-weight: 700; font-size: .94rem; }
.pd-pager a { border: 1px solid var(--line); background: var(--white); color: var(--navy); text-decoration: none; }
.pd-pager a:hover { border-color: var(--blue); color: var(--blue-700); }
.pd-pager a:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.pd-pager a[aria-current="page"] { border-color: var(--navy); background: var(--navy); color: var(--white); }
.pd-page-off { color: var(--muted); opacity: .6; }
.pd-page-gap { min-width: 24px; padding: 0; color: var(--muted); }

/* ---------------------------------------------------------------- profile: page */
.pd-hero { padding: 1.4rem 0 1.6rem; }
.pd-hero::after { display: none; }
.pd-hero .page-title { margin: .2rem 0 0; font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.pd-page { padding-top: 1.25rem; padding-bottom: 3rem; }
.pd-preview { display: flex; align-items: center; gap: .55rem; margin: 0 0 1rem; padding: .75rem 1rem; border: 1px solid var(--gold); border-radius: var(--radius-sm); background: var(--gold-50); color: var(--ink); font-weight: 600; }
.pd-back { margin: 0 0 1rem; }
.pd-back a { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; color: var(--blue-700); font-weight: 700; text-decoration: none; }
.pd-back a:hover { text-decoration: underline; text-underline-offset: 3px; }
.pd-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 300px); gap: 2rem; align-items: start; }
.pd-main { min-width: 0; }

/* identity */
.pd-id { display: grid; grid-template-columns: minmax(200px, 300px) minmax(0, 1fr); gap: 2rem; align-items: start; margin: 0 0 2rem; }
.pd-id-photo { padding: 6px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-sm); }
.pd-portrait { aspect-ratio: 300 / 360; border-radius: calc(var(--radius) - 4px); }
.pd-id-body { min-width: 0; padding-top: .25rem; }
.pd-id-name { margin: 0; color: var(--ink); font-family: var(--font-sans); font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 400; line-height: 1.15; letter-spacing: -.015em; overflow-wrap: anywhere; }
.pd-id-rule { margin: 1rem 0 1.1rem; border: 0; border-top: 1px solid var(--line); }
.pd-id-pos { margin: 0 0 .5rem; color: var(--blue-700); font-size: clamp(1.1rem, 1.9vw, 1.35rem); font-weight: 500; line-height: 1.35; }
.pd-id-posts { list-style: none; margin: 0 0 .7rem; padding: 0; }
.pd-id-posts li { margin: 0 0 .25rem; color: var(--blue-700); font-size: 1rem; line-height: 1.4; }
.pd-id-posts a { color: inherit; text-underline-offset: 3px; }
.pd-id-post-where { color: var(--ink-2); }
.pd-id-post-where::before { content: " — "; }
.pd-id-unit { margin: 0 0 1rem; color: var(--blue-700); font-size: .92rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.pd-id-unit a { color: inherit; text-decoration: none; }
.pd-id-unit a:hover { text-decoration: underline; text-underline-offset: 3px; }
.pd-sep { margin: 0 .5em; }
.pd-id-contact { list-style: none; margin: 0 0 1.1rem; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem 1.4rem; font-size: .94rem; }
.pd-id-contact li { display: inline-flex; align-items: center; gap: .45rem; min-height: 32px; overflow-wrap: anywhere; }
.pd-id-contact .bi { color: var(--blue-600); }
.pd-id-contact a { color: var(--ink); text-underline-offset: 3px; }
.pd-id-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; align-items: flex-start; gap: .45rem; }
.pd-ln { display: inline-flex; align-items: center; gap: .6rem; min-height: 40px; padding: .2rem .9rem .2rem .25rem; border: 1px solid var(--line); border-radius: 999px; background: var(--white);
  color: var(--ink); font-size: .95rem; font-weight: 700; text-decoration: none; }
.pd-ln:hover { border-color: var(--blue); color: var(--blue-700); }
.pd-ln:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.pd-ln-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: var(--white); font-size: .78rem; font-weight: 800; background: var(--blue-700); }
.pd-ln--researchgate .pd-ln-mark { background: #00806e; }
.pd-ln--scholar .pd-ln-mark { background: #1a5fd0; }
.pd-ln--scopus .pd-ln-mark { background: #c45000; }
.pd-ln--orcid .pd-ln-mark { background: #4c7a12; }
.pd-ln--linkedin .pd-ln-mark { background: #0a66c2; }

/* tabs */
.pd-tabs { display: flex; flex-wrap: wrap; gap: 3px; margin: 0; padding: 0; }
.pd-tab { position: relative; display: inline-flex; align-items: center; min-height: 48px; margin-bottom: -1px; padding: .5rem .75rem; border: 1px solid var(--line); border-bottom: 0;
  border-radius: 6px 6px 0 0; background: var(--surface); color: var(--blue-700); font-size: .92rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.pd-tab:hover { background: var(--blue-50); color: var(--navy); }
.pd-tab:focus-visible { outline: 3px solid var(--blue); outline-offset: -3px; }
.pd-tabbed .pd-tab[aria-selected="true"] { z-index: 1; background: var(--white); color: var(--blue-700); box-shadow: inset 0 4px 0 var(--blue-600); }
.pd-panel { padding: 1.5rem 1.6rem 1.75rem; border: 1px solid var(--line); background: var(--white); scroll-margin-top: calc(var(--sticky-h) + 1rem); }
.pd-tabbed .pd-panel { border-radius: 0 var(--radius) var(--radius) var(--radius); }
.pd-tabs-wrap:not(.pd-tabbed) .pd-panel + .pd-panel { margin-top: 1.25rem; }   /* without the script: one after the other */
.pd-panel[hidden] { display: none; }
.pd-panel:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.pd-panel-title { margin: 0 0 1.25rem; color: var(--ink); font-family: var(--font-sans); font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 400; letter-spacing: -.015em; }
.pd-panel h3 { margin: 1.5rem 0 .6rem; color: var(--navy); font-size: 1.12rem; }
.pd-lead-text { margin: 0 0 1rem; color: var(--ink); font-weight: 700; line-height: 1.55; }
.pd-panel .prose { max-width: none; }
.pd-list { margin: 0 0 1rem; padding-left: 1.25rem; }
.pd-list li { margin-bottom: .35rem; }
.pd-chips { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.pd-chips li { margin: 0; }
.pd-chips .chip { text-decoration: none; }
.pd-chips .chip:hover, .pd-chips .chip:focus-visible { border-color: var(--blue); color: var(--blue-700); }
.pd-message { margin-top: 1.5rem; padding: 1.25rem 1.4rem; border-left: 4px solid var(--gold); border-radius: 0 var(--radius) var(--radius) 0; background: var(--surface); scroll-margin-top: calc(var(--sticky-h) + 1rem); }
.pd-message h3 { margin-top: 0; }
.pd-none { margin: 0; padding: 1rem 1.1rem; border: 1px dashed var(--line); border-radius: var(--radius-sm); color: var(--muted); }
.pd-more-at { margin: 1.25rem 0 0; }

/* tables */
.pd-table-wrap { margin: 0; }
.pd-table { width: 100%; border-collapse: collapse; font-size: .96rem; }
.pd-table th { padding: .8rem .9rem; border-bottom: 2px solid var(--line); color: var(--ink-2); font-size: .9rem; font-weight: 700; text-align: left; vertical-align: bottom; }
.pd-table td { padding: .85rem .9rem; border-bottom: 1px solid var(--line-2); color: var(--ink-2); vertical-align: top; overflow-wrap: anywhere; }
.pd-table tbody tr:nth-child(odd) td { background: var(--surface); }
.pd-table td strong { color: var(--ink); font-weight: 600; }
.pd-col-n { width: 4.5rem; white-space: nowrap; }
.pd-col-year { width: 5.5rem; white-space: nowrap; text-align: right; }
th.pd-col-year { text-align: right; }
.pd-cell-sub { display: block; margin-top: .2rem; color: var(--muted); font-size: .88rem; }
.pd-cell-link { display: block; margin-top: .25rem; font-size: .88rem; font-weight: 700; }
.pd-cell-link a { color: var(--blue-700); text-underline-offset: 3px; }
.pd-cite { color: var(--ink); }

/* ---------------------------------------------------------------- profile: sidebar */
.pd-side { min-width: 0; }
.pd-side > * + * { margin-top: 1.5rem; }
.pd-ach-title { margin: 0 0 1rem; color: var(--blue-700); font-family: var(--font-sans); font-size: clamp(1.35rem, 2.2vw, 1.65rem); font-weight: 500; }
.pd-ach-group { border-bottom: 1px solid var(--line); }
.pd-ach-group:first-of-type { border-top: 1px solid var(--line); }
.pd-ach-group summary { display: flex; align-items: center; gap: .55rem; min-height: 48px; padding: .4rem .2rem; color: var(--ink); font-weight: 600; cursor: pointer; list-style: none; }
.pd-ach-group summary::-webkit-details-marker { display: none; }
.pd-ach-group summary::before { content: ""; flex: 0 0 auto; border-left: 6px solid currentColor; border-top: 5px solid transparent; border-bottom: 5px solid transparent; transition: transform .2s var(--ease); }
.pd-ach-group[open] summary::before { transform: rotate(90deg); }
.pd-ach-group summary:hover { color: var(--blue-700); }
.pd-ach-group summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.pd-ach-n { margin-left: auto; min-width: 26px; padding: .1rem .45rem; border-radius: 999px; background: var(--blue-50); color: var(--blue-700); font-size: .8rem; font-weight: 700; text-align: center; }
.pd-ach-list { list-style: none; margin: 0 0 .9rem; padding: 0 0 0 1rem; }
.pd-ach-list li { margin: 0; padding: .55rem 0; border-top: 1px solid var(--line-2); font-size: .92rem; line-height: 1.45; }
.pd-ach-list li:first-child { border-top: 0; }
.pd-ach-list strong { display: block; color: var(--ink); font-weight: 600; }
.pd-ach-list a { color: var(--blue-700); text-underline-offset: 3px; }
.pd-ach-list p { margin: .25rem 0 0; color: var(--ink-2); }
.pd-ach-meta { display: block; color: var(--muted); font-size: .85rem; }
.pd-ach-cite { display: block; color: var(--ink-2); }
.pd-ach-sum { margin: 0 0 .25rem 1rem; color: var(--ink-2); font-size: .92rem; font-weight: 600; }
.pd-ach-more { display: flex; flex-wrap: wrap; gap: .3rem 1rem; margin: 0 0 1rem 1rem; font-size: .9rem; font-weight: 700; }
.pd-ach-more a { color: var(--blue-700); text-underline-offset: 3px; }
.pd-side-people .pd-side-name { display: block; font-weight: 700; color: var(--navy); }
.pd-side-people .pd-side-pos { display: block; color: var(--muted); font-size: .82rem; line-height: 1.35; }
.pd-side-all { margin: .75rem 0 0; padding: 0 .9rem .5rem; font-size: .9rem; }

/* ---------------------------------------------------------------- smaller screens */
@media (max-width: 1180px) {
  .pd-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pd-actions { align-self: end; }
}
@media (max-width: 1024px) {
  .pd-layout { grid-template-columns: minmax(0, 1fr); }   /* the sidebar under the profile */
}
@media (max-width: 900px) {
  /* the team wraps into rows of three: no chart lines */
  .pd-gov-team { --pd-n: 3; margin-top: var(--pd-gap); }
  .pd-gov-head.has-team::after, .pd-gov-card::before, .pd-gov-card::after { display: none; }
  .pd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .pd-id { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  .pd-id-photo { width: min(260px, 100%); }
  .pd-panel { padding: 1.15rem 1rem 1.3rem; }
  /* tables become one block per row, each value with its heading */
  .pd-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .pd-table, .pd-table tbody, .pd-table tr, .pd-table td { display: block; width: auto; }
  .pd-table tr { margin: 0 0 .75rem; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
  .pd-table tbody tr:nth-child(odd) td { background: none; }
  .pd-table td { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: .75rem; padding: .55rem .8rem; text-align: left; }
  .pd-table td::before { content: attr(data-label); color: var(--muted); font-size: .85rem; font-weight: 700; }
  .pd-table td:last-child { border-bottom: 0; }
  .pd-table td.pd-col-n { background: var(--surface) !important; }
  .pd-col-year { text-align: left; }
}
@media (max-width: 640px) {
  /* the head: a smaller portrait beside the name, the few words under both; the team: one person a row, the portrait beside the name */
  .pd-gov { --pd-gap: .7rem; }
  .pd-gov-head { grid-template-columns: 112px minmax(0, 1fr); align-items: start; gap: .9rem; }
  .pd-gov-head-body { display: contents; }
  .pd-gov-head-role { grid-column: 2; align-self: end; margin: .35rem 0 0; }
  .pd-gov-head-name { grid-column: 2; align-self: start; margin: 0; padding-right: .4rem; }
  .pd-gov-head-photo { grid-row: 1 / span 2; }
  .pd-gov-head-sum, .pd-gov-head-links { grid-column: 1 / -1; padding: 0 .5rem; }
  .pd-gov-head-sum { margin: 0; -webkit-line-clamp: 3; line-clamp: 3; }
  .pd-gov-head-links { padding-bottom: .5rem; }
  .pd-gov-team { --pd-n: 1; }
  .pd-gov-card { flex-basis: 100%; }
  .pd-gov-link { flex-direction: row; align-items: center; gap: .85rem; }
  .pd-gov-link .pd-gov-photo { flex: 0 0 84px; }
  .pd-gov-cap { padding: .3rem .6rem .3rem 0; text-align: left; }
  .pd-filters { grid-template-columns: minmax(0, 1fr); padding: 1rem; }
  .pd-actions .btn { flex: 1 1 auto; }
  .pd-grid { grid-template-columns: minmax(0, 1fr); max-width: 420px; margin: 0 auto; }
  .pd-tab { flex: 1 1 auto; justify-content: center; padding: .5rem .8rem; font-size: .92rem; }
  .pd-tabbed .pd-panel { border-radius: 0 0 var(--radius) var(--radius); }
}
@media (prefers-reduced-motion: reduce) {
  .pd-card, .pd-gov-link, .pd-photo img, .pd-ach-group summary::before { transition: none; }
  .pd-card:hover, .pd-gov-link:hover { transform: none; }
  .pd-card-link:hover .pd-photo img { transform: none; }
}

/* ---------------------------------------------------------------- print: the whole profile, without the page's controls */
@media print {
  .pd-back, .pd-tabs, .pd-filters, .pd-az, .pd-pager, .pd-gov-head-links, .pd-preview, .pd-ach-n { display: none !important; }
  .pd-panel, .pd-panel[hidden] { display: block !important; border: 0; padding: 0; margin: 0 0 1rem; }
  .pd-layout { display: block; }
  .pd-side { display: block !important; margin-top: 1.5rem; }
  .pd-ach-group > *:not(summary) { display: block !important; }
  .pd-id { grid-template-columns: 140px minmax(0, 1fr); break-inside: avoid; }
  .pd-id-photo { box-shadow: none; }
  .pd-ln { border: 0; padding: 0; min-height: 0; }
  .pd-ln[href^="http"]::after { content: " (" attr(href) ")"; font-weight: 400; }
  .pd-table tr { break-inside: avoid; }
}
