/* directory.css — Artsymus people & directory template layer.
   Every page built by the people generators (Wave 1/2/3, Zhang Daqian,
   gap-register, Wikipedia batch, Lawrence Qiao) has linked this file since
   2026-11-22 — but it never existed (404), and style.css carries no rules for
   this template's classes, so person pages rendered unstyled: raw header,
   no gutters, edge-to-edge text. This file is that missing layer.
   It loads AFTER style.css on those pages and reuses its design tokens.
   Gutter law: .dir-wrap and .header-inner use the homepage .wrap geometry —
   max-width 1120px, side padding 24px at every width. */

/* ---------- header: the trio (hamburger / search / Symus guide) ---------- */
.site-header{position:sticky;top:0;z-index:60;background:rgba(255,255,255,.94);
  backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line,#e7e5e0)}
.header-inner{max-width:1120px;margin:0 auto;padding:0 24px;min-height:64px;
  display:flex;align-items:center;gap:18px}
.brand{text-decoration:none;flex:none}
.brand-name{font-family:var(--serif,Georgia,serif);font-size:23px;font-weight:700;
  color:var(--ink,#1d1f22);letter-spacing:.01em}
.main-nav{display:flex;gap:20px;align-items:center}
.main-nav a{color:var(--ink,#1d1f22);font-size:15px;text-decoration:none;white-space:nowrap}
.main-nav a:hover{color:var(--accent,#0f5c63)}
.header-actions{margin-left:auto;display:flex;gap:10px;align-items:center;flex:none}
/* language selector — mirrors the homepage select.lang rule (style.css);
   endonym options, current language preselected, swaps the URL prefix */
.site-header select.lang{font:inherit;font-size:14px;padding:7px 8px;max-width:150px;flex:none;
  border:1px solid var(--line,#e7e5e0);border-radius:8px;background:#fff;
  color:var(--ink,#1d1f22);cursor:pointer}
.icon-btn{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;
  border:1px solid var(--line,#e7e5e0);border-radius:9px;background:#fff;
  color:var(--ink,#1d1f22);font-size:16px;line-height:1;cursor:pointer;text-decoration:none}
.icon-btn.guide-btn{color:#b08d3e;border-color:#d8d2c2;background:#faf6ec;font-size:17px}
.hamb{display:none}
.search-bar{border-top:1px solid var(--line,#e7e5e0);background:#fff}
.search-bar[hidden]{display:none}
.search-bar{display:flex;gap:10px;max-width:1120px;margin:0 auto;padding:10px 24px}
.search-bar input{flex:1;min-width:0;font:inherit;font-size:15.5px;padding:9px 12px;
  border:1px solid var(--line,#e7e5e0);border-radius:9px;background:#fff;color:var(--ink,#1d1f22)}
.search-bar button{font:inherit;font-size:15px;padding:9px 18px;border:1px solid var(--accent,#0f5c63);
  border-radius:9px;background:var(--accent,#0f5c63);color:#fff;cursor:pointer}
@media(max-width:860px){
  .header-inner{gap:12px;min-height:58px}
  .header-actions{gap:8px}
  .site-header select.lang{max-width:84px;font-size:13px;padding:6px 4px}
  .brand-name{font-size:21px}
  .hamb{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;
    width:38px;height:38px;padding:0;border:1px solid var(--line,#e7e5e0);border-radius:9px;
    background:#fff;cursor:pointer;flex:none}
  .hamb span{display:block;width:19px;height:2px;background:var(--ink,#1d1f22);border-radius:1px}
  .main-nav{display:none}
  .main-nav.open{display:flex;position:absolute;top:100%;left:0;right:0;flex-direction:column;
    align-items:stretch;gap:2px;background:#fff;padding:10px 24px 14px;
    border-bottom:1px solid var(--line,#e7e5e0);box-shadow:0 18px 34px rgba(20,20,20,.10);z-index:55}
  .main-nav.open a{padding:9px 0;font-size:16px}
}

/* ---------- layout: same gutter as the homepage ---------- */
.dir-wrap{max-width:1120px;margin:0 auto;padding:6px 24px 72px}
.dir-wrap img{max-width:100%}
.crumbs{font-size:13.5px;color:var(--muted,#6b7078);padding:12px 0 2px;line-height:1.5}
.crumbs a{color:var(--muted,#6b7078);text-decoration:none}
.crumbs a:hover{color:var(--accent,#0f5c63)}

/* ---------- person pages ---------- */
.person-hero h1{font-size:clamp(30px,6vw,44px);line-height:1.15;margin:12px 0 8px}
.person-aka{color:var(--muted,#6b7078);font-size:15px;margin:2px 0 6px}
.person-meta{color:var(--muted,#6b7078);font-size:15px;line-height:1.65;margin:4px 0;overflow-wrap:break-word}
.person-portrait{margin:18px 0 6px}
.person-portrait img{border-radius:14px}
.listen-credit{font-size:13px;color:var(--muted,#6b7078);margin-top:8px;line-height:1.55}
.sec-h{font-family:var(--serif,Georgia,serif);font-size:25px;font-weight:600;
  line-height:1.25;margin:36px 0 12px;color:var(--ink,#1d1f22)}
.person-bio{font-size:16.5px;line-height:1.75;margin:0 0 14px;max-width:760px}
.timeline{padding-left:22px;margin:10px 0 6px}
.timeline li{margin:0 0 9px;line-height:1.65}
.claim-box{background:var(--wash,#faf9f6);border:1px solid var(--line,#e7e5e0);
  border-radius:14px;padding:20px 22px;margin:30px 0;max-width:760px;line-height:1.65}
.partner-block{background:var(--wash,#faf9f6);border:1px solid var(--line,#e7e5e0);
  border-radius:14px;padding:18px 22px;margin:22px 0;max-width:760px;line-height:1.65}
.btn{display:inline-block;font:inherit;font-size:15px;padding:9px 18px;border-radius:9px;
  border:1px solid var(--accent,#0f5c63);background:var(--accent,#0f5c63);color:#fff;
  text-decoration:none;cursor:pointer}
.dir-wrap table{border-collapse:collapse;font-size:14.5px;max-width:100%}
.dir-wrap th,.dir-wrap td{padding:7px 12px 7px 0;border-bottom:1px solid var(--line,#e7e5e0);
  text-align:left;vertical-align:top;line-height:1.55}

/* work / peer cards on person pages (tr-card shell lives in style.css) */
.wk-initial{display:flex;align-items:center;justify-content:center;height:190px;
  background:#ece9e1;font-family:var(--serif,Georgia,serif);font-size:64px;font-weight:700;
  color:#8a8578;line-height:1}
.tr-card .card-main{padding:14px 16px 16px}
.tr-card .t{display:block;font-weight:600;font-size:16px;line-height:1.4;color:var(--ink,#1d1f22)}
.tr-card .s{display:block;color:var(--muted,#6b7078);font-size:13.5px;margin-top:3px;line-height:1.5}

/* ---------- gallery (person pages; classes from gen_lq3) ----------
   Frame-follows-photo at EVERY width (family standard S40.6; Lawrence
   2026-11-23 23:41 EST, on his own page): the frame hugs each photo's own
   aspect ratio, whole photo, never cropped, no fixed slot and no blank
   bands. The old uniform 1:1 desktop frame with object-fit:contain left
   wide beige bars beside portrait photos. */
.gal-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));
  gap:22px;align-items:start;margin:14px 0 6px}
.gal-card{margin:0}
.gal-frame{background:#ece9e1;border:1px solid #d8d2c2;
  border-radius:14px;overflow:hidden}
.gal-frame img{display:block;width:100%;height:auto;border-radius:0}
@media(max-width:700px){
  .gal-grid{grid-template-columns:1fr}
}

/* ---------- footer ---------- */
.site-footer{border-top:1px solid var(--line,#e7e5e0);background:var(--wash,#faf9f6);margin-top:24px}
.footer-inner{max-width:1120px;margin:0 auto;padding:26px 24px 34px;
  display:flex;flex-wrap:wrap;gap:12px 30px;align-items:baseline}
.foot-brand{font-family:var(--serif,Georgia,serif);font-weight:700;font-size:17px;color:var(--ink,#1d1f22)}
.foot-links{display:flex;gap:18px;flex-wrap:wrap}
.foot-links a{color:var(--muted,#6b7078);text-decoration:none;font-size:14px}
.site-footer .fineprint{flex:1 1 100%}

/* Wordmark artwork sizing — brand-template carriers (2026-11-24 blow-out fix).
   The one-line wordmark PNG is 3932px wide (bilingual 6743px); a carrier
   without an explicit height renders it at natural size and blows out the
   phone layout. Template A (.wordmark) has carried these values since the
   2026-11-23 wordmark deploy; this block extends the SAME values to the
   .brand / .foot-brand / .fwm carriers and adds a generic img.wm-img net so
   no carrier can render the artwork unsized. Wordmark sizing only. */
img.wm-img{display:block;height:30px;width:auto;max-width:68vw}
.brand img.wm-img{display:block;height:30px;width:auto;max-width:68vw}
footer img.wm-img,.foot-brand img.wm-img,.fwm img.wm-img{height:24px}
html[lang^="zh"] img.wm-img,html[lang^="zh"] .brand img.wm-img{height:25px}
html[lang^="zh"] footer img.wm-img,html[lang^="zh"] .foot-brand img.wm-img,html[lang^="zh"] .fwm img.wm-img{height:21px}
@media(max-width:700px){img.wm-img,.brand img.wm-img{height:26px}
html[lang^="zh"] img.wm-img,html[lang^="zh"] .brand img.wm-img{height:23px}}

/* inner-chrome-lockup-2026-12-01 (Lawrence, §137 repeat): template-B brand
   lockup (.brand / .foot-brand) becomes the same centred column as the
   homepage lockup — artwork centred over its tagline at every width —
   and the phone artwork size matches template A exactly (19px at <=400px,
   17px for Chinese editions), instead of the 26px blow-out size these
   pages kept. Header position itself (logo left, §132) is untouched. */
.brand{display:flex;flex-direction:column;align-items:center}
.brand .wm-tag{display:block;text-align:center}
.foot-brand{display:flex;flex-direction:column;align-items:center;text-align:center}
@media(max-width:400px){.brand img.wm-img{height:19px}html[lang^="zh"] .brand img.wm-img{height:17px}}

/* person-hero-centring-2026-12-02 (Lawrence, 2026-12-02: desktop person
   pages massed on the left — §五十九.1 博物馆居中律 / §六十三.9 呈现居中律):
   the .person-hero portrait card (.hero-fig, max-width 600px from the
   pages' inline style) sat at the container's left edge, leaving the
   right ~470px of the first screen empty. Centre the card and the intro
   block inside the already-centred .dir-wrap container. Desktop only —
   the phone composition already measures centred and is NOT changed. */
@media(min-width:900px){
.person-hero .hero-fig{margin-left:auto;margin-right:auto}
.person-hero h1,.person-hero .person-aka,.person-hero .person-meta{text-align:center}
.person-hero .person-bio{margin-left:auto;margin-right:auto}
}
