/* home-events.css — the NDT events calendar on the homepage (views/home/v2-events.php, 2026-11-24). Every rule sits under .he.
 * A light, green-tinted band between the light #tools and the dark #exhibition, with a faint calendar grid. Left: a dark panel with the
 * calendar at a glance (it leans toward the mouse at half the strength of the other cards: data-h2-tilt, home2.js). Right: a white
 * agenda, the next events on a timeline, each with a calendar-page date tile (its month band: green, gold when featured, grey when
 * postponed). Mobile first; nothing moves with reduced motion, and everything is complete without script. Colours as home2.css:
 * #2f7a33 for green text and buttons on light grounds (5.0:1), #7fd18f on the dark panel. */
.he{position:relative;isolation:isolate;overflow:hidden;border-top:1px solid #dde8e1;border-bottom:1px solid #dde8e1;background:radial-gradient(1000px 440px at 0% 0%,rgba(68,160,71,.13),rgba(68,160,71,0) 62%),radial-gradient(900px 440px at 100% 100%,rgba(46,134,171,.11),rgba(46,134,171,0) 62%),linear-gradient(180deg,#eff6f1,#e8f0f3)}
.he::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background-image:linear-gradient(rgba(11,22,32,.05) 1px,transparent 1px),linear-gradient(90deg,rgba(11,22,32,.05) 1px,transparent 1px);background-size:44px 44px;background-position:center top;-webkit-mask-image:radial-gradient(1200px 560px at 50% 0%,#000 10%,transparent 78%);mask-image:radial-gradient(1200px 560px at 50% 0%,#000 10%,transparent 78%)}
.he .h2-head p:last-child{max-width:60ch}
.he .he-i,.he .ndti-ev-i{flex:none;display:block}
.he-flag{flex:none;font-size:1.1em;line-height:1;font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif}
.he-dot{flex:none;display:inline-block;width:8px;height:8px;border-radius:50%;background:#44a047;box-shadow:0 0 0 0 rgba(68,160,71,.55);animation:he-pulse 2s ease-out infinite}
@keyframes he-pulse{70%{box-shadow:0 0 0 8px rgba(68,160,71,0)}100%{box-shadow:0 0 0 0 rgba(68,160,71,0)}}

/* the two panels */
.he-board{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;max-width:1440px;margin:0 auto}
.he-col{display:flex;min-width:0}

/* left: the calendar at a glance */
.he-glance{position:relative;overflow:hidden;flex:1;display:flex;flex-direction:column;gap:20px;min-width:0;padding:22px 18px;border-radius:20px;color:#fff;border:1px solid #1c3a30;background:radial-gradient(460px 280px at 100% 0%,rgba(127,209,143,.26),rgba(127,209,143,0) 66%),radial-gradient(380px 260px at 0% 100%,rgba(46,134,171,.18),rgba(46,134,171,0) 70%),linear-gradient(165deg,#15352a 0%,#10242e 52%,#0b1620 100%);box-shadow:0 1px 0 rgba(255,255,255,.06) inset,0 28px 56px -34px rgba(11,22,32,.75);transform:perspective(1300px) rotateX(calc(var(--rx,0deg) * .5)) rotateY(calc(var(--ry,0deg) * .5));transition:transform .3s ease,box-shadow .3s ease}
.he-glance::after{content:"";position:absolute;left:0;right:0;bottom:0;height:44px;pointer-events:none;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='60' viewBox='0 0 180 60'%3E%3Cpath d='M0 44h22l3-3 3 3h10l3-28 3 28h8l2-9 2 9h20l3-19 3 19h12l2-5 2 5h64' fill='none' stroke='%237fd18f' stroke-opacity='.16' stroke-width='1.5'/%3E%3C/svg%3E") left bottom/150px 44px repeat-x}
.he-glance>*{position:relative;z-index:1}
.he-glance__top{display:flex;align-items:center;gap:14px}
.he-cal{flex:none;display:grid;place-items:center;width:56px;height:56px;border-radius:14px;background:#fff;box-shadow:0 12px 22px -10px rgba(0,0,0,.7),inset 0 -2px 0 rgba(11,22,32,.07);transform:rotate(-4deg);transition:transform .35s cubic-bezier(.2,.7,.2,1)}
.he-glance:hover .he-cal{transform:rotate(0deg) translateY(-2px) scale(1.04)}
.he .he-glance__t{margin:0;font-size:19px;line-height:1.2;font-weight:800;color:#fff}
.he .he-glance__s{display:flex;align-items:center;gap:6px;margin:3px 0 0;font-size:13px;line-height:1.3;color:#a9c9b1}
.he-glance__s .ndti-ev-i{color:var(--gl)}

.he-stats{list-style:none;margin:0;padding:0;display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:8px}
.he-stats li{display:flex;flex-direction:column;gap:4px;min-width:0;padding:12px 10px 11px;border-radius:14px;border:1px solid rgba(255,255,255,.1);background:linear-gradient(180deg,rgba(255,255,255,.085),rgba(255,255,255,.03));box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 10px 20px -16px rgba(0,0,0,.9)}
.he-stats b{font-size:clamp(25px,7vw,34px);line-height:1;font-weight:800;letter-spacing:-.03em;font-variant-numeric:tabular-nums;color:#fff}
.he-stats span{font-size:12.5px;line-height:1.3;color:#b9cad6}

.he-glance__grid{display:grid;grid-template-columns:minmax(0,1fr);gap:20px}
.he .he-k{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin:0 0 12px}
.he-k span{font-size:11.5px;line-height:1.3;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:#a7c9b0}
.he-k small{font-size:12px;line-height:1.3;color:#8ea3b2;white-space:nowrap}

/* events per month: a bar per month, each a link to that month on the calendar */
.he-bars{list-style:none;margin:0;padding:10px 0 0;display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:4px;height:136px;border-bottom:1px solid rgba(255,255,255,.14)}
.he-bars li{display:flex;min-width:0}
.he .he-bars a{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:5px;min-width:0;padding:0 0 6px;border-radius:8px;color:#c9d6df;text-decoration:none}
.he-bars b{font-size:11.5px;line-height:1;font-weight:800;color:#e9f2ee;font-variant-numeric:tabular-nums;min-height:11.5px}
.he-bars i{display:block;width:100%;max-width:26px;height:calc(var(--h,0) * 76px + 4px);border-radius:6px 6px 3px 3px;background:linear-gradient(180deg,#9fe0ac,#44a047 70%,#2f7a33);box-shadow:inset 0 1px 0 rgba(255,255,255,.45),0 8px 14px -8px rgba(127,209,143,.7);transform-origin:50% 100%;transition:transform .8s cubic-bezier(.2,.7,.2,1) calc(var(--i,0) * 45ms + 250ms),filter .2s ease}
.he-bars span[aria-hidden]{font-size:10.5px;line-height:1;font-weight:700;letter-spacing:.02em;color:#9fb3c1}
.he .he-bars a.is-none i{background:rgba(255,255,255,.16);box-shadow:none}
.he .he-bars a:hover i{filter:brightness(1.18) saturate(1.1)}
.he .he-bars a:hover span[aria-hidden]{color:#fff}
.he-col.h2-pre .he-bars i{transform:scaleY(0)}

/* the countries with the most events */
.he-places{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:8px}
.he-places li{display:flex;min-width:0;max-width:100%}
.he .he-places a{display:inline-flex;align-items:center;gap:8px;min-width:0;max-width:100%;min-height:38px;padding:6px 6px 6px 12px;border-radius:999px;border:1px solid rgba(255,255,255,.17);background:rgba(255,255,255,.07);color:#eef5f9;font-size:13.5px;line-height:1.2;font-weight:600;text-decoration:none;transition:background .15s ease,border-color .15s ease}
.he .he-places a:hover{background:rgba(255,255,255,.14);border-color:var(--gl);color:#fff}
.he-places a>span:not(.he-flag){min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.he-places b{flex:none;min-width:26px;padding:3px 7px;border-radius:999px;background:rgba(127,209,143,.18);color:var(--gl);font-size:12px;font-weight:800;text-align:center;font-variant-numeric:tabular-nums}

/* right: the agenda */
.he-agenda{flex:1;display:flex;flex-direction:column;min-width:0;padding:4px;border-radius:20px;border:1px solid var(--bo);background:#fff;box-shadow:0 1px 2px rgba(11,22,32,.04),0 26px 50px -34px rgba(11,22,32,.5)}
.he-agenda__head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 12px 8px}
.he .he-agenda__head h3{margin:0;font-size:19px;line-height:1.2;font-weight:800}
.he .he-agenda__sub{margin:2px 0 0;font-size:13px;line-height:1.35;color:var(--mu)}
.he .he-onnow{flex:none;display:inline-flex;align-items:center;gap:8px;margin:0;padding:5px 12px;border-radius:999px;background:#e5f4e7;color:#1d5a24;font-size:13px;font-weight:800;white-space:nowrap}
.he-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}

/* one event: a date tile on the timeline, what and where, when it starts. The title link covers the row. */
.he-ev{position:relative;display:grid;grid-template-columns:56px minmax(0,1fr);grid-template-areas:"date main" "date where";column-gap:12px;row-gap:5px;align-items:center;padding:12px 10px;border-radius:14px;transition:background .2s ease}
.he-ev::before{content:"";position:absolute;left:37px;top:0;bottom:0;width:2px;background:linear-gradient(180deg,#cfe3d2,#d9e3ea)}   /* the timeline, through the tiles' centres */
.he-ev:first-child::before{top:50%}
.he-ev:last-child::before{bottom:50%}
.he-ev+.he-ev::after{content:"";position:absolute;left:78px;right:10px;top:0;height:1px;background:#edf1f4}
.he-ev:hover{background:#f3f8f4}
.he-ev:has(.he-ev__t a:focus-visible){outline:3px solid #f2b705;outline-offset:-1px}
.he .he-ev__t a:focus-visible{outline:none}

.he-date{position:relative;z-index:1;grid-area:date;align-self:center;display:grid;grid-template-rows:auto 1fr auto;justify-items:center;width:56px;height:64px;border-radius:11px;background:linear-gradient(180deg,#fff,#f2f5f7);border:1px solid #d6dfe6;box-shadow:inset 0 1px 0 #fff,0 2px 0 #d2dbe2,0 12px 20px -12px rgba(11,22,32,.55);line-height:1;transform-origin:50% 0;transition:transform .35s cubic-bezier(.2,.7,.2,1),box-shadow .35s ease}
.he-date::before,.he-date::after{content:"";position:absolute;top:-5px;width:5px;height:10px;border-radius:3px;background:linear-gradient(180deg,#5d6f7e,#26343f);box-shadow:0 1px 0 rgba(255,255,255,.7)}   /* the binder rings */
.he-date::before{left:14px}
.he-date::after{right:14px}
.he-date__m{align-self:stretch;justify-self:stretch;padding:7px 2px 4px;border-radius:10px 10px 0 0;background:linear-gradient(180deg,#3f9444,#2f7a33);color:#fff;font-size:10.5px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;text-align:center;white-space:nowrap}
.he-date__m.is-long{padding-left:0;padding-right:0;font-size:9.5px;letter-spacing:.02em}
.he-date__d{align-self:center;padding-top:1px;font-size:20px;font-weight:800;letter-spacing:-.03em;color:var(--ni);font-variant-numeric:tabular-nums;white-space:nowrap}
.he-date__d.is-long{font-size:15.5px;letter-spacing:-.04em}
.he-date__y{padding-bottom:5px;font-size:10px;font-weight:700;letter-spacing:.06em;color:#5f7183}
.he-ev.is-featured .he-date__m{background:linear-gradient(180deg,#c48c0c,#a87400)}
.he-ev.is-postponed .he-date__m{background:linear-gradient(180deg,#7d8e9c,#5f7183)}
.he-ev.is-now .he-date{border-color:#9fd3a6;box-shadow:inset 0 1px 0 #fff,0 2px 0 #b9dcbe,0 0 0 4px rgba(68,160,71,.14),0 12px 20px -12px rgba(11,22,32,.55)}
.he-ev:hover .he-date{transform:perspective(320px) rotateX(-14deg) translateY(-1px);box-shadow:inset 0 1px 0 #fff,0 2px 0 #d2dbe2,0 18px 24px -12px rgba(11,22,32,.5)}   /* the page lifts like a desk calendar's */

.he-ev__main{grid-area:main;min-width:0}
.he .he-ev__tags{display:flex;flex-wrap:wrap;gap:6px;min-height:22px;margin:0 0 5px;padding-right:118px}   /* phones: room for "when" at the top right */
.he-kind{display:inline-flex;align-items:center;gap:4px;max-width:100%;padding:3px 9px;border-radius:999px;font-size:12px;line-height:1.35;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;background:#edf2f6;color:#2c3e4d}
.he-kind--exhibition{background:#e6f3e7;color:#1f5d23}
.he-kind--conference{background:#e3eef6;color:#17506d}
.he-kind--seminar{background:#eeebfa;color:#4a3d99}
.he-kind--feat{background:#fdf1cf;color:#6b4e00}
.he-kind--feat .ndti-ev-i{color:#b07d00}
.he-ev__t{margin:0;font-size:16px;line-height:1.3;font-weight:800;letter-spacing:-.01em;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.he .he-ev__t a{color:var(--ni);text-decoration:none}
.he-ev__t a::after{content:"";position:absolute;inset:0;z-index:2;border-radius:14px}
.he .he-ev:hover .he-ev__t a{color:var(--gd)}
.he-ev__where{grid-area:where;min-width:0}
.he .he-ev__place{display:flex;align-items:center;gap:7px;margin:0;font-size:14px;line-height:1.35;color:#33444f}
.he-ev__place>span:last-child{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.he-ev__place .ndti-ev-i{color:#7b8b99}
.he .he-ev__venue{margin:2px 0 0;font-size:12.5px;line-height:1.35;color:var(--mu);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.he .he-ev__go{position:absolute;top:12px;right:10px;display:flex;align-items:center;gap:10px;margin:0}
.he-in{display:inline-flex;align-items:center;gap:6px;padding:3px 9px;border-radius:999px;background:#f0f4f7;color:#3d4d5c;font-size:12px;line-height:1.35;font-weight:700;white-space:nowrap}
.he-in .ndti-ev-i{color:#7b8b99}
.he-in--soon{background:#fff3d6;color:#6e4a00}
.he-in--soon .ndti-ev-i{color:#a87400}
.he-in--now{background:#e3f4e5;color:#1d5a24}
.he-in--off{background:#f4ebe2;color:#7a4300}
.he-ev__arrow{display:none;place-items:center;width:32px;height:32px;border-radius:50%;background:#e6f3e7;color:var(--gd);transition:transform .2s ease,background .2s ease,color .2s ease}
.he-ev:hover .he-ev__arrow{background:var(--gd);color:#fff;transform:translateX(3px)}

@media (max-width:599px){
  .he-eb,.he-kind__x{display:none}
  .he-feat{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}   /* the gold band says it; the word stays for screen readers */
  .he-kind--feat{padding:3px 7px}
  .he-glance{padding-bottom:34px}
  .he-places{gap:6px}
  .he .he-places a{gap:6px;min-height:36px;padding:5px 5px 5px 10px;font-size:13px}
  .he-places li:nth-child(n+5){display:none}
}
.he-agenda__foot{display:flex;flex-wrap:wrap;align-items:center;gap:10px 12px;margin-top:auto;padding:16px 12px 14px;border-top:1px solid #edf1f4}
.he-agenda__foot .h2-btn{flex:1 1 100%}
.he .he-agenda__n{flex:1 1 100%;margin:0;font-size:13px;line-height:1.35;color:var(--mu);text-align:center}

@media (min-width:600px){
  .he-glance{padding:26px 26px 30px}
  .he-glance__grid{flex:1;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:28px;align-items:stretch}
  .he-months{display:flex;flex-direction:column;min-height:0}   /* the chart takes the height the country list leaves */
  .he-bars{flex:1;height:auto;min-height:150px;max-height:300px}
  .he-bars i{height:calc(var(--h,0) * (100% - 40px) + 4px)}
  .he-agenda{padding:6px}
  .he-agenda__head{padding:16px 16px 8px}
  .he-ev{grid-template-columns:64px minmax(0,1fr) auto;grid-template-areas:"date main go" "date where go";column-gap:16px;padding:14px 16px}
  .he-ev::before{left:47px}
  .he-ev+.he-ev::after{left:96px;right:16px}
  .he-date{width:64px;height:72px;border-radius:12px}
  .he-date::before{left:16px}.he-date::after{right:16px}
  .he-date__m{padding:8px 2px 5px;border-radius:11px 11px 0 0;font-size:11px}
  .he-date__d{font-size:23px}
  .he-date__d.is-long{font-size:17.5px}
  .he-date__y{padding-bottom:6px;font-size:10.5px}
  .he-ev__main{padding-right:0}
  .he-ev__t{font-size:17px}
  .he .he-ev__tags{padding-right:0}
  .he .he-ev__go{position:static;grid-area:go;align-self:center}
  .he-ev__arrow{display:grid}
  .he-agenda__foot{padding:16px 16px 16px}
  .he-agenda__foot .h2-btn{flex:0 0 auto}
  .he .he-agenda__n{flex:1 1 auto;text-align:right}
}
@media (min-width:1024px){
  .he-board{grid-template-columns:minmax(340px,1fr) minmax(0,2fr);gap:22px;align-items:stretch}
  .he-glance{padding:28px 26px 34px;gap:24px}
  .he-glance__grid{flex:1;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto;gap:26px;align-items:stretch}
  .he-bars{min-height:170px}
}
@media (min-width:1280px){
  .he-ev{grid-template-columns:64px minmax(0,1.5fr) minmax(0,1fr) auto;grid-template-areas:"date main where go";column-gap:22px;padding:15px 18px}
  .he-ev::before{left:49px}
  .he-ev+.he-ev::after{left:104px;right:18px}
  .he-glance{padding:30px 30px 36px}
}
@media (min-width:1600px){.he-board{grid-template-columns:minmax(0,1fr) minmax(0,2.1fr)}}

@media (prefers-reduced-motion:reduce){
  .he-dot{animation:none}
  .he-glance,.he-cal,.he-date,.he-ev,.he-ev__arrow,.he .he-places a,.he-bars i{transition:none}
  .he-glance{transform:none}
  .he-glance:hover .he-cal{transform:rotate(-4deg)}
  .he-ev:hover .he-date,.he-ev:hover .he-ev__arrow,.he-col.h2-pre .he-bars i{transform:none}
}
