/* =====================================================================
   Pharma Asia — site theme (built on the Build Asia script)
   Taken from the Pharma Asia logo and 2026 brochure: navy, royal blue,
   molecule cyan and white, in Archivo. The --amber variables hold the
   cyan accent, so the rest of the stylesheet is unchanged.
   ===================================================================== */

/* Archivo variable font (weight 100–900, width 62–125%), hosted with the site. SIL Open Font License. */
@font-face {
    font-family: "Archivo"; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%;
    src: url("../fonts/archivo-latin-wdth-normal.woff2") format("woff2-variations"), url("../fonts/archivo-latin-wdth-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Archivo"; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%;
    src: url("../fonts/archivo-latin-ext-wdth-normal.woff2") format("woff2-variations"), url("../fonts/archivo-latin-ext-wdth-normal.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    --navy: #12306e;
    --navy-deep: #0a1f4c;
    --royal: #1e5ac8;
    --royal-hover: #2c6bdb;
    --amber: #2db4e6;
    --amber-hover: #5cc8ef;
    --amber-ink: #04202e;
    --sky: #eef4fc;
    --sky-2: #dce8f8;
    --white: #ffffff;
    --line: #d4deee;
    --text: #142039;
    --muted: #52607a;
    --on-navy: #e8effa;
    --on-navy-muted: #a8b9d8;
    --ok: #17784a;
    --err: #b42318;

    --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --wide: 112%;
    --radius: 8px;
    --radius-sm: 5px;
    --gutter: clamp(16px, 4vw, 40px);
    --maxw: 1240px;
    --header-h: 76px;
    --shadow: 0 1px 2px rgba(18, 48, 110, .06), 0 14px 32px -20px rgba(18, 48, 110, .45);
    --slant: 115deg;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); scroll-behavior: smooth; }
body {
    overflow-x: clip;   /* nothing animating in from the side can cause sideways scrolling */
    margin: 0;
    background: var(--white);
    color: var(--text);
    font: 400 1.0625rem/1.6 var(--font);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--royal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--royal-hover); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3, h4 { font-family: var(--font); font-stretch: var(--wide); line-height: 1.12; margin: 0 0 .5em; color: var(--navy); letter-spacing: -.01em; }
h1 { font-weight: 850; } h2 { font-weight: 800; } h3 { font-weight: 750; }
p { margin: 0 0 1em; }
address { font-style: normal; }
main:focus { outline: none; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 780px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -80px; z-index: 200; background: var(--amber); color: var(--amber-ink); padding: 10px 16px; font-weight: 700; border-radius: var(--radius-sm); }
.skip-link:focus { top: 12px; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

/* ------------------------------------------------------- signature band */
/* The banner's slanted amber block followed by a long navy bar. */
.hazard, .band {
    height: 14px;
    background:
        linear-gradient(var(--slant), var(--amber) 0 22%, transparent 22.05%),
        linear-gradient(var(--slant), transparent 23.5%, var(--royal) 23.55% 74%, transparent 74.05%),
        var(--navy);
}

/* ---------------------------------------------------------------- buttons */
.btn {
    --bg: var(--navy); --fg: var(--white); --bd: var(--navy);
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    min-height: 46px; padding: .6em 1.25em;
    background: var(--bg); color: var(--fg); border: 2px solid var(--bd); border-radius: var(--radius-sm);
    font: 700 1rem/1.1 var(--font); font-stretch: 105%; text-decoration: none; cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}
.btn:hover { color: var(--fg); transform: translateY(-1px); }
.btn:active { transform: none; }
.btn--lg { min-height: 54px; padding: .75em 1.6em; font-size: 1.05rem; }
.btn--accent { --bg: var(--amber); --fg: var(--amber-ink); --bd: var(--amber); }
.btn--accent:hover { --bg: var(--amber-hover); --bd: var(--amber-hover); }
.btn--light { --bg: transparent; --fg: var(--white); --bd: rgba(255,255,255,.6); }
.btn--light:hover { --bd: var(--white); --bg: rgba(255,255,255,.08); }
.btn--ghost { --bg: transparent; --fg: var(--navy); --bd: var(--line); }
.btn--ghost:hover { --bd: var(--navy); }
.btn--dark { --bg: var(--navy); --fg: var(--white); --bd: var(--navy); }
.btn--dark:hover { --bg: var(--royal); --bd: var(--royal); }
.btn--ghost-dark { --bg: transparent; --fg: var(--navy); --bd: var(--navy); }
.btn--ghost-dark:hover { --bg: var(--navy); --fg: var(--white); }

.link-arrow { font-weight: 700; text-decoration: none; color: var(--royal); border-bottom: 2px solid var(--amber); padding-bottom: 2px; white-space: nowrap; }
.link-arrow:hover { border-bottom-color: var(--royal); }

/* ----------------------------------------------------------- top bar */
.topbar { background: var(--navy-deep); color: var(--on-navy-muted); font-size: .88rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 38px; }
.topbar__dates { list-style: none; display: flex; flex-wrap: wrap; gap: .2rem 1.75rem; margin: 0; padding: 0; }
.topbar__dates a { color: var(--on-navy); text-decoration: none; display: inline-flex; gap: .5em; align-items: baseline; }
.topbar__dates a:hover span { text-decoration: underline; }
.topbar__dates strong { color: var(--amber); font-weight: 800; font-stretch: var(--wide); }
.topbar__dates .is-past span { text-decoration: line-through; opacity: .65; }
.topbar__dates em { font-style: normal; color: var(--on-navy-muted); }
.topbar__phone { color: var(--on-navy); text-decoration: none; white-space: nowrap; font-weight: 600; }

/* ---------------------------------------------------------------- header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.site-header.is-scrolled { box-shadow: 0 8px 24px -16px rgba(18, 48, 110, .4); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; min-height: var(--header-h); transition: min-height .3s ease; }
.brand { flex: none; display: block; line-height: 0; }
/* Height-led sizing keeps the logo's own proportions at every size. */
.brand img { height: 62px; width: auto; max-width: none; transition: height .3s ease; }
html.header-compact { --header-h: 64px; }
html.header-compact .brand img { height: 50px; }
.brand__word { font: 900 1.7rem/1 var(--font); font-stretch: 125%; color: var(--navy); letter-spacing: -.02em; }
.brand__word b { color: var(--royal); }

.primary-nav { display: flex; align-items: center; gap: 1.25rem; }
.primary-nav__list { list-style: none; display: flex; align-items: center; gap: .15rem; margin: 0; padding: 0; }
.primary-nav__list > li > a,
.primary-nav summary {
    display: flex; align-items: center; padding: .55rem .75rem; border-radius: var(--radius-sm);
    font-weight: 650; font-size: 1rem; color: var(--navy); text-decoration: none; cursor: pointer; list-style: none; white-space: nowrap;
    position: relative;
}
.primary-nav summary::-webkit-details-marker { display: none; }
.primary-nav summary::after { content: ""; width: .42em; height: .42em; margin-left: .5em; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-.15em) rotate(45deg); transition: transform .15s; }
.primary-nav details[open] > summary::after { transform: translateY(.1em) rotate(-135deg); }
.primary-nav__list > li > a:hover, .primary-nav summary:hover { background: var(--sky); color: var(--navy); }
.primary-nav [aria-current="page"]::before, .primary-nav summary.is-active::before {
    content: ""; position: absolute; left: .75rem; right: .75rem; bottom: 2px; height: 3px; background: var(--amber); transform: skewX(-25deg);
}
.has-menu { position: relative; }
.submenu {
    list-style: none; margin: 0; padding: .5rem; position: absolute; left: 0; top: calc(100% + 8px); z-index: 5;
    min-width: 260px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.submenu a { display: block; padding: .5rem .75rem; color: var(--text); text-decoration: none; border-radius: var(--radius-sm); }
.submenu a:hover { background: var(--sky); color: var(--navy); }
.submenu__label { padding: .7rem .75rem .25rem; font-size: .82rem; font-weight: 700; color: var(--royal); }
.submenu__label:first-child { padding-top: .35rem; }
.primary-nav__cta { display: flex; gap: .5rem; }
.primary-nav__cta .btn { white-space: nowrap; min-height: 44px; }
.primary-nav__cta .btn--ghost { --fg: var(--royal); --bd: var(--royal); }
.primary-nav__cta .btn--ghost:hover { --bg: var(--royal); --fg: var(--white); }

.nav-toggle { display: none; width: 48px; height: 48px; border: 2px solid var(--navy); background: transparent; border-radius: var(--radius-sm); cursor: pointer; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 22px; height: 2px; background: var(--navy); margin: auto; position: relative; transition: transform .2s, background-color .2s; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -7px; }
.nav-toggle__bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1140px) {
    .nav-toggle { display: block; }
    .primary-nav {
        display: none; position: absolute; left: 0; right: 0; top: 100%;
        flex-direction: column; align-items: stretch; gap: 1rem;
        background: var(--white); border-bottom: 1px solid var(--line); padding: 1rem var(--gutter) 1.5rem;
        max-height: calc(100vh - var(--header-h)); overflow-y: auto; box-shadow: var(--shadow);
    }
    .primary-nav.is-open { display: flex; }
    .primary-nav__list { flex-direction: column; align-items: stretch; }
    .primary-nav__list > li > a, .primary-nav summary { padding: .75rem .5rem; font-size: 1.05rem; }
    .primary-nav [aria-current="page"]::before, .primary-nav summary.is-active::before { left: .5rem; right: auto; width: 2.5rem; }
    .submenu { position: static; box-shadow: none; border: 0; border-left: 3px solid var(--amber); border-radius: 0; margin: 0 0 .5rem .5rem; min-width: 0; }
    .primary-nav__cta .btn { flex: 1; }
    .topbar__phone { display: none; }
}
@media (max-width: 520px) {
    :root { --header-h: 66px; }
    .brand img { height: 50px; }
    html.header-compact { --header-h: 58px; }
    html.header-compact .brand img { height: 42px; }
}

/* -------------------------------------------------------------- slideshow */
.slideshow { position: relative; background: var(--white); }
.slideshow__track { position: relative; max-width: 1920px; margin-inline: auto; overflow: hidden; transition: height .45s ease; }
/* Only the active slide takes up space, so the frame always fits the slide being shown. */
.slide {
    position: absolute; top: 0; left: 0; right: 0;
    opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility 0s linear .7s;
}
.slide.is-active { position: relative; opacity: 1; visibility: visible; z-index: 1; transition: opacity .7s ease; }
.slide__link { display: block; }
.slide__media, .slide__media img { display: block; width: 100%; height: auto; }

/* caption: below the image on small screens, overlaid from 1024px */
.slide__caption { background: var(--navy); color: var(--on-navy); }
.slide__caption-inner { padding: 18px var(--gutter) 22px; }
.slide__title { font: 800 1.35rem/1.15 var(--font); font-stretch: var(--wide); color: var(--white); margin: 0 0 .35em; }
.slide__text { margin: 0 0 1em; color: var(--on-navy); max-width: 60ch; }
.slide__caption-inner > :last-child { margin-bottom: 0; }
.slide__caption--button-only { background: var(--sky); }
.slide__caption--button-only .slide__caption-inner { padding-block: 12px; }

@media (min-width: 1024px) {
    .slide__caption { position: absolute; inset: 0; display: flex; align-items: center; background: none; pointer-events: none; }
    .slide__caption-inner {
        pointer-events: auto; width: min(36rem, 46%); margin-inline: max(var(--gutter), calc((100% - var(--maxw)) / 2 + var(--gutter)));
        padding: 22px 26px 24px; background: rgba(18, 48, 110, .92); border-left: 6px solid var(--amber); border-radius: 0 var(--radius) var(--radius) 0;
    }
    .slide--text-center .slide__caption { justify-content: center; }
    .slide--text-center .slide__caption-inner { text-align: center; border-left: 0; border-top: 6px solid var(--amber); border-radius: 0 0 var(--radius) var(--radius); }
    .slide--text-center .slide__text { margin-inline: auto; }
    .slide--text-right .slide__caption { justify-content: flex-end; }
    .slide__title { font-size: clamp(1.4rem, 2.2vw, 2rem); }
    .slide__caption--button-only { align-items: flex-end; justify-content: flex-end; }
    .slide__caption--button-only .slide__caption-inner { width: auto; background: none; border: 0; padding: 0 0 22px; }
}

.slideshow__controls {
    display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 52px; padding: 6px var(--gutter);
    background:
        linear-gradient(var(--slant), var(--amber) 0 9%, transparent 9.05%),
        linear-gradient(var(--slant), transparent 10.2%, var(--royal) 10.25% 13%, transparent 13.05%),
        var(--navy);
}
.slideshow__dots { display: flex; gap: 8px; align-items: center; }
.slideshow__dot {
    width: 30px; height: 10px; padding: 0; border: 0; cursor: pointer; transform: skewX(-25deg);
    background: rgba(255, 255, 255, .35); transition: background-color .2s, width .2s;
}
.slideshow__dot:hover { background: rgba(255, 255, 255, .7); }
.slideshow__dot[aria-current="true"] { background: var(--amber); width: 46px; }
.slideshow__arrow, .slideshow__pause {
    width: 40px; height: 40px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .45); background: transparent;
    color: var(--white); display: grid; place-items: center; cursor: pointer; padding: 0; transition: border-color .15s, background-color .15s;
}
.slideshow__arrow:hover, .slideshow__pause:hover { border-color: var(--amber); background: rgba(255, 255, 255, .08); }
.slideshow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.slideshow__pause .i-play { display: none; fill: currentColor; }
.slideshow.is-paused .slideshow__pause .i-play { display: block; }
.slideshow.is-paused .slideshow__pause .i-pause { display: none; }
.slideshow:not(.slideshow--multi) { border-bottom: 0; }
.slideshow:not(.slideshow--multi)::after { content: ""; display: block; height: 10px;
    background: linear-gradient(var(--slant), var(--amber) 0 22%, transparent 22.05%), linear-gradient(var(--slant), transparent 23.5%, var(--royal) 23.55% 74%, transparent 74.05%), var(--navy); }

