/* remaining pages (direction ② reading layout) */
.ph { color: var(--ink-3); font-size: 16px; }
.article .main.wide { grid-column: 1 / -1; max-width: 1100px; width: 100%; justify-self: center; }
.pg-posts, .pg-topic { grid-template-columns: minmax(0, 1100px); }

/* start */
.kinds { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 8px 0 34px; }
.kind { padding: 22px 24px; border-top: 1px solid var(--ink); background: linear-gradient(180deg, rgba(220, 227, 208, .35), rgba(220, 227, 208, 0)); }
.kind h3 { font-size: 20px; margin: 8px 0 6px; }
.kind p { font-size: 16px; color: var(--ink-2); margin: 0; }
.drawers-mini { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 20px; }
.drawers-mini li { padding: 12px 0; border-top: 1px solid var(--rule); }
.drawers-mini li a { display: grid; grid-template-columns: 76px 1fr; gap: 14px; align-items: start; }
.drawers-mini img { width: 76px; height: 76px; }
.drawers-mini h3 { font-size: 19px; margin: 6px 0 4px; }
.drawers-mini p, .prose .drawers-mini p { font-size: 14.5px; line-height: 1.7; color: var(--ink-2); margin: 0; }
.drawers-mini .num { font-size: 13px; } .drawers-mini .num::after { width: 28px; margin-top: 6px; }
.lead { margin-bottom: 18px; }
.reads { display: flex; flex-direction: column; gap: 14px; }
.read { position: relative; display: grid; grid-template-columns: 56px 1fr 96px; grid-template-rows: auto auto auto; column-gap: 18px; align-items: center; padding: 18px 18px 18px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); transition: background .6s var(--ease); }
.read:hover { background: rgba(220, 227, 208, .35); }
.read .rn { grid-column: 1; grid-row: 1 / span 3; align-self: start; padding-top: 2px; font-style: italic; font-size: 48px; color: var(--moss); line-height: 1; text-align: center; }
.read .tag { grid-column: 2; }
.read h3 { font-size: 20px; grid-column: 2; margin: 4px 0 0; }
.read p, .prose .read p { grid-column: 2; font-size: 15px; line-height: 1.7; color: var(--ink-2); margin: 6px 0 0; }
.read img { grid-column: 3; grid-row: 1 / span 3; width: 96px; height: 96px; }
.prose .kind p { margin: 0; }
.boundary { padding: 22px 26px; background: rgba(233, 221, 198, .45); border-radius: 10px; margin-bottom: 24px; }
.boundary p { margin: 0 0 10px; }
.boundary p:last-child { margin-bottom: 0; }
.next { margin-top: 56px; display: flex; gap: 40px; flex-wrap: wrap; }

