/* Person detail (js/pages/person.js): hero, profile panel, topics columns, vertical timeline. Prefix pd-. Tokens only. */

/* ---- hero ---- */
.pd-hero { display: flex; flex-direction: column; gap: 14px; padding-top: 20px; border-top: var(--rule-hero); }
.pd-hero-row { display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: flex-end; justify-content: space-between; }
.pd-ident { display: flex; gap: 18px; align-items: center; min-width: 0; }
.pd-ident .page-title { margin: 0; overflow-wrap: anywhere; }
.pd-hex { flex: none; display: flex; align-items: center; justify-content: center; width: 72px; height: 83px; color: #fff; font: 500 22px/1 var(--font-display); clip-path: var(--hex-clip); }
.pd-btn.btn { padding: 0 18px; }
.pd-meta { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 13px; color: var(--ink-2); }
.pd-inline { color: var(--accent); font-weight: 500; }
.pd-inline:hover { text-decoration: underline; }

/* ---- profile in numbers ---- */
.pd-depth.depth-row { grid-template-columns: 20px 80px 24px 1fr; }
.pd-cells { display: flex; gap: 6px 8px; align-items: center; min-width: 0; font-size: 13px; color: var(--ink-2); }
.pd-cells .squares { gap: 6px; flex: none; max-width: 50%; }
.pd-cells > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.pd-stats { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 6px; padding-top: 10px; border-top: var(--rule-row); font-size: 13px; color: var(--ink-2); }
.pd-stats b { color: var(--ink); }
.pd-ms { display: flex; flex-direction: column; gap: 8px; flex: 1; padding-top: 0; }
.pd-ms .eyebrow { padding: 10px 0 0; }
.pd-ms p { margin: 0; color: rgba(255,255,255,0.92); }
.pd-ms .pd-ms-foot { font-size: 13px; }
.pd-ms-title { font: 500 22px/1.15 var(--font-display); letter-spacing: -0.02em; overflow-wrap: anywhere; }
.pd-ms-num { font: 400 34px/1 var(--font-display); letter-spacing: -0.03em; }
.pd-see.btn { align-self: flex-start; margin-top: auto; min-height: 40px; padding: 0 6px 0 16px; border-radius: 20px; }
.pd-see .badge-arrow { width: 28px; height: 28px; }
.pd-ms > :nth-last-child(2) { margin-bottom: 14px; }
.pd-switch { gap: 12px 24px; }

/* ---- topics view ---- */
.pd-cols { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.pd-col { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 14px; padding: 22px 22px 24px; border-radius: var(--radius-card); background: var(--surface-column); }
.pd-col.now { flex: 2.4 1 480px; background: var(--surface); }
.pd-col-h { display: flex; align-items: baseline; justify-content: space-between; padding-bottom: 10px; border-bottom: 1px solid var(--rule); }
.pd-col.now .pd-col-h { border-bottom: 2px solid var(--ink); }
.pd-col.planned .pd-col-h { border-bottom: 1px dashed var(--accent); }
.pd-col-h h3 { margin: 0; font: 500 22px/1.2 var(--font-display); letter-spacing: -0.02em; }
.pd-col-h .num { font: 300 30px/1 var(--font-display); letter-spacing: -0.03em; color: var(--ink-display-grey); }
.pd-col.now .num { color: var(--ink); }
.pd-col.planned .num { color: var(--accent); }
.pd-col-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(190px, 100%), 1fr)); gap: 10px; }
.pd-col.now .pd-col-grid { grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); }
.pd-none { margin: 0; font-size: 13px; color: var(--ink-3); }
.pd-tc { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius-tile); background: var(--surface); transition: transform .15s ease; }
.pd-tc:hover { transform: translateY(-2px); }
.pd-tc.past { background: var(--surface-muted); }
.pd-tc.planned { background: transparent; border: 1.5px dashed var(--ink-display-grey); }
.pd-tc.hot { background: var(--accent); border: 1px solid var(--accent); color: #fff; }
.pd-tc .top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pd-tc .role { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.pd-tc .rank { flex: none; font: 500 14px/1.2 var(--font-display); white-space: nowrap; }
.pd-tc .name { font: 600 16px/1.25 var(--font-display); letter-spacing: -0.01em; overflow-wrap: anywhere; }
.pd-tc .lv { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 13px; }
.pd-tc .lv b { font-weight: 500; }
.pd-tc .foot { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: 12px; }
.pd-tc .fade { color: var(--ink-2); }
.pd-tc.hot .role, .pd-tc.hot .fade { color: rgba(255,255,255,0.9); }

/* ---- timeline view ---- */
.pd-tl.card { padding: 26px 32px 32px; gap: 24px; }
.pd-years { display: flex; flex-wrap: wrap; gap: 8px; }
.pd-years button { flex: 1 1 140px; min-height: 40px; padding: 0 16px; border: 0; border-radius: 20px; background: var(--surface-column); color: var(--ink-2); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; cursor: pointer; }
.pd-years button[aria-pressed="true"] { background: var(--accent-deep); color: #fff; }
.pd-year { display: grid; grid-template-columns: minmax(120px, 200px) 28px 1fr; column-gap: 20px; }
.pd-year + .pd-year { border-top: 1px solid var(--surface-sunken); }
.pd-yearnum { padding-top: 18px; font: 400 64px/1 var(--font-display); letter-spacing: -0.03em; color: var(--ink-faint); }
.pd-line { position: relative; }
.pd-line::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; border-left: 2px solid var(--rule); }
.pd-year.now .pd-line::before { border-color: var(--accent); }
.pd-year.future .pd-line::before { border-color: var(--ink-faint); }
.pd-events { margin: 0; padding: 22px 0 26px; list-style: none; display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.pd-ev { position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 16px; align-items: start; }
.pd-ev .dot { position: absolute; left: -39px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--ink); }
.pd-ev.today .dot { background: var(--accent); }
.pd-ev.planned .dot { background: var(--surface); border: 2px solid var(--ink-display-grey); }
.pd-ev .date { font: 600 15px/1.4 var(--font-display); font-variant-numeric: tabular-nums; }
.pd-ev.planned .date { color: var(--ink-3); }
.pd-ev .body { min-width: 0; }
.pd-ev .ttl { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.pd-ev .ttl b { font-weight: 600; overflow-wrap: anywhere; }
.pd-ev.planned .ttl b { color: var(--ink-2); }
.pd-ev .tag { padding: 1px 9px; border-radius: 10px; font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; }
.pd-ev .tag.today { background: var(--accent); color: #fff; font-weight: 600; }
.pd-ev .tag.plan { padding: 0 9px; border: 1px dashed var(--ink-display-grey); color: var(--ink-2); font-weight: 500; }
.pd-ev .detail { display: block; margin-top: 2px; color: var(--ink-2); overflow-wrap: anywhere; }
.pd-ev .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pd-ev .chip { font-size: 12px; font-weight: 500; padding: 0 10px; }
.pd-ev .src { display: flex; align-items: center; min-height: 28px; padding: 0 10px; font-size: 12px; color: var(--ink-3); }
.pd-key { display: flex; flex-wrap: wrap; gap: 8px 20px; padding-top: 14px; border-top: var(--rule-row); font-size: 12px; color: var(--ink-2); }
.pd-key span { display: flex; align-items: center; gap: 6px; }
.pd-key i { display: block; width: 10px; height: 10px; border-radius: 50%; }
.pd-key .k-done { background: var(--ink); } .pd-key .k-today { background: var(--accent); }
.pd-key .k-plan { border: 2px solid var(--ink-display-grey); background: var(--surface); }
.pd-tl .note { max-width: 760px; margin-top: -10px; }

@media (max-width: 680px) {
  .pd-hex { width: 56px; height: 65px; font-size: 18px; }
  .pd-ident { gap: 14px; }
  .pd-tl.card { padding: 20px 18px 24px; }
  .pd-year { grid-template-columns: 20px 1fr; column-gap: 14px; }
  .pd-yearnum { grid-column: 1 / -1; padding: 14px 0 4px; font-size: 44px; }
  .pd-ev { grid-template-columns: 1fr; gap: 2px; }
  .pd-ev .dot { left: -29px; }
  .pd-depth.depth-row { grid-template-columns: 20px 76px 18px 1fr; }
  .pd-cells { flex-wrap: wrap; }
  .pd-cells .squares { max-width: 100%; }
}
