/* Scoped event archive styles; shared by year pages, taxonomy archives and single events. */
.iib-events{max-width:1299px;margin:0 auto;padding:65px 30px;color:var(--iib-event-accent,#1a2159)}
.iib-event-years{display:flex;align-items:center;gap:12px;margin:0 0 65px}
.iib-event-years__track{display:flex;align-items:center;overflow-x:auto;scrollbar-width:none;flex:1;min-width:0;padding:8px 0;scroll-behavior:smooth;scroll-snap-type:x mandatory}
.iib-event-years__track::-webkit-scrollbar,.iib-event-gallery__track::-webkit-scrollbar{display:none}
.iib-event-year{display:flex;align-items:center;justify-content:center;flex:0 0 20%;font-size:52px;line-height:1.2;color:#575757!important;text-decoration:none!important;scroll-snap-align:start}
/* Center years when they fit; auto margins collapse for the mobile scroller. */
.iib-event-year:first-child{margin-left:auto}
.iib-event-year:last-child{margin-right:auto}
.iib-event-year::before{content:"";flex:0 0 47px;width:47px;height:33px;background:url('../images/events-pages-links-bg-grey.png') center/contain no-repeat}
.iib-event-year.is-active::before,.iib-event-year:hover::before{background-image:url('../images/events-pages-links-bg-blue.png')}
.iib-event-year.is-active,.iib-event-year:hover{color:var(--iib-event-accent,#1a2159)!important}
.iib-events button.iib-event-years__arrow{flex:0 0 38px;width:38px;height:38px;padding:0;background:transparent center/contain no-repeat;border:0;font-size:0;line-height:0;cursor:pointer}
.iib-events button.iib-event-years__arrow[data-year-direction="-1"]{background-image:url('../images/blue-arrow-left.png')}
.iib-events button.iib-event-years__arrow[data-year-direction="1"]{background-image:url('../images/blue-arrow-right.png')}
.iib-events__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:65px 35px;align-items:start}
.iib-event-card{min-width:0;max-width:585px;width:100%;margin:0 auto}
.iib-event-gallery{position:relative;background:#efefef}
.iib-event-gallery__track{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;scroll-behavior:smooth;align-items:flex-start}
.iib-event-slide{flex:0 0 100%;min-width:0;aspect-ratio:1/1;overflow:hidden;scroll-snap-align:start;scroll-snap-stop:always}
.iib-event-slide img{display:block;width:100%;height:100%!important;object-fit:cover;object-position:center;margin:0}
.iib-event-gallery__controls{position:absolute;left:50%;bottom:21px;transform:translateX(-50%);display:flex;align-items:center;gap:38px}
.iib-event-gallery__controls[hidden],.iib-event-years__arrow[hidden]{display:none!important}
.iib-event-gallery__controls button{width:38px;height:38px;padding:0;border:0;background:transparent center/contain no-repeat;font-size:0;line-height:0;cursor:pointer}
.iib-event-gallery__controls button[data-slide-direction="-1"]{background-image:url('../images/blue-arrow-left.png')}
.iib-event-gallery__controls button[data-slide-direction="1"]{background-image:url('../images/blue-arrow-right.png')}
.iib-event-gallery__controls button[data-slide-direction="-1"]:disabled{background-image:url('../images/grey-arrow-left.png')}
.iib-event-gallery__controls button[data-slide-direction="1"]:disabled{background-image:url('../images/grey-arrow-right.png')}
.iib-event-gallery__count{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
/* Legacy articles also contain plain div text, which must inherit the body grey. */
.iib-event-card__content{padding:45px 50px;background:#efefef;color:#575757;overflow-wrap:anywhere}
.iib-events__grid .iib-event-card__content{box-sizing:border-box;display:flex;flex-direction:column;min-height:var(--iib-event-content-height,0px)}
.iib-event-card__content.is-animating{overflow:hidden;overflow-anchor:none}
.iib-event-card__content.is-animating>*{flex-shrink:0}
.iib-events__grid .iib-event-details{margin-top:auto;padding-top:24px}
.iib-event-card__content .newsDate{display:block;margin:0 0 15px!important;padding:0 0 15px;font-size:18px!important;line-height:27px;color:#575757!important;border-bottom:1px solid rgba(87,87,87,.5)}
.iib-event-card__content h2.iib-event-card__title{font-family:'Albert Sans',sans-serif!important;font-size:20px;line-height:24px;margin:0 0 8px;color:#575757;font-weight:500!important}
.iib-event-card__content h1{font-size:30px;line-height:1.35}
.iib-event-card__content p{margin:0 0 18px}
.iib-event-card__content p:last-child{margin-bottom:0}
.iib-event-card__content ul,.iib-event-card__content ol{padding-left:22px;margin:18px 0;display:block}
.iib-event-card__content a{overflow-wrap:anywhere}
.iib-event-details{margin-top:24px}
.iib-event-details>summary{cursor:pointer;list-style:none;color:var(--iib-event-accent,#1a2159);font-family:'Albert Sans',sans-serif;font-size:18px;line-height:27px;font-weight:300;text-decoration:none;width:fit-content;padding-left:33px;background:url('../images/btn-icon.png') left center/24px 17px no-repeat;transition:transform .5s ease}
.iib-event-details>summary:hover{transform:translateX(10px)}
.iib-event-details>summary span{color:inherit!important;text-decoration:none!important}
.iib-event-details>summary::-webkit-details-marker{display:none}
.iib-event-details__less,.iib-event-details[open] .iib-event-details__more{display:none}
.iib-event-details[open] .iib-event-details__less{display:inline}
.iib-event-details .iib-event-card__body{margin-top:24px}
.iib-event-details[open]{position:relative;padding-bottom:75px}
.iib-event-details[open]>summary{position:absolute;bottom:0;left:0}
.iib-event-details[open] .iib-event-card__body{margin-top:0}
.iib-events a:focus-visible,.iib-events button:focus-visible,.iib-events summary:focus-visible,.iib-event-gallery__track:focus-visible{outline:3px solid var(--iib-event-accent,#1a2159);outline-offset:3px}
.iib-events button:disabled{opacity:1;cursor:default}
.iib-events__empty{padding:25px 0}
.iib-event-single{max-width:1000px;margin:0 auto;padding:60px 25px}
.iib-event-single .iib-event-card{max-width:585px}
.iib-event-single .iib-event-card__body{margin-top:24px}
.iib-events-archive-heading{max-width:1239px;margin:40px auto 0;padding:0 30px}
@media(max-width:1199px){.iib-event-year{flex-basis:33.333333%}}
@media(max-width:767px){.iib-events{padding:35px 20px}.iib-events__grid{grid-template-columns:1fr;gap:35px}.iib-event-years{gap:8px;margin-bottom:35px}.iib-event-year{flex-basis:50%;font-size:32px}.iib-event-year::before{flex-basis:28px;width:28px;height:20px}.iib-event-card__content{padding:28px 24px}}
@media(max-width:374px){.iib-event-year{flex-basis:100%}}
@media(prefers-reduced-motion:reduce){.iib-event-years__track,.iib-event-gallery__track{scroll-behavior:auto}.iib-event-details>summary{transition:none}}

/* Shared Events hero, with a per-page featured-image override. */
.iib-events-banner{position:relative;width:100%;overflow:hidden}
.iib-events-banner__image{display:block;width:100%;height:auto;margin:0}
.iib-events-banner h1.iib-events-banner__title{position:absolute;top:50%;left:0;transform:translateY(-50%);margin:0;padding:15px 27px 15px 65px;background:rgb(87 87 87 / 48%);color:#fff!important;font-size:65px;line-height:1.2;font-weight:300;text-shadow:2px 2px 6px #00000029}
@media(max-width:1199px){.iib-events-banner h1.iib-events-banner__title{padding-left:30px;font-size:45px}}
@media(max-width:767px){.iib-events-banner h1.iib-events-banner__title{padding:12px 20px;font-size:25px}}

/* Islamic uses the same layout with its own brand accents. */
[data-event-market="islamic"]{--iib-event-accent:#1a6d40}
[data-event-market="islamic"] .iib-event-year.is-active::before,
[data-event-market="islamic"] .iib-event-year:hover::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 47 33'%3E%3Cpath d='M8 2L45 16.5L8 31L2 16.5Z' fill='none' stroke='%231a6d40' stroke-width='1.5'/%3E%3C/svg%3E")}
[data-event-market="islamic"] .iib-event-details>summary{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 47 33'%3E%3Cpath d='M8 2L45 16.5L8 31L2 16.5Z' fill='none' stroke='%231a6d40' stroke-width='1.5'/%3E%3C/svg%3E")}
.iib-events[data-event-market="islamic"] button.iib-event-years__arrow[data-year-direction="-1"],
[data-event-market="islamic"] .iib-event-gallery__controls button[data-slide-direction="-1"]:not(:disabled){background-image:url('../images/green-arrow-left.png')}
.iib-events[data-event-market="islamic"] button.iib-event-years__arrow[data-year-direction="1"],
[data-event-market="islamic"] .iib-event-gallery__controls button[data-slide-direction="1"]:not(:disabled){background-image:url('../images/green-arrow-right.png')}