/* posts library */
.lib .a-head h1 { margin-bottom: 26px; }
.controls { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding-bottom: 22px; border-bottom: 1px solid var(--ink); }
.seg { display: inline-flex; border: 1px solid var(--rule); border-radius: 999px; padding: 3px; }
.seg button, .chips button { font-family: var(--sans); font-weight: 500; font-size: 14px; letter-spacing: .06em; color: var(--ink-2); background: none; border: 0; cursor: pointer; transition: background .4s var(--ease), color .4s var(--ease); }
.seg button { padding: 8px 18px; border-radius: 999px; }
.seg button[aria-pressed="true"] { background: var(--moss); color: #F7F2E8; }
.chips { display: inline-flex; gap: 6px; }
.chips button { padding: 6px 14px; border: 1px solid var(--rule); border-radius: 999px; }
.chips button[aria-pressed="true"] { border-color: var(--moss); color: var(--moss); background: rgba(220, 227, 208, .45); }
.mgroup, .tgroup { margin-top: 44px; }
.mgroup.empty, .tgroup.empty { display: none; }
.mh { font-style: italic; font-weight: 400; font-size: 20px; color: var(--ink-3); margin-bottom: 6px; letter-spacing: .02em; }
.ledger-l { list-style: none; padding: 0; margin: 0; }
.ledger-l li a { display: grid; grid-template-columns: 140px 1fr; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.ledger-l .ld { font-style: italic; font-size: 16px; color: var(--ink-3); }
.ledger-l .lt { display: flex; flex-direction: column; gap: 3px; }
.ledger-l .rt { font-size: 21px; font-weight: 700; letter-spacing: .03em; transition: color .5s var(--ease); }
.ledger-l li a:hover .rt { color: var(--moss); }
.ledger-l li[data-pillar] .rt::after { content: "支柱"; font-family: var(--sans); font-size: 11px; font-weight: 500; letter-spacing: .12em; color: var(--moss); border: 1px solid rgba(78, 107, 69, .45); border-radius: 3px; padding: 0 5px; margin-left: 10px; vertical-align: .25em; }
.tg-h { display: grid; grid-template-columns: 84px auto 1fr auto; align-items: center; gap: 18px; padding-bottom: 10px; border-bottom: 1px solid var(--ink); }
.tg-h img { width: 84px; height: 84px; }
.tg-h h2 { font-size: 26px; }
.tg-h .num::after { display: none; }

/* topic */
.t-head { display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: center; padding: 56px 0 40px; }
.t-head img { width: 260px; height: 260px; }
.t-head h1 { font-size: 48px; margin: 16px 0 12px; }
.t-head .t-intro { font-size: 19px; color: var(--ink-2); max-width: 30em; margin-bottom: 10px; }
.pin { display: block; padding: 28px 32px; margin: 10px 0 56px; border-radius: 14px; background: linear-gradient(115deg, rgba(220, 227, 208, .62), rgba(233, 221, 198, .42)); }
.pin h3 { font-size: 26px; margin: 8px 0 12px; }
.pin.empty { background: none; border: 1px dashed rgba(36, 48, 42, .25); }
.pin.empty h3 { color: var(--ink-3); }
.pg-topic .sec { font-size: 22px; padding-bottom: 14px; border-bottom: 1px solid var(--ink); margin-bottom: 0; }
.t-other { display: flex; gap: 34px; flex-wrap: wrap; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--rule); font-weight: 700; font-size: 18px; }
.t-other a { display: inline-flex; align-items: baseline; gap: 10px; }
.t-other .num { font-size: 14px; } .t-other .num::after { display: none; }

/* person header (lester / about) */
.a-head.person { display: grid; grid-template-columns: 220px 1fr; gap: 34px; align-items: end; padding-top: 56px; margin-bottom: 30px; }
.portrait { width: 220px; height: 220px; }
.a-head.person h1 { margin: 12px 0 8px; }
.a-head .sub { color: var(--ink-2); font-size: 17px; margin: 0; }
.a-head .sub.latin { font-style: italic; font-size: 18px; }

/* about timeline */
.timeline { list-style: none; padding: 0; margin: 28px 0 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 70px; top: 10px; bottom: 10px; width: 1px; background: var(--rule); }
.timeline li { display: grid; grid-template-columns: 70px 1fr; gap: 30px; padding: 0 0 34px; position: relative; }
.timeline .ty { font-style: italic; font-size: 22px; color: var(--moss); text-align: right; padding-right: 16px; line-height: 1.3; }
.timeline .ty.dotm { position: relative; height: 1.4em; }
.timeline li::after { content: ""; position: absolute; left: 66px; top: 12px; width: 9px; height: 9px; border-radius: 50%; background: var(--paper); border: 1px solid var(--moss); }
.timeline li.now::after { background: var(--moss); }
.timeline li.later { opacity: .45; }
.timeline li.later::after { border-style: dashed; }
.timeline h3 { font-size: 21px; margin-bottom: 4px; }
.timeline p { margin: 0; font-size: 16px; color: var(--ink-2); }
.principles { padding-left: 1.2em; }
.principles li { margin-bottom: .5em; }
.principles li::marker { color: var(--moss); }

@media (max-width: 720px) {
  .kinds, .drawers-mini { grid-template-columns: 1fr; }
  .read { grid-template-columns: 40px 1fr 64px; column-gap: 12px; }
  .read .rn { font-size: 36px; }
  .read h3 { font-size: 17px; }
  .read img { width: 64px; height: 64px; }
  .controls { flex-direction: column; align-items: flex-start; }
  .ledger-l li a { grid-template-columns: 1fr; gap: 2px; }
  .ledger-l .rt { font-size: 18px; }
  .tg-h { grid-template-columns: 60px auto 1fr auto; gap: 12px; }
  .tg-h img { width: 60px; height: 60px; }
  .tg-h h2 { font-size: 21px; }
  .t-head { grid-template-columns: 1fr; gap: 0; padding: 30px 0 24px; }
  .t-head img { width: 150px; height: 150px; }
  .t-head h1 { font-size: 34px; }
  .pin { padding: 22px 20px; }
  .pin h3 { font-size: 21px; }
  .a-head.person { grid-template-columns: 1fr; gap: 6px; padding-top: 28px; }
  .portrait { width: 170px; height: 170px; }
  .timeline::before { left: 52px; }
  .timeline li { grid-template-columns: 52px 1fr; gap: 24px; }
  .timeline li::after { left: 48px; }
  .timeline .ty { font-size: 17px; padding-right: 10px; }
  .timeline h3 { font-size: 18px; }
}
/* section headings outside .prose get the same rhythm as article h2 */
.article .main > h2 { font-size: 27px; margin: 2.4em 0 .9em; }
.article .main > h2 .num { display: block; margin-bottom: 16px; }
.article .main > h2:first-of-type { margin-top: 1.4em; }
@media (max-width: 720px) { .article .main > h2 { font-size: 23px; } }
.a-head.person h1 { font-size: 42px; white-space: nowrap; }
@media (max-width: 720px) { .a-head.person h1 { font-size: 34px; white-space: normal; } }
/* writer drafts: margin note with Chinese (Kai) above the English original */
.side .src-zh { font-family: var(--kai); font-size: 15.5px; line-height: 1.75; color: var(--ink); margin: 0 0 8px; }
.prose a.inl { color: var(--moss); border-bottom: 1px solid currentColor; }
.prose strong { font-weight: 700; }
/* about draft: long timeline nodes with body text */
.about-intro { margin: 10px 0 10px; }
.tl-long li { padding-bottom: 44px; }
.tl-long h3 { font-size: 22px; margin-bottom: 14px; line-height: 1.5; }
.tl-body p { margin: 0 0 1em; font-size: 18px; color: var(--ink); }
.tl-body p:last-child { margin-bottom: 0; }
.closing { margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--rule); }
@media (max-width: 720px) { .tl-long h3 { font-size: 19px; } .tl-body p { font-size: 17px; } }
/* about: Lester originals inline under each pitfall */
.tl-body .side.inline { float: none; width: auto; margin: 4px 0 30px; padding: 18px 22px 16px; border-top: 0; border-left: 2px solid var(--moss); background: rgba(233, 221, 198, .4); border-radius: 0 10px 10px 0; }
.tl-body .side.inline .src-zh { font-size: 17px; }
.tl-body .side.inline .src-quote { font-size: 15.5px; }
/* /about rail = the timeline (year-led, pitfalls nested, scroll-spy) */
.tl-toc ol { list-style: none; margin: 0; padding: 0; }
.tl-toc > ol > li { border-top: 1px solid var(--rule); }
.tl-toc a { display: grid; grid-template-columns: 44px 1fr; gap: 8px; padding: 9px 0; color: var(--ink-3); font-family: var(--sans); font-size: 13.5px; line-height: 1.55; letter-spacing: .03em; transition: color .4s var(--ease); }
.tl-toc a:hover, .tl-toc a.on { color: var(--ink); }
.tl-toc .ry { font-style: italic; font-size: 15px; color: var(--moss); line-height: 1.4; }
.tl-toc .ry.dot::before { content: ""; display: inline-block; width: 7px; height: 7px; border: 1px solid var(--moss); border-radius: 50%; margin: 6px 0 0 4px; }
.tl-toc a.on .ry.dot::before { background: var(--moss); }
.tl-toc .rt { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tl-toc .rsub { margin: -2px 0 8px 52px; border-left: 1px solid var(--rule); }
.tl-toc .rsub a { display: block; padding: 4px 0 4px 12px; font-size: 13px; }
.tl-toc .rsub a.on { color: var(--moss); box-shadow: inset 2px 0 0 var(--moss); }
.tl-toc li.later { padding: 9px 0; opacity: .45; }
.tl-toc li.later .ry { color: var(--ink-3); }
.pg-about .timeline li, .pg-about .tl-body p[id] { scroll-margin-top: 32px; }
.tl-toc li { display: block; padding: 0; border-top: 0; }
.tl-toc > ol > li { border-top: 1px solid var(--rule); }
.tl-toc .rsub li { border: 0; }
