/*
 * DGM conference pages: polish layer for the event element family
 * (exhibition-section and its siblings, everything inside .dgm-ex-root).
 *
 * Additive: it only refines type sizes, spacing, card surfaces and grids of
 * the existing elements. Take the stylesheet out and the pages look as before.
 * CRM widgets are left alone: every rule skips what sits inside a widget.
 *
 * Scale, old to new (px): 9-11 -> 12 | 12-12.5 -> 13 | 13-13.5 -> 15 |
 * 14-14.5 -> 15/16 | 15-15.5 -> 17. Body copy of the new DGM elements is 16,
 * the smallest text there is 12; this brings the conference pages to the same floor.
 */

/* ---------- 1. type floor and scale ---------- */

.dgm-ex-root :is(.text-\[9px\], .text-\[9\.5px\], .text-\[10px\], .text-\[10\.5px\], .text-\[11px\]):not(.custom-compiled-plugin-element *, custom-compiled-plugin-element *) {
    font-size: 12px;
    line-height: 1.4;
}
.dgm-ex-root :is(.text-xs, .text-\[12px\], .text-\[12\.5px\]):not(.custom-compiled-plugin-element *, custom-compiled-plugin-element *) {
    font-size: 13px;
    line-height: 1.5;
}
.dgm-ex-root :is(.text-\[13px\], .text-\[13\.5px\], .text-sm):not(.custom-compiled-plugin-element *, custom-compiled-plugin-element *) {
    font-size: 15px;
}
.dgm-ex-root :is(.text-\[14px\], .text-\[14\.5px\]):not(.custom-compiled-plugin-element *, custom-compiled-plugin-element *) {
    font-size: 16px;
}
.dgm-ex-root :is(.text-\[15px\], .text-\[15\.5px\]):not(.custom-compiled-plugin-element *, custom-compiled-plugin-element *) {
    font-size: 17px;
}
/* small running text (card descriptions, notes) is prose, not a label: 14 */
.dgm-ex-root :is(p, div):is(.text-xs, .text-\[12px\], .text-\[12\.5px\]):is(.leading-relaxed, .leading-snug):not(.custom-compiled-plugin-element *, custom-compiled-plugin-element *) {
    font-size: 14px;
    line-height: 1.55;
}
/* running text keeps a comfortable line height at the new sizes */
.dgm-ex-root :is(.text-\[13px\], .text-\[13\.5px\], .text-sm, .text-\[14\.5px\]).leading-relaxed:not(.custom-compiled-plugin-element *, custom-compiled-plugin-element *) {
    line-height: 1.6;
}
.dgm-ex-root :is(.text-\[13px\], .text-\[13\.5px\]).leading-snug:not(.custom-compiled-plugin-element *, custom-compiled-plugin-element *) {
    line-height: 1.45;
}
/* icons that carried a text size keep their optical size */
.dgm-ex-root i[class*="fa-"]:is(.text-\[10px\], .text-\[11px\], .text-\[12px\], .text-xs):not(.custom-compiled-plugin-element *, custom-compiled-plugin-element *) {
    font-size: 0.8em;
}
.dgm-ex-root :is(a, button, span) > i[class*="fa-"]:is(.text-\[10px\], .text-\[11px\], .text-\[12px\], .text-xs):not(.custom-compiled-plugin-element *, custom-compiled-plugin-element *) {
    font-size: 0.82em;
}
/* wide-tracked capitals: at 12 px the old tracking runs too wide */
.dgm-ex-root .uppercase:is(.tracking-\[0\.24em\], .tracking-\[0\.22em\], .tracking-\[0\.2em\], .tracking-\[0\.18em\], .tracking-\[0\.16em\]):not(.custom-compiled-plugin-element *, custom-compiled-plugin-element *) {
    letter-spacing: 0.12em;
}

/* ---------- 2. section heads ---------- */

/* pill label above a headline */
.dgm-ex-root span.rounded-full.border.uppercase:not(.custom-compiled-plugin-element *, custom-compiled-plugin-element *) {
    padding: 0.3rem 0.8rem;
    letter-spacing: 0.08em;
    gap: 0.45rem;
}
.dgm-ex-root h2:not(.custom-compiled-plugin-element *, custom-compiled-plugin-element *) {
    text-wrap: balance;
}
.dgm-ex-root h2.tracking-tight:not(.custom-compiled-plugin-element *, custom-compiled-plugin-element *) {
    letter-spacing: -0.025em;
}
/* section headline on sub pages: 20/24 -> 22/28 */
.dgm-ex-root h2.text-xl:not(.custom-compiled-plugin-element *, custom-compiled-plugin-element *) {
    font-size: 1.375rem;
    line-height: 1.2;
}
@media (min-width: 640px) {
    .dgm-ex-root h2.text-xl.sm\:text-2xl:not(.custom-compiled-plugin-element *, custom-compiled-plugin-element *) {
        font-size: 1.75rem;
    }
}
/* the lead under a headline reads as a lead, not as card text */
.dgm-ex-root header > div.text-sm:not(.custom-compiled-plugin-element *, custom-compiled-plugin-element *),
.dgm-ex-root header > h2 + div.text-sm:not(.custom-compiled-plugin-element *, custom-compiled-plugin-element *) {
    font-size: 16px;
    line-height: 1.65;
    margin-top: 0.75rem;
}
@media (min-width: 1024px) {
    .dgm-ex-root header div.text-base.leading-relaxed:not(.custom-compiled-plugin-element *, custom-compiled-plugin-element *) {
        font-size: 1.0625rem;
        line-height: 1.65;
    }
}