/* ------------------------------------------------------------ breadcrumbs */
.breadcrumbs { background: var(--sky); font-size: .88rem; border-bottom: 1px solid var(--line); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem; padding-block: .6rem; margin: 0 auto; }
.breadcrumbs li + li::before { content: "/"; margin-right: .35rem; color: var(--muted); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs [aria-current] { color: var(--navy); font-weight: 600; }

/* ------------------------------------------------------------------ hero */
.hero { position: relative; background: var(--navy); color: var(--on-navy); overflow: hidden; isolation: isolate; }
/* slanted royal panel + amber edge, echoing the banner's right-hand composition */
.hero::before {
    content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; right: -8%; width: 52%;
    background: var(--royal); clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%);
}
.hero::after {
    content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; right: calc(44% - 8%); width: 3.2%;
    background: var(--amber); clip-path: polygon(70% 0, 100% 0, 30% 100%, 0 100%);
}
.hero__grid { display: none; }
.hero__inner { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, 1fr); gap: clamp(24px, 5vw, 72px); align-items: center; padding-block: clamp(48px, 7vw, 96px); }
.hero--compact .hero__inner { padding-block: clamp(28px, 3.5vw, 44px); }
.hero__title { font-size: clamp(2.3rem, 5vw, 4rem); font-weight: 900; font-stretch: 118%; color: var(--white); letter-spacing: -.02em; margin-bottom: .3em; }
.hero--compact .hero__title { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
.hero__title--xl { font-size: clamp(3.2rem, 11vw, 8rem); line-height: .9; }
.hero__tagline { font-size: clamp(1.05rem, 1.7vw, 1.3rem); color: var(--on-navy); max-width: 40ch; margin: 0; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.hero__inner--home { grid-template-columns: 1fr; }
.hero--home::before { width: 40%; }
.hero--home::after { right: calc(32% - 8%); }

.eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .9rem; margin-bottom: 1rem; font-weight: 650; color: var(--on-navy-muted); }
.badge { display: inline-block; padding: .3em .7em; border-radius: 999px; font: 750 .8rem/1.2 var(--font); background: var(--sky-2); color: var(--navy); white-space: nowrap; }
.badge--upcoming { background: var(--amber); color: var(--amber-ink); }
.badge--live { background: #22c55e; color: #052e14; }
.badge--past { background: #e3e7ef; color: #4b5568; }
.badge--tba { background: var(--sky-2); color: var(--navy); }

.datecard {
    margin: 0; position: relative; display: grid; gap: .9rem;
    background: var(--white); color: var(--text); padding: 1.4rem 1.6rem 1.5rem; border-radius: var(--radius);
    box-shadow: 0 24px 48px -24px rgba(0, 0, 0, .55); border-top: 6px solid var(--amber);
}
.datecard dt { font-size: .85rem; font-weight: 650; color: var(--muted); margin-bottom: .15rem; }
.datecard dd { margin: 0; font-weight: 650; color: var(--navy); }
.hero--compact .datecard { padding: 1rem 1.25rem 1.1rem; gap: .6rem; }
.countdown dd span { font-weight: 850; font-stretch: var(--wide); font-variant-numeric: tabular-nums; font-size: 1.15rem; }

/* ----------------------------------------------- date lockup (signature) */
.lockup { display: flex; align-items: center; gap: .55rem; margin: 0; color: var(--navy); line-height: .9; }
.lockup__days { font-weight: 900; font-stretch: 118%; font-size: 3.4rem; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.lockup__my { display: flex; flex-direction: column; font-weight: 850; font-stretch: var(--wide); font-size: 1.2rem; line-height: 1.02; color: var(--navy); }
.lockup__my span:first-child { text-transform: none; }
.lockup--tba { font-weight: 800; font-stretch: var(--wide); font-size: 1.35rem; line-height: 1.2; }
.hero--compact .lockup__days { font-size: 2.6rem; }
.hero--compact .lockup__my { font-size: 1rem; }

/* ------------------------------------------------------------- sections */
.section { padding-block: clamp(52px, 7vw, 96px); }
.section--tint { background: var(--sky); }
.section__h { font-size: clamp(1.7rem, 3vw, 2.45rem); }
.section__h--xl { font-size: clamp(2rem, 4.2vw, 3.2rem); font-weight: 900; }
.section__h a { text-decoration: none; color: inherit; }
.section__head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.section__head .section__h { margin: 0; }
.section__intro { max-width: 52rem; margin-bottom: clamp(24px, 4vw, 40px); }
.lede { font-size: clamp(1.1rem, 1.5vw, 1.25rem); color: var(--muted); max-width: 62ch; }
.subhead { font-size: 1.2rem; margin-top: 2.25rem; }
.prose { max-width: 68ch; }
.prose p { margin-bottom: 1.1em; }
.prose a { font-weight: 600; }

.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 5vw, 80px); align-items: start; }
.split--media { align-items: center; }
.layout-aside { display: grid; grid-template-columns: minmax(0, 1fr) minmax(290px, 390px); gap: clamp(28px, 5vw, 64px); align-items: start; }
.layout-aside--form { grid-template-columns: minmax(0, 1.4fr) minmax(270px, 1fr); }
@media (max-width: 880px) {
    .hero__inner, .split, .layout-aside, .layout-aside--form { grid-template-columns: 1fr; }
    .hero::before { width: 70%; right: -40%; opacity: .55; }
    .hero::after { display: none; }
}

.notice { background: #e3f5fc; border-bottom: 1px solid #9fd9f0; padding-block: .9rem; color: #0b4a63; }
.notice a { color: #0b4a63; font-weight: 700; }

/* --------------------------------------------------------- edition cards */
.editions-section { padding-top: clamp(40px, 5vw, 72px); }
.editions { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(16px, 2vw, 24px); }
.edition-card {
    position: relative; display: flex; flex-direction: column; background: var(--white);
    padding: 1.6rem 1.6rem 1.5rem 1.85rem; border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow); overflow: hidden;
}
.edition-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 7px; background: var(--amber); }
.edition-card--past::before, .edition-card--tba::before { background: var(--sky-2); }
.edition-card__head { display: flex; justify-content: space-between; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.edition-card__city { margin: 0; font-weight: 850; font-stretch: 118%; font-size: 1.05rem; color: var(--royal); }
.edition-card .lockup { margin-bottom: .9rem; }
.edition-card--past .lockup { color: #7b869c; }
.edition-card--past .lockup__my { color: #7b869c; }
.edition-card__title { font-size: 1.3rem; margin-bottom: .2rem; }
.edition-card__title a { color: var(--navy); text-decoration: none; }
.edition-card__title a:hover { color: var(--royal); text-decoration: underline; }
.edition-card__venue { color: var(--muted); font-weight: 600; margin-bottom: .8rem; }
.edition-card__summary { color: var(--text); font-size: .98rem; }
.edition-card__next { font-size: .95rem; color: var(--muted); background: var(--sky); padding: .6rem .8rem; border-radius: var(--radius-sm); }
.edition-card__actions { margin-top: auto; padding-top: .6rem; display: flex; flex-wrap: wrap; gap: .6rem; }
.editions--light { margin-bottom: 1.5rem; }

/* --------------------------------------------------------- inner page head */
.page-head { position: relative; isolation: isolate; overflow: hidden; background: var(--navy); color: var(--on-navy); padding-block: clamp(40px, 6vw, 76px); }
.page-head::before { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; right: -6%; width: 34%; background: var(--royal); clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%); }
.page-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px;
    background: linear-gradient(var(--slant), var(--amber) 0 22%, transparent 22.05%), linear-gradient(var(--slant), transparent 23.5%, var(--royal) 23.55% 74%, transparent 74.05%), var(--navy-deep); }
.page-head__h { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 900; font-stretch: 118%; color: var(--white); margin-bottom: .3em; }
.page-head__lede { color: var(--on-navy); font-size: 1.15rem; max-width: 60ch; margin: 0; }
@media (max-width: 700px) { .page-head::before { width: 45%; right: -25%; opacity: .6; } }

/* ------------------------------------------------------------- sub nav */
.subnav { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: var(--header-h); z-index: 40; }
.subnav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: none; }
.subnav__list::-webkit-scrollbar { display: none; }
.subnav a { display: block; padding: 1rem 1rem .9rem; white-space: nowrap; text-decoration: none; font-weight: 650; color: var(--muted); border-bottom: 3px solid transparent; }
.subnav a:hover { color: var(--navy); border-bottom-color: var(--sky-2); }
.subnav a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--amber); }

