/* Explo passport pages (/passports/, /passports/compare/, /passports/<a>-vs-<b>/). Loaded after blog.css, visa.css and tools.css.
   Cream page, navy ink, Satoshi (max Medium 500). Flat fills, no pure white, no glows. Prefix: pp- */

.tl-table-wrap { position: relative; }
.pp-sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- top ten ---- */
.pp-top { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; }
.pp-top a { display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 16px 18px 18px; border: 1px solid var(--line); border-radius: 22px; background: var(--soft-2); color: var(--fg); text-decoration: none; transition: background .2s ease, border-color .2s ease; }
.pp-top a:hover { background: var(--soft); border-color: rgba(2, 13, 27, 0.3); color: var(--fg); }
.pp-top .pp-n { font-size: 34px; font-weight: 500; line-height: 1.1; color: var(--link); font-variant-numeric: tabular-nums; }
.pp-top b { font-size: 19px; font-weight: 500; line-height: 1.3; }
.pp-top small { font-size: 15px; color: var(--muted); }

/* ---- ranking table ---- */
.pp-status { margin: 10px 0 12px; font-size: 15px; color: var(--muted); }
.pp-rank th[scope="row"] a { color: var(--fg); text-decoration: none; }
.pp-rank th[scope="row"] a:hover { text-decoration: underline; text-underline-offset: 4px; }
.pp-rank tbody tr[hidden] { display: none; }
.pp-rank .pp-rk { color: var(--muted); width: 3.2em; }
.pp-rank .pp-go { text-align: right; white-space: nowrap; }
.pp-rank .pp-go a { font-size: 15px; }
.pp-rank td .pp-bar { display: inline-block; width: 84px; margin: 0 10px 1px 0; vertical-align: middle; }
.pp-none { margin: 4px 0 14px; color: var(--muted); }
.pp-more { margin: 4px 0 0; }

/* ---- flat proportional bars ---- */
.pp-bar { display: block; height: 8px; border-radius: 999px; background: var(--soft); overflow: hidden; }
.pp-bar i { display: block; height: 100%; border-radius: 999px; background: var(--night); }
.pp-k-F i { background: var(--k-F); }
.pp-k-A i, .pp-k-T i { background: var(--k-A); }
.pp-k-E i { background: var(--k-E); }
.pp-k-R i { background: var(--k-R); }
.pp-k-N i { background: #44505e; }
.pp-k-easy i { background: var(--night); }

/* ---- side-by-side table ---- */
.pp-table th[scope="col"] { font-size: 14px; letter-spacing: 0; text-transform: none; font-weight: 500; color: var(--fg); white-space: normal; width: 34%; }
.pp-table th[scope="col"]:first-child { width: 32%; }
.pp-table td { font-variant-numeric: tabular-nums; }
.pp-table td b { font-size: 20px; font-weight: 500; }
.pp-table td small { font-size: 14px; color: var(--muted); }
.pp-table td .pp-bar { margin: 0 0 8px; max-width: 220px; }
.pp-table td.pp-win { background: var(--s-F-bg); }
.pp-table td.pp-win small { color: var(--s-F-fg); }

/* ---- compare tool ---- */
.pp-pick { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 12px; align-items: end; }
.pp-swap { width: 52px; height: 52px; border-radius: 50%; padding: 0; font-size: 22px; line-height: 1; cursor: pointer; display: grid; place-items: center; background: transparent; box-shadow: inset 0 0 0 1px rgba(2, 13, 27, 0.35); border: 0; color: var(--fg); font-family: inherit; }
.pp-swap:hover { background: var(--soft); }
.pp-swap:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; }
.pp-count { display: inline-block; vertical-align: middle; margin-left: 6px; padding: 3px 11px; border-radius: 999px; background: var(--soft); color: var(--muted); font-size: 15px; font-weight: 500; }
.pp-diff-toggle { margin: 8px 0 0; }
.pp-result-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 6px; }
.pp-result-actions .btn { min-height: 44px; padding: 0 20px; font-size: 15px; }

@media (max-width: 720px) {
  .pp-x { display: none; }
  .pp-pick { grid-template-columns: 1fr; }
  .pp-swap { justify-self: center; transform: rotate(90deg); }
  .pp-top { grid-template-columns: 1fr 1fr; gap: 10px; }
  .pp-top a { padding: 14px 14px 16px; }
  .pp-top .pp-n { font-size: 28px; }
  .pp-top b { font-size: 17px; }
  .pp-rank th, .pp-rank td { padding: 10px 8px; }
  .pp-rank thead th, .pp-rank thead th.num { white-space: normal; line-height: 1.25; font-size: 12px; letter-spacing: .04em; }
  .pp-rank td .pp-bar { display: none; }
  .pp-rank .pp-go a { font-size: 14px; }
  .pp-table th, .pp-table td { padding: 10px 10px; }
  .pp-table td b { font-size: 18px; }
}
