/* paultan.org / JPJ latest running numbers — light theme.
   App bar (pt-appbar) + slide-in drawer (pt-drawer) replicated from the
   paultan.org mobile theme, matching /car-sales-data/. House tokens: #a60f0f
   red chrome, #ededed ground, white 10px cards with rgba(0,0,0,.08) borders. */

:root {
  --red: #a60f0f;
  --red-dark: #8a0c0c;
  --red-tint: #f6ebeb;
  --ink: #1a1a1a;
  --ink-dim: #63666f;
  --ink-faint: #9097a0;
  --line: #ececec;
  --card-line: rgba(0, 0, 0, .08);
  --ground: #ededed;
  --bg-soft: #f6f7f8;
  --chip-bg: #f4f4f5;
  --card-shadow: 0 1px 3px rgba(0, 0, 0, .06), 0 1px 2px rgba(0, 0, 0, .04);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { overflow-x: clip; }
@supports not (overflow: clip) { html, body { overflow-x: hidden; } }
body { background: var(--ground); color: var(--ink); font: 15px/1.55 Arial, sans-serif; }
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ============ paultan.org app bar + drawer (replicated) ============ */
.pt-appbar{
  position:sticky;top:0;z-index:1000;height:56px;
  display:flex;align-items:center;gap:6px;padding:0 8px 0 6px;
  background:rgba(0,0,0,.97);color:#e9ebed;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.pt-appbar-btn{
  -webkit-appearance:none;appearance:none;border:0;background:transparent;color:#e9ebed;cursor:pointer;
  height:40px;min-width:40px;border-radius:10px;display:inline-flex;align-items:center;justify-content:center;
  gap:5px;padding:0 8px;font:700 13px/1 Arial,sans-serif;-webkit-tap-highlight-color:transparent;
}
.pt-appbar-btn:active{background:rgba(255,255,255,.13)}
.pt-appbar-btn svg{width:22px;height:22px;display:block}
.pt-appbar-logo{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);line-height:0}
.pt-appbar-logo img{height:26px;width:auto;max-width:150px;display:block}
.pt-appbar-right{margin-left:auto;display:flex;align-items:center;gap:2px}
.pt-lang-code{letter-spacing:.3px}

