/* PreeChina First Time China guides (the 46 long-form knowledge pages): hero + sticky contents list + long-form text, in the site VI.
   Source: _map/site2/knowledge.css, copied to assets/knowledge.css by restyle_knowledge.mjs. Colours, type scale and card style follow
   lib.mjs (baseCss + pageCss): Alexandria, #0d1b3e / #1a6fc4 / #f0c060, 12px radius, 16px/1.8 body.
   Everything is scoped under .pck-* so nothing here can touch the header, the footer or other pages (the old pages used bare `nav {}`
   rules, which made the header menu scroll). */
.pc-wrap .pck-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 40px; align-items: start; margin: 0 0 40px; }
.pc-wrap .pck-toc { position: sticky; top: 96px; align-self: start; max-height: calc(100vh - 120px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #cfd8e8 transparent; background: #fff; border: 1px solid #e4e8f0; border-radius: 12px; padding: 18px 12px 12px; font-size: 13px; line-height: 1.5; box-shadow: 0 2px 24px rgba(26,111,196,.08); }
.pck-toc::-webkit-scrollbar { width: 6px; }
.pck-toc::-webkit-scrollbar-thumb { background: #cfd8e8; border-radius: 3px; }
.pc-wrap .pck-toc-t { margin: 0 0 10px; padding: 0 8px; font-size: 11px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: #1a6fc4; }
/* Other articles in the same domain (Food / Culture / Background / How It Works): generated by restyle_knowledge.mjs between <!--pck-other--> markers */
.pc-wrap .pck-other { margin: 14px 0 0; padding: 14px 0 0; border-top: 1px solid #e4e8f0; }
.pck-other ul { list-style: none; margin: 0; padding: 0; }
.pck-other li { margin: 0; }
.pck-other li a { display: block; padding: 6px 8px; border-radius: 8px; border-left: 3px solid transparent; text-decoration: none; color: #2e3a5c; font-weight: 500; }
.pck-other li a:hover { background: #f4f7fd; border-left-color: #f0c060; color: #0d1b3e; }
.pc-wrap .pck-other .pck-all { display: block; margin: 8px 8px 2px; padding: 0; font-size: 12.5px; font-weight: 700; color: #1a6fc4; text-decoration: none; }
.pck-other .pck-all:hover { color: #0d1b3e; }
.pck-toc .sub { margin: 0 8px 10px; font-size: 12px; color: #6b7a99; }
.pck-toc ol { list-style: none; margin: 0; padding: 0; }
.pck-toc li a { display: flex; gap: 8px; align-items: baseline; padding: 6px 8px; border-radius: 8px; border-left: 3px solid transparent; text-decoration: none; color: #2e3a5c; font-weight: 500; }
.pck-toc li a:hover { background: #f4f7fd; border-left-color: #f0c060; color: #0d1b3e; }
.pck-toc li a b { color: #1a6fc4; font-weight: 700; min-width: 22px; }
.pck-toc li a span { margin-left: auto; color: #8a97b3; font-size: 11px; font-weight: 400; font-variant-numeric: tabular-nums; }
.pck-toc li.todo-li a { opacity: .5; }

.pck-main { min-width: 0; overflow-wrap: break-word; font-size: 16px; line-height: 1.8; color: #2e3a5c; --fg: #1a1a2e; --mut: #6b7a99; --line: #e0e7f3; --acc: #1a6fc4; --card: #fff; --bg: #eef2f7; }
.pck-main section { padding: 0 0 44px; margin: 0 0 44px; border-bottom: 1px solid #dde4f0; }
.pck-main section:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.pck-main section::before { content: ""; display: block; width: 48px; height: 3px; background: linear-gradient(90deg, #1a6fc4, #f0c060); border-radius: 2px; margin-bottom: 16px; }
.pck-main h2 { display: flex; align-items: baseline; gap: 12px; margin: 0 0 8px; font-size: clamp(1.5rem, 2.6vw, 1.9rem); font-weight: 800; color: #0d1b3e; line-height: 1.2; scroll-margin-top: 96px; }
.pck-main h2 .num { flex: none; font-size: 12px; font-weight: 700; color: #1a6fc4; border: 1.5px solid #1a6fc4; border-radius: 6px; padding: 4px 7px; line-height: 1; letter-spacing: .05em; }
.pck-main .q { margin: 0 0 16px; font-size: 15px; font-weight: 600; font-style: normal; line-height: 1.5; color: #1a6fc4; }
.pck-main p { margin: 0 0 16px; max-width: 72ch; }
.pck-main strong { color: #0d1b3e; font-weight: 700; }
.pck-main h3 { margin: 28px 0 8px; font-size: 1.1rem; font-weight: 700; color: #0d1b3e; line-height: 1.35; }
.pck-main h3 + p { margin-top: 0; }
.pck-main ul.pts, .pck-main ul { margin: 0 0 16px; padding: 0 0 0 22px; max-width: 72ch; }
.pck-main li { margin: 0 0 10px; }
.pck-main .meta { margin: 0 0 14px; font-size: 12px; font-weight: 600; line-height: 1.6; color: #6b7a99; letter-spacing: .02em; }
.pck-main a:not([class]), .pck-main a.x, .pck-main a.e-live { color: #1a6fc4; font-weight: 600; text-decoration: underline; text-decoration-color: rgba(26,111,196,.35); text-underline-offset: 2px; }
.pck-main a:not([class]):hover, .pck-main a.x:hover, .pck-main a.e-live:hover { text-decoration-color: #1a6fc4; }
.pck-main a.e-pending { color: inherit; text-decoration: none; border-bottom: 1px dashed #8a97b3; }
.pck-main a.e-gloss { color: inherit; text-decoration: none; border-bottom: 1px dotted #8a97b3; }
.pck-main .era { font-size: .85em; color: #6b7a99; font-style: normal; }
.pck-main .cn { font-family: "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif; font-size: .88em; color: #6b7a99; white-space: nowrap; margin-left: .15em; }
.pck-main p.todo { color: #6b7a99; font-style: italic; border-left: 3px solid #e0e7f3; padding-left: 14px; }
.pck-main .legend { font-size: 12.5px; line-height: 1.7; color: #3d4f72; background: #f4f7fd; border-left: 3px solid #f0c060; border-radius: 6px; padding: 12px 16px; margin: 18px 0 0; }
.pck-main .legend b { color: #0d1b3e; }

/* figures and tables: the same card as the rest of the site */
.pck-main figure.dg, .pck-main figure.tw { margin: 24px 0 28px; border: 1px solid #e4e8f0; border-radius: 12px; background: #fff; overflow: hidden; box-shadow: 0 2px 24px rgba(26,111,196,.06); }
.pck-main figure.tw { overflow-x: auto; }
.pck-main figure figcaption { padding: 12px 16px; border-bottom: 1px solid #e4e8f0; background: #f4f7fd; font-size: 12px; font-weight: 700; letter-spacing: .04em; line-height: 1.5; color: #3d4f72; }
.pck-main figure.dg .wrap { display: block; padding: 14px 14px 6px; }
.pck-main figure.dg svg { display: block; width: 100%; height: auto; }
.pck-main figure.dg .note { padding: 0 16px 14px; font-size: 12.5px; line-height: 1.6; color: #6b7a99; }
.pck-main .dg .ln { stroke: var(--fg); fill: none; }
.pck-main .dg .lnq { stroke: var(--acc); fill: none; }
.pck-main .dg .box { stroke: var(--line); fill: none; }
.pck-main .dg .fillA { fill: var(--acc); opacity: .13; }
.pck-main .dg .fillB { fill: var(--fg); opacity: .05; }
.pck-main .dg .step { fill: var(--acc); opacity: .12; stroke: var(--line); }
.pck-main .dg text { font-family: 'Alexandria', system-ui, "Microsoft YaHei", sans-serif; font-size: 13px; fill: var(--fg); }
.pck-main .dg .sm { font-size: 11.5px; fill: var(--mut); }
.pck-main .dg .bg { font-weight: 700; font-size: 15px; }
.pck-main .dg .cn { font-size: 11.5px; fill: var(--mut); }
.pck-main table { border-collapse: collapse; width: 100%; font-size: 14px; line-height: 1.55; background: #fff; }
.pck-main th, .pck-main td { text-align: left; padding: 11px 14px; border-bottom: 1px solid #e0e7f3; vertical-align: top; color: #2e3a5c; }
.pck-main th { background: #f4f7fd; color: #0d1b3e; font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; white-space: nowrap; }
.pck-main tbody tr:last-child td { border-bottom: 0; }

/* NOTE: the base block of every page has `.pc-wrap * { margin: 0; padding: 0 }` (specificity 0,1,0, loaded after this file),
   so single-class rules that set margin/padding here are written as `.pc-wrap .pck-x` to win. */
/* the as-of line some pages carry, and the cross-link block another machine added after the article */
.pc-wrap .pck-asof { background: #f4f7fd; border-left: 3px solid #f0c060; border-radius: 6px; padding: 12px 18px; margin: 0 0 28px; font-size: 14px; font-weight: 600; line-height: 1.6; color: #2e3a5c; }
.pc-wrap aside.pc-uc { max-width: none !important; margin: 0 0 40px !important; padding: 22px 26px !important; border: 1px solid #e4e8f0 !important; border-radius: 12px; background: #fff; font: 15px/1.7 'Alexandria', system-ui, sans-serif !important; color: #2e3a5c !important; }
.pc-wrap aside.pc-uc h2 { font-size: 1.1rem !important; font-weight: 700; color: #0d1b3e; margin: 0 0 8px !important; }

@media (max-width: 900px) {
  .pc-wrap .pck-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .pc-wrap .pck-toc { position: static; max-height: none; overflow: visible; }
  .pck-toc ol { columns: 2; column-gap: 12px; }
  .pck-main { font-size: 15.5px; }
}
@media (max-width: 520px) { .pck-toc ol { columns: 1; } }