/* ---------- 3. cards and rows ---------- */

/* one shadow for every white card: a hairline and a soft, offset lift */
.dgm-ex-root :is(article, ol, ul, div, a, details).rounded-2xl.border.bg-white:not(.custom-compiled-plugin-element *, custom-compiled-plugin-element *) {
    box-shadow: 0 1px 2px rgb(15 23 42 / 0.04), 0 10px 28px -18px rgb(15 23 42 / 0.18);
}
.dgm-ex-root a.rounded-2xl.border.bg-white:not(.custom-compiled-plugin-element *, custom-compiled-plugin-element *),
.dgm-ex-root article.group.rounded-2xl.border.bg-white:has(a):not(.custom-compiled-plugin-element *, custom-compiled-plugin-element *) {
    transition: box-shadow 220ms cubic-bezier(0.22, 1, 0.36, 1), border-color 220ms cubic-bezier(0.22, 1, 0.36, 1), transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}
.dgm-ex-root a.rounded-2xl.border.bg-white:hover:not(.custom-compiled-plugin-element *, custom-compiled-plugin-element *),
.dgm-ex-root article.group.rounded-2xl.border.bg-white:has(a):hover:not(.custom-compiled-plugin-element *, custom-compiled-plugin-element *) {
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgb(15 23 42 / 0.05), 0 18px 36px -20px rgb(15 23 42 / 0.26);
}
/* small fact cards: a little more room */
.dgm-ex-root article.rounded-2xl.p-4:not(.custom-compiled-plugin-element *, custom-compiled-plugin-element *) {
    padding: 1.25rem;
}
.dgm-ex-root article.rounded-2xl.p-4 > .mt-2\.5:not(.custom-compiled-plugin-element *, custom-compiled-plugin-element *) {
    margin-top: 0.75rem;
}
.dgm-ex-root article.rounded-2xl.p-4 h3.text-sm:not(.custom-compiled-plugin-element *, custom-compiled-plugin-element *) {
    font-size: 16px;
    line-height: 1.3;
}
/* icon tiles 36 -> 40 */
.dgm-ex-root .h-9.w-9.rounded-lg:not(.custom-compiled-plugin-element *, custom-compiled-plugin-element *) {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.625rem;
}
/* numbered steps */
.dgm-ex-root ol.rounded-2xl > li.grid:not(.custom-compiled-plugin-element *, custom-compiled-plugin-element *) {
    grid-template-columns: 34px 1fr;
    gap: 1rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
}
.dgm-ex-root ol.rounded-2xl > li.grid > .rounded-full:not(.custom-compiled-plugin-element *, custom-compiled-plugin-element *) {
    width: 34px;
    height: 34px;
}
.dgm-ex-root ol.rounded-2xl.px-5:not(.custom-compiled-plugin-element *, custom-compiled-plugin-element *) {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}
/* link rows */
.dgm-ex-root a.rounded-xl.border.bg-white.px-4.py-3:not(.custom-compiled-plugin-element *, custom-compiled-plugin-element *) {
    padding: 0.95rem 1.15rem;
    border-radius: 0.875rem;
    box-shadow: 0 1px 2px rgb(15 23 42 / 0.04);
    transition: box-shadow 220ms cubic-bezier(0.22, 1, 0.36, 1), border-color 220ms cubic-bezier(0.22, 1, 0.36, 1), transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}
.dgm-ex-root a.rounded-xl.border.bg-white.px-4.py-3:hover:not(.custom-compiled-plugin-element *, custom-compiled-plugin-element *) {
    transform: translateY(-1px);
    box-shadow: 0 1px 2px rgb(15 23 42 / 0.05), 0 12px 24px -16px rgb(15 23 42 / 0.22);
}
.dgm-ex-root .grid.gap-2:has(> a.rounded-xl.border):not(.custom-compiled-plugin-element *, custom-compiled-plugin-element *) {
    gap: 0.75rem;
}
/* buttons inside the elements */
.dgm-ex-root a.rounded-lg:is(.px-3\.5, .px-4).text-\[13px\]:not(.custom-compiled-plugin-element *, custom-compiled-plugin-element *) {
    font-size: 14.5px;
    padding: 0.65rem 1.1rem;
}