/* ----------------------------------------------------------- info panel */
.info-panel { background: var(--sky); border-radius: var(--radius); padding: 1.5rem 1.6rem; border-top: 5px solid var(--navy); }
.info-panel + .info-panel { margin-top: 1rem; }
.info-panel__h { font-size: 1.2rem; }
.info-panel__sub { font-size: 1rem; margin-top: 1.4rem; }
.facts { margin: 0; display: grid; gap: .9rem; }
.facts dt { font-size: .85rem; font-weight: 650; color: var(--muted); margin-bottom: .15rem; }
.facts dd { margin: 0; font-weight: 600; color: var(--text); }
.timings { width: 100%; border-collapse: collapse; font-size: .95rem; }
.timings th, .timings td { padding: .55rem 0; border-top: 1px solid var(--line); text-align: left; font-weight: 600; }
.timings td { text-align: right; font-variant-numeric: tabular-nums; color: var(--navy); }
.contact-lines { list-style: none; padding: 0; margin: .75rem 0 0; display: grid; gap: .35rem; }

/* ------------------------------------------------------------- stats */
.stats { position: relative; background: var(--navy); color: var(--on-navy); padding-block: clamp(36px, 5vw, 60px); overflow: hidden; }
.stats::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: clamp(40px, 7vw, 120px); background: var(--amber); clip-path: polygon(0 0, 100% 0, 45% 100%, 0 100%); }
/* Pharma Asia: keep the figures clear of the slanted stripe */
.stats > .container { position: relative; z-index: 1; padding-left: max(var(--gutter), calc(clamp(40px, 7vw, 120px) + 12px - (100vw - var(--maxw)) / 2)); }
@media (max-width: 600px) { .stats > .container { padding-left: calc(var(--gutter) + 22px); } }
.site-footer__brand img { display: block; width: 240px; max-width: 100%; height: auto; }
.stats__caption { font-weight: 700; color: var(--on-navy-muted); margin-bottom: 1.1rem; }
.stats__grid { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1.5rem; }
.stat { display: flex; flex-direction: column-reverse; gap: .2rem; }
.stat__value { margin: 0; font: 900 clamp(2.2rem, 4.6vw, 3.5rem)/1 var(--font); font-stretch: 118%; color: var(--white); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.stat__label { font-weight: 650; color: var(--amber); font-size: 1rem; }
@media (max-width: 600px) { .stats::before { width: 18px; clip-path: none; } }

/* ------------------------------------------------------------ quick links */
.quicklinks { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.quicklink { display: grid; gap: .3rem; padding: 1.4rem 1.5rem; text-decoration: none; color: var(--text); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .15s, background-color .15s; }
.quicklink:hover { border-color: var(--royal); background: var(--sky); color: var(--text); }
.quicklink__n { font-weight: 900; font-stretch: 118%; font-size: 2.3rem; line-height: 1; color: var(--royal); }
.quicklink__label { font-weight: 800; font-stretch: var(--wide); font-size: 1.1rem; color: var(--navy); }
.quicklink__text { color: var(--muted); font-size: .95rem; }

/* ----------------------------------------------- co-located, tiles, chips */
.group-tiles { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.group-tiles a {
    position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem;
    min-height: 160px; padding: 1.3rem 1.4rem; background: var(--navy); color: var(--white); text-decoration: none; border-radius: var(--radius);
    transition: background-color .2s;
}
.group-tiles a::after { content: ""; position: absolute; right: -18px; bottom: 0; width: 70px; height: 34px; background: var(--amber); transform: skewX(-25deg); transition: width .2s; }
.group-tiles a:hover { background: var(--royal); color: var(--white); }
.group-tiles a:hover::after { width: 96px; }
.group-tiles__name { font-weight: 800; font-stretch: var(--wide); font-size: 1.18rem; line-height: 1.15; }
.group-tiles__count { color: var(--on-navy-muted); font-size: .92rem; position: relative; z-index: 1; }
.chips { list-style: none; padding: 0; margin: 1.25rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.chips a, .chips--toc a { display: inline-block; padding: .5rem 1rem; border: 1px solid var(--line); background: var(--white); border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--navy); }
.chips a:hover, .chips--toc a:hover { border-color: var(--royal); background: var(--sky); }
.chips--toc { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }

/* ------------------------------------------------------------ categories */
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; align-items: start; margin-top: 1.5rem; }
.category-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.5rem; height: 100%; }
.category-card__h { font-size: 1.15rem; display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-bottom: .7rem; margin-bottom: .4rem; border-bottom: 3px solid var(--amber); }
.count { font-size: .8rem; font-weight: 700; background: var(--sky); color: var(--royal); padding: .2em .6em; border-radius: 999px; font-stretch: 100%; }
.category-card__list { list-style: none; padding: 0; margin: 0; }
.category-card__list li { padding: .5rem 0; border-bottom: 1px solid var(--sky-2); }
.category-card__list li:last-child { border-bottom: 0; }
.category-card__list a { text-decoration: none; color: var(--text); font-weight: 500; }
.category-card__list a:hover { color: var(--royal); text-decoration: underline; }

/* ------------------------------------------------------------- visitors */
.visitor-section { background: var(--sky); }
.segments { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.segments li { background: var(--white); padding: .8rem 1rem; border-radius: var(--radius-sm); border-left: 4px solid var(--royal); font-weight: 600; color: var(--navy); }
.register-box { background: var(--sky); border-radius: var(--radius); border-left: 6px solid var(--amber); padding: 1.5rem 1.6rem; margin-top: 1rem; }
.register-box h3 { font-size: 1.3rem; }
.checklist { padding-left: 1.2rem; }

/* ------------------------------------------------------------ exhibitors */
.filters { display: grid; grid-template-columns: 2fr 2fr auto; gap: 1rem; align-items: end; background: var(--sky); border-radius: var(--radius); padding: 1.1rem; margin: 1rem 0 1.5rem; }
.filters__actions { display: flex; gap: .5rem; }
@media (max-width: 760px) { .filters { grid-template-columns: 1fr; } }
.results-count { color: var(--muted); }
.exhibitor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.exhibitor { display: grid; grid-template-columns: 76px 1fr; gap: 1rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; }
.exhibitor__logo { width: 76px; height: 76px; display: grid; place-items: center; background: var(--sky); border-radius: var(--radius-sm); font-weight: 900; font-stretch: var(--wide); font-size: 1.35rem; color: var(--royal); overflow: hidden; }
.exhibitor__logo img { object-fit: contain; width: 100%; height: 100%; }
.exhibitor__name { font-size: 1.12rem; margin-bottom: .2rem; }
.exhibitor__meta { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .9rem; color: var(--muted); margin-bottom: .5rem; }
.stand { background: var(--amber); color: var(--amber-ink); padding: 0 .5em; font-weight: 700; border-radius: 3px; }
.tags { list-style: none; padding: 0; margin: 0 0 .5rem; display: flex; flex-wrap: wrap; gap: .35rem; }
.tags li { font-size: .8rem; background: var(--sky); color: var(--navy); padding: .15em .6em; border-radius: 999px; }
.exhibitor__web { font-size: .92rem; font-weight: 600; }
.exhibitor-results[aria-busy="true"] { opacity: .5; transition: opacity .15s; }

/* --------------------------------------------------------------- gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.gallery__item { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--sky-2); border-radius: var(--radius-sm); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery__item:hover img { transform: scale(1.04); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgba(6, 20, 52, .93); }
.lightbox img { max-width: 92vw; max-height: 86vh; width: auto; border-radius: var(--radius-sm); }
.lightbox__close { position: fixed; top: 16px; right: 16px; width: 48px; height: 48px; font-size: 2rem; line-height: 1; background: var(--amber); color: var(--amber-ink); border: 0; border-radius: 50%; cursor: pointer; }
.lightbox__nav { position: fixed; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; font-size: 2rem; background: rgba(255,255,255,.14); color: #fff; border: 0; border-radius: 50%; cursor: pointer; }
.lightbox__nav--prev { left: 12px; }
.lightbox__nav--next { right: 12px; }
.albums { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; margin-bottom: 2.5rem; }
.album { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; text-decoration: none; background: var(--navy); border-radius: var(--radius); }
.album img { width: 100%; height: 100%; object-fit: cover; opacity: .8; transition: opacity .2s, transform .4s; }
.album:hover img { opacity: .95; transform: scale(1.03); }
.album__label { position: absolute; left: 0; bottom: 0; background: var(--amber); color: var(--amber-ink); padding: .5rem 1rem; font-weight: 650; border-radius: 0 var(--radius-sm) 0 0; }
.album__label strong { font-weight: 900; font-stretch: var(--wide); font-size: 1.3rem; margin-right: .4rem; }

/* ----------------------------------------------------------------- video */
.video { position: relative; aspect-ratio: 16 / 9; background: var(--navy); overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); }
.video img { width: 100%; height: 100%; object-fit: cover; opacity: .82; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); min-height: 56px; padding: 0 1.5rem; background: var(--amber); color: var(--amber-ink); border: 0; border-radius: 999px; font: 750 1.05rem/1 var(--font); cursor: pointer; display: flex; gap: .6rem; align-items: center; }
.video__play:hover { background: var(--amber-hover); }

