/* Events page (2026-10-31, user: "make this page UI also proper"). Loaded only by events.html, after site.css + pages-v7.css.
   Same visual language as the Test Preparation page (page-test-prep.css): photo-pair hero, full-width --cta-grad bands, editorial rows on 1px hairlines
   with the short 44x2 brand-gradient accent, native <details> FAQ. House rules: no boxes, no tinted cards, no icons. Every colour is a theme token,
   except white type on the gradient bands. */

/* shared: photo frame, small caps label, gradient accent bar, visually hidden text */
.ev .ev-ph{margin:0;border-radius:24px;overflow:hidden;background:var(--phc,var(--bg2))}
.ev .ev-ph img{width:100%;height:100%;object-fit:cover;display:block}
.ev-k,.ev-sk,.ev-wl,.ev-dm,.ev-dl dt,.ev-count{font:600 12px/1.4 var(--sans);letter-spacing:.16em;text-transform:uppercase;color:var(--mut)}
@media(min-width:700px){.ev-k,.ev-sk,.ev-wl,.ev-dm,.ev-dl dt,.ev-count{font-size:13px}}
.ev-row:before,.ev-steps li:before,.ev-faq details[open]:before,.ev-fd:after{content:"";position:absolute;left:0;top:-1px;width:44px;height:2px;background:var(--cta-grad)}
.ev-vh{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.ev .ev-smp{display:block;margin:12px 0 0}
.ev .sh .ev-smp{margin-left:0}

/* typographic date: big serif day number, month and weekday stacked in small caps */
.ev-d,.ev-fd{margin:0}
.ev-d time,.ev-fd time{display:flex;align-items:flex-end;gap:14px}
.ev-dn{font:400 clamp(48px,4.4vw,64px)/.86 var(--serif);letter-spacing:-.03em;color:var(--ink);font-variant-numeric:lining-nums}
.ev-dm{display:flex;flex-direction:column;gap:2px;padding-bottom:2px}
.ev-dm span{white-space:nowrap}
.ev-dm span:first-child{color:var(--ink)}

/* 1 hero: copy left, a large photo with a smaller landscape over its lower-left corner (phones: copy, then one photo) */
.ev-hero{position:relative;background:var(--bg);overflow:clip;padding:calc(var(--hdr,82px) + clamp(40px,6vw,96px)) 0 clamp(64px,8vw,120px)}
.ev-hg{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(40px,6vw,104px);align-items:center}
.ev-ht{min-width:0}
.ev-hero h1{font-size:clamp(42px,5.4vw,84px);line-height:1.02;letter-spacing:-.02em;max-width:12ch;margin:0 0 24px;text-wrap:balance}
.ev-hero .lead{margin:0 0 34px;max-width:40ch}
.ev-where{display:flex;flex-wrap:wrap;align-items:baseline;gap:8px 22px;margin:clamp(36px,4vw,52px) 0 0;padding-top:18px;border-top:1px solid var(--line);max-width:600px}
.ev-where span:not(.ev-wl){font:400 clamp(19px,1.5vw,22px)/1.2 var(--serif);color:var(--ink)}
.ev-wl{margin-right:2px}
.ev-hp{position:relative;min-width:0;height:clamp(460px,44vw,640px)}
.ev-ph-a{position:absolute;right:0;top:0;width:82%;height:calc(100% - 64px)}
.ev-ph-b{position:absolute;left:0;bottom:0;width:44%;aspect-ratio:4/3;z-index:2}

/* 2 + 7 brand gradient bands: white type on --cta-grad */
.ev-band{position:relative;background:var(--cta-grad);color:#fff;padding:clamp(64px,8vw,112px) 0;--ink:#fff;--mut:rgba(255,255,255,.92);--line:rgba(255,255,255,.3)}
.ev .ev-band h2,.ev .ev-band h2 em,.ev .ev-band em{color:#fff}
.ev .ev-band :focus-visible,.ev .ev-band .btn:focus-visible{outline-color:#fff}
.ev-fg{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr))} /* 3 items since the online test-prep item left (2026-11-11) */
.ev-fg li{display:flex;flex-direction:column;gap:6px;min-width:0;padding:4px clamp(16px,2.4vw,40px);border-left:1px solid rgba(255,255,255,.3)}
.ev-fg li:first-child{border-left:0;padding-left:0}
.ev-fn{font:400 clamp(36px,3.8vw,58px)/1 var(--serif);letter-spacing:-.02em;color:#fff}
.ev-ft{font:400 clamp(20px,1.6vw,26px)/1.2 var(--serif);color:#fff;margin-top:12px}
.ev-fk{font:600 13px/1.4 var(--sans);letter-spacing:.14em;text-transform:uppercase;color:rgba(255,255,255,.94)}

/* 3 the next session: photo left, the event on hairlines right */
#next,#upcoming,#past,#how,#faq{scroll-margin-top:var(--hdr,82px)}
.ev-feat{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,6fr);gap:clamp(40px,6vw,104px);align-items:start;margin-top:clamp(8px,1vw,16px)}
.ev .ev-ph-f{aspect-ratio:4/5;position:sticky;top:calc(var(--hdr,82px) + 24px)}
.ev-fb{min-width:0}
.ev-fd{position:relative;padding-bottom:26px;border-bottom:1px solid var(--line);margin-bottom:30px}
.ev-fd:after{top:auto;bottom:-1px}
.ev-fd .ev-dn{font-size:clamp(96px,10vw,160px);line-height:.8}
.ev-fd .ev-dm{padding-bottom:8px;gap:4px}
.ev-fb>.ev-k{margin:0 0 14px}
.ev .ev-fb h3{font-size:clamp(32px,3.4vw,52px);line-height:1.04;letter-spacing:-.02em;color:var(--ink);margin:0 0 18px;text-wrap:balance}
.ev-sum{margin:0 0 30px;font-size:clamp(17px,1.35vw,20px);line-height:1.55;color:var(--mut);max-width:44ch}
.ev-dl{margin:0 0 34px}
.ev-dl>div{display:grid;grid-template-columns:110px minmax(0,1fr);gap:20px;padding:15px 0;border-top:1px solid var(--line)}
.ev-dl>div:last-child{border-bottom:1px solid var(--line)}
.ev-dl dt{padding-top:3px}
.ev-dl dd{margin:0;font-size:16.5px;line-height:1.55;color:var(--ink)}
.ev-fb>.ev-gk{margin:0 0 10px}
.ev-get{list-style:none;margin:0 0 36px;padding:0}
.ev-get li{padding:9px 0;font-size:16.5px;line-height:1.55;color:var(--ink);max-width:52ch}
.ev-fb .btns{margin:0}

/* 4 upcoming: filter pills, then one editorial row per session */
.ev-filt{display:none;flex-wrap:wrap;gap:10px;margin:0 0 16px}
.js .ev-filt{display:flex}
.ev .ev-filt .btn{flex:none;width:auto;height:44px}
.ev .ev-filt .btn[aria-pressed=true]{--btn-bg:var(--cta-grad);--btn-ink:#fff;--btn-bd:transparent;--btn-bg-h:var(--cta-grad-h);--btn-ink-h:#fff}
.ev-count{margin:0 0 clamp(28px,3vw,40px)}
.ev-list{list-style:none;margin:0;padding:0;border-bottom:1px solid var(--line)}
.ev-row{position:relative;display:grid;grid-template-columns:176px minmax(0,1fr) 210px auto;grid-template-areas:"d m t r";gap:clamp(20px,3vw,48px);align-items:start;padding:32px 0 36px;border-top:1px solid var(--line)}
.ev-row[hidden]{display:none}
.ev-row .ev-d{grid-area:d;padding-top:2px}
.ev-rm{grid-area:m;min-width:0}
.ev-rm .ev-k{margin:0 0 10px}
.ev .ev-rm h3{font:400 clamp(22px,2vw,30px)/1.18 var(--serif);letter-spacing:-.01em;color:var(--ink);margin:0 0 10px;text-wrap:balance}
.ev-rs{margin:0;font-size:16px;line-height:1.6;color:var(--mut);max-width:56ch}
.ev-meta{grid-area:t;display:flex;flex-direction:column;gap:4px;margin:0;padding-top:26px;font-size:16px;line-height:1.45;color:var(--ink)}
.ev-meta span+span{color:var(--mut)}
.ev .ev-reg{grid-area:r;justify-self:end;margin-top:22px}

/* 5 what happens: heading, lead and photo left; four points on hairlines right */
.ev-mg{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,6fr);gap:clamp(40px,7vw,120px);align-items:start}
.ev-mt{min-width:0}
.ev .ev-mt h2,.ev .ev-qt h2{font-size:clamp(34px,4.2vw,64px);max-width:12ch;margin:0 0 20px;text-wrap:balance}
.ev-mt .lead{margin:0;max-width:38ch}
.ev .ev-ph-m{margin-top:clamp(32px,4vw,52px);aspect-ratio:5/4}
.ev-steps{list-style:none;margin:0;padding:0;display:grid;gap:clamp(30px,3.2vw,44px);min-width:0}
.ev-steps li{position:relative;padding-top:20px;border-top:1px solid var(--line)}
.ev-sk{display:block;margin-bottom:10px}
.ev .ev-steps h3{font:400 clamp(22px,1.9vw,28px)/1.2 var(--serif);letter-spacing:-.005em;color:var(--ink);margin:0 0 8px}
.ev-steps p{margin:0;font-size:16px;line-height:1.6;max-width:46ch}

/* 6 FAQ: native details/summary, hairlines, a thin drawn plus that turns into a minus */
.ev-qg{display:grid;grid-template-columns:minmax(0,4fr) minmax(0,7fr);gap:clamp(40px,7vw,120px);align-items:start}
.ev-qt{min-width:0}
.ev-qt>p{margin:0;max-width:34ch}
.ev-ql{display:inline-flex;align-items:center;min-height:44px;margin-top:14px;font:600 15px/1 var(--sans);color:var(--ink);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:7px;text-decoration-color:var(--pink)}
.ev-ql:hover{text-decoration-thickness:2px}
.ev-faq{min-width:0;border-bottom:1px solid var(--line)}
.ev-faq details{position:relative;border-top:1px solid var(--line)}
.ev-faq summary{list-style:none;display:flex;justify-content:space-between;align-items:center;gap:24px;min-height:44px;padding:26px 0;cursor:pointer;font:400 clamp(20px,1.8vw,26px)/1.3 var(--serif);color:var(--ink)}
.ev-faq summary::-webkit-details-marker{display:none}
.ev-faq summary:after{content:"";flex:none;width:18px;height:18px;margin-right:4px;
 background:linear-gradient(currentColor,currentColor) center/18px 1.5px no-repeat,linear-gradient(currentColor,currentColor) center/1.5px 18px no-repeat;
 transition:background-size var(--m-hover) ease-out}
.ev-faq details[open] summary:after{background-size:18px 1.5px,1.5px 0}
.ev-faq summary:focus-visible{outline-offset:4px}
.ev-faq details p{margin:0;padding:0 48px 28px 0;font-size:16.5px;line-height:1.65;max-width:62ch}

/* 7 closing band: centred, white primary pill (burgundy type) and the flat translucent-white secondary on the gradient */
.ev-cta>.wrap{display:grid;justify-items:center;text-align:center}
.ev .ev-cta h2{font-size:clamp(38px,5.4vw,84px);max-width:16ch;margin:0 0 20px;text-wrap:balance}
.ev .ev-cta .lead{color:rgba(255,255,255,.94);margin:0 0 36px;max-width:50ch;text-align:center}
.ev-cta .btns{justify-content:center}
.ev .ev-cta .btn-p{--btn-bg:#fff;--btn-ink:var(--burg);--btn-bg-h:#fff;--btn-ink-h:var(--navy)}
.ev .ev-cta .btn-g{--btn-bg:rgba(255,255,255,.18);--btn-ink:#fff;--btn-bd:transparent;--btn-bg-h:rgba(255,255,255,.3);--btn-ink-h:#fff}

/* tablet and phone */
@media(max-width:1100px){
 .ev-row{grid-template-columns:150px minmax(0,1fr) auto;grid-template-areas:"d m r" "d t r";row-gap:14px}
 .ev-meta{flex-direction:row;flex-wrap:wrap;gap:4px 18px;padding-top:0}
 .ev-dl>div{grid-template-columns:96px minmax(0,1fr);gap:16px}
}
@media(max-width:900px){
 .ev-hero{padding-top:calc(var(--hdr,68px) + 36px)}
 .ev-hg,.ev-feat,.ev-mg,.ev-qg{grid-template-columns:minmax(0,1fr)}
 .ev-hg{gap:40px}
 .ev-hero h1{max-width:14ch}
 .ev-hp{height:auto}
 .ev-ph-a{position:relative;width:100%;height:auto;aspect-ratio:4/3}
 .ev-ph-b{display:none}
 .ev-fg{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:40px}
 .ev-fg li:nth-child(odd){border-left:0;padding-left:0}
 .ev-feat{gap:36px}
 .ev .ev-ph-f{position:relative;top:auto;aspect-ratio:3/2}
 .ev-mg,.ev-qg{gap:44px}
 .ev .ev-mt h2,.ev .ev-qt h2{max-width:none}
}
@media(max-width:700px){
 .ev-row{grid-template-columns:84px minmax(0,1fr);grid-template-areas:"d m" "d t" "d r";column-gap:18px;row-gap:12px;padding:26px 0 30px}
 .ev-row .ev-d time{flex-direction:column;align-items:flex-start;gap:8px}
 .ev-row .ev-dn{font-size:44px}
 .ev-row .ev-dm{font-size:11px;letter-spacing:.08em}
 .ev .ev-reg{justify-self:start;margin-top:6px}
 .ev-meta{flex-direction:column;gap:2px}
 .ev-filt{gap:8px}
}
@media(max-width:600px){
 .ev-dl>div{grid-template-columns:minmax(0,1fr);gap:4px;padding:14px 0}
 .ev-dl dt{padding-top:0}
 .ev-faq summary{padding:22px 0}
 .ev-faq details p{padding-right:0}
 .ev-ph-a{aspect-ratio:5/4}
 .ev-fd time{gap:12px}
}
@media(max-width:420px){
 .ev-fg li{padding-right:8px}
 .ev-fg li:nth-child(even){padding-left:16px}
 .ev-fn{font-size:32px}
 .ev-ft{font-size:19px}
 .ev-fk{font-size:12px;letter-spacing:.1em}
 .ev-where{gap:4px 20px}
}
@media(prefers-reduced-motion:reduce){.ev-faq summary:after{transition:none}}
/* event details (2026-10-31, user): Details + Register sit together in the row's action cell; the title also opens the details modal */
.ev .ev-acts{grid-area:r;justify-self:end;display:flex;flex-wrap:wrap;gap:10px;justify-content:flex-end;margin-top:22px}
.ev .ev-acts .ev-reg{margin:0}
.ev-ht{cursor:pointer;transition:color .3s ease}
.ev-ht:hover{color:var(--burg)}:root[data-theme=dark] .ev-ht:hover{color:#eaa3cf}
@media(max-width:700px){.ev .ev-acts{justify-self:start;justify-content:flex-start;margin-top:4px}}
/* the modal content */
.modal.evm-open .mbox{width:min(640px,100%);max-height:min(88svh,820px);overflow:auto;padding:clamp(28px,4vw,44px);border-radius:24px}
.evm-k{margin:0 0 12px;font:600 12.5px/1 var(--sans);letter-spacing:.2em;text-transform:uppercase;color:var(--burg)}
:root[data-theme=dark] .evm-k{color:#eaa3cf}
.evm-h{margin:0 0 24px;font:400 clamp(28px,3.2vw,40px)/1.1 var(--serif);letter-spacing:-.015em;color:var(--ink);padding-right:36px}
.evm-f{display:grid;grid-template-columns:repeat(3,auto);justify-content:start;gap:12px clamp(24px,4vw,44px);margin:0 0 24px;padding:18px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.evm-f dt{margin:0 0 6px;font:600 11.5px/1 var(--sans);letter-spacing:.16em;text-transform:uppercase;color:var(--mut)}
.evm-f dd{margin:0;font:500 15.5px/1.45 var(--sans);color:var(--ink)}
.evm-f dd span{display:block;color:var(--mut);font-weight:400}
.evm-lead{margin:0 0 22px;font:400 18px/1.55 var(--serif);color:var(--ink)}
.evm-s{margin:0 0 18px}
.evm-s h3{margin:0 0 4px;font:600 13px/1.4 var(--sans);letter-spacing:.06em;color:var(--ink)}
.evm-s p{margin:0;font-size:15.5px;line-height:1.6;color:var(--mut)}
.evm-b{display:flex;flex-wrap:wrap;gap:10px;margin:28px 0 14px}
.evm-n{margin:0;font-size:13.5px;color:var(--mut)}
@media(max-width:600px){.evm-f{grid-template-columns:1fr}.evm-b .btn{flex:1 1 100%}}
/* event modal photo (2026-10-31, user): a wide photo across the top of the details, the country for country sessions, otherwise the session type */
.modal.evm-open .mbox{padding:0;overflow:auto}
.modal.evm-open .mbox>.x{z-index:3;background:rgba(255,255,255,.92);border-radius:50%;width:40px;height:40px}
.evm-ph{margin:0;aspect-ratio:16/8;overflow:hidden;border-radius:24px 24px 0 0;background:var(--phc,#d9d4d0)}
.evm-ph img{display:block;width:100%;height:100%;object-fit:cover;transform:scale(1.04);animation:evmPh 1.2s cubic-bezier(.16,1,.3,1) forwards}
@keyframes evmPh{to{transform:none}}
.modal.evm-open .evm{padding:clamp(24px,3.6vw,40px)}
.modal.evm-open .evm-h{padding-right:0}
@media(prefers-reduced-motion:reduce){.evm-ph img{animation:none;transform:none}}
:root[data-theme=dark] .modal.evm-open .mbox>.x{background:rgba(22,22,22,.85);color:#fff}

/* 2026-10-31 real events: the session's own poster (already a finished design: shown whole, never cropped, no watermark) */
.ev .ev-ph-f.ev-poster{aspect-ratio:4/5}
.ev .ev-ph-f.ev-poster img{object-position:50% 0}
@media(max-width:900px){.ev .ev-ph-f.ev-poster{aspect-ratio:4/5;max-width:460px}}
.modal.evm-open .evm-ph.evm-poster{aspect-ratio:auto;background:none;display:flex;justify-content:center;padding:clamp(24px,3.6vw,40px) clamp(24px,3.6vw,40px) 0;border-radius:24px 24px 0 0}
.modal.evm-open .evm-ph.evm-poster img{width:auto;max-width:100%;height:auto;max-height:min(58svh,560px);object-fit:contain;border-radius:14px;transform:none;animation:none}
/* the filter status is announced, never shown (house rule: no visible counts) */
.ev-count{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.js .ev-filt{margin-bottom:clamp(32px,3.4vw,48px)}
/* "What happens at a session" (user 2026-11-01: "image still, side text moves"): on desktop the heading, lead and photo stay pinned while the
   four steps scroll past; the photo is sized to the screen so the pinned column always fits. The block is kept out of the reading holds (data-no-hold). */
/* 2026-11-12 (owner: "image is not fitting, see responsiveness here"): the pinned column is one screen tall below the header (heading, lead, then
   the photo filling the rest), so the column never looks short beside the long list and the photo is a tall card at every desktop size (about
   5:4 to 1:1 instead of a 16:9 strip that cut the presenter); it sits clear of the fixed header. Framing: js/photos.js dx-gal-presenter (s). */
@media(min-width:901px){
 .ev-mt{position:sticky;top:calc(var(--hdr,82px) + 20px);display:flex;flex-direction:column;height:min(calc(100svh - var(--hdr,82px) - 44px),860px)}
 .ev-mt h2,.ev-mt .lead{flex:none}
 .ev .ev-ph-m{aspect-ratio:auto;flex:1 1 0;min-height:260px;height:auto;max-height:620px;margin-top:clamp(28px,3.4vh,44px)}
 .ev-steps{gap:clamp(40px,5vh,64px);padding-bottom:clamp(60px,14vh,140px)}
 .ev-steps li{min-height:clamp(200px,27vh,290px)}
}
