/* Responsive layout, sticky header, and section entrances. */
:root {
  --heading: clamp(34px, 4.5vw, 62px);
  --body: 16px;
  --content-width: 80%;
  --section-space: clamp(80px, 8vw, 128px);
  --header-inset: 24px;
  --header-height: 72px;
}
body { background-image:var(--paper); background-repeat:no-repeat; background-size:100% 100%; }
.site-shell { display:flow-root; width:100%; background-image:none; }
.paper-content,.inner-main { background-image:none; }
.site-header { position:sticky; top:var(--header-inset); left:auto; width:calc(var(--content-width) * .92); height:var(--header-height); min-height:var(--header-height); max-height:none; margin:var(--header-inset) auto 0; padding:0 28px; gap:24px; box-shadow:0 4px 18px #00000016; }
.brand-reference { width:100px; height:34px; background-size:1100px auto; background-position:-68.2px -42.9px; }
.brand-image { width:120px; max-height:42px; }
.primary-nav .menu { gap:clamp(16px, 2vw, 32px); }
.primary-nav .menu>li>a,.primary-nav .menu>li>span { font-size:13px; padding:18px 0; letter-spacing:.025em; }
.language { font-size:12px; gap:8px; }
.language-switch { font-size:10px; padding:4px; gap:2px; }
.language-switch>* { padding:4px; }
.language-switch button { background:transparent; font:inherit; }
.language-status { position:absolute; inset-inline-end:16px; top:calc(100% + 8px); z-index:2; max-width:min(320px, calc(100vw - 48px)); padding:8px 12px; background:#fff; border-radius:10px; box-shadow:0 4px 16px #0002; font-size:12px; }
.front-main { padding-top:32px; }
.front-main:has(> .front-intro > .front-intro-visual > .hero) {
  margin-top:calc(-1 * (var(--header-inset) + var(--header-height)));
  padding-top:0;
}
.hero-track {
  --hero-peek: clamp(24px, 7vw, 112px);
  --hero-gap: clamp(10px, 1.4vw, 24px);
  --hero-side-space: calc(var(--hero-peek) + var(--hero-gap));
  padding:0;
  gap:0;
  container-type:inline-size;
  align-items:stretch;
}
.hero-track--peek { gap:var(--hero-gap); }
.hero-track--peek .hero-slide {
  flex-basis:calc(100% - 2 * var(--hero-side-space));
  scroll-snap-align:center;
}
.hero-preview { display:flex; flex:0 0 var(--hero-peek); overflow:clip; background:#e7e7e7; }
.hero-preview--previous { justify-content:flex-end; }
.hero-preview img {
  display:block;
  flex:none;
  width:calc(100cqw - 2 * var(--hero-side-space));
  max-width:none;
  height:100%;
  object-fit:cover;
}
.paper-content { --news-inset:1.032vw; padding-top:48px; }
.paper-content:before { left:calc((100% - var(--content-width)) / 2 + var(--content-width) * .04 + var(--news-inset)); }
.partners { margin-bottom:48px; }
.partners-group { gap:24px; padding-right:24px; }
.partner-logo { width:clamp(120px, 12vw, 184px); height:80px; }
.demo-logo { font-size:30px; }
.news-ticker { height:40px; }
.ticker-group { font-size:13px; }
.partners-track.is-looping { animation:marquee 34s linear infinite; }
.ticker-track.is-looping { animation:marquee var(--marquee-duration) linear infinite reverse; }
@keyframes marquee { to { transform:translateX(var(--marquee-end)); } }
.ticker-track:has(a:focus-visible) { animation:none; }
@media(prefers-reduced-motion:reduce) {
  .partners-group[aria-hidden],.ticker-group[aria-hidden] { display:none; }
}
.timeline { width:var(--content-width); margin-inline:auto; padding:72px 0 clamp(120px, 13vw, 208px); }
.section { margin-left:8%; margin-right:6%; }
.section-heading h2 { line-height:1.14; letter-spacing:-.035em; }
.section-heading p,.news-section .section-heading p { margin-top:10px; font-size:14px; line-height:1.7; }
.section-heading:before { width:12px; height:12px; min-width:0; min-height:0; left:calc(var(--layout-unit) * -4 - 6px + var(--news-inset, 0px)); top:calc(var(--heading) * .55 - 6px); }
.news-section {
  display:block;
  min-height:0;
  margin-bottom:var(--section-space);
  padding-inline:var(--news-inset);
}
.news-section .section-heading:before {
  left:calc(var(--layout-unit) * -4 - 6px);
}
.news-label { display:grid; grid-template-columns:minmax(0,1fr) 160px; grid-template-rows:auto auto; align-items:end; column-gap:32px; padding:0; margin-bottom:32px; }
.news-label .section-heading { grid-row:1 / 3; }
.category-label { font-size:11px; letter-spacing:.08em; margin:0 0 8px; }
.category-select { width:160px; min-width:0; }
.category-select select { height:42px; padding:0 36px 0 14px; font-size:13px; border-color:#bbb; background:#ffffff70; }
.category-select:after { right:16px; top:18px; border-left:5px solid transparent; border-right:5px solid transparent; border-top:7px solid #222; }
.news-track { gap:24px; padding-bottom:24px; }
.news-card { flex:0 0 calc((100% - 48px) / 3); }
.card-image { border-color:#c6c6c6; border-radius:6px; }
.card-copy { padding:18px 0 0; }
.card-copy h3,.archive-grid .card-copy h3 { font-size:20px; font-weight:700; letter-spacing:0; line-height:1.5; margin:0 0 12px; }
.card-copy p { font-size:14px; line-height:1.85; -webkit-line-clamp:3; }
.card-copy time { display:block; margin-bottom:8px; font-size:12px; color:#555; }
.news-actions { padding:24px 0 0; }
.more-link { min-height:44px; padding:8px 10px 8px 20px; gap:16px; font-size:12px; letter-spacing:.025em; border-color:#999; }
.arrow { width:26px; height:26px; min-width:26px; min-height:26px; }
.about-section,.contact-section { grid-template-columns:minmax(170px,.7fr) minmax(0,1.65fr); gap:clamp(28px, 4vw, 64px); min-height:0; }
.about-section { margin-bottom:var(--section-space); }
.about-copy { padding-top:6px; }
.about-copy h3 { font-weight:700; font-size:clamp(24px, 2.4vw, 34px); line-height:1.6; margin:0 0 24px; }
.plain-copy { font-size:16px; line-height:2; max-width:65ch; }
.fan-section { margin-bottom:var(--section-space); }
.fan-grid { grid-template-columns:minmax(0,1.15fr) minmax(0,1fr); gap:clamp(28px, 4vw, 56px); margin-top:32px; align-items:start; }
.fan-visual { border-radius:4px; }
.fan-copy { margin-top:0; font-size:16px; line-height:2; }
.fan-copy p { line-height:2; margin-bottom:28px; }
.fan-actions { margin-top:28px; }
.contact-copy { padding-top:10px; font-size:16px; }
.contact-copy>a,.contact-copy>span { gap:24px; line-height:1.9; }
.site-footer { padding:56px 0 28px; }
.site-footer::before {
  content:'';
  position:absolute;
  inset-inline:0;
  bottom:calc(100% - 2px);
  height:clamp(38px, 6.25vw, 120px);
  background:url('../images/footer.svg') center / 100% 100% no-repeat;
  pointer-events:none;
}
.footer-inner { width:86%; }
.footer-main { gap:32px; padding-bottom:28px; }
.footer-brand { width:auto; padding-right:32px; }
.brand-reference--footer { width:184px; height:76px; background-size:968.3px auto; background-position:-84.24px -2475.95px; }
.footer-brand .brand-image { width:184px; max-height:76px; }
.footer-nav .menu { gap:16px 24px; flex-wrap:wrap; }
.footer-nav a,.footer-nav .is-unset { font-size:12px; }
.social-links { gap:12px; }
.social-links a,.social-placeholder { width:30px; height:30px; }
.footer-bottom { padding-top:24px; font-size:12px; gap:20px; flex-wrap:wrap; }
.inner-main { width:var(--content-width); margin-inline:auto; padding:48px calc(var(--content-width) * .08) 140px; }
.inner-heading { padding-left:24px; margin-bottom:48px; }
.inner-heading h1 { font-size:clamp(30px, 3.5vw, 48px); line-height:1.4; }
.archive-grid { gap:48px 24px; }
.entry-content { max-width:72ch; font-size:16px; line-height:2; }
.admin-bar .site-header { top:56px; }
html:has(body.admin-bar) { scroll-padding-top:152px; }

/* Collapse columns before the 80% page becomes too narrow. */
@media(max-width:1100px) {
  .news-card { flex-basis:calc((100% - 24px) / 2); }
  .archive-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .footer-main { flex-wrap:wrap; }
  .footer-brand { border-right:0; padding-right:0; margin-right:auto; }
  .footer-nav { order:3; flex-basis:100%; }
}
@media(max-width:1000px) {
  :root { --header-height:64px; }
  .site-header { padding:0 22px; }
  .front-main { padding-top:40px; }
  .inner-main { padding-top:56px; }
  .header-tools { gap:14px; }
  .menu-toggle { display:flex; width:40px; height:40px; padding:8px; background:none; flex-direction:column; justify-content:center; gap:6px; }
  .menu-toggle span { display:block; height:1px; width:24px; background:#111; transition:transform .2s; }
  .menu-toggle[aria-expanded=true] span:first-child { transform:translateY(3.5px) rotate(45deg); }
  .menu-toggle[aria-expanded=true] span:last-child { transform:translateY(-3.5px) rotate(-45deg); }
  .primary-nav { display:none; position:absolute; top:76px; left:0; right:0; margin:0; padding:20px 24px; background:white; border-radius:20px; box-shadow:0 8px 24px #0002; }
  .primary-nav.is-open { display:block; }
  .primary-nav .menu { display:flex; flex-direction:column; align-items:stretch; gap:0; }
  .primary-nav .menu>li>a,.primary-nav .menu>li>span { padding:12px 0; font-size:14px; }
  .menu .sub-menu { position:static; display:block; box-shadow:none; padding:0 0 0 16px; font-size:14px; }
  .about-section,.contact-section { display:block; }
  .about-copy,.contact-copy { padding-top:28px; }
  .fan-grid { grid-template-columns:1fr; gap:28px; }
  .fan-visual { max-width:680px; }
}
@media(max-width:680px) {
  :root { --heading:36px; --body:16px; --section-space:80px; --content-width:95%; --header-inset:16px; }
  .site-header { width:calc(var(--content-width) * .94); padding:0 16px; gap:12px; }
  .brand-reference { width:88px; height:30px; background-size:967px auto; background-position:-60px -37.7px; }
  .brand-image { width:104px; max-height:38px; }
  .language-label { display:none; }
  .header-tools { gap:8px; }
  .front-main { padding-top:26px; }
  .hero-slide { aspect-ratio:16/10; }
  .paper-content { --news-inset:1.2255vw; padding-top:32px; }
  .partners { margin-bottom:32px; }
  .partner-logo { width:120px; height:68px; }
  .partners-group { gap:18px; padding-right:18px; }
  .news-ticker { height:36px; }
  .ticker-group { font-size:12px; }
  .timeline { padding:48px 0 128px; }
  .news-label { column-gap:20px; margin-bottom:28px; }
  .news-track { gap:20px; }
  .news-card { flex-basis:86%; }
  .card-copy h3,.archive-grid .card-copy h3 { font-size:20px; }
  .card-copy p { font-size:14px; }
  .about-copy h3 { font-size:25px; }
  .plain-copy,.fan-copy,.contact-copy { font-size:16px; }
  .fan-grid { margin-top:28px; }
  .contact-copy>a,.contact-copy>span { gap:16px; }
  .site-footer { padding:36px 0 24px; }
  .footer-main { gap:24px; }
  .brand-reference--footer { width:160px; height:66px; background-size:842px auto; background-position:-73.25px -2153px; }
  .footer-brand .brand-image { width:160px; max-height:66px; }
  .footer-nav .menu { justify-content:flex-start; gap:16px 20px; }
  .footer-bottom { font-size:11px; }
  .inner-main { padding:44px calc(var(--content-width) * .07) 100px; }
  .inner-heading { margin-bottom:32px; padding-left:18px; }
  .inner-heading h1 { font-size:30px; }
  .archive-grid { grid-template-columns:1fr; gap:40px; }
  .admin-bar .site-header { top:62px; }
  html:has(body.admin-bar) { scroll-padding-top:136px; }
}
@media(min-width:681px) and (max-width:782px) {
  .admin-bar .site-header { top:70px; }
  html:has(body.admin-bar) { scroll-padding-top:166px; }
}
@media(max-width:600px) {
  .admin-bar #wpadminbar { position:fixed; }
}
@media(max-width:480px) {
  .news-label { display:block; }
  .category-label { margin-top:24px; }
  .category-select { width:160px; }
}

/* Motion enhances visible content; without JS every element stays visible. */
.reveal-ready { opacity:0; transform:translateY(28px); }
.reveal-ready.is-revealed { opacity:1; transform:none; transition:opacity .65s ease,transform .65s cubic-bezier(.2,.65,.25,1); transition-delay:var(--reveal-delay, 0ms); }
.reveal-ready:focus-within,.reveal-ready.is-revealed:focus-within { opacity:1; transform:none; transition:none; }
.category-label,.about-copy h3,.fan-visual,.contact-copy { --reveal-delay:65ms; }
.category-select,.plain-copy,.fan-copy p,.news-card { --reveal-delay:125ms; }
.news-card:nth-child(3n + 2),.fan-copy p + p { --reveal-delay:185ms; }
.news-card:nth-child(3n),.fan-actions,.news-actions { --reveal-delay:245ms; }
.more-link,.contact-copy .arrow,.social-links a { transition:transform .25s ease,background-color .25s ease,color .25s ease,box-shadow .25s ease; }
.card-image img { transition:transform .65s cubic-bezier(.2,.65,.25,1); }
.primary-nav.is-open { animation:menu-appear .22s ease-out both; }
@keyframes menu-appear { from { opacity:0; transform:translateY(-6px); } to { opacity:1; transform:none; } }
@keyframes hero-appear { from { opacity:.35; transform:translateY(10px); } to { opacity:1; transform:none; } }
@media(prefers-reduced-motion:no-preference) {
  .hero { animation:hero-appear .8s ease-out both; }
}
@media(hover:hover) {
  .more-link[href]:hover { transform:translateY(-2px); box-shadow:0 6px 16px #00000012; }
  .card-link:hover img { transform:scale(1.045); }
  .contact-copy>a:hover .arrow { transform:translateX(4px); }
  .social-links a:hover { transform:translateY(-3px); }
}
@media(prefers-reduced-motion:reduce) {
  .reveal-ready,.reveal-ready.is-revealed { opacity:1; transform:none; transition:none; }
  .more-link[href]:hover,.contact-copy>a:hover .arrow,.social-links a:hover,.card-link:hover img { transform:none; }
}
@media print {
  .front-main:has(> .front-intro > .front-intro-visual > .hero) { margin-top:0; }
  .reveal-ready,.reveal-ready.is-revealed { opacity:1; transform:none; transition:none; }
  .site-header { position:static; }
}

/* Theme settings and reusable front-page sections. */
.paper-content { padding-bottom:clamp(120px, 13vw, 208px); }
.timeline--section { padding:0; margin-top:72px; margin-bottom:var(--section-space); }
.timeline--section .section { margin-bottom:0; }
.timeline--section:last-child { margin-bottom:0; }
.partners + .timeline--section,.news-ticker + .timeline--section { margin-top:72px; }
.timeline--section + .partners,.timeline--section + .news-ticker { margin-top:48px; }
.hero-slide picture { display:block; width:100%; height:100%; }
.hero-preview picture { display:block; flex:none; width:calc(100cqw - 2 * var(--hero-side-space)); height:100%; }
.hero-preview img { width:100%; }
.hero--video video { display:block; width:100%; max-height:90vh; aspect-ratio:16/9; object-fit:contain; background:#111; }
.partners-track.is-looping { animation-duration:var(--partners-duration, 34s); animation-direction:var(--partners-direction, normal); }
.ticker-track.is-looping { animation-direction:var(--ticker-direction, reverse); }
.site-footer::before { background:var(--blue); mask:url('../images/footer.svg') center / 100% 100% no-repeat; -webkit-mask:url('../images/footer.svg') center / 100% 100% no-repeat; }
.entry-content a { color:var(--celis-accent, #0067aa); }
.celis-announcement { position:absolute; top:calc(var(--header-inset) + var(--header-height) + 12px); inset-inline:12%; z-index:5; text-align:center; background:#fff; border-radius:12px; padding:10px 18px; box-shadow:0 3px 15px #0002; font-size:14px; }
.site-shell:has(.celis-announcement) :is(.inner-main,.landing-main) { padding-top:100px; }
.site-shell:has(.celis-announcement) .front-main:not(:has(> .front-intro > .front-intro-visual > .hero)) { padding-top:100px; }
.celis-announcement a { text-decoration:underline; }
.content-categories { display:flex; flex-wrap:wrap; gap:12px; margin-bottom:32px; }
.content-categories a { border:1px solid #aaa; border-radius:30px; padding:6px 18px; }
.content-categories [aria-current] { background:var(--celis-accent, #0067aa); color:#fff; }
.activity-section .archive-grid { margin-top:32px; }
.celis-no-animation .hero { animation:none; }
.landing-main { width:var(--content-width); margin:auto; padding:48px 0 120px; }
.landing-main .entry-featured { max-width:100%; }
@media(max-width:680px) {
  .paper-content { padding-bottom:128px; }
  .timeline--section { padding:0; margin-top:48px; }
  .celis-announcement { inset-inline:4%; font-size:12px; }
  .site-shell:has(.celis-announcement) :is(.inner-main,.landing-main) { padding-top:120px; }
  .site-shell:has(.celis-announcement) .front-main:not(:has(> .front-intro > .front-intro-visual > .hero)) { padding-top:120px; }
}

/* Fixed partner logos: one copy of each logo, centered and wrapping. */
.partners--static .partners-viewport { overflow:visible; }
.partners--static .partners-track { width:100%; animation:none; transform:none; }
.partners--static .partners-group { width:100%; flex-wrap:wrap; justify-content:center; padding:0 24px; }
.partners--static .partner-logo { max-width:100%; }
@media(max-width:680px) { .partners--static .partners-group { padding:0 16px; } }

/* Let cards pass through the page margins while keeping their initial alignment. */

#news .news-track {
  --news-start:calc(50vw - 42 * var(--layout-unit) + var(--news-inset));
  --news-end:calc(50vw - 44 * var(--layout-unit) + var(--news-inset));
  width:100vw;
  margin-left:calc(-1 * var(--news-start));
  padding-inline:var(--news-start) var(--news-end);
  gap:clamp(20px, 2.85vw, 50px);
  scrollbar-width:none;
}
#news .news-track::-webkit-scrollbar { display:none; }
#news .news-track .news-card { flex:0 0 clamp(260px, 22vw, 425px); }
#news .card-image { aspect-ratio:1.48; border:0; }
#news .card-copy { padding-top:24px; }
#news .card-copy h3 {
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow:hidden;
}
#news .card-copy time { color:var(--home-date, var(--celis-section-text, #707070)); font-size:14px; }
.news-card-category {
  display:inline-block;
  margin-bottom:16px;
  padding:5px 16px;
  border:1px solid currentColor;
  border-radius:999px;
  color:var(--celis-accent);
  font-size:13px;
}
#news .news-scrollbar input { background:var(--home-bar-track, #dedede); border-radius:999px; }
#news .news-scrollbar input::-webkit-slider-thumb { background:var(--celis-accent); border-radius:999px; }
#news .news-scrollbar input::-moz-range-thumb { background:var(--celis-accent); border-radius:999px; }
@media(max-width:680px) {
  #news .news-track .news-card { flex-basis:72vw; }
}

/* Each marked home section starts at least one screen after the previous one. */
@media screen {
  .front-main .timeline--section {
    min-height:100vh;
    min-height:100svh;
    margin-bottom:0;
    padding-bottom:var(--section-space);
    display:flow-root;
  }

  .front-main .timeline--section + .timeline--section {
    margin-top:0;
  }

  .front-main .timeline--section .section {
    scroll-margin-top:12px;
  }
}

/* A short logo reveal with no dependency on the page's load event. */
.celis-loading {
  position:fixed;
  inset:0;
  z-index:99999;
  display:grid;
  place-items:center;
  background:#fff;
  pointer-events:none;
  animation:celis-loader-exit calc(var(--celis-loading-duration, 1.2s) * .27) calc(var(--celis-loading-duration, 1.2s) * .73 + var(--celis-loading-hold, 1.2s)) both;
}
.celis-loading[hidden] { display:none; }
.celis-loading-logo { animation:celis-loader-reveal calc(var(--celis-loading-duration, 1.2s) * .73) ease-out both; }
.celis-loading-logo .brand-image {
  width:clamp(120px, 16vw, 210px);
  max-height:96px;
}
@keyframes celis-loader-reveal {
  from { opacity:0; filter:blur(12px); }
  to { opacity:1; filter:blur(0); }
}
@keyframes celis-loader-exit {
  to { opacity:0; visibility:hidden; }
}
@media (prefers-reduced-motion:reduce), print {
  .celis-loading { display:none; }
}

/* Celis desktop sidebar and the content column beside it. */
.sidebar-links { display:none; }
@media screen and (min-width:1001px) {
  .site-shell {
    --rail-width:clamp(190px, 18vw, 300px);
    --rail-inset:clamp(16px, 1.5vw, 28px);
    --column-start:calc(var(--rail-width) + 2 * var(--rail-inset));
    --column-gutter:clamp(24px, 5vw, 88px);
    padding-inline-start:var(--column-start);
  }
  .site-shell .site-header {
    position:fixed;
    inset:var(--rail-inset) auto auto var(--rail-inset);
    display:flex;
    flex-direction:column;
    align-items:stretch;
    gap:16px;
    width:var(--rail-width);
    height:min(76vh, 760px);
    min-height:0;
    max-height:calc(100dvh - 2 * var(--rail-inset));
    overflow:auto;
    margin:0;
    padding:clamp(16px, 1.8vw, 32px);
    background:#f3f3f3;
    border-radius:12px;
    box-shadow:none;
  }
  .admin-bar .site-shell .site-header {
    top:calc(32px + var(--rail-inset));
    max-height:calc(100dvh - 32px - 2 * var(--rail-inset));
  }
  .site-header .brand { padding-bottom:16px; border-bottom:1px solid #ccc; }
  .site-header .primary-nav { margin:0; flex:1 0 auto; }
  .site-header .primary-nav .menu { display:grid; gap:0; }
  .site-header .primary-nav .menu>li>a,
  .site-header .primary-nav .menu>li>span { display:block; padding:12px 0; font-size:17px; line-height:20px; font-weight:600; }
  .site-header .sub-menu { position:static; box-shadow:none; padding-left:12px; }
  .sidebar-links { display:grid; gap:8px; font-size:11px; }
  .sidebar-cta { padding:12px; border-radius:6px; background:var(--celis-accent, #0067aa); color:#fff; text-align:center; font-weight:700; }
  .site-header .header-tools { justify-content:flex-start; }
  .site-header .language-status { position:static; }
  .front-main, .front-main:has(> .front-intro > .front-intro-visual > .hero) { margin-top:0; padding-top:var(--rail-inset); }
  .front-main > .hero { margin-inline-end:var(--rail-inset); border-radius:10px; overflow:hidden; }
  .front-main .timeline--section {
    width:100%;
    padding-inline:var(--column-gutter);
    padding-top:clamp(36px, 5vw, 80px);
  }
  .front-main .timeline--section .section { margin-inline:0; padding-inline:0; }
  .paper-content:before, .front-main .section-heading:before { display:none; }
  .front-main .about-section { display:grid; grid-template-columns:minmax(0, 4fr) minmax(155px, 1fr); column-gap:clamp(16px, 2vw, 36px); }
  .front-main .about-section .section-heading { grid-column:2; grid-row:1; align-self:start; text-align:right; }
  .front-main .about-copy { grid-column:1; grid-row:1; }
  .front-main .fan-section .section-heading { text-align:right; }
  .front-main .fan-grid { grid-template-columns:minmax(0, .55fr) minmax(0, 1fr); }
  .front-main .fan-visual { grid-column:2; grid-row:1; }
  .front-main .fan-copy { grid-column:1; grid-row:1; }
  .front-main #news .news-track {
    width:calc(100% + var(--column-gutter));
    margin-left:0;
    padding-inline:0 var(--column-gutter);
  }
  .site-shell .celis-announcement { position:relative; inset:auto; margin:var(--rail-inset) var(--rail-inset) 0 0; }
}

/* White paper, quiet rules and solid footer from the Celis layout reference. */
body { background:#fff; }
.front-main .paper-content { padding-bottom:0; }
.front-main .paper-content::before,
.front-main .section-heading::before { display:none; }
.site-shell > .site-footer { background:var(--blue, #080808); color:#fff; }
.site-shell > .site-footer::before { display:none; }
.front-main #news .card-image { border:1px solid #b7b7b7; border-radius:8px; aspect-ratio:16/9; }
.front-main #news .news-scrollbar input::-webkit-slider-thumb { background:var(--home-bar-thumb, #232323); }
.front-main #news .news-scrollbar input::-moz-range-thumb { background:var(--home-bar-thumb, #232323); }
.front-main .fan-actions { text-align:right; }
.front-main .fan-visual { border-radius:0; }

@media screen and (min-width:1001px) {
  .site-shell {
    --rail-width:clamp(180px, 18.3vw, 300px);
    --column-gutter:clamp(24px, 3.4vw, 64px);
  }
  .site-shell .site-header {
    background:#f1f1f1;
    border-radius:10px;
  }
  .front-main > .hero { outline:1px solid #b7b7b7; outline-offset:-1px; }
  .front-main .paper-content { padding-top:18px; }
  .front-main .partners { margin-bottom:24px; }
  .front-main .news-ticker + .timeline--section { margin-top:0; }
  .front-main .timeline--section {
    padding-top:clamp(54px, 5vw, 96px);
    padding-inline-end:clamp(32px, 6vw, 110px);
  }
  .front-main .fan-grid { grid-template-columns:minmax(0, .45fr) minmax(0, 1fr); }
  .front-main #news .news-track .news-card { flex-basis:clamp(240px, 31.5vw, 520px); }
  .site-shell > .site-footer {
    margin-inline-start:calc(-1 * var(--column-start));
    padding-inline-start:var(--column-start);
  }
}

.hero--single { border-radius:12px; overflow:hidden; }
.hero--single .hero-slide { width:100%; border:0; }
.sidebar-banner { display:none; }
.sidebar-banner-slide { height:100%; }
@media screen and (min-width:1001px) {
  .site-shell:has(.sidebar-banner) {
    --sidebar-panel-height: min(68vh, calc(100dvh - 2 * var(--rail-inset) - 44px - clamp(64px, 12vh, 140px)));
    --sidebar-banner-height:calc(var(--rail-width) * 9 / 16);
  }
  .site-shell:has(.sidebar-banner) .site-header { height:var(--sidebar-panel-height); }
  .sidebar-banner {
    position:fixed;
    z-index:49;
    display:block;
    top:auto;
    bottom:0;
    left:var(--rail-inset);
    width:var(--rail-width);
    height:var(--sidebar-banner-height);
    background:#24a5ce;
    border-radius:10px 10px 0 0;
    overflow:hidden;
  }
  .sidebar-banner a { display:block; height:100%; }
  .sidebar-banner img { display:block; width:100%; height:100%; object-fit:cover; }
}

.front-main .timeline--section .card-copy time {
  color:var(--home-date, var(--celis-section-text, #707070));
}
.front-main .timeline--section .news-card-category {
  color:var(--celis-section-text, var(--celis-accent));
}

.front-main > .hero--single {
  width:94%;
  max-width:1180px;
  margin-inline:auto;
  border-radius:12px;
}
.hero--single .hero-slide {
  max-height:64vh;
  max-height:64svh;
}
.hero--single .hero-slide img { object-fit:contain; }

.front-intro-visual > .hero--single {
  width:94%;
  max-width:1180px;
  margin-inline:auto;
  border-radius:12px;
}
.front-intro > .partners { margin-top:18px; }
@media screen and (min-width:1001px) {
  .front-intro {
    display:flex;
    flex-direction:column;
    height:calc(100dvh - var(--rail-inset));
  }
  .admin-bar .front-intro { height:calc(100dvh - var(--rail-inset) - 32px); }
  .front-intro > .news-ticker {
    flex-shrink:0;
    margin-top:auto;
    margin-inline-start:calc(-1 * var(--column-start));
    padding-inline-start:var(--column-start);
  }
  .site-shell:has(.sidebar-banner) {
    --sidebar-panel-height:calc(100dvh - var(--rail-inset) - var(--sidebar-banner-height) - 12px);
  }
  .admin-bar .site-shell:has(.sidebar-banner) {
    --sidebar-panel-height:calc(100dvh - var(--rail-inset) - var(--sidebar-banner-height) - 44px);
  }
}

/* Use the same frame ratio without cropping the original artwork. */
.front-intro-visual > .hero--single {
  width:min(94%, 1180px, calc(64vh * 16 / 9));
  width:min(94%, 1180px, calc(64svh * 16 / 9));
}
.hero--single .hero-slide,
.front-intro-visual > .hero--single .hero-slide {
  aspect-ratio:16 / 9;
  max-height:none;
}
@media screen and (min-width:1001px) {
  .front-intro-visual {
    flex:1 1 0;
    min-height:0;
    container-type:size;
    margin-inline:0 var(--rail-inset);
  }
  .front-intro-visual > .hero--single {
    width:min(100%, calc(100cqh * 16 / 9));
    max-width:none;
    aspect-ratio:16 / 9;
  }
  .front-intro-visual .hero-slide { height:100%; }
  .front-intro-visual .hero--video,
  .front-intro-visual .hero--video video { height:100%; }
  .front-intro > .partners {
    flex:0 0 auto;
    margin-block:clamp(6px, 1.2dvh, 12px);
    max-height:25dvh;
    overflow:auto;
  }
  .front-intro .partner-logo { width:clamp(88px, 17dvh, 184px); }
}
#news .card-image,
.front-main #news .card-image,
.card-image,
.front-main .fan-visual,
.partners .partner-logo {
  aspect-ratio:16 / 9;
  height:auto;
}
.card-image img,
.front-main .fan-visual img,
.sidebar-banner img { object-fit:contain; }
.front-main .fan-visual img { display:block; width:100%; height:100%; }
.entry-featured img,
.entry-content img:not(.emoji):not(.wp-smiley) {
  aspect-ratio:16 / 9;
  height:auto;
  object-fit:contain;
}
.entry-featured img { display:block; width:100%; }

.front-intro-visual { margin-bottom:18px; }
.front-intro-visual .hero-slide { aspect-ratio:16 / 9; border-radius:12px; }
.front-intro-visual .hero-slide img { object-fit:contain; }
.front-intro-visual .hero-preview { border-radius:12px; }
.front-intro-visual :is(.hero-slide, .hero-preview) {
  outline:1px solid var(--blue);
  outline-offset:-1px;
}
.front-intro-visual .hero-track:focus-visible,
.front-intro-visual .hero-slide > a:focus-visible,
.sidebar-banner a:focus-visible { outline:2px solid #333; outline-offset:-4px; }

@media screen and (min-width:1001px) {
  .front-intro-visual .hero--carousel .hero-track--peek {
    --hero-gap:clamp(10px, 1.4vw, 24px);
    --hero-side-space:max(calc(var(--hero-gap) + 24px), calc((100cqw - 100cqh * 16 / 9) / 2));
    --hero-peek:calc(var(--hero-side-space) - var(--hero-gap));
  }
  .front-intro-visual .hero--carousel .hero-slide { height:auto; }
}

.members-heading { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:20px; margin-bottom:32px; }
.member-filter { display:flex; align-items:center; gap:10px; font-size:14px; }
.member-filter select { max-width:100%; min-width:min(190px, 46vw); border:1px solid #bbb; border-radius:999px; padding:10px 16px; background:#fff; color:#111; }
.members-slider { display:grid; grid-template-columns:auto minmax(0, 1fr); align-items:center; gap:clamp(12px, 3vw, 44px); }
.member-arrows { display:grid; gap:12px; }
.member-arrows[hidden], .member-card[hidden] { display:none; }
.member-arrows button {
  display:grid;
  place-items:center;
  width:44px;
  height:44px;
  padding:0;
  border:0;
  border-radius:50%;
  background:transparent;
  color:#222;
  cursor:pointer;
}
.member-arrows button:not(:disabled):is(:hover, :focus-visible) { background:#111; color:#fff; }
.member-arrows button .arrow { border:0; background:transparent; color:inherit; }
.member-arrows [data-member-step="-1"] .arrow { transform:rotate(180deg); }
.member-arrows button:disabled { opacity:.35; cursor:default; }
.member-track { grid-column:2; display:flex; gap:20px; overflow-x:auto; scroll-snap-type:x mandatory; padding-bottom:12px; }
.member-track.is-dragging {
  cursor:grabbing;
  scroll-snap-type:none;
  user-select:none;
}
.member-track.is-dragging .member-card-link { cursor:grabbing; }
.member-card { position:relative; flex:0 0 clamp(175px, 22vw, 340px); aspect-ratio:3 / 4; scroll-snap-align:start; border-radius:10px; overflow:hidden; background:#ededed; }
.member-card img { display:block; width:100%; height:100%; object-fit:cover; }
.member-caption { position:absolute; inset:auto 0 0; padding:10px 14px; background:var(--celis-accent, #0067aa); color:#fff; }
.member-caption h3, .member-caption p { margin:0; overflow-wrap:anywhere; }
.member-caption p { font-size:13px; }
@media (hover:hover) and (pointer:fine) {
  .member-card:has(img) .member-caption { opacity:0; }
  .member-card:has(img):is(:hover, :focus-within) .member-caption { opacity:1; }
}
@media (prefers-reduced-motion:no-preference) {
  .member-caption { transition:opacity .18s ease; }
}

.sponsor-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; margin-top:28px; }
.sponsor-image { aspect-ratio:16 / 9; border:1px solid #bbb; border-radius:6px; background:#f4f4f4; overflow:hidden; }
.sponsor-image img { display:block; width:100%; height:100%; object-fit:contain; }
.sponsor-card h3, .sponsor-card p { margin:8px 6px 0; overflow-wrap:anywhere; }
.sponsor-card p { font-size:14px; }
@media(max-width:680px) {
  .members-slider { gap:10px; }

  .member-card { flex-basis:min(70vw, 240px); }
  .sponsor-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
}

.goods-heading { display:flex; justify-content:space-between; align-items:end; flex-wrap:wrap; gap:20px; margin-bottom:clamp(18px, 2vw, 30px); }
.goods-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:clamp(16px, 2.4vw, 34px); }
.goods-image { display:grid; place-items:center; aspect-ratio:16 / 9; background:#f6f6f6; border:1px solid #eee; border-radius:12px; overflow:hidden; }
.goods-image img { display:block; width:100%; height:100%; min-height:0; padding:8%; object-fit:contain; }
.goods-card h3 { margin:14px 0 5px; font-size:clamp(15px, 1.3vw, 21px); line-height:1.45; overflow-wrap:anywhere; }
.goods-price { margin:0; font-size:clamp(15px, 1.4vw, 22px); font-weight:800; }
@media(max-width:680px) {
  .goods-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

.site-header .brand { gap:7px; }
.site-header .sidebar-brand-mark { width:32px; flex:0 0 32px; }
.sidebar-brand-name { color:#111; font-size:clamp(14px, 1.2vw, 21px); font-weight:800; white-space:nowrap; }
.site-header .language-label { display:none; }
.site-header .language-switch {
  border:1px solid #aaa;
  background:transparent;
  border-radius:999px;
  padding:0;
}
.site-header .language-switch [aria-pressed="true"] { display:none; }
.site-header .language-switch button { color:#111; padding:3px 11px; }
.sidebar-social, .sidebar-legal { display:flex; flex-wrap:wrap; align-items:center; gap:6px; }
.sidebar-social:empty { display:none; }
.sidebar-social > * {
  display:grid;
  place-items:center;
  width:30px;
  height:30px;
  border:1px solid #888;
  border-radius:50%;
  font-size:11px;
}
@media screen and (min-width:1001px) {
  .site-shell > :is(.inner-main, .landing-main) {
    width:100%;
    min-height:100svh;
    margin:0;
    padding-inline:var(--column-gutter) clamp(32px, 6vw, 110px);
  }
}

/* Keep scrolling inside the news track horizontal; vertical gestures scroll the page. */
#news .news-track {
  overflow-y:hidden;
  overscroll-behavior-y:auto;
  touch-action:pan-x pan-y pinch-zoom;
}
#news .news-track .news-card.reveal-ready { transform:none; }
#news .news-scrollbar input { touch-action:pan-y pinch-zoom; }

#news .news-label { display:block; }
.listing-main .breadcrumbs { margin:0 0 12px; color:#595959; font-size:clamp(11px, 1vw, 13px); line-height:1.4; }
.listing-main .inner-heading { border:0; padding-inline:0; margin-bottom:clamp(18px, 2vw, 28px); }
.listing-main .inner-heading h1 { margin:0; font-size:clamp(32px, 4vw, 56px); line-height:1.1; }
.listing-main .listing-subtitle { margin:6px 0 0; color:#555; font-size:clamp(14px, 1.2vw, 17px); line-height:1.5; }
.listing-main .archive-description p { margin:0; font-size:clamp(14px, 1.2vw, 17px); line-height:1.6; overflow-wrap:anywhere; }
.listing-categories { display:flex; flex-wrap:wrap; gap:10px; margin:0 0 clamp(16px, 2vw, 26px); }
.listing-categories a, .listing-main .news-card-category {
  display:inline-block; border:1px solid currentColor; border-radius:999px; padding:5px 15px;
  color:var(--celis-accent, #0067aa); font-size:13px;
}
.listing-categories a[aria-current] { background:var(--celis-accent, #0067aa); color:#fff; }
.listing-main .archive-grid { gap:clamp(24px, 3vw, 48px); }
.listing-main .card-image { aspect-ratio:16 / 9; }
.listing-main .card-copy time { color:#707070; margin-top:12px; }

.sidebar-links .social-links, .footer-main .social-links { flex-wrap:wrap; gap:10px; }
.sidebar-links .social-links a, .footer-main .social-links a { width:30px; height:30px; flex:0 0 30px; }
.sidebar-links .social-links a { background:transparent; }

.article-main .breadcrumbs { font-size:13px; overflow-wrap:anywhere; }
.article-main .article-heading { border:0; padding:0; margin-bottom:20px; }
.article-heading .news-card-category { margin-bottom:8px; }
.article-heading time { display:block; margin-top:8px; color:#707070; font-size:14px; }
.article-main .article-visual {
  border:1px solid #c8c8c8;
  border-radius:10px;
  overflow:hidden;
  aspect-ratio:16 / 9;
  background:#f5f5f5;
  margin-bottom:32px;
}
.article-main .article-visual img { width:100%; height:100%; object-fit:contain; }
.article-main .entry-content, .article-main .article-extras {
  width:80%;
  max-width:none;
  margin-inline:auto;
  overflow-wrap:anywhere;
}
@media(max-width:680px) {
  .article-main .entry-content, .article-main .article-extras { width:100%; }
}

/* Keep the header compact so the featured image starts near the top. */
.article-main .breadcrumbs {
  margin-bottom:12px;
  font-size:11px;
  line-height:1.5;
}
.article-main .breadcrumbs [aria-current] { color:var(--celis-accent, #0067aa); }
.article-main .article-heading { margin-bottom:12px; }
.article-main .article-heading .news-card-category { margin-bottom:4px; padding:2px 9px; font-size:11px; }
.article-main .article-heading h1 { margin:0; line-height:1.15; }
.article-main .article-heading time { margin-top:8px; font-size:11px; }
.article-main .article-visual {
  width:100%;
  max-width:none;
  margin-inline:0;
  border-color:#555;
}
.article-main .article-categories { display:flex; flex-wrap:wrap; gap:6px; }
.article-main .article-heading .news-card-category { margin-bottom:8px; }
.article-main .article-heading time { margin-top:12px; font-size:12px; }
@media screen and (min-width:1001px) {
  .site-shell > .article-main {
    padding-inline:0 var(--rail-inset);
    padding-top:calc(var(--rail-inset) + 10px);
  }
  .article-main .breadcrumbs, .article-main .article-heading { padding-inline:8px; }
}


@media screen and (min-width:1001px) {
  .article-main .article-visual {
    width:min(100%, calc(max(1px, 100svh - var(--article-visual-top, 190px) - 20px) * 16 / 9));
    margin-inline:auto;
  }
}

.article-lead { margin-bottom:32px; }
.article-main .article-lead .article-visual { width:100%; margin:0 0 32px; }
.article-recommended { margin-top:24px; align-self:start; min-width:0; padding:12px; background:#f1f1f1; }
.article-recommended h2 { margin:0 0 12px; font-size:17px; }
.article-recommended ul { list-style:none; margin:0; padding:0; }
.article-recommended li { padding:10px 0; border-top:1px solid #ddd; }
.article-recommended a { display:grid; gap:8px; font-size:14px; overflow-wrap:anywhere; }
.article-recommended img { width:100%; height:auto; aspect-ratio:16 / 9; object-fit:contain; background:#fff; }
@media screen and (min-width:1200px) {
  .article-lead {
    display:grid;
    grid-template-columns:minmax(0,1fr);
    gap:clamp(20px, 2vw, 36px);
    align-items:start;
  }
  .article-lead:has(.article-recommended) { grid-template-columns:minmax(0,1fr) clamp(190px, 16vw, 280px); }
  .article-recommended {
    --recommended-top:var(--rail-inset);
    position:sticky;
    top:var(--recommended-top);
    max-height:calc(100dvh - var(--recommended-top) - 16px);
    overflow:auto;
    margin-top:0;
  }
  .admin-bar .article-recommended { --recommended-top:calc(var(--rail-inset) + 32px); }
}
@media screen and (min-width:1001px) {
  .article-main .article-lead .article-visual {
    width:min(100%, calc(max(1px, 100svh - var(--article-visual-top, 190px) - 20px) * 16 / 9));
  }
}


.article-main .breadcrumbs { margin-bottom:6px; }
.article-main .article-heading { margin-bottom:10px; }
.article-main .article-heading .news-card-category { margin-bottom:4px; }
.article-main .article-heading time { margin-top:6px; }
.article-main .entry-content,
.article-main .entry-content p,
.article-main .entry-content li { font-size:clamp(15px, 1vw, 18px); }
.article-main .post-navigation { margin-top:32px; font-size:14px; }
.article-recommended a { gap:5px; font-size:13px; }
.article-recommended time { color:#666; font-size:11px; }
.article-recommended li + li { margin-top:8px; }
.article-main { padding-bottom:clamp(24px, 3vw, 48px); }
@media screen and (min-width:1001px) {
  .site-shell > .article-main { padding-top:var(--rail-inset); }
}

.footer-nav .celis-footer-info {
  margin:0 0 6px;
  font-size:14px;
  line-height:1.55;
  overflow-wrap:anywhere;
}

.front-main .timeline--section:has(> .goods-section) {
  padding-top:clamp(20px, 2.5vw, 38px);
}
.front-main .timeline--section:has(+ .timeline--section > .goods-section):not(:has(> .about-section)) {
  min-height:0;
  padding-bottom:clamp(20px, 3vw, 48px);
}
.front-main .timeline--section:last-child:has(> .goods-section) {
  min-height:0;
  padding-bottom:clamp(28px, 3vw, 56px);
}


.article-heading .article-meta-row {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:6px 12px;
  margin-top:8px;
}
.article-main .article-meta-row time,
.article-main .article-meta-row .news-card-category { margin:0; }

.article-main .breadcrumbs { margin-bottom:14px; }
.article-main .article-heading { margin-bottom:18px; }
.article-heading .article-meta-row { margin-top:14px; column-gap:18px; }
@media screen and (min-width:1001px) {
  .article-lead:has(.article-visual) {
    container-type:inline-size;
    --image-space: max(1px, calc(100dvh - var(--article-visual-top, 190px)));
    --recommend-width:0px;
    --recommend-gap:0px;
    --image-width:min(calc(100cqw - var(--recommend-width) - var(--recommend-gap)), calc(var(--image-space) * 16 / 9));
    --image-offset:max(0px, calc(var(--image-space) - var(--image-width) * 9 / 16));
  }
  .article-main .article-lead .article-visual {
    width:var(--image-width);
    margin-top:var(--image-offset);
  }
}
@media screen and (min-width:1200px) {
  .article-lead:has(.article-visual):has(.article-recommended) {
    --recommend-width:clamp(170px, 12vw, 240px);
    --recommend-gap:clamp(16px, 1.4vw, 28px);
    grid-template-columns:minmax(0, 1fr) var(--recommend-width);
    gap:var(--recommend-gap);
  }
  .article-lead:has(.article-visual) .article-recommended { margin-top:var(--image-offset); }
}

.front-main:has(> .front-intro > .celis-announcement) {
  margin-top:0;
  padding-top:var(--rail-inset, 16px);
}
.site-shell .front-intro > .celis-announcement {
  position:relative;
  inset:auto;
  flex:0 0 auto;
  margin:0 var(--rail-inset, 16px) 16px 0;
  overflow-wrap:anywhere;
}
@media screen and (min-width:1001px) {
  .front-intro:has(> .celis-announcement) > .front-intro-visual > .hero {
    max-height:100%;
  }
  .front-intro:has(> .celis-announcement) > .front-intro-visual > .hero--single {
    width:min(100%, calc(100cqh * 16 / 9));
  }
}

.member-description { flex:0 0 100%; order:1; margin:0; }
.archive-description-mobile { display:none; }
@media (min-width:681px) {
  .listing-heading { display:flex; align-items:center; justify-content:space-between; gap:32px; }
  .archive-description { width:min(48%, 42rem); }
}
@media (max-width:680px) {
  .listing-heading .archive-description { margin-top:12px; }
  .has-mobile-description .archive-description-desktop { display:none; }
  .archive-description-mobile { display:block; }
}

/* Align the sticky tablet menu with the opening announcement. */
@media screen and (680px < width <= 1000px) {
  .site-shell { --header-inset:16px; }
  .site-shell .site-header {
    position:sticky;
    top:var(--header-inset);
  }
  .admin-bar .site-shell .site-header {
    top:calc(var(--header-inset) + var(--wp-admin--admin-bar--height, 32px));
  }
  .site-shell > .front-main,
  .site-shell > .front-main:has(> .front-intro > .front-intro-visual > .hero),
  .site-shell:has(.celis-announcement) > .front-main:not(:has(> .front-intro > .front-intro-visual > .hero)) {
    margin-top:0;
    padding-top:16px;
  }
  .site-shell > .front-main:has(> .front-intro > .celis-announcement) {
    margin-top:calc(-1 * (var(--header-inset) + var(--header-height)));
  }
  .site-shell .front-intro > .celis-announcement {
    margin:0 auto 16px;
    width:var(--content-width);
    min-height:var(--header-height);
    padding-inline:calc(var(--header-height) + 8px);
  }
}

/* At compact desktop widths, let the intro follow the height of its media. */
@media screen and (min-width:1001px) and (max-width:1200px) {
  .front-intro,
  .admin-bar .front-intro { height:auto; }
  .front-intro-visual {
    flex:0 0 auto;
    container-type:inline-size;
  }
  .front-intro > .news-ticker { margin-top:0; }
  .front-intro-visual > .hero--single,
  .front-intro:has(> .celis-announcement) > .front-intro-visual > .hero--single {
    width:100%;
  }
  .front-intro-visual .hero--carousel .hero-track--peek {
    --hero-peek:24px;
    --hero-side-space:calc(var(--hero-peek) + var(--hero-gap));
  }
  .front-intro-visual .hero--video,
  .front-intro-visual .hero--video video { height:auto; }
}

.front-main .paper-content { padding-top:0; }
.front-main .paper-content > .timeline--section { margin-top:0; }
@media screen and (max-width:1000px) {
  .front-main .paper-content > .timeline--section { padding-top:32px; }
  .site-shell .site-header.has-section-background .primary-nav.is-open {
    background:var(--section-header-background);
  }
}
@media screen and (min-width:1001px) {
  .front-main .paper-content > .timeline--section {
    width:calc(100% + var(--column-start));
    margin-inline-start:calc(-1 * var(--column-start));
    padding-inline-start:calc(var(--column-start) + var(--column-gutter));
  }
}
.front-main [data-section-text] a:not(.more-link) { color:var(--celis-section-text); }
.front-main .more-link,
.member-profile-back .more-link {
  --celis-button-hover: var(--home-button-hover, var(--home-button-background, #111));
  background:var(--home-button-background, #fff);
  border-color:var(--home-button-border, var(--home-button-background, #999));
  color:var(--home-button-text, #111);
}
.front-main .more-link .arrow,
.member-profile-back .more-link .arrow {
  background-color:inherit;
  color:var(--home-arrow-text, #555);
}
.front-main .more-link[href]:is(:hover, :focus-visible),
.member-profile-back .more-link[href]:is(:hover, :focus-visible) {
  background:var(--celis-button-hover);
  border-color:var(--home-button-hover-border, var(--celis-button-hover));
  color:var(--home-button-hover-text, var(--home-button-text, #fff));
}
.front-main .more-link[href]:is(:hover, :focus-visible) .arrow,
.member-profile-back .more-link[href]:is(:hover, :focus-visible) .arrow {
  background-color:inherit;
  color:inherit;
}
.front-main .contact-copy > .more-link { white-space:normal; }
.site-shell .site-header.has-section-background { background-color:var(--section-header-background); }
.site-shell .site-header.has-section-border {
  outline:1px solid var(--section-header-border);
  outline-offset:-1px;
}
.site-header.has-section-border :is(.brand, .language-switch, .sidebar-legal > * + *) {
  border-color:var(--section-header-border);
}
.site-header.has-section-text,
.site-header.has-section-text :is(a, button, .sidebar-brand-name, .primary-nav .menu span) {
  color:var(--section-header-text);
}
.site-header.has-section-text .menu-toggle span { background-color:var(--section-header-text); }
.site-header .site-brand-default { display:contents; }
.site-header.has-section-logo .site-brand-default,
.site-header .section-brand-image[hidden] { display:none; }

@media (prefers-reduced-motion:no-preference) {
  .site-shell .site-header {
    outline:1px solid transparent;
    outline-offset:-1px;
    transition:background-color .45s ease, color .45s ease, outline-color .45s ease;
  }
  .site-shell .site-header.has-section-border { outline-color:var(--section-header-border); }
  .site-header :is(a, button, .brand, .sidebar-brand-name, .primary-nav, .primary-nav .menu span, .language-switch, .menu-toggle span) {
    transition:color .45s ease, background-color .45s ease, border-color .45s ease;
  }
}

/* Keep each content section one screen high and let longer content scroll inside it. */
@media screen {
  .front-main .paper-content > .timeline--section[data-home-section] {
    height:100vh;
    height:100svh;
    min-height:0;
    overflow-y:auto;
    overscroll-behavior-y:auto;
  }
}

.member-card-link { display:block; width:100%; height:100%; }
.member-card-link:focus-visible { outline-offset:-5px; }
.member-profile :is(article, .member-profile-breadcrumbs) { margin-inline:0; }
.member-profile .member-profile-breadcrumbs { margin-block:0 18px; font-size:12px; }
.member-profile-breadcrumbs [aria-current] { color:#555; }
.member-profile-grid {
  display:grid;
  grid-template-columns:minmax(0, min(410px, 36%)) minmax(0, 1fr);
  align-items:start;
  gap:clamp(24px, 4vw, 64px);
}
.member-profile-lead { min-width:0; }
.member-profile-heading { margin:0 0 16px; padding:0; border:0; }
.member-profile .member-profile-heading h1 {
  margin:0;
  font-size:clamp(34px, 4.2vw, 56px);
  line-height:1.08;
  overflow-wrap:anywhere;
}
.member-profile .member-profile-heading .member-profile-division { margin:0 0 8px; color:#555; font-size:14px; }
.member-profile-photo { margin:0; aspect-ratio:3 / 4; border-radius:6px; overflow:hidden; }
.member-profile-photo img { display:block; width:100%; height:100%; object-fit:contain; }
.member-profile-social { margin-top:12px; }
.member-profile-social .social-links { display:flex; justify-content:center; flex-wrap:wrap; gap:10px; }
.member-profile-social .social-links a { width:38px; height:38px; border:1px solid currentColor; border-radius:50%; background:transparent; color:inherit; }
.member-profile-social .social-links svg { width:18px; height:18px; }
.member-profile-details { min-width:0; padding-top:clamp(22px, 4vw, 54px); }
.member-profile-section + .member-profile-section { margin-top:clamp(22px, 3.5vw, 44px); }
.member-profile-section h2 { margin:0 0 14px; font-size:15px; }
.member-profile-section:first-child h2 { display:inline-block; border-radius:999px; padding:5px 20px; background:var(--celis-accent, #0067aa); color:#fff; font-weight:600; }
.member-profile-list { margin:0; border-top:1px solid #d2d2d2; }
.member-profile-list > div {
  display:grid;
  grid-template-columns:minmax(8em, 43%) minmax(0, 1fr);
  gap:10px 16px;
  padding:10px 4px;
  border-bottom:1px solid #dedede;
}
.member-profile .member-profile-list :is(dt, dd) { margin:0; font-size:clamp(14px, 1.1vw, 16px); line-height:1.55; overflow-wrap:anywhere; }
.member-profile-list dt { font-weight:600; }
.member-profile-list a { text-decoration:underline; text-underline-offset:3px; }
.member-profile-back { margin:16px 0 0; }
.member-profile-back .more-link { flex-direction:row-reverse; padding-inline:10px 20px; }
.member-profile-back .arrow { transform:rotate(180deg); }
@media screen and (min-width:1001px) {
  .site-shell > .member-profile { padding-inline:clamp(20px, 3vw, 44px); }
  .site-shell > .celis-announcement + .member-profile { padding-top:clamp(16px, 2vw, 24px); }
  .member-profile-details { padding-top:var(--member-profile-photo-top, 108px); }
  .member-profile-section + .member-profile-section { margin-top:clamp(36px, 5vw, 64px); }
  .member-profile-lead {
    --member-sticky-top:var(--rail-inset, 24px);
    position:sticky;
    top:var(--member-sticky-top);
    max-height:calc(100dvh - var(--member-sticky-top) - 12px);
    overflow:auto;
    padding:4px;
  }
  .admin-bar .member-profile-lead { --member-sticky-top:calc(var(--rail-inset, 24px) + 32px); }
  .member-profile-photo { width:min(100%, max(135px, calc((100dvh - var(--member-sticky-top) - 205px) * .75))); margin-inline:0 auto; }
}
@media (max-width:1000px) {
  .member-profile-grid { grid-template-columns:minmax(0, .85fr) minmax(0, 1.15fr); }
}
@media (max-width:680px) {
  .member-profile-grid { grid-template-columns:minmax(0, 1fr); }
  .member-profile-photo { width:min(100%, 350px); margin-inline:auto; }
  .member-profile-details { padding-top:0; }
}
@media (max-width:380px) {
  .member-profile-list > div { grid-template-columns:minmax(7.5em, 36%) minmax(0, 1fr); gap:8px; padding-inline:0; }
}

/* NEWS uses page scrolling vertically and keeps its horizontal card track. */
@media screen {
  .front-main .paper-content > .timeline--section[data-home-section="news"] {
    height:auto;
    min-height:100svh;
    overflow:visible;
  }
}

/* Element colors are inherited from the section; unset controls use the theme defaults. */
.front-main [data-home-section] .section-heading h2 { color:var(--home-heading, inherit); }
.front-main [data-home-section] .section-heading p { color:var(--home-subtitle, inherit); }
.front-main [data-home-section] :is(.card-copy h3, .sponsor-card h3, .goods-card h3) { color:var(--home-card-title, inherit); }
.front-main [data-home-section] .card-image { background-color:var(--home-card-image, #f1f1f1); border-color:var(--home-card-border, #c6c6c6); }
.front-main #news .card-image { border-color:var(--home-card-border, #b7b7b7); }
.front-main [data-home-section] .sponsor-image { background-color:var(--home-card-image, #f4f4f4); border-color:var(--home-card-border, #bbb); }
.front-main [data-home-section] .goods-image { background-color:var(--home-card-image, #f6f6f6); border-color:var(--home-card-border, #eee); }
.front-main [data-home-section] .fan-visual { background-color:var(--home-card-image, #b3b3b3); }
.front-main .timeline--section .news-card-category {
  background-color:var(--home-category-background, transparent);
  color:var(--home-category-text, var(--celis-section-text, var(--celis-accent)));
  border-color:var(--home-category-border, currentColor);
}
.front-main [data-home-section] .member-card { background:var(--home-card-image, #ededed); }
.front-main [data-home-section] .member-caption { background:var(--home-caption-background, var(--celis-accent, #0067aa)); color:var(--home-caption-text, #fff); }
.front-main [data-home-section] .member-filter select { background:var(--home-filter-background, #fff); color:var(--home-filter-text, #111); border-color:var(--home-filter-border, #bbb); }
.front-main [data-home-section] .member-arrows button { background:var(--home-arrow-background, transparent); color:var(--home-arrow-text, #222); }
.front-main [data-home-section] .member-arrows button:not(:disabled):is(:hover, :focus-visible) { background:var(--home-button-hover, #111); color:var(--home-button-hover-text, #fff); }
.front-main [data-home-section] .motion-pause { background:var(--home-motion-background, transparent); color:var(--home-motion-text, inherit); }
.front-main [data-home-section] .partner-logo { background-color:var(--home-card-image, transparent); }

.footer-nav > .menu { margin-block:0; padding-block:0; }
.sidebar-legal > * + * { border-inline-start:1px solid #777; padding-inline-start:6px; }
.site-header .primary-nav > .sidebar-legal { margin-top:12px; padding-top:12px; border-top:1px solid #ccc; font-size:12px; }
@media screen and (min-width:1001px) {
  .site-header .primary-nav > .sidebar-legal { display:none; }
}

@media screen {
  .front-main .paper-content > .timeline--section[data-home-section="fan"] {
    height:auto;
    min-height:0;
    overflow:visible;
    padding-block:clamp(24px, 3.5vw, 60px);
  }
  .front-main .fan-grid { margin-top:clamp(16px, 2vw, 30px); }
  .front-main .fan-actions { margin-top:clamp(12px, 2vw, 24px); }
}
.celis-section-detail .section { margin:0 0 32px; }

@media screen and (min-width:1001px) {
  .celis-editorial-article .article-lead:has(.article-visual) {
    --image-width:100%;
    --image-offset:0px;
  }
  .site-shell > .celis-announcement + .article-main:has(.celis-editorial-article) {
    padding-top:clamp(16px, 1.5vw, 24px);
  }
}
@media screen and (min-width:1200px) {
  .celis-editorial-article .article-lead:has(.article-recommended) {
    --recommend-width:clamp(210px, 15vw, 300px);
    grid-template-columns:minmax(0, 1fr) var(--recommend-width);
  }
}

.front-main [data-section-align="right"] { --section-align: end; --section-text-align: right; }
.front-main [data-section-align="left"] { --section-align: start; --section-text-align: left; }
.front-main [data-section-align] .section .section-heading { text-align:var(--section-text-align); }
.front-main [data-section-align] :is(.news-actions, .fan-actions) {
  justify-content:var(--section-align);
}
.front-main [data-section-align] .goods-heading {
  display:grid;
  justify-items:var(--section-align);
}
.front-main [data-section-align="right"] .members-heading { flex-direction:row-reverse; }
.front-main [data-section-align] .contact-section {
  display:grid;
  grid-template-columns:minmax(0, 1fr);
  gap:16px;
}
.front-main [data-section-align] .contact-copy { padding-top:0; }
.front-main [data-section-align="right"] .contact-copy > * { margin-inline-start:auto; }
.member-archive-grid {
  display:grid;
  --member-grid-gap:clamp(14px, 2vw, 26px);
  grid-template-columns:repeat(auto-fill, minmax(min(100%, max(185px, calc((100% - 2 * var(--member-grid-gap)) / 3))), 1fr));
  gap:var(--member-grid-gap);
  max-width:calc(3 * 280px + 2 * var(--member-grid-gap));
}
.member-archive-grid .member-card { width:100%; max-width:280px; }

@media screen and (min-width:1001px) {
  .site-shell > .celis-announcement + :is(.editorial-listing, .member-archive) {
    padding-top:clamp(20px, 2vw, 32px);
  }
}

.member-archive-division + .member-archive-division { margin-top:clamp(32px, 5vw, 60px); }
.member-archive-division h2 {
  margin:0 0 18px;
  padding-bottom:8px;
  border-bottom:1px solid #dedede;
  font-size:clamp(18px, 2vw, 26px);
}

/* Make the whole About section the scrollport, with a bar at its outer edge. */
.front-main .about-copy h3 {
  padding-block:4px 10px;
  font-size:clamp(29px, 3vw, 48px);
  line-height:1.35;
}
.front-main .about-copy .plain-copy { max-width:none; }
.front-main .about-copy .plain-copy.is-fading-at-top {
  mask-image:linear-gradient(
    to bottom,
    transparent var(--about-fade-start),
    rgb(0 0 0 / 18%) calc(var(--about-fade-start) + var(--about-fade-length) * .28),
    rgb(0 0 0 / 58%) calc(var(--about-fade-start) + var(--about-fade-length) * .65),
    #000 calc(var(--about-fade-start) + var(--about-fade-length))
  );
}
@media screen and (min-width:681px) {
  .front-main [data-home-section="about"] {
    --about-bar-track:var(--home-bar-track, #dedede);
    --about-bar-thumb:var(--home-bar-thumb, var(--celis-accent, #232323));
  }
  .front-main .paper-content > .timeline--section[data-home-section="about"].is-before-scroll-start {
    overflow-y:hidden;
  }
  .front-main [data-home-section="about"]::-webkit-scrollbar { width:4px; }
  .front-main [data-home-section="about"]::-webkit-scrollbar-track {
    background:var(--about-bar-track);
    border-radius:999px;
  }
  .front-main [data-home-section="about"]::-webkit-scrollbar-thumb {
    background:var(--about-bar-thumb);
    border-radius:999px;
  }
  .front-main [data-home-section="about"]::-webkit-scrollbar-button { display:none; }
}
@supports not selector(::-webkit-scrollbar) {
  @media screen and (min-width:681px) {
    .front-main [data-home-section="about"] {
      scrollbar-width:thin;
      scrollbar-color:var(--about-bar-thumb) var(--about-bar-track);
    }
  }
}
@media screen {
  .front-main .about-section .section-heading,
  .front-main .about-copy h3 {
    position:sticky;
    top:var(--about-pin-top, 0px);
    z-index:2;
  }
}
@media screen and (max-width:1000px) {
  .front-main .about-section .section-heading { padding-inline-end:52px; }
  .front-main .about-copy h3 {
    top:calc(var(--about-pin-top, 0px) + var(--about-title-height, 0px));
    padding-inline-end:52px;
  }
}
.front-main :where(.about-copy) .plain-copy { font-size:clamp(17px, 1.15vw, 18px); line-height:1.8; }

/* Keep the original text in flow while its visible lines enter. */
.front-main .about-copy .plain-copy { position:relative; }
.about-original.is-revealing { opacity:0; }
.about-reveal-lines { position:absolute; inset:0; pointer-events:none; user-select:none; }
.about-reveal-row { position:absolute; inset-inline:0; overflow:hidden; white-space:nowrap; }
.about-reveal-row > span { display:block; }
@media print, (prefers-reduced-motion: reduce) {
  .about-original.is-revealing { opacity:1; }
  .about-reveal-lines { display:none; }
}

/* Use only the menu button on phones and tablets. */
@media screen and (max-width:1000px) {
  :root { --header-inset:10px; --header-height:44px; }
  .site-shell {
    --compact-header-gutter:calc((100% - var(--content-width)) / 2);
  }
  .site-shell .site-header {
    width:44px;
    margin-inline:auto var(--compact-header-gutter);
    padding:0;
    border-radius:12px;
  }
  .site-header > .brand,
  .site-header .header-tools > .language { display:none; }
  .site-header .menu-toggle { width:44px; height:44px; padding:10px; }
  .site-header .primary-nav {
    inset:calc(100% + 8px) 0 auto auto;
    width:min(320px, calc(100vw - 2 * clamp(14px, 4vw, 24px)));
    max-height:calc(100dvh - var(--header-height) - 78px);
    overflow-y:auto;
    padding:14px 18px;
    border-radius:14px;
  }
  .site-header .primary-nav .sub-menu { background:transparent; }

  .site-header .primary-nav.is-open { border:1px solid #fff; }
}

@media screen and (max-width:680px) {
  :root {
    --section-space:28px;
    --phone-gutter:clamp(14px, 4vw, 24px);
  }
  .site-shell { --compact-header-gutter:var(--phone-gutter); }
  .site-shell > .celis-announcement,
  .site-shell .front-intro > .celis-announcement { display:none; }
  .front-intro-visual:has(> .hero) { padding-block-start:14px; }
  .site-shell .front-main,
  .site-shell:has(.celis-announcement) .front-main:not(:has(> .front-intro > .front-intro-visual > .hero)) {
    padding-top:12px;
  }
  .site-shell > :is(.inner-main, .landing-main),
  .site-shell:has(.celis-announcement) > :is(.inner-main, .landing-main) {
    width:100%;
    padding:24px var(--phone-gutter) 56px;
  }
  .site-shell > .inner-main .inner-heading { padding-inline:0; margin-bottom:20px; }
  .listing-main .archive-grid { gap:24px; }

  .front-main .paper-content > .timeline--section[data-home-section] {
    height:auto;
    min-height:0;
    overflow:visible;
    margin-bottom:0;
    padding-block:36px;
  }
  .members-slider { grid-template-columns:minmax(0, 1fr); }
  .members-slider .member-arrows { display:none; }
  .front-main .about-copy { padding-top:18px; }
  .front-main .about-copy h3 { margin-bottom:16px; }
  .front-main .members-heading,
  .front-main .news-label { margin-bottom:18px; }
  .site-footer { padding-block:26px 18px; }
  .footer-main { gap:16px; padding-bottom:18px; }
}