/* -------------------------------------------------------------- partners */
.partners__h { font-size: 1rem; color: var(--royal); margin-top: 2rem; }
.logos { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; align-items: stretch; }
.logos li { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; min-height: 104px; display: grid; place-items: center; gap: .4rem; text-align: center; }
.logos img { max-height: 70px; width: auto; object-fit: contain; }
.logos--sponsor { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.logos--sponsor img { max-height: 120px; }
/* Pharma Asia: sponsors grouped by tier, logo size falls with the tier */
.logos img { max-width: 100%; }
.partners__h--tier { display: flex; align-items: center; gap: .75rem; font-size: 1.05rem; color: var(--navy); }
.partners__h--tier::after { content: ""; flex: 1; height: 2px; background: var(--line); }
.partners__h--tier::before { content: ""; width: 14px; height: 14px; border-radius: 3px; transform: rotate(45deg); background: var(--royal); }
.partners__h--title::before, .partners__h--diamond::before { background: var(--amber); }
.partners__h--gold::before { background: #d4a72c; }
.partners__h--silver::before { background: #9aa6b8; }
.partners__h--bronze::before { background: #b87333; }
.logos--tier li { min-height: 0; padding: .75rem; }
.logos--title, .logos--diamond { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.logos--title li, .logos--diamond li { min-height: 140px; }
.logos--title img, .logos--diamond img { max-height: 110px; }
.logos--platinum { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.logos--platinum li { min-height: 118px; }
.logos--platinum img { max-height: 88px; }
.logos--gold { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.logos--gold li { min-height: 96px; }
.logos--gold img { max-height: 68px; }
.logos--silver, .logos--bronze { grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); }
.logos--silver li, .logos--bronze li { min-height: 82px; }
.logos--silver img, .logos--bronze img { max-height: 56px; }
@media (max-width: 600px) {
  .logos--title, .logos--diamond, .logos--platinum { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logos--gold, .logos--silver, .logos--bronze { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .logos--gold li, .logos--silver li, .logos--bronze li { min-height: 64px; padding: .45rem; }
  .logos--title li, .logos--diamond li, .logos--platinum li { min-height: 92px; }
}
/* Pharma Asia: organiser and supporters in the groups of the visitor pass */
.partner-groups { display: flex; flex-wrap: wrap; gap: 0 2rem; margin-top: 1rem; }
.partner-group { flex: 1 1 200px; min-width: 0; }
.partner-group--wide { flex-basis: 100%; }
.partners__h--group { font-size: .95rem; color: var(--navy); border-bottom: 2px solid var(--line); padding-bottom: .4rem; margin: 1.6rem 0 .8rem; }
.logos--group { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.logos--group li { min-height: 116px; padding: .75rem; }
.logos--group img { max-height: 92px; }
.logos--group .logos__text { font-size: .85rem; line-height: 1.3; }
@media (max-width: 600px) {
  .logos--group { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .logos--group li { min-height: 92px; }
  .logos--group img { max-height: 72px; }
}
.logos__text { font-weight: 800; font-stretch: var(--wide); color: var(--navy); }
.tier { font-size: .8rem; font-weight: 750; background: var(--amber); color: var(--amber-ink); padding: .15em .65em; border-radius: 999px; }

/* ------------------------------------------------------------- downloads */
.downloads { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: 8px; }
.downloads a { display: flex; align-items: center; gap: 1rem; padding: .9rem 1rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); text-decoration: none; font-weight: 650; color: var(--navy); }
.downloads a:hover { border-color: var(--royal); background: var(--sky); }
.downloads__type { font-weight: 800; font-size: .75rem; background: var(--royal); color: var(--white); padding: .4em .55em; border-radius: 3px; }
.downloads-page { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem 3rem; }

/* -------------------------------------------------------------- CTA band */
.cta-band { background: var(--navy); color: var(--on-navy); position: relative; overflow: hidden; isolation: isolate; }
.cta-band::after { content: ""; position: absolute; z-index: -1; top: 14px; bottom: 0; right: -4%; width: 30%; background: var(--royal); clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%); }
.cta-band__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem; padding-block: clamp(40px, 6vw, 68px); }
.cta-band__h { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 900; font-stretch: 116%; color: var(--white); max-width: 24ch; }
.cta-band p { color: var(--on-navy); margin: 0; max-width: 56ch; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* -------------------------------------------------- empty states + alerts */
.empty-state { border: 2px dashed var(--sky-2); border-radius: var(--radius); padding: 2.2rem; text-align: center; background: var(--sky); }
.empty-state__h { font-weight: 800; font-stretch: var(--wide); font-size: 1.25rem; color: var(--navy); margin-bottom: .4rem; }
.alert { padding: 1rem 1.25rem; margin-bottom: 1.5rem; border-radius: var(--radius-sm); border-left: 6px solid; font-weight: 600; }
.alert--ok { border-color: var(--ok); color: var(--ok); background: #e9f6ef; }
.alert--err { border-color: var(--err); color: var(--err); background: #fdecea; }

/* ----------------------------------------------------------------- forms */
.form { display: grid; gap: 1.1rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 600px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: .35rem; }
.field label { font-weight: 700; font-size: .98rem; color: var(--navy); }
.req { font-weight: 400; font-size: .82rem; color: var(--muted); margin-left: .3rem; }
input, select, textarea {
    width: 100%; min-height: 48px; padding: .65rem .85rem; font: inherit; color: var(--text);
    background: var(--white); border: 1.5px solid #b9c5d9; border-radius: var(--radius-sm);
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--royal); box-shadow: 0 0 0 4px rgba(30, 90, 200, .18); }
[aria-invalid="true"] { border-color: var(--err); }
.field__error { color: var(--err); font-size: .9rem; font-weight: 600; margin: 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.offices { display: grid; gap: 1rem; }

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--navy-deep); color: var(--on-navy-muted); font-size: .96rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem; padding-block: clamp(44px, 6vw, 68px); }
@media (max-width: 920px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer__grid { grid-template-columns: 1fr; } }
.site-footer__brand { font: 900 1.7rem/1 var(--font); font-stretch: 125%; color: var(--white); letter-spacing: -.02em; }
.site-footer__brand b { color: var(--amber); }
.site-footer__h { font-size: 1rem; color: var(--white); margin-bottom: .9rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.site-footer a { color: var(--on-navy); text-decoration: none; }
.site-footer a:hover { color: var(--amber); }
.site-footer small { display: block; color: var(--on-navy-muted); }
.site-footer address { margin-bottom: 1rem; }
.social { display: flex !important; flex-wrap: wrap; gap: .5rem 1.1rem !important; margin-top: 1rem !important; }
.site-footer__base { border-top: 1px solid rgba(255, 255, 255, .1); padding-block: 1.25rem; font-size: .88rem; }
.site-footer__base p { margin: 0; }

/* ----------------------------------------------------------- preferences */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
    .topbar, .site-header, .subnav, .cta-band, .site-footer, .breadcrumbs, .slideshow__controls { display: none; }
    .hero, .page-head, .stats { background: none !important; color: #000; }
    .hero::before, .hero::after, .page-head::before, .page-head::after, .stats::before { display: none; }
    .hero__title, .page-head__h, .stat__value { color: #000; }
}

/* ------------------------------------------------- incorporating events */
.events-grid { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(14px, 2vw, 24px); }
.events-grid__item { flex: 0 0 calc((100% - 2 * clamp(14px, 2vw, 24px)) / 3); display: flex; }
@media (max-width: 1023px) { .events-grid__item { flex-basis: calc((100% - clamp(14px, 2vw, 24px)) / 2); } }
@media (max-width: 639px) { .events-grid__item { flex-basis: 100%; } }
.event-card {
    position: relative; display: flex; flex-direction: column; width: 100%;
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
    color: var(--text); text-decoration: none; box-shadow: var(--shadow);
    transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s ease, border-color .25s ease;
}
.event-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--amber); transform: scaleX(.18); transform-origin: left; transition: transform .45s cubic-bezier(.2, .7, .2, 1); }
a.event-card:hover { color: var(--text); transform: translateY(-5px); border-color: var(--sky-2); box-shadow: 0 2px 4px rgba(18, 48, 110, .06), 0 26px 40px -24px rgba(18, 48, 110, .55); }
a.event-card:hover::before, a.event-card:focus-visible::before { transform: scaleX(1); }
.event-card__logo { display: flex; align-items: center; justify-content: center; height: clamp(150px, 15vw, 200px); padding: clamp(18px, 2.2vw, 28px); background: var(--white); border-bottom: 1px solid var(--sky-2); }
/* every logo sits in the same-sized panel, scaled down to fit — never stretched or cropped */
.event-card__logo img { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; transition: transform .45s cubic-bezier(.2, .7, .2, 1); }
a.event-card:hover .event-card__logo img { transform: scale(1.05); }
.event-card__wordmark { font-weight: 900; font-stretch: 118%; font-size: 1.5rem; color: var(--navy); text-align: center; line-height: 1.1; }
.event-card__body { display: flex; flex-direction: column; gap: .45rem; padding: 1.15rem 1.35rem 1.35rem; flex: 1; }
.event-card__name { font-weight: 800; font-stretch: var(--wide); font-size: 1.18rem; line-height: 1.2; color: var(--navy); }
.event-card__text { color: var(--muted); font-size: .97rem; line-height: 1.55; }
.event-card__more { margin-top: auto; padding-top: .35rem; font-weight: 700; color: var(--royal); display: inline-flex; align-items: center; gap: .4rem; }
.event-card__more::after { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 2px 2px 0 0; transform: rotate(45deg); transition: transform .25s ease; }
a.event-card:hover .event-card__more::after { transform: translateX(4px) rotate(45deg); }
/* phones: logo beside the text so six events don't make a very long page */
@media (max-width: 639px) {
    .event-card { flex-direction: row; align-items: stretch; }
    .event-card__logo { flex: 0 0 38%; height: auto; min-height: 120px; padding: 12px; border-bottom: 0; border-right: 1px solid var(--sky-2); }
    .event-card__logo img { max-height: 96px; }
    .event-card__body { padding: .9rem 1rem 1rem; }
    .event-card__name { font-size: 1.05rem; }
    .event-card__text { font-size: .92rem; }
}

/* =====================================================================
   Motion
   Elements rise and fade in as they scroll into view, in a short
   stagger. Only applied when anim-init.js has added .anim to <html>
   (never with "reduce motion", never without JavaScript).
   ===================================================================== */
:root { --ease-out: cubic-bezier(.16, .84, .3, 1); --rv-dist: 34px; }
@media (max-width: 760px) { :root { --rv-dist: 20px; } }

html.anim :is(
    .section__intro, .section__head, .stats__caption, .split > *, .layout-aside > *, .cta-band__inner > *,
    .notice, .filters, .register-box, .partners__h, .subhead, .prose, .downloads-page > *, .chips--toc,
    .editions > *, .events-grid > *, .group-tiles > *, .segments > *, .quicklinks > *, .category-grid > *,
    .gallery > *, .albums > *, .logos > *, .stats__grid > *, .chips > *, .site-footer__grid > *, .downloads > li,
    .empty-state, .results-count
):not(.is-in) {
    opacity: 0;
    transform: translate3d(0, var(--rv-dist), 0);
}
html.anim :is(
    .section__intro, .section__head, .stats__caption, .split > *, .layout-aside > *, .cta-band__inner > *,
    .notice, .filters, .register-box, .partners__h, .subhead, .prose, .downloads-page > *, .chips--toc,
    .editions > *, .events-grid > *, .group-tiles > *, .segments > *, .quicklinks > *, .category-grid > *,
    .gallery > *, .albums > *, .logos > *, .stats__grid > *, .chips > *, .site-footer__grid > *, .downloads > li,
    .empty-state, .results-count
) {
    transition: opacity .85s var(--ease-out), transform .85s var(--ease-out);
    transition-delay: var(--rv-delay, 0ms);
}
/* two-column sections close in from the sides on larger screens */
@media (min-width: 900px) {
    html.anim .split > :first-child:not(.is-in) { transform: translate3d(-48px, 0, 0); }
    html.anim .split > :last-child:not(.is-in) { transform: translate3d(48px, 0, 0); }
    html.anim .events-grid > :not(.is-in), html.anim .logos > :not(.is-in) { transform: translate3d(0, var(--rv-dist), 0) scale(.96); }
}
/* the signature band draws itself across */
html.anim .hazard { transform: scaleX(0); transform-origin: left center; transition: transform 1.2s var(--ease-out); }
html.anim .hazard.is-in { transform: scaleX(1); }

/* page-load sequence for the top of inner pages */
@keyframes rise { from { opacity: 0; transform: translate3d(0, 26px, 0); } to { opacity: 1; transform: none; } }
@keyframes slide-left { from { opacity: 0; transform: translate3d(60px, 0, 0); } to { opacity: 1; transform: none; } }
@keyframes panel-in { from { transform: translate3d(18%, 0, 0); opacity: 0; } to { transform: translate3d(0, var(--py, 0px), 0); opacity: 1; } }
html.anim .hero__copy > *, html.anim .page-head .container > * { animation: rise .9s var(--ease-out) both; }
html.anim .hero__copy > :nth-child(2), html.anim .page-head .container > :nth-child(2) { animation-delay: .1s; }
html.anim .hero__copy > :nth-child(3) { animation-delay: .2s; }
html.anim .hero__copy > :nth-child(4) { animation-delay: .3s; }
html.anim .datecard { animation: slide-left 1s var(--ease-out) .15s both; }
html.anim .hero::before, html.anim .page-head::before { animation: panel-in 1.1s var(--ease-out) backwards; }

/* subtle parallax on the slanted panels (desktop only; --py is set by main.js) */
.hero::before, .hero::after, .page-head::before, .stats::before, .cta-band::after { will-change: transform; }
.hero::before, .hero::after { top: -90px; bottom: -90px; transform: translate3d(0, var(--py, 0px), 0); }
.page-head::before { top: -70px; bottom: -70px; transform: translate3d(0, var(--py, 0px), 0); }
.stats::before { top: -60px; bottom: -60px; transform: translate3d(0, calc(var(--py, 0px) * -1), 0); }
.cta-band::after { bottom: -80px; transform: translate3d(0, var(--py, 0px), 0); }

/* gentle lift on interactive cards */
.edition-card, .quicklink, .category-card { transition: transform .35s var(--ease-out), box-shadow .35s ease, border-color .25s ease, background-color .2s; }
.edition-card:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(18, 48, 110, .06), 0 26px 40px -24px rgba(18, 48, 110, .5); }
.quicklink:hover { transform: translateY(-3px); }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .hero::before, .hero::after, .page-head::before, .stats::before, .cta-band::after { transform: none !important; }
}
