/* THX dla kultury 2.10.4. Shared offer chrome / sector-specific accents. */
body[data-sector="biblioteki"] {--thxc-accent:#98c6ac;--thxc-ink:#101010;--thxc-paper:#fff;--thxc-green:#98c6ac;--thxc-lavender:#bcb4e2;}
body[data-sector="muzea"] {--thxc-accent:#bcb4e2;--thxc-ink:#101010;--thxc-paper:#fff;--thxc-green:#98c6ac;--thxc-lavender:#bcb4e2;}
.thxc-brand-group{display:flex;align-items:center;gap:12px;flex-shrink:0;min-width:0;position:relative;}
.thxc-brand-group .brand,.thxc-brand-group .mx-brand{margin:0!important;flex-shrink:0;}
.thxc-switch{position:relative;flex:none;color:inherit;border:0!important;margin:0!important;padding:0!important;}
.thxc-switch>summary{display:flex;align-items:center;gap:7px;min-height:44px;cursor:pointer;list-style:none;padding:0 6px 0 12px;border-left:1px solid #c5c5bf;font-size:18px;font-weight:700;letter-spacing:-.04em;line-height:1.2;white-space:nowrap;background:transparent;border-bottom:0!important;box-shadow:none!important;}
.thxc-switch>summary::-webkit-details-marker{display:none;}
.thxc-switch[open]>summary svg{transform:rotate(180deg);}
.thxc-switch :focus-visible,.thxc-footer a:focus-visible{outline:2px solid currentColor;outline-offset:3px;}
.thxc-sector-list{position:absolute;inset:calc(100% + 6px) auto auto 0;z-index:9999;min-width:220px;max-width:calc(100vw - 36px);padding:10px;background:var(--thxc-paper,#fff);color:var(--thxc-ink,#101010);border:1px solid currentColor;box-shadow:0 8px 20px #0002;display:grid;gap:3px;text-align:left;}
.thxc-switch:not([open]) .thxc-sector-list{display:none;}
.thxc-sector-heading{font-size:12px;letter-spacing:.035em;text-transform:uppercase;padding:7px 10px;font-weight:700;}
.thxc-sector-list a{display:flex;align-items:center;gap:10px;min-height:44px;padding:8px 10px;text-decoration:none!important;font-size:15px;font-weight:650;line-height:1.4;}
.thxc-sector-list a[aria-current=true],.thxc-sector-list a:hover{background:var(--thxc-accent);color:#101010;}
.thxc-sector-list a svg{margin-left:auto;}
.thxc-dot{display:inline-block;width:12px;height:12px;border:1px solid #101010;flex:none;}
.thxc-biblioteki{background:var(--thxc-green,#98c6ac);}.thxc-muzea{background:var(--thxc-lavender,#bcb4e2);}
.thxc-footer{display:flex;align-items:center;gap:12px 24px;flex-wrap:wrap;width:var(--thxl11-manual,min(var(--thxl11-max,1080px),80%));margin:0 auto;padding:18px 0 24px;border-top:1px solid currentColor;font-size:14px;}
.thxm .thxc-footer{width:var(--mx-width,min(var(--mx-max,1080px),80%));}
.thxc-footer>span{font-weight:700;}.thxc-footer>a{display:inline-flex;gap:7px;align-items:center;min-height:44px;text-decoration:underline;text-underline-offset:4px;}.thxc-footer>a[aria-current=true]{font-weight:700;}
/* Library geometry is authoritative. Both sectors use 1.15/.85 columns and the same gutters. */
.thxm .mx-editorial-hero{background:#fff;overflow:visible;padding:0;}
.thxm .mx-editorial-hero>.mx-wrap{container-type:inline-size;}
.thxm .mx-editorial-subhero .mx-crumb{border:0;padding:16px 0 0;margin:0;font-size:13px;}
.thxm .mx-editorial-inner,.thxm .mx-subhero-editorial{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);gap:clamp(24px,4%,56px);align-items:start;min-height:0;padding-block:clamp(28px,3vw,44px) clamp(36px,4vw,60px);}
.thxm .mx-editorial-copy,.thxm .mx-subhero-copy{align-self:start;padding:0;margin:0;max-width:none;min-width:0;}
.thxm .mx-editorial-copy .mx-kicker{font-size:calc(13px * var(--mx-text-scale,1));line-height:1.45;letter-spacing:.015em;font-weight:650;margin:0 0 16px;}
.thxm .mx-editorial-copy h1,.thxm .mx-subhero-copy h1{font-size:calc(clamp(32px,5cqw,64px) * var(--mx-text-scale,1));font-weight:700;line-height:1.06;letter-spacing:-.05em;max-width:none;margin:0 0 20px;overflow-wrap:break-word;hyphens:auto;text-wrap:pretty;}
.thxm .mx-editorial-copy>p:not(.mx-kicker),.thxm .mx-subhero-copy .mx-sub-intro{font-size:calc(clamp(16px,1.65cqw,20px) * var(--mx-text-scale,1));line-height:1.6;max-width:57ch;margin:0;}
.thxm .mx-subhero-copy .mx-sub-intro p{line-height:1.6;}
.thxm .mx-editorial-hero .mx-editorial-image{width:100%;max-width:none;min-width:0;min-height:0;margin:0;align-self:start;clip-path:none;overflow:visible;aspect-ratio:auto;display:block;background:transparent;}
.thxm .mx-editorial-hero .mx-editorial-image .mx-photo-frame{clip-path:none;aspect-ratio:4/3;width:100%;display:block;position:relative;min-height:0;flex:none;}
.thxm .mx-editorial-hero .mx-editorial-image img{object-fit:cover;object-position:center;inset:0;width:100%;height:100%;position:absolute;}
.thxm .mx-editorial-hero .mx-editorial-image figcaption{padding:6px 0 0;text-align:right;}
.thxm .mx-editorial-hero .mx-hero-actions{display:flex;flex-wrap:wrap;gap:12px 20px;margin-top:22px;}
.thxm .mx-editorial-hero .mx-btn{max-width:100%;white-space:normal;}
.thxm .mx-a11y-open{border-color:transparent!important;box-shadow:none;}
.thxm .mx-a11y-open:focus-visible{outline:2px solid currentColor;outline-offset:3px;}
/* Theme-native studio presentation; neutral demo palettes stay individual. */
body.thxl11-demo a.studio-return252{--thxl-ui-accent:#98c6ac;background:var(--thxc-green,#98c6ac)!important;color:#101010!important;border-color:#101010!important;}
body.thxl11-demo a.studio-return252:hover{background:#101010!important;color:#98c6ac!important;}
body.thxl11-offer .thx-library .gallery88-art.thxc-gallery-photo{display:block;width:100%;aspect-ratio:2/1;min-height:0;height:auto;border:0;background:#98c6ac;overflow:hidden;}
body.thxl11-offer .thx-library .gallery88-art.thxc-gallery-photo img{width:100%;height:100%;object-fit:cover;object-position:center;display:block;transition:transform .35s ease;}
body.thxl11-offer .thx-library .thxc-card-credit{margin:6px 0 0!important;font-size:12px;line-height:1.4;text-align:right;font-weight:400;color:#595959;}
body.thxl11-offer .thx-library .gallery88-item{border-top:0;}
body.thxl11-offer .thx-library .thxc-hero-photo img{border:0;}
/* Add a restrained physical color detail to existing photographs without changing the source pixels. */
body.thxl11-offer .thx-library :is(.photo10-frame,.photo-frame)>img{border-bottom:3px solid var(--thxc-green);box-sizing:border-box;}
@media (hover:hover) and (pointer:fine){.thx-library .thxc-gallery-photo:hover img{transform:scale(1.025);}}
@media(max-width:980px){.thxc-footer{width:var(--thxl11-manual,min(var(--thxl11-max,1080px),calc(100% - 56px)));}.thxm .thxc-footer{width:var(--mx-width,min(var(--mx-max,1080px),calc(100% - 56px)));}}
/* Use the actual available container width, not viewport width. */
@container (max-width:760px){.thxm .mx-editorial-inner,.thxm .mx-subhero-editorial{grid-template-columns:minmax(0,1fr);gap:24px;}.thxm .mx-editorial-hero .mx-editorial-image{max-width:540px;}.thxm .mx-editorial-copy h1,.thxm .mx-subhero-copy h1{font-size:calc(clamp(30px,7cqw,48px) * var(--mx-text-scale,1));}}
.thxm.mx-enlarged .mx-editorial-inner,.thxm.mx-enlarged .mx-subhero-editorial{grid-template-columns:minmax(0,1fr);}
.thxm.mx-enlarged .mx-editorial-hero .mx-editorial-image{max-width:540px;}
.thxm.mx-enlarged .mx-editorial-hero .mx-editorial-image .mx-photo-frame{aspect-ratio:4/3;}
@media(max-width:767px){.thxc-footer{width:var(--thxl11-manual,calc(100% - 36px));}.thxm .thxc-footer{width:var(--mx-mobile,calc(100% - 36px));}.thxc-brand-group{gap:7px;margin-right:auto;}.thxc-switch>summary{font-size:16px;padding-left:8px;gap:5px;}.thxc-sector-list{left:0;right:auto;min-width:210px;max-width:calc(100vw - 106px);}}
@media(max-width:380px){.thxc-brand-group{gap:5px;}.thxc-switch>summary{font-size:15px;padding-left:6px;padding-right:2px;}.thxc-switch>summary svg{width:12px;}}
/* Prefer a slightly earlier hamburger breakpoint: header must fit both sector labels and switch. */
@media(min-width:1001px) and (max-width:1280px){body.thxl11-offer .thx-library .head .desktop-nav{display:none!important;}body.thxl11-offer .thx-library .head .mobile-disclosure{display:block!important;order:3;}.thxm .mx-desktop{display:none;}.thxm .mx-menu{display:block;}}
html.thx-high .thxc-sector-list,.thxm.mx-high .thxc-sector-list{background:#000;color:#fff;box-shadow:none;}
html.thx-high .thxc-sector-list a,.thxm.mx-high .thxc-sector-list a{color:inherit;}
html.thx-high .thxc-sector-list a[aria-current=true],.thxm.mx-high .thxc-sector-list a[aria-current=true]{color:#101010;}
.thxm.mx-high .mx-editorial-hero{background:#000;color:#fff;}.thxm.mx-high .mx-editorial-copy h1,.thxm.mx-high .mx-subhero-copy h1{color:#fff;}
html.thx-high body.thxl11-offer .thx-library .thxc-card-credit{color:#fff;}
@media(prefers-reduced-motion:reduce){.thxc-switch svg,.thxc-gallery-photo img{transition:none!important;transform:none!important;}}

.thxm .mx-studio-actions{display:flex;flex-wrap:wrap;gap:12px 20px;align-items:center;margin-top:22px;}
.thxm .mx-studio-actions .mx-btn{margin:0;background:var(--mx-accent);color:#101010;border:1px solid #101010;}
.thxm .mx-studio-actions .mx-btn:hover{background:#101010;color:#fff;}
.thxm .mx-studio-actions .thxc-studio-note{flex-basis:100%;font-size:14px;font-weight:650;margin:0;}
.thxm .mx-studio-actions .thxc-studio-contact{display:inline-flex;align-items:center;min-height:44px;font-size:15px;font-weight:700;}
.thxm.mx-high .mx-studio-actions .mx-btn{background:#fff;color:#000;}
