/* World port pages and country lists (templates/ports/world_port.html,
   ports_country.html), on top of port.css and its colour tokens. */
.wp-note { margin: 0 0 16px; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--muted); font-size: 14px; line-height: 1.7; }
.wp-sub { display: block; margin-top: 2px; font-size: 12px; font-weight: 400; }
.wp-h2 { font-size: 18px; margin: 24px 0 12px; }
.wp-specs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 18px; align-items: start; }
.wp-sources { margin-top: 18px; }
.wp-sources ul { margin: 0 0 8px; padding-inline-start: 18px; font-size: 14px; line-height: 1.9; }
.wp-near a, .wp-countries a { display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; min-width: 0; }
.wp-near a:hover span, .wp-countries a:hover span { text-decoration: underline; }
.wp-near li > span:last-child { white-space: nowrap; }
.wp-countries { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 4px 16px; font-size: 14px; }
.wp-countries li { padding: 5px 0; }
.wp-countries small { color: var(--muted); font-variant-numeric: tabular-nums; }
.wp-countries a[aria-current] span { font-weight: 700; }
.wp-countries .flag, .wp-near .flag { width: 20px; height: 15px; border-radius: 2px; object-fit: cover; flex: none; }
.wp-links { list-style: none; margin: 8px 0 0; padding: 0; columns: 3 220px; font-size: 14px; line-height: 2; }
.wp-pager .btns a, .wp-pager .btns span[aria-current] { display: inline-flex; align-items: center; justify-content: center; height: 30px; min-width: 30px; padding: 0 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); color: var(--text); text-decoration: none; }
.wp-pager .btns span[aria-current] { font-weight: 700; border-color: var(--accent); }
.wp-pager .btns { flex-wrap: wrap; }
.pi-head .pg-flag { width: 36px; height: 27px; border-radius: 4px; object-fit: cover; align-self: center; }
.wp-subh { font-size: 13px; font-weight: 600; color: var(--muted); margin: 0 0 4px; }
.wp-names { margin-bottom: 6px; }
/* Chinese: the system's CJK face (no font download); Latin stays as port.css sets it */
:lang(zh-Hans) body, html:lang(zh-Hans) .pg-main { font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Noto Sans SC", "Source Han Sans SC", system-ui, sans-serif; }