.pt-lang-pop{position:absolute;top:52px;right:8px;z-index:1010;background:#fff;
  border:1px solid #e6e8ec;border-radius:12px;box-shadow:0 12px 32px rgba(20,28,40,.22);min-width:188px;padding:6px}
.pt-lang-pop[hidden]{display:none}
.pt-lang-pop a{display:flex;align-items:center;gap:8px;padding:11px 12px;border-radius:8px;color:#2b3036;text-decoration:none;font:400 14.5px Arial,sans-serif}
.pt-lang-pop a:hover{background:#f3f4f6;text-decoration:none}
.pt-lang-pop a.active{font-weight:700;color:#ea2127}

.pt-backdrop{position:fixed;inset:0;background:rgba(15,20,28,.5);z-index:1100}
.pt-backdrop[hidden]{display:none}
.pt-drawer{position:fixed;top:0;left:0;height:100%;width:84%;max-width:330px;background:#fff;z-index:1110;
  transform:translateX(-104%);transition:transform .26s cubic-bezier(.4,0,.2,1);
  display:flex;flex-direction:column;box-shadow:6px 0 30px rgba(15,20,28,.2);overflow:hidden}
.pt-drawer.open{transform:none}
.pt-drawer-head{display:flex;align-items:center;justify-content:space-between;padding:14px 14px 12px;border-bottom:1px solid #ececec}
.pt-drawer-head img{height:22px;width:auto}
.pt-drawer-close{-webkit-appearance:none;appearance:none;border:0;background:transparent;color:#7a828c;width:38px;height:38px;border-radius:9px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center}
.pt-drawer-close:active{background:#f1f3f5}
.pt-drawer-close svg{width:22px;height:22px}

.pt-cta{display:flex;align-items:center;gap:12px;margin:12px 12px 0;padding:13px 14px;border-radius:12px;text-decoration:none;color:#fff;font-family:Arial,sans-serif}
.pt-cta:hover{text-decoration:none}
.pt-cta+.pt-cta{margin-top:9px}
.pt-cta-blue{background:linear-gradient(100deg,#2f80ed,#1b5fd0)}
.pt-cta-red{background:linear-gradient(100deg,#ef3b41,#c8161d)}
.pt-cta-dark{background:linear-gradient(100deg,#3e4650,#23282e)}
.pt-cta-ico{width:34px;height:34px;border-radius:9px;background:rgba(255,255,255,.18);display:flex;align-items:center;justify-content:center;flex:0 0 auto}
.pt-cta-ico svg{width:20px;height:20px}
.pt-cta-txt{display:flex;flex-direction:column;min-width:0}
.pt-cta-t{font-weight:700;font-size:15px;line-height:1.2}
.pt-cta-s{font-size:11.5px;opacity:.92;margin-top:2px;font-weight:400}
.pt-cta-chev{margin-left:auto;opacity:.85;display:flex;flex:0 0 auto}

.pt-drawer-nav{padding:8px 6px;overflow-y:auto;flex:1}
.pt-drawer-nav>a{display:flex;align-items:center;gap:13px;padding:13px 12px;border-radius:10px;color:#262b31;text-decoration:none;font:700 15.5px Arial,sans-serif}
.pt-drawer-nav>a:hover{background:#f4f5f7;text-decoration:none}
.pt-drawer-nav>a.active{color:#ea2127;background:var(--red-tint)}
.pt-drawer-nav>a.active .pt-dot{background:#ea2127}
.pt-dot{width:7px;height:7px;border-radius:50%;background:#cfd4da;flex:0 0 auto}
.pt-drawer-sep{height:1px;background:#ececec;margin:8px 12px}
.pt-drawer-sub a{display:block;padding:11px 12px;border-radius:10px;color:#5b636c;text-decoration:none;font:400 14px Arial,sans-serif}
.pt-drawer-sub a:hover{background:#f4f5f7;text-decoration:none}

.pt-drawer-foot{padding:15px 16px;border-top:1px solid #ececec;display:flex;gap:22px;align-items:center}
.pt-drawer-foot a{color:#9097a0;display:inline-flex}
.pt-drawer-foot a:hover{color:#ea2127}
.pt-drawer-foot svg{width:20px;height:20px;display:block}

/* desktop appbar: section badge + inline nav + language chips */
.pt-appbar-section { display: none; }
.pt-appbar-nav { display: none; }
.pt-appbar-langs { display: none; }
@media (min-width: 980px) {
  .pt-appbar { gap: 10px; padding: 0 max(16px, calc((100% - 1048px) / 2)); }
  .pt-menu-btn { display: none; }
  .pt-lang-btn { display: none; }
  .pt-appbar-logo { position: static; transform: none; }
  .pt-appbar-logo img { height: 24px; }
  .pt-appbar-section {
    display: inline-block; font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .1em;
    color: #000; background: #fff; border-radius: 999px; padding: 4px 11px;
    text-decoration: none; white-space: nowrap;
  }
  .pt-appbar-section:hover { text-decoration: none; }
  .pt-appbar-nav { display: flex; gap: 22px; margin-left: 14px; }
  .pt-appbar-nav a { font-size: 13.5px; font-weight: 700; color: #c9c9c9; text-decoration: none; white-space: nowrap; }
  .pt-appbar-nav a:hover { color: #fff; text-decoration: none; }
  .pt-appbar-langs { display: flex; gap: 4px; }
  .pt-appbar-langs a { padding: 4px 9px; border-radius: 6px; font-size: 12px; font-weight: 700; color: #9a9a9a; text-decoration: none; }
  .pt-appbar-langs a:hover { color: #fff; text-decoration: none; }
  .pt-appbar-langs a.is-current { color: #fff; background: #2a2a2a; }
}

/* ============ page layout ============ */
.wrap { max-width: 1048px; margin: 0 auto; padding: 0 16px; }
main.wrap { padding-top: 18px; padding-bottom: 8px; }

/* breadcrumb (back to homepage) */
.jpj-crumbs { font-size: 13px; color: var(--ink-faint); padding: 2px 2px 12px; }
.jpj-crumbs a { color: var(--ink-dim); }
.jpj-crumbs a:hover { color: var(--red); }
.jpj-crumb-sep { margin: 0 7px; color: #c3c7cd; }

/* hero card (house /research/ hero-box pattern) */
.jpj-hero {
  background: #fff; border: 1px solid var(--card-line); border-radius: 10px;
  box-shadow: var(--card-shadow); padding: 24px 20px 20px; margin-bottom: 18px;
}
.jpj-hero h1 { font-size: 26px; line-height: 1.2; margin-bottom: 8px; }
.jpj-hero-lede { font-size: 15.5px; line-height: 1.6; color: var(--ink-dim); max-width: 720px; }

/* card + table */
.card {
  background: #fff; border: 1px solid var(--card-line); border-radius: 10px;
  box-shadow: var(--card-shadow); overflow: hidden; margin-bottom: 16px;
}
.jpj-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.jpj-table thead th {
  text-align: left; background: var(--bg-soft); border-bottom: 1px solid var(--line);
  padding: 11px 16px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-faint); font-weight: 700;
}
.jpj-table tbody td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.jpj-table tbody tr:last-child td { border-bottom: 0; }
.jpj-table tbody tr:hover { background: var(--bg-soft); }
.jpj-area { font-weight: 700; }
.jpj-code {
  display: inline-block; min-width: 34px; text-align: center; font-weight: 700;
  font-size: 12px; color: var(--red); background: var(--red-tint);
  border-radius: 6px; padding: 3px 8px;
}
.jpj-plate { font-weight: 800; font-size: 17px; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.jpj-plate.none { font-weight: 700; font-size: 13px; color: var(--ink-faint); }
.jpj-upd { font-size: 12.5px; color: var(--ink-dim); white-space: nowrap; }
.jpj-src { font-size: 13px; color: var(--ink-dim); margin: 0 2px 18px; }

/* JPJeBid CTA card (house pt-cta idiom, red gradient) */
.jpj-bid {
  display: flex; align-items: flex-start; gap: 14px; margin-bottom: 16px;
  padding: 16px 18px; border-radius: 10px; text-decoration: none; color: #fff;
  background: linear-gradient(100deg, #c8161d, #8a0c0c); box-shadow: var(--card-shadow);
}
.jpj-bid:hover { text-decoration: none; }
.jpj-bid-ico {
  width: 40px; height: 40px; border-radius: 10px; flex: 0 0 auto;
  background: rgba(255, 255, 255, .18); display: flex; align-items: center; justify-content: center;
}
.jpj-bid-ico svg { width: 22px; height: 22px; }
.jpj-bid-txt { display: flex; flex-direction: column; min-width: 0; }
.jpj-bid-t { font-weight: 800; font-size: 16px; line-height: 1.25; }
.jpj-bid-s { font-size: 13.5px; line-height: 1.5; opacity: .94; margin-top: 3px; }
.jpj-bid-cta { font-size: 13px; font-weight: 700; margin-top: 8px; color: #ffd9db; }
.jpj-bid:hover .jpj-bid-cta { color: #fff; }

/* editorial copy blocks */
.jpj-copy {
  background: #fff; border: 1px solid var(--card-line); border-radius: 10px;
  box-shadow: var(--card-shadow); padding: 20px 20px 8px; margin-bottom: 16px;
}
.jpj-copy h2 { font-size: 19px; margin-bottom: 10px; }
.jpj-copy p { margin-bottom: 12px; line-height: 1.62; }
.jpj-copy ul { margin: 0 0 12px; padding-left: 20px; }
.jpj-copy li { margin-bottom: 8px; line-height: 1.6; }

details.jpj-faq { border-bottom: 1px solid var(--line); }
details.jpj-faq:last-child { border-bottom: 0; }
details.jpj-faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; }
details.jpj-faq summary::-webkit-details-marker { display: none; }
details.jpj-faq summary::after { content: "+"; float: right; color: var(--ink-faint); font-weight: 700; }
details.jpj-faq[open] summary::after { content: "\2013"; }
details.jpj-faq .a { padding: 0 0 14px; color: var(--ink-dim); line-height: 1.62; }

/* footer (house csd-foot idiom) */
.jpj-foot {
  max-width: 1048px; margin: 8px auto 0; padding: 22px 16px 44px;
  font-size: 13px; color: var(--ink-dim); line-height: 1.6;
}
.jpj-foot a { color: var(--ink-dim); }
.jpj-foot a:hover { color: var(--red); }
.jpj-foot-note { color: var(--ink-faint); margin-top: 8px; }

@media (max-width: 560px) {
  .jpj-hero h1 { font-size: 22px; }
  /* drop the code chip so two columns (area + latest number) read cleanly */
  .jpj-table thead th:nth-child(2), .jpj-table tbody td:nth-child(2) { display: none; }
  .jpj-plate { font-size: 15px; }
  .jpj-table thead th, .jpj-table tbody td { padding-left: 14px; padding-right: 14px; }
}
