/* PW database v7. Page-local replacement for pwx-db-v6.css. */
.pwdb-shell,.pwx-sticky{--x-navy:#0b3a5b;--x-sky:#e8f1f8;--x-orange:#f28c28;--x-ink:#10283a;--x-muted:#4a6275;--x-line:#c9dcea;font-family:system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--x-ink)}
.pwdb-shell *,.pwx-sticky *{box-sizing:border-box}.pwdb-shell [hidden]{display:none!important}
.pw-site-header{background:#0b3a5b;color:#fff}.pw-site-header-inner{max-width:1180px;margin:auto;padding:16px;display:flex;justify-content:space-between;align-items:center;gap:16px}.pw-brand{display:flex;align-items:center;gap:10px;color:#fff;text-decoration:none}.pw-brand-mark{padding:10px;background:#f28c28;border-radius:9px;font-weight:800}.pw-brand strong,.pw-brand small{display:block}.pw-brand small{font-size:11px}.pw-site-nav{display:flex;flex-wrap:wrap;gap:16px}.pw-site-nav a{color:#fff;text-decoration:none}
main.pwdb-shell{display:flex;flex-direction:column;width:100%;max-width:none;margin:0;padding:0 max(16px,calc((100% - 1180px)/2)) 72px;background:#f4f8fb;overflow:clip}
.pwdb-shell>.pwdb-hero{order:0}.pwdb-shell>.pwdb-search-panel{order:1}.pwdb-shell>.pwdb-quick{order:2}.pwdb-shell>.pwdb-results-section{order:3}.pwdb-shell>#pwg-ajankohtaista{order:4;margin-top:48px}.pwdb-shell>.pwi-intro{order:5}.pwdb-shell>.pwx-info{order:6}
main.pwdb-shell>.pwdb-hero,main.pwdb-shell>.pwdb-search-panel,main.pwdb-shell>.pwdb-quick{margin:0;border:0;border-radius:0;background:var(--x-navy);border-image:conic-gradient(#0b3a5b 0 0) fill 0/0/0 100vmax;box-shadow:none;color:#fff}
main.pwdb-shell>.pwdb-hero{padding:28px 0 18px}.pwdb-title{max-width:24ch;margin:0;color:#fff;font-size:clamp(28px,4vw,46px);line-height:1.12;font-weight:800}.pwdb-lead{max-width:65ch;margin:14px 0 0;color:#dce8f2;line-height:1.5}.pwdb-eyebrow,.pw-v3-db-stats,.pwdb-quick>.pwdb-section-kicker{display:none}
main.pwdb-shell>.pwdb-search-panel{padding:4px 0 10px}.pwdb-search-panel form{display:block!important;margin:0}.pwdb-search-panel .w-form-done,.pwdb-search-panel .w-form-fail{display:none!important}.pwdb-search-field{position:relative;display:flex;align-items:center;gap:6px;max-width:780px;padding:6px;background:#fff;border-radius:14px;margin:0}.pwdb-search-field:focus-within{outline:3px solid var(--x-orange)}
#pw-db-search{flex:1;min-width:0;width:100%;height:52px;min-height:52px;margin:0;border:0!important;border-radius:10px!important;padding:0 12px!important;color:var(--x-ink)!important;background:#fff!important;font-size:17px!important;box-shadow:none!important;outline:0}
.pwx-go{height:52px;min-width:72px;padding:0 18px;border:0;border-radius:10px;background:var(--x-orange);color:#082d47;font-size:17px;font-weight:800;cursor:pointer}.pwdb-filter-grid{display:grid!important;grid-template-columns:1fr 1fr;gap:8px!important;max-width:780px;margin-top:12px}.pwdb-filter-field{min-width:0}
.pwdb-select,.pwx-model-filter select{width:100%;height:44px;min-height:44px;margin:0;padding:0 12px!important;border:1px solid #97b0c3!important;border-radius:10px!important;background:#174b6f!important;color:#fff!important;font-size:16px!important}.pwdb-search-panel select option{background:#fff;color:var(--x-ink)}.pwdb-action-field{grid-column:1/-1}.pwdb-action-field:has(>[hidden]){display:none}.pwdb-reset{min-height:44px;padding:0 8px;border:0;background:transparent;color:#fff;text-decoration:underline;font:inherit;cursor:pointer}
.pwx-modes{display:flex;gap:4px;max-width:780px;margin-top:10px;overflow:auto}.pwx-mode{flex:0 0 auto;min-height:44px;padding:0 14px;border:0;border-radius:24px;background:transparent;color:#dce8f2;font:700 15px/1 system-ui;cursor:pointer}.pwx-mode[aria-pressed=true]{background:#fff;color:var(--x-navy)}.pwx-hint{max-width:780px;min-height:40px;margin:8px 0 0;color:#c3d7e5;font-size:14px;line-height:20px}.pwx-model-filter{max-width:780px;margin-top:10px}.pwx-model-filter label{display:block;margin-bottom:6px}
main.pwdb-shell>.pwdb-quick{padding:12px 0 24px}.pwdb-chip-row{display:flex;gap:8px;overflow:auto;margin:0;padding:2px}.pwx-chip,.pwdb-chip{flex:0 0 auto;min-height:44px;padding:0 14px;border:1px solid #7899b2;border-radius:24px;background:transparent;color:#fff;font:700 14px/1 system-ui;cursor:pointer}.pwx-chip.is-active{background:#fff;color:var(--x-navy)}
.pwdb-results-section{margin-top:24px;scroll-margin-top:80px}.pwdb-results-head{display:flex!important;align-items:center;flex-wrap:wrap;gap:12px;min-height:54px;margin-bottom:12px}.pwdb-results-title{margin:0;color:var(--x-navy);font-size:26px;font-weight:800}.pwx-count{margin-left:auto;color:var(--x-muted);font-size:14px;font-variant-numeric:tabular-nums}.pwx-tools{display:flex;align-items:center;gap:8px}.pwx-tools[data-progress]::before{content:attr(data-progress);font-size:12px;color:var(--x-muted)}.pwx-sort{max-width:160px;min-height:44px;padding:8px;border:1px solid var(--x-line);border-radius:8px;background:#fff;color:var(--x-navy)}
#pw-db-results .w-dyn-items.pwx-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;align-items:stretch;min-height:340px}#pw-db-results .w-dyn-item{min-width:0}#pw-db-results [data-pwdb-index],.pwdb-card-search,[data-pw-image-caption],.pwdb-card-rank{display:none!important}
.pwx-item{display:flex;flex-direction:column;min-width:0;height:252px;border:1px solid var(--x-line);border-radius:14px;background:#fff;overflow:hidden}.pwx-card{display:flex;gap:12px;align-items:flex-start;flex:1;min-height:0;padding:12px;color:var(--x-ink);text-decoration:none}.pwx-card:hover{background:#f4f8fb}.pwx-thumb{flex:0 0 88px;width:88px;height:88px;display:grid;place-items:center;overflow:hidden;border-radius:10px;background:var(--x-sky);color:#6e8ca3}.pwx-thumb img{display:block;width:100%;height:100%;object-fit:contain}.pwx-glyph{width:52px;height:52px}.pwx-body{display:flex;flex-direction:column;min-width:0;gap:3px}.pwx-brand{color:var(--x-muted);font-size:13px}.pwx-model{color:var(--x-navy);font-size:18px;line-height:1.25;font-weight:800;overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.pwx-tags{display:flex;flex-wrap:wrap;gap:4px;margin-top:5px}.pwx-tag{padding:3px 7px;border-radius:12px;background:var(--x-sky);color:var(--x-navy);font-size:11px;line-height:1.3}.pwx-tag-ok{background:#ffebd6;color:#6b3500}.pwx-years{color:var(--x-muted);font-size:12px}.pwx-hit{font-size:13px;line-height:1.4;margin-top:5px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.pwx-sizes{flex:0 0 52px;display:block;white-space:nowrap;overflow-x:auto;overflow-y:hidden;padding:4px 12px;border-top:1px solid var(--x-line);font-size:14px;line-height:44px}.pwx-sizes a{display:inline-block;min-width:32px;min-height:44px;color:var(--x-navy);text-align:center;font-weight:700;text-underline-offset:3px}.pwx-source{flex:0 0 24px;padding:0 12px;color:var(--x-muted);font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pwx-divider{grid-column:1/-1;margin:8px 0;padding-top:12px;border-top:1px solid var(--x-line);color:var(--x-muted)}.pwx-skel{flex-direction:row;gap:12px;padding:12px}.pwx-skel .pwx-thumb,.pwx-skel .pwx-body{background:#e4edf4;animation:pwx-pulse 1.4s ease-in-out infinite}.pwx-skel .pwx-body{flex:1;height:60px;border-radius:8px}@keyframes pwx-pulse{50%{opacity:.5}}
.pwx-applied,.pwx-intent-chips{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}.pwx-tag-btn{min-height:44px;padding:8px 12px;border:1px solid var(--x-line);border-radius:20px;background:#fff;color:var(--x-navy);font:inherit;cursor:pointer}.pwx-intent{margin-bottom:16px;padding:12px 16px;border-radius:12px;background:var(--x-sky);font-size:14px;line-height:1.5}.pwx-intent p{margin:4px 0}.pwx-intent a,.pwx-empty a{color:var(--x-navy);font-weight:700}.pwx-empty{padding:24px;border:1px dashed var(--x-line);border-radius:14px;text-align:center;background:#fff}.pwx-empty strong{font-size:19px}.pwx-empty p{max-width:60ch;margin:12px auto}.pwx-more{display:flex;flex-direction:column;align-items:center;gap:10px;margin-top:20px}.pwx-shown{margin:0;font-size:14px;color:var(--x-muted)}.pwx-btn{min-height:48px;padding:8px 24px;border:1px solid var(--x-line);border-radius:10px;background:#fff;color:var(--x-navy);font:700 15px/1.3 system-ui;cursor:pointer}.pwx-btn-primary{background:var(--x-navy);color:#fff}.pwx-btn:disabled{opacity:.6;cursor:progress}.pwx-link{min-height:44px;border:0;background:transparent;color:inherit;font-weight:700;text-decoration:underline;cursor:pointer}.pwx-sentinel{height:1px}.pwx-info{margin-top:32px;padding:4px 16px;border:1px solid var(--x-line);border-radius:12px;background:#fff;line-height:1.55}.pwx-info summary{padding:14px 0;font-weight:700;cursor:pointer}.pwx-info p{max-width:72ch}
.pwx-sticky{position:fixed;top:0;left:0;right:0;z-index:95;padding:8px max(12px,calc((100% - 1180px)/2));background:var(--x-navy);visibility:hidden;transform:translateY(-110%)}.pwx-sticky.is-on{visibility:visible;transform:none}.pwx-sticky-form{display:flex;align-items:center;gap:8px;max-width:780px}.pwx-sticky-input{flex:1;min-width:0;height:44px;margin:0;padding:0 12px;border:0;border-radius:10px;background:#fff;color:var(--x-ink);font-size:16px}.pwx-sticky-count{font-size:12px;color:#fff;white-space:nowrap}.pwx-sticky-btn{min-height:44px;padding:0 14px;border:1px solid #97b0c3;border-radius:10px;background:transparent;color:#fff;font-weight:700;cursor:pointer}
.pwx-sr,.pwdb-search-field>label,.pwdb-filter-field>label,.pwdb-quick>h2{position:absolute!important;width:1px!important;height:1px!important;margin:-1px!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;white-space:nowrap!important;border:0!important;padding:0!important}.pwdb-shell :focus-visible,.pwx-sticky :focus-visible{outline:3px solid var(--x-orange)!important;outline-offset:2px}
.pw-callbar{position:fixed;bottom:0;left:0;right:0;z-index:94;display:flex;justify-content:center;gap:12px;align-items:center;min-height:52px;padding:10px 16px calc(10px + env(safe-area-inset-bottom));background:#0b3a5b;color:#fff;text-decoration:none}.pw-kb-open .pw-callbar{display:none}.pw-has-callbar{padding-bottom:60px}
/* Fixed slots prevent image loading and index hydration from moving the grid. */
html.pwx-js:not(.pwx-ready) #pw-db-results .w-dyn-item,html.pwx-js:not(.pwx-ready) #pw-db-results .w-pagination-wrapper{display:none!important}html.pwx-js:not(.pwx-ready) #pw-db-results .w-dyn-items{height:780px;background:repeating-linear-gradient(#fff 0 252px,transparent 252px 264px)}
@media(min-width:600px){#pw-db-results .w-dyn-items.pwx-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.pwdb-filter-grid{grid-template-columns:1fr 1fr auto}.pwdb-action-field{grid-column:auto}}
@media(min-width:1024px){#pw-db-results .w-dyn-items.pwx-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:767px){.pwdb-results-title{flex-basis:100%}.pwx-count{margin:0 auto 0 0}.pwx-sticky-count{display:none}.pw-site-nav{font-size:12px;gap:8px}.pwdb-lead{display:none}.pwx-tools[data-progress]::before{max-width:100px}.pw-callbar{font-size:13px}}
@media(prefers-reduced-motion:reduce){.pwx-skel .pwx-thumb,.pwx-skel .pwx-body{animation:none}}
@media print{.pwx-sticky,.pwx-modes,.pwx-more,.pwdb-quick,.pw-callbar{display:none!important}.pwx-item{break-inside:avoid;height:auto;min-height:200px}.pwx-sizes{white-space:normal;overflow:visible}}
html.pwx-js:not(.pwx-ready) .pwdb-search-panel::after{content:"";display:block;height:102px}html.pwx-js:not(.pwx-ready) .pwdb-action-field{display:none}html.pwx-js:not(.pwx-ready) #pw-db-results .w-dyn-items{height:6324px}@media(min-width:600px){html.pwx-js:not(.pwx-ready) #pw-db-results .w-dyn-items{height:3156px}}@media(min-width:1024px){html.pwx-js:not(.pwx-ready) #pw-db-results .w-dyn-items{height:2100px}}
/* FIX (QA 18.10.2026): brand wordmark was dark-on-navy (inherited strong colour) */
.pw-site-header strong,.pw-site-header small{color:#fff}
