/* CMS section styles for the static website — used with assets/cms.js. */
.article-split { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 768px) { .article-split { grid-template-columns: var(--article-cols); } }
/* image caption (title/credit/overlay), drawn over the image's bottom edge like the app's okr-img */
/* image captions follow the app's okr-img: overlay at top/middle/bottom, or a plain line above/below */
.img-caption { position:absolute; left:0; right:0; padding:8px 12px; font-size:.8rem; line-height:1.25;
               color:#fff; text-align:left; white-space:pre-line; text-shadow:0 1px 3px rgba(0,0,0,.8); pointer-events:none; }
.img-caption.bottom { bottom:0; background:linear-gradient(to top, rgba(0,0,0,.65), rgba(0,0,0,0)); }
.img-caption.top    { top:0; background:linear-gradient(to bottom, rgba(0,0,0,.65), rgba(0,0,0,0)); }
.img-caption.middle { top:50%; transform:translateY(-50%); background:rgba(0,0,0,.45); }
.img-caption-out { padding:4px 2px; font-size:.8rem; line-height:1.25; white-space:pre-line; color:#64748b; }
@media (prefers-color-scheme: dark) { .img-caption-out { color:#94a3b8; } }
/* CMS sections follow each other: half the padding, so two sections are not 8rem apart */
.cms-root > section.py-12 { padding-top:1.5rem; padding-bottom:1.5rem; }
@media (min-width:768px) { .cms-root > section.py-12 { padding-top:2rem; padding-bottom:2rem; } }
.hero-caption { position:absolute; right:0; bottom:0; padding:8px 12px; font-size:.75rem; line-height:1.25;
                color:rgba(255,255,255,.85); text-align:right; white-space:pre-line; text-shadow:0 1px 3px rgba(0,0,0,.8); pointer-events:none; }
#lb-caption { color:#fff; font-size:.9rem; text-align:center; white-space:pre-line; padding:.5rem 1rem 0; }
#lb-caption:empty { display:none; }
/* article slider (several images), like the app's article carousel: one slide at a time, the image shown
   whole (contain) and at most half the viewport high; a click opens the lightbox. The slides have no fixed
   height: the track takes the height of its tallest image, so landscape images get no empty bands */
.art-slider { position:relative; }
.art-track { display:flex; overflow-x:auto; scroll-snap-type:x mandatory; scroll-behavior:smooth;
             scrollbar-width:none; border-radius:.75rem; }
.art-track::-webkit-scrollbar { display:none; }
.art-slide { flex:0 0 100%; position:relative; scroll-snap-align:center;
             display:flex; flex-direction:column; align-items:center; justify-content:center; overflow:hidden; cursor:zoom-in;
             background:transparent; border:0; padding:0; }
.art-frame { position:relative; display:inline-block; max-width:100%; }   /* hugs the image, so the caption does too */
.art-slide img { max-width:100%; max-height:50dvh; object-fit:contain; display:block; }
.art-slide:has(.img-caption-out) img { max-height:calc(50dvh - 2.5rem); }   /* room for a caption line */
.art-nav { position:absolute; top:50%; transform:translateY(-50%); z-index:2; width:40px; height:40px;
           border-radius:50%; border:0; background:rgba(255,255,255,.85); color:#0f172a; font-size:1.6rem;
           line-height:1; cursor:pointer; box-shadow:0 1px 4px rgba(0,0,0,.3); }
.art-nav:hover { background:#fff; }
.art-nav:focus-visible { outline:2px solid #2563eb; outline-offset:2px; }
.art-nav.prev { left:.75rem; } .art-nav.next { right:.75rem; }
.art-dots { display:flex; justify-content:center; gap:.5rem; padding-top:.75rem; }
.art-dot { width:10px; height:10px; border-radius:50%; border:1px solid #9ca3af; background:#d1d5db; padding:0; cursor:pointer; transition:all .2s; }
.art-dot.on { background:#3b82f6; border-color:#1e3a8a; transform:scale(1.3); }
.learn-search { width:100%; max-width:28rem; padding:.5rem .75rem; border:1px solid #cbd5e1; border-radius:.5rem; margin-bottom:1rem; background:transparent; color:inherit; }
.learn-row { display:flex; flex-wrap:wrap; gap:.5rem; margin-bottom:1rem; }
.learn-btn { padding:.4rem .9rem; border:1px solid #cbd5e1; border-radius:9999px; background:transparent; color:inherit; cursor:pointer; font-size:.9rem; }
.learn-btn:focus-visible { outline:2px solid #2563eb; outline-offset:2px; }
.learn-btn.learn-on { background:#1d4ed8; border-color:#1d4ed8; color:#fff; }
.learn-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(16rem,1fr)); gap:1rem; margin-top:1rem; }
.learn-card { border:1px solid #e2e8f0; border-radius:.75rem; padding:1rem; background:rgba(148,163,184,.06); }
.learn-media { width:100%; border-radius:.5rem; display:block; background:#0f172a; }
.learn-tags { display:flex; flex-wrap:wrap; gap:.25rem; margin-top:.5rem; }
.learn-tag { font-size:.75rem; padding:.1rem .5rem; border-radius:9999px; background:rgba(148,163,184,.25); }
.learn-links { margin:.5rem 0 0; padding-left:1.1rem; list-style:disc; font-size:.9rem; }
.learn-link, .learn-dl { color:#1d4ed8; text-decoration:underline; }
/* article with emphasis 'banner': white text and links on the blue band */
.cms-banner .prose-scs, .cms-banner .prose-scs p, .cms-banner .prose-scs strong, .cms-banner .prose-scs li { color:#fff; }
.cms-banner .prose-scs a { color:#fff; text-decoration:underline; }
/* article slideshow (partials/slideshow.hbs, assets/slideshow.js): full width, 8:3 like la21staefa.ch's header.
   `on` = the visible slide, `off` = the one just leaving (the slide effect moves it out to the left). */
.ss { position:relative; overflow:hidden; width:100%; aspect-ratio:8/3; min-height:260px; max-height:70dvh; background:#000; }
.ss-slide { position:absolute; inset:0; opacity:0; transition-property:opacity,transform; transition-duration:var(--ss-dur,1s); transition-timing-function:ease-in-out; }
.ss-slide img { width:100%; height:100%; object-fit:cover; display:block; }
.ss-slide.on { opacity:1; z-index:1; }
.ss-fx-slide .ss-slide { opacity:1; transform:translateX(100%); }
.ss-fx-slide .ss-slide.on { transform:translateX(0); }
.ss-fx-slide .ss-slide.off { transform:translateX(-100%); }
.ss-fx-slide .ss-slide:not(.on):not(.off) { transition:none; }
.ss-fx-zoom .ss-slide { transform:scale(1.1); }
.ss-fx-zoom .ss-slide.on { transform:scale(1); }
.ss-fx-kenburns .ss-slide.on img { animation:ss-kb var(--ss-stay,4s) linear forwards; }
@keyframes ss-kb { from { transform:scale(1) translate(0,0); } to { transform:scale(1.12) translate(-2%,-1%); } }
.ss-overlay { position:absolute; inset:0; z-index:2; display:flex; align-items:center; color:#fff; pointer-events:none;
              background:linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.2) 50%, rgba(0,0,0,.5) 100%); }
.ss-overlay h1 { margin:0 0 .5rem; font-size:clamp(1.6rem,4vw,3rem); font-weight:700; line-height:1.15; text-shadow:0 1px 4px rgba(0,0,0,.45); }
.ss-overlay p { margin:0; max-width:46rem; font-size:clamp(1rem,1.8vw,1.3rem); text-shadow:0 1px 3px rgba(0,0,0,.45); }
.ss-nav { position:absolute; top:50%; transform:translateY(-50%); z-index:3; width:40px; height:40px; border-radius:50%; border:0;
          background:rgba(255,255,255,.8); color:#0f172a; font-size:1.6rem; line-height:1; cursor:pointer; }
.ss-nav.prev { left:.75rem; } .ss-nav.next { right:.75rem; }
.ss-dots { position:absolute; bottom:12px; left:0; right:0; z-index:3; display:flex; justify-content:center; gap:8px; }
.ss-dot { width:10px; height:10px; padding:0; border-radius:50%; border:1px solid rgba(255,255,255,.85); background:rgba(255,255,255,.35); cursor:pointer; }
.ss-dot.on { background:#fff; }
@media (prefers-reduced-motion: reduce) { .ss-slide, .ss-slide img { transition:none !important; animation:none !important; } }
/* tiles: a group card in its own colour (TileItem.color, groups source) with white text, and the list layout */
.tile-colored { background:var(--tile-bg) !important; border-color:transparent !important; color:#fff; }
.tile-colored h3, .tile-colored p, .tile-colored span, .tile-colored div { color:#fff !important; }
.tile-colored img.object-contain { background:transparent !important; }
.tile-colored:hover { filter:brightness(1.06); box-shadow:0 10px 24px rgba(0,0,0,.15); }
.tiles-list { grid-template-columns:1fr !important; }
.tiles-list > a, .tiles-list > div { flex-direction:row !important; align-items:center; gap:1.25rem; }
.tiles-list > a > img, .tiles-list > div > img { width:9rem; flex:0 0 9rem; margin-bottom:0 !important; }
@media (max-width:480px) { .tiles-list > a, .tiles-list > div { flex-direction:column !important; align-items:flex-start; } .tiles-list > a > img, .tiles-list > div > img { width:100%; flex-basis:auto; } }
/* a footer button item (FooterItem type "button") */
.sf-button { display:inline-block; margin-top:.5rem; padding:.7rem 1.2rem; border-radius:.5rem; font-weight:600; text-decoration:none; background:#16a34a; color:#fff; }
.sf-button:hover { filter:brightness(1.1); }
/* tiles collapsed behind a logo (partials/tiles-collapse.hbs): logo + arrow, picture-only tiles in --tc-cols columns */
.tc-head { display:flex; align-items:center; justify-content:center; gap:1rem; }
/* a fixed width: a percentage inside the shrink-to-fit flex item resolved to 0 for an SVG */
.tc-logo { flex:0 1 auto; min-width:0; }
.tc-logo img { display:block; width:30rem; max-width:calc(100vw - 7rem); height:auto; }
.tc-toggle { flex:none; width:2.75rem; height:2.75rem; border-radius:50%; border:1px solid rgba(100,116,139,.5); background:transparent; cursor:pointer; display:flex; align-items:center; justify-content:center; color:inherit; }
.tc-toggle:hover { background:rgba(100,116,139,.12); }
.tc-arrow { width:1.4rem; height:1.4rem; background:currentColor; -webkit-mask:url('https://bkaiser.imgix.net/logo/icons/arrow-down.svg') center/contain no-repeat; mask:url('https://bkaiser.imgix.net/logo/icons/arrow-down.svg') center/contain no-repeat; }
.tc-toggle[aria-expanded="true"] .tc-arrow { -webkit-mask-image:url('https://bkaiser.imgix.net/logo/icons/arrow-up.svg'); mask-image:url('https://bkaiser.imgix.net/logo/icons/arrow-up.svg'); }
.tc-grid { display:grid; gap:.5rem; margin-top:1rem; grid-template-columns:repeat(3, 1fr); }
@media (min-width:768px) { .tc-grid { grid-template-columns:repeat(var(--tc-cols, 6), 1fr); } }
.tc-grid[hidden] { display:none; }
.tc-grid img { display:block; width:100%; aspect-ratio:1; object-fit:contain; border-radius:.25rem; transition:transform .15s; }
.tc-grid a:hover img { transform:scale(1.04); }

/* article layout side-by-side (templates/sections/article.hbs `row`): whole images in a centred row, caption below */
.article-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem 2rem; }
.article-row-item { flex: 1 1 0; min-width: 120px; max-width: 260px; margin: 0; }
.article-row-item .img-caption-out { margin-top: 0.75rem; }

/* section width (partials/section-row.hbs): consecutive sections narrower than the page share a 12-column row */
.section-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 3rem 2.5rem; align-items: start; }
.section-col { grid-column: span var(--w-sm, 12); min-width: 0; }
@media (min-width: 768px) { .section-col { grid-column: span var(--w-md, 12); } }
@media (min-width: 1024px) { .section-col { grid-column: span var(--w-lg, 12); } }
/* a section template without `inColumn` still brings its own band: fit it to the column */
.section-col > section { padding-top: 0; padding-bottom: 0; }
.section-col > section > div { max-width: none; padding-left: 0; padding-right: 0; }
