/* Case 06 follows 01–05: presentation, concise credit, shared navigation. */
html #projects-inner #case-wedel>.project-body.wd-case{display:block;grid-template-columns:none;gap:0;margin:0;padding:0;min-width:0;overflow-anchor:none;color:var(--ink,#202020);font-family:var(--sans,Arial,sans-serif)}
html #case-wedel .wd-case [hidden]{display:none!important}
html #case-wedel .wd-case>.case-sequence{display:none!important}
html #case-wedel .wd-chapters{display:flex;flex-wrap:wrap;gap:4px 28px;margin:0 0 18px;padding:0;border:0}
html #case-wedel .wd-chapters button{position:relative;display:inline-flex;align-items:center;gap:8px;min-height:48px;margin:0;padding:10px 0;border:0;background:none;color:var(--muted,#626262);font:400 15px/22px var(--sans,Arial,sans-serif);letter-spacing:0;text-align:start;cursor:pointer}
html #case-wedel .wd-chapters button[aria-selected=true]{color:var(--ink,#202020);font-weight:500}
html #case-wedel .wd-chapters button[aria-selected=true]::after{content:'';position:absolute;inset:auto 0 2px;height:1px;background:currentColor}
html #case-wedel .wd-chapter-number{color:var(--muted,#626262);font:400 11px/1 var(--mono,monospace);font-variant-numeric:tabular-nums}
html #case-wedel .wd-presentation{width:100%;min-width:0;position:relative}
html #case-wedel .wd-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:44px;margin-bottom:8px}
html #case-wedel .wd-views{display:flex;flex-wrap:wrap;gap:4px 22px;align-items:center}
html #case-wedel .wd-views button{min-height:44px;border:0;background:none;color:var(--muted,#626262);padding:8px 0;font:400 13px/20px var(--sans,Arial,sans-serif);cursor:pointer;text-align:start}
html #case-wedel .wd-views button[aria-pressed=true]{color:var(--ink,#202020)}
html #case-wedel .wd-fullscreen{flex:0 0 36px;display:grid;place-items:center;width:36px;height:36px;margin-inline-start:auto;padding:0;border:0;border-radius:0;background:transparent;color:inherit;opacity:.42;cursor:pointer;transition:opacity .18s}
html #case-wedel .wd-fullscreen:is(:hover,:focus-visible){opacity:1}
html #case-wedel .wd-fullscreen svg{display:block;width:16px;height:16px;stroke-width:1.3}
html #case-wedel .wd-stage{display:flex;align-items:center;justify-content:center;position:relative;isolation:isolate;width:100%;height:85svh;min-height:560px;max-height:1040px;overflow:hidden;background:var(--paper,#fcfcf9)}
html #case-wedel .wd-site-frame{display:block;flex:none;width:100%;height:100%;max-width:none;border:0;background:#f6f2e9}
html #case-wedel .wd-media-figure{display:flex;align-items:center;justify-content:center;width:100%;height:100%;margin:0;min-width:0}
html #case-wedel .wd-media-figure :is(img,video){display:block;width:auto;height:auto;max-width:min(100%,var(--wd-native-width,1152px));max-height:100%;object-fit:contain;border:0;background:none}
html #case-wedel .wd-media-figure[data-shape=square] :is(img,video){max-width:min(100%,480px,70svh);max-height:70svh}
html #case-wedel .wd-view-note{margin:10px 0 0;color:var(--muted,#626262);font:400 12px/20px var(--sans,Arial,sans-serif);letter-spacing:0;text-wrap:pretty;min-height:20px}
html #case-wedel :is(button,select,summary):focus-visible{outline:2px solid var(--ink,#202020);outline-offset:5px}
html #case-wedel .wd-archive{margin:32px 0 0;padding:0;border:0;border-top:1px solid var(--line,#d9d9d2)}
html #case-wedel .wd-archive>summary{display:flex;align-items:center;justify-content:space-between;gap:18px;min-height:64px;cursor:pointer;list-style:none;color:var(--ink,#202020);font:400 16px/24px var(--sans,Arial,sans-serif);letter-spacing:0}
html #case-wedel .wd-archive>summary::-webkit-details-marker{display:none}
html #case-wedel .wd-archive>summary::after{content:'+';font:400 23px/1 var(--sans,Arial,sans-serif)}
html #case-wedel .wd-archive[open]>summary::after{content:'−'}
html #case-wedel .wd-archive-count{margin-inline-start:auto;color:var(--muted,#626262);font:400 12px/20px var(--mono,monospace);font-variant-numeric:tabular-nums}
html #case-wedel .wd-archive-filter{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin:8px 0 24px;font:400 14px/22px var(--sans,Arial,sans-serif)}
html #case-wedel .wd-archive-filter select{max-width:100%;min-height:44px;padding:8px 32px 8px 10px;border:1px solid var(--line,#d9d9d2);border-radius:0;background:var(--paper,#fcfcf9);color:var(--ink,#202020);font:inherit}
html #case-wedel .wd-archive-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));align-items:start;gap:34px 18px;margin:0;padding:0}
html #case-wedel .wd-archive-tile{display:flex;flex-direction:column;gap:10px;align-items:stretch;min-width:0;margin:0;padding:0;border:0;background:none;text-align:start;color:var(--ink,#202020);cursor:pointer;font:400 13px/20px var(--sans,Arial,sans-serif)}
html #case-wedel .wd-archive-tile[data-shape=square],html #case-wedel .wd-archive-tile[data-shape=portrait]{grid-column:span 3}
html #case-wedel .wd-archive-tile[data-shape=landscape]{grid-column:span 4}
html #case-wedel .wd-archive-tile[data-shape=wide]{grid-column:span 6}
html #case-wedel .wd-archive-thumb{display:grid;place-items:center;width:100%;height:auto;aspect-ratio:1 / 1;overflow:hidden;background:var(--surface,#f0f0eb);position:relative}
html #case-wedel .wd-archive-thumb :is(img,video){display:block;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain}
html #case-wedel .wd-archive-tile[data-format=gif] .wd-archive-thumb::after,html #case-wedel .wd-archive-tile[data-format=film] .wd-archive-thumb::after{content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(180deg,rgba(0,0,0,.12),transparent 30%,transparent 72%,rgba(0,0,0,.12))}
html #case-wedel .wd-archive-tile[data-format=gif] .wd-archive-thumb::before,html #case-wedel .wd-archive-tile[data-format=film] .wd-archive-thumb::before{position:absolute;z-index:1;inset:10px auto auto 10px;padding:3px 6px;background:rgba(252,252,249,.92);color:var(--ink,#202020);font:400 10px/16px var(--mono,monospace);letter-spacing:.04em}
html #case-wedel .wd-archive-tile[data-format=gif] .wd-archive-thumb::before{content:'GIF'}
html #case-wedel .wd-archive-tile[data-format=film] .wd-archive-thumb::before{content:'FILM'}
html #case-wedel .wd-archive-tile[data-format=social] .wd-archive-thumb{background:var(--paper,#fcfcf9)}
html #case-wedel .wd-archive-placeholder{font:400 14px/22px var(--sans,Arial,sans-serif);color:var(--muted,#626262)}
html #case-wedel .wd-archive-play{position:absolute;inset:auto 10px 10px auto;display:grid;place-items:center;width:30px;height:30px;background:var(--paper,#fcfcf9);color:var(--ink,#202020);font-size:14px}
html #case-wedel .wd-archive-tile-label{display:block;font:400 11px/17px var(--mono,monospace);letter-spacing:.025em;color:var(--muted,#626262)}
html #case-wedel .wd-archive-tile-meta{display:block;color:var(--ink,#202020);font:500 14px/20px var(--sans,Arial,sans-serif);text-wrap:pretty}
html #case-wedel .wd-archive-more{display:block;min-height:44px;margin:28px auto 0;padding:8px 12px;border:0;background:none;color:var(--ink,#202020);font:400 14px/22px var(--sans,Arial,sans-serif);cursor:pointer}
html #projects-inner #case-wedel .wl-project-caption{display:block;width:100%;max-width:72ch;margin:28px 0 0;padding:0;text-align:start;letter-spacing:0}
html #projects-inner #case-wedel .wl-project-caption>.wl-project-caption-title{margin:0 0 12px;padding:0;font:500 20px/26px var(--sans,Arial,sans-serif);color:var(--ink,#202020);letter-spacing:0;text-transform:none}
html #projects-inner #case-wedel .wl-project-caption>.wl-project-caption-scope{margin:0;padding:0;color:var(--ink,#202020);font:400 14px/22px var(--sans,Arial,sans-serif);letter-spacing:0;text-wrap:pretty}
html #case-wedel .wl-project-caption-item{display:inline-block;max-width:100%;vertical-align:top}
html #projects-inner #case-wedel .wl-project-caption>.wl-project-caption-meta{margin:8px 0 0;padding:0;color:var(--muted,#626262);font:400 14px/22px var(--sans,Arial,sans-serif);letter-spacing:0;text-wrap:pretty}
.wd-lightbox{position:fixed;inset:0;box-sizing:border-box;width:min(1200px,calc(100vw - 48px));max-width:none;height:min(900px,calc(100dvh - 48px));max-height:none;margin:auto;padding:22px 28px;border:0;border-radius:0;background:var(--paper,#fcfcf9);color:var(--ink,#202020);font-family:var(--sans,Arial,sans-serif)}
.wd-lightbox::backdrop{background:#11120fcc}
.wd-lightbox-shell{display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:12px;height:100%;min-height:0}
.wd-lightbox-footer{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0;padding:0;border:0;background:none;color:inherit}
.wd-lightbox-meta{min-width:0}
.wd-lightbox-head,.wd-lightbox-controls{display:flex;align-items:center;justify-content:space-between;gap:18px}
.wd-lightbox-title{margin:0;font:500 18px/26px var(--sans,Arial,sans-serif)}
.wd-lightbox button{display:inline-grid;place-items:center;min-width:44px;min-height:44px;padding:8px;border:0;background:none;color:inherit;font:400 18px/24px var(--sans,Arial,sans-serif);cursor:pointer}
.wd-lightbox :is(button,a):focus-visible{outline:2px solid currentColor;outline-offset:3px}
.wd-lightbox-media{display:flex;align-items:center;justify-content:center;height:auto;min-height:0;margin:0;overflow:hidden}
.wd-lightbox-media :is(img,video){display:block;width:auto;height:auto;max-width:min(100%,var(--wd-native-width,1200px));max-height:100%;object-fit:contain}
.wd-lightbox-media[data-shape=square] :is(img,video){max-width:min(100%,480px,65dvh);max-height:65dvh}
.wd-lightbox-caption{max-width:70ch;margin:0;color:var(--muted,#626262);font:400 13px/20px var(--sans,Arial,sans-serif);text-wrap:pretty}
.wd-lightbox-count{font:400 12px/20px var(--mono,monospace);font-variant-numeric:tabular-nums}
.wd-lightbox-source{display:inline-flex;align-items:center;min-height:36px;color:inherit;font:400 12px/20px var(--sans,Arial,sans-serif);white-space:normal}
.wd-archive-tools{display:flex;align-items:center;justify-content:space-between;gap:16px}
.wd-archive-status{color:var(--muted,#626262);font:400 12px/20px var(--mono,monospace);white-space:nowrap}
.wd-archive-reference{color:var(--muted,#626262);font:400 12px/18px var(--sans,Arial,sans-serif)}
.wd-media-error{display:grid;gap:12px;justify-items:center;padding:28px;text-align:center;font:400 15px/24px var(--sans,Arial,sans-serif)}
html.wd-expanded{overflow:hidden!important}
html #case-wedel .wd-presentation:is(:fullscreen,.wd-expanded-view){position:fixed!important;inset:0!important;z-index:2147483000!important;box-sizing:border-box;width:100vw!important;height:100dvh!important;max-width:none!important;margin:0!important;padding:12px 24px!important;background:var(--paper,#fcfcf9)}
html #case-wedel .wd-presentation:is(:fullscreen,.wd-expanded-view) .wd-stage{height:calc(100dvh - 108px);min-height:0;max-height:none}
@media(max-width:900px){html #case-wedel .wd-chapters{gap:2px 22px}html #case-wedel .wd-archive-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:28px 16px}html #case-wedel .wd-archive-tile:is([data-shape=square],[data-shape=portrait],[data-shape=landscape]){grid-column:span 3}html #case-wedel .wd-archive-tile[data-shape=wide]{grid-column:span 6}}
@media(max-width:600px){html #case-wedel .wd-chapters{gap:0 20px;margin-bottom:12px}html #case-wedel .wd-chapters button{min-height:44px;font-size:14px;gap:6px}html #case-wedel .wd-stage{height:78svh;min-height:480px}html #case-wedel .wd-views{gap:0 16px}html #case-wedel .wd-bar{align-items:flex-start;gap:12px}html #case-wedel .wd-archive{margin-top:24px}html #case-wedel .wd-archive>summary{font-size:15px;gap:10px}html #case-wedel .wd-archive-grid{gap:24px 12px}html #case-wedel .wd-archive-tile{gap:7px}html #case-wedel .wd-archive-count{font-size:11px}html #projects-inner #case-wedel .wl-project-caption{margin-top:24px}.wd-lightbox{width:calc(100vw - 20px);height:calc(100dvh - 24px);padding:12px 14px}.wd-lightbox-title{font-size:16px}.wd-lightbox-caption{font-size:12px}.wd-lightbox-footer{gap:8px}.wd-archive-tools{align-items:flex-start;flex-direction:column;gap:0}html #case-wedel .wd-presentation:is(:fullscreen,.wd-expanded-view){padding:8px 12px!important}}
@media(prefers-reduced-motion:reduce){html #case-wedel .wd-archive-preview{display:none}}

/* Odkrywaj: keep the complete comic visible below the case navigation. */
html #case-wedel .wd-stage:has(>.wd-site-frame[src*="/wedel-radosc/"]){height:calc(100svh - 300px);min-height:420px}
html #case-wedel .wd-presentation:is(:fullscreen,.wd-expanded-view) .wd-stage:has(>.wd-site-frame[src*="/wedel-radosc/"]){height:calc(100dvh - 108px);min-height:0}
@media(max-width:600px){html #case-wedel .wd-stage:has(>.wd-site-frame[src*="/wedel-radosc/"]){height:calc(100svh - 260px);min-height:380px}html #case-wedel .wd-presentation:is(:fullscreen,.wd-expanded-view) .wd-stage:has(>.wd-site-frame[src*="/wedel-radosc/"]){height:calc(100dvh - 100px);min-height:0}}

/* Clear the Wedel presentation opening; campaign choice already gives context. */
html #case-wedel>.project-body.wd-case>.wl-case-intro{display:none!important}
/* Six-part Wedel work selector and one full-screen viewing surface. */
html #case-wedel .wd-workspace{position:relative;min-width:0;}
html #case-wedel .wd-workspace-toolbar{display:grid;grid-template-columns:minmax(0,1fr) 44px;align-items:stretch;gap:12px;margin:0 0 14px;}
html #case-wedel .wd-workspace .wd-chapters{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px;min-width:0;margin:0;}
html #case-wedel .wd-workspace .wd-chapters [role=tab]{display:flex;align-items:center;justify-content:flex-start;gap:9px;min-width:0;min-height:48px;padding:8px 10px;border:1px solid var(--line,rgba(20,20,18,.14));border-radius:3px;background:var(--paper,#fcfcf9);color:var(--ink,#171813);font:inherit;text-align:start;cursor:pointer;transition:background .22s ease,border-color .22s ease,transform .22s ease;}
html #case-wedel .wd-workspace .wd-chapters [role=tab]:hover{transform:translateY(-2px);border-color:var(--gold,#c9a227);}
html #case-wedel .wd-workspace .wd-chapters [role=tab][aria-selected=true]{background:var(--ink,#171813);border-color:var(--ink,#171813);color:var(--paper,#fcfcf9);}
html #case-wedel .wd-chapter-number{flex:none;font-size:11px;letter-spacing:.08em;opacity:.68;}
html #case-wedel .wd-workspace .wd-chapters [role=tab]>span:last-child{overflow-wrap:anywhere;font-size:12px;line-height:1.25;}
html #case-wedel .wd-workspace-toolbar>.wd-fullscreen{position:relative;inset:auto;width:44px;height:44px;align-self:center;}
html #case-wedel .wd-workspace>.wd-presentation,html #case-wedel .wd-workspace>.wd-archive{min-width:0;}
html #case-wedel .wd-workspace>.wd-archive[hidden],html #case-wedel .wd-workspace>.wd-presentation[hidden]{display:none!important;}
html #case-wedel .wd-archive[open]>.wd-archive-summary{display:none;}
html #case-wedel .wd-archive[open]>summary:first-child{display:none;}
html #case-wedel .wd-workspace:is(:fullscreen,.wd-expanded-view){position:fixed;z-index:2147482000;inset:0;width:100vw;height:100dvh;max-width:none;margin:0;padding:16px 24px 22px;overflow:auto;background:var(--paper,#fcfcf9);color:var(--ink,#171813);}
html #case-wedel .wd-workspace:is(:fullscreen,.wd-expanded-view) .wd-workspace-toolbar{position:sticky;top:0;z-index:4;padding:4px 0 12px;background:var(--paper,#fcfcf9);}
html #case-wedel .wd-workspace:is(:fullscreen,.wd-expanded-view)>.wd-presentation{height:calc(100dvh - 88px);min-height:0;padding:0;overflow:hidden;}
html #case-wedel .wd-workspace:is(:fullscreen,.wd-expanded-view) .wd-stage{height:calc(100% - 42px);min-height:0;}
html #case-wedel .wd-workspace:is(:fullscreen,.wd-expanded-view)>.wd-archive{min-height:calc(100dvh - 92px);}
html #case-wedel .wd-workspace:is(:fullscreen,.wd-expanded-view) .wd-lightbox{z-index:2147483000;}
html.wd-expanded{overflow:hidden!important;}
@media(max-width:800px){html #case-wedel .wd-workspace .wd-chapters{grid-template-columns:repeat(3,minmax(0,1fr));}html #case-wedel .wd-workspace-toolbar{gap:8px;}}
@media(max-width:480px){html #case-wedel .wd-workspace:is(:fullscreen,.wd-expanded-view){padding:10px 12px 16px;}html #case-wedel .wd-workspace .wd-chapters{gap:4px;}html #case-wedel .wd-workspace .wd-chapters [role=tab]{gap:5px;min-height:42px;padding:6px;}html #case-wedel .wd-workspace .wd-chapters [role=tab]>span:last-child{font-size:10px;}html #case-wedel .wd-workspace-toolbar{grid-template-columns:minmax(0,1fr) 40px;}html #case-wedel .wd-workspace-toolbar>.wd-fullscreen{width:40px;height:40px;}}
@media(prefers-reduced-motion:reduce){html #case-wedel .wd-workspace .wd-chapters [role=tab]{transition:none;}html #case-wedel .wd-workspace .wd-chapters [role=tab]:hover{transform:none;}}

/* Wedel occupies the portfolio viewer. Only the active site or gallery scrolls. */
#wl-project-viewer .wl-viewer-stage:has(> #projects-inner > [data-wl-selected-presentation] [data-source-case="wedel"]){
  --wl-shell-width:100%;
  overflow:hidden;
}
html #wl-project-viewer .wl-viewer-stage #projects-inner:has(> [data-wl-selected-presentation] [data-source-case="wedel"]){
  width:100%!important;
  max-width:none!important;
  inline-size:100%!important;
  max-inline-size:none!important;
  margin:0!important;
  margin-inline:0!important;
  padding:0!important;
}
html #wl-project-viewer #case-wedel,
html #wl-project-viewer #case-wedel>.project-body.wd-case{
  margin:0!important;
  padding:0!important;
  border:0;
}
html #wl-project-viewer #case-wedel .wl-case-footer,
html #wl-project-viewer #case-wedel .wd-workspace-toolbar>.wd-fullscreen,
html #wl-project-viewer #case-wedel .wd-bar:not(:has(.wd-views:not([hidden]))){
  display:none!important;
}
html #wl-project-viewer #case-wedel .wd-workspace{
  display:flex;
  flex-direction:column;
  block-size:calc(100dvh - var(--wl-viewer-bar));
  min-block-size:0;
  overflow:hidden;
}
html #wl-project-viewer #case-wedel .wd-workspace-toolbar{
  display:block;
  flex:none;
  margin:0;
  padding:0 clamp(8px,2.5vw,36px);
  border-bottom:1px solid var(--line,#e3e3dc);
  background:var(--wl-viewer-paper,#fcfcf9);
}
html #wl-project-viewer #case-wedel .wd-workspace .wd-chapters{gap:0;}
html #wl-project-viewer #case-wedel .wd-workspace .wd-chapters [role=tab]{
  justify-content:center;
  min-block-size:46px;
  border:0;
  border-radius:0;
  background:transparent;
  color:var(--muted,#62635b);
  transform:none;
}
html #wl-project-viewer #case-wedel .wd-workspace .wd-chapters [role=tab]:is(:hover,[aria-selected=true]){
  color:var(--ink,#171813);
}
html #wl-project-viewer #case-wedel .wd-chapters [role=tab][aria-selected=true]::after{
  inset-inline:10px;
  inset-block-end:0;
  background:var(--gold,#c9a227);
}
html #wl-project-viewer #case-wedel .wd-chapters [role=tab]:focus-visible{outline-offset:-3px;}
html #wl-project-viewer #case-wedel .wd-presentation{
  display:flex;
  flex:1;
  flex-direction:column;
  min-block-size:0;
  overflow:hidden;
}
html #wl-project-viewer #case-wedel .wd-stage{
  flex:1;
  block-size:auto;
  min-block-size:0;
  max-block-size:none;
}
html #wl-project-viewer #case-wedel .wd-archive{
  flex:1;
  min-block-size:0;
  margin:0;
  padding:16px clamp(12px,3vw,44px) 32px;
  border:0;
  overflow:auto;
}
@media(max-width:480px){
  html #wl-project-viewer #case-wedel .wd-workspace .wd-chapters [role=tab]{min-block-size:42px;}
}