/* ---------- 3b. a headline stays with its block ---------- */

/* The space above a section head has to be clearly larger than the space below it, or the
   headline floats between two blocks. The first head of a page (the page title) is left alone. */

/* section head on sub pages: label, headline, lead */
.dgm-ex-root header.mb-5:not(.custom-compiled-plugin-element *, custom-compiled-plugin-element *) {
    margin-bottom: 1.25rem;
}
#crm__widgets > * ~ .dgm-ex-root header.mb-5:has(h2),
#crm__widgets > * ~ * > .dgm-ex-root header.mb-5:has(h2) {
    padding-top: 1.25rem;
}
/* large left-aligned headline in the middle of a page */
#crm__widgets > * ~ .dgm-ex-root header.text-left.mb-8:has(h2),
#crm__widgets > * ~ * > .dgm-ex-root header.text-left.mb-8:has(h2) {
    padding-top: 2rem;
    margin-bottom: 1.25rem;
}
@media (min-width: 1024px) {
    #crm__widgets > * ~ .dgm-ex-root header.mb-5:has(h2),
    #crm__widgets > * ~ * > .dgm-ex-root header.mb-5:has(h2) {
        padding-top: 1.75rem;
    }
    #crm__widgets > * ~ .dgm-ex-root header.text-left.mb-8:has(h2),
    #crm__widgets > * ~ * > .dgm-ex-root header.text-left.mb-8:has(h2) {
        padding-top: 2.75rem;
        margin-bottom: 1.5rem;
    }
}
/* the topic grid brings its own space above the cards: the head must not add a second one */
.dgm-ex-root header:has(+ div .event-session-type-topic-grid) {
    margin-bottom: 0;
}
/* on phones the topic head needs more air above than the grid leaves below it */
@media (max-width: 639px) {
    .dgm-ex-root header:has(+ div .event-session-type-topic-grid) {
        padding-top: 1.5rem;
    }
}
/* a centred section head directly under a widget (exhibitor logos) has no space of its own above */
.custom-compiled-plugin-element + .dgm-ex-root.pt-1 > div > header.text-center:first-child,
custom-compiled-plugin-element + .dgm-ex-root.pt-1 > div > header.text-center:first-child {
    padding-top: 5rem;
}
@media (min-width: 1024px) {
    .custom-compiled-plugin-element + .dgm-ex-root.pt-1 > div > header.text-center:first-child,
    custom-compiled-plugin-element + .dgm-ex-root.pt-1 > div > header.text-center:first-child {
        padding-top: 5.5rem;
    }
}

/* ---------- 4. grids without holes ---------- */

@media (min-width: 1024px) {
    .dgm-ex-root .grid.lg\:grid-cols-4:has(> :nth-child(3):last-child):not(.custom-compiled-plugin-element *, custom-compiled-plugin-element *),
    .dgm-ex-root .grid.lg\:grid-cols-4:has(> :nth-child(6):last-child):not(.custom-compiled-plugin-element *, custom-compiled-plugin-element *) {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .dgm-ex-root .grid.lg\:grid-cols-4:has(> :nth-child(2):last-child):not(.custom-compiled-plugin-element *, custom-compiled-plugin-element *),
    .dgm-ex-root .grid.lg\:grid-cols-3:has(> :nth-child(2):last-child):not(.custom-compiled-plugin-element *, custom-compiled-plugin-element *),
    .dgm-ex-root .grid.lg\:grid-cols-3:has(> :nth-child(4):last-child):not(.custom-compiled-plugin-element *, custom-compiled-plugin-element *),
    /* link rows read in one line each: two per row instead of four narrow ones */
    .dgm-ex-root .grid.lg\:grid-cols-4:has(> a.rounded-xl.border):not(.custom-compiled-plugin-element *, custom-compiled-plugin-element *) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ---------- 5. browser surfaces ---------- */

.dgm-ex-root :is(a, button, summary):focus-visible:not(.custom-compiled-plugin-element *, custom-compiled-plugin-element *) {
    outline: 2px solid currentColor;
    outline-offset: 3px;
    border-radius: 0.5rem;
}
.dgm-ex-root :is(p, li) > a:not([class]):not(.custom-compiled-plugin-element *, custom-compiled-plugin-element *) {
    text-underline-offset: 0.2em;
    text-decoration-thickness: 1px;
}

@media (prefers-reduced-motion: reduce) {
    .dgm-ex-root :is(a, article) {
        transition: none !important;
    }
    .dgm-ex-root :is(a, article):hover {
        transform: none !important;
    }
}
