/* Shared, scoped chrome; accepted home compositions and amber material stay intact. */
:root{--d6-header-height:5rem}
html{scroll-padding-top:calc(var(--d6-header-height) + 1rem)}
.d6-common-header,.d6-common-footer{color:#252923;background:#f3eee3}
.d6-common-header{position:sticky;top:0;z-index:80;border-bottom:1px solid #c4c2b5}
.d6-header-inner{max-width:90rem;margin:auto;display:flex;align-items:center;gap:1.5rem;min-height:5rem;padding:.8rem 2rem}
.d6-common-header a{color:inherit;text-decoration:none}
.d6-common-header .brand{font-size:1.1rem;font-weight:600;line-height:1.25;min-width:0;margin-right:auto;max-width:15rem}
.d6-common-header .brand svg{width:5rem;height:2.6rem}
.d6-global-links{display:flex;gap:1.2rem;align-items:center;font:500 1rem/1.4 "IBM Plex Sans",sans-serif}
.d6-global-links a{padding:.5rem 0}
.d6-global-menu{position:relative;font:500 1rem/1.4 "IBM Plex Sans",sans-serif}
.d6-global-menu>summary{cursor:pointer;padding:.65rem .8rem;list-style:none}
.d6-global-menu>summary::after{content:" +"}
.d6-global-menu[open]>summary::after{content:" −"}
.d6-global-menu>nav{position:absolute;right:0;top:100%;background:#f3eee3;border:1px solid #aaa;box-shadow:0 1rem 2rem #2222;min-width:16rem;max-width:calc(100vw - 2rem);max-height:75svh;overflow:auto;padding:1rem;display:grid;gap:.4rem}
.d6-global-menu a{display:block;padding:.55rem}
.d6-global-menu .d6-family{display:block;border-top:1px solid #aaa;margin-top:.6rem}
.d6-common-header .tv-header-language{font:600 1rem/1.4 "IBM Plex Sans",sans-serif}
.d6-common-footer{padding:3rem max(1.25rem,calc((100% - 80rem)/2));border-top:1px solid #c4c2b5;clear:both;font:1rem/1.5 "IBM Plex Sans",sans-serif}
.d6-family{display:flex;gap:1rem 2rem;flex-wrap:wrap}
.d6-family a{font-weight:600}
.d6-family [aria-current]{text-decoration-thickness:2px;text-underline-offset:.3em}
.d6-status{max-width:80rem;margin:1rem auto;padding:0 1.25rem;font-size:1rem;line-height:1.5}
.d6-inner-page main{min-width:0}
.d6-inner-page main h1{font-size:clamp(1.75rem,3.2vw,3rem);line-height:1.15;letter-spacing:-.015em;overflow-wrap:anywhere;max-width:28ch}
.d6-inner-page main :is(p,li,dd){overflow-wrap:anywhere}
.d6-inner-page .geroy h1{font-size:clamp(1.75rem,3.2vw,3rem)}
.d6-inner-page .vvod{font-size:clamp(1.2rem,2vw,1.375rem)}
.d6-breadcrumb,.d6-heritage-neighbours{display:flex;flex-wrap:wrap;gap:.5rem 1.25rem;margin:1.25rem auto;font-size:1rem;line-height:1.5;max-width:80rem}
.d6-heritage-neighbours{padding:1.5rem 0;border-top:1px solid #bbb}
.d6-cell-definition{scroll-margin-top:calc(var(--d6-header-height) + 1rem);padding:2rem 0;border-bottom:1px solid #bbb;max-width:70ch}
.d6-cell-definition h3{font-size:1.6rem;line-height:1.3;margin:.5rem 0}
.d6-cell-coordinate{font-family:"IBM Plex Sans",sans-serif}
.d6-cell-definition dt{font-weight:600;margin-top:1rem}
.d6-cell-definition dd{margin:.3rem 0 0}
.d6-cell-definition:target,.d6-cell-definition.is-selected{border-left:.3rem solid #915b26;padding-left:1rem}
.d6-matrix-reference>.wrap{padding-top:2rem;padding-bottom:2rem}
.d6-matrix-reference li{margin:.5rem 0}
.d6-video-language,.d6-catalogue-back{max-width:80rem;margin:1rem auto;padding:0 1.25rem;font-size:1rem}
[data-kind="shorts"] .tv-catalog__grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:1.25rem}
[data-kind="shorts"] .tv-card__preview{aspect-ratio:9/16;max-height:24rem;width:min(100%,13.5rem);margin-inline:auto}
[data-kind="shorts"] .tv-card__preview img{height:100%;width:100%;object-fit:cover;object-position:var(--poster-position,50% 50%)}
.d6-inner-page .tv-card__heading{font-size:1.25rem;line-height:1.35;text-transform:none}
.d6-report-return{position:sticky;top:0;z-index:100;padding:1rem;background:#f3eee3;display:flex;gap:1rem;flex-wrap:wrap;border-bottom:1px solid #aaa;font:1rem/1.5 sans-serif}
.d6-common-header :focus-visible,.d6-common-footer :focus-visible,.d6-cell-definition:focus-visible{outline:3px solid #28644c;outline-offset:4px}
@media(min-width:1100px){.d6-global-menu>nav>.d6-family{border:0;margin:0}.d6-global-menu>nav>a{display:none}}
@media(max-width:1099px){.d6-global-links{display:none}.d6-header-inner{padding:.5rem 1rem;gap:.5rem;min-height:4rem}.d6-common-header .brand{max-width:60vw}.d6-header-inner .tv-header-language{margin-left:auto}[data-kind="shorts"] .tv-catalog__grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:539px){.d6-global-menu>nav{position:fixed;top:var(--d6-header-height);right:.5rem;left:.5rem;max-width:none}[data-kind="shorts"] .tv-catalog__grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.7rem}[data-kind="shorts"] .tv-card__preview{max-height:19rem}.d6-inner-page main{padding-inline:1rem}.d6-inner-page .chapter{padding-inline:0}.d6-inner-page main h1{max-width:100%}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.d6-common-header *{transition:none}}

.site-top:has(>.d6-common-header){display:contents}
.d6-matrix-reference,.d6-matrix-reference .result-matrix,.d6-matrix-reference .result-glass{min-width:0;max-width:100%}
.d6-matrix-reference .result-diagrams{display:grid;grid-template-columns:minmax(0,1fr);gap:2rem}
.d6-matrix-reference .matrix-scroll{max-width:100%;overflow-x:auto}
.d6-matrix-reference svg{max-width:100%;height:auto}
.d6-matrix-reference .result-glass{max-width:50rem;margin:auto}
.d6-common-header.site-header{height:auto;padding:0}

.d6-global-menu{display:block}

.d6-global-menu:not([open])>nav{display:none}
.d6-common-footer a{overflow-wrap:anywhere;min-width:0}
.d6-global-menu>nav{min-width:0;width:min(24rem,calc(100vw - 2rem));box-sizing:border-box}
.d6-common-header.site-header{padding:0!important;margin:0!important;min-height:0!important}
.d6-common-header .brand{padding:0!important;overflow-wrap:anywhere}
@media(max-width:539px){.d6-global-menu>nav{width:auto;min-width:0}}

.d6-common-header .brand{white-space:normal!important}
.d6-cell-definition h3{overflow-wrap:anywhere}

#example.d6-reference-diagrams{overflow-x:clip}
#example.d6-reference-diagrams .result-diagrams{grid-template-columns:minmax(0,1fr)}

.d6-matrix-reference .result-glass{width:100%}

[data-kind="shorts"] .tv-card{display:flex;flex-direction:column;gap:0}
[data-kind="shorts"] .tv-card__actions{margin-top:.75rem}
[data-kind="shorts"] .tv-card__heading{margin-top:.25rem}

.d6-common-header.d6-flow-header{position:relative}
