/* ==========================================================================
   ISSMGE Editorial Design System (2026)
   --------------------------------------------------------------------------
   Source: design-4-editorial.html ("Editorial Grid")

   IMPORTANT — NAMESPACING
   Every rule below is scoped under `.ed-scope`. The original mockup used bare
   element selectors (`*`, `body`, `img`, `h1`-`h4`, `header`, `footer`,
   `section`) and generic class names (`.btn`, `.nav`, `.row`, `.item`) that
   collide head-on with Bootstrap 3 and theme.css. `.btn` alone appears in 213
   blade files. Dropping the mockup CSS in unscoped would visually destroy
   every inner page.

   Rule: markup using this stylesheet must live inside an element carrying
   `.ed-scope`. Anything outside it is untouched and keeps Bootstrap 3.

   Custom properties are prefixed `--ed-` and declared on :root. That is safe:
   custom properties only take effect where they are referenced.
   ========================================================================== */

:root {
    /* Brand — official ISSMGE red */
    --ed-navy:       #8E2228;
    --ed-navy-d:     #6E1A1F;
    --ed-crimson:    #B12B32;
    --ed-crimson-d:  #8E2228;
    --ed-blue:       #B12B32;
    --ed-blue-2:     #A02931;
    --ed-blue-tint:  #FBEDED;
    --ed-blush:      #F7E9E9;

    /* Neutrals */
    --ed-ink:        #221F1F;
    --ed-body:       #3A3A3A;
    --ed-slate:      #565656;
    --ed-paper:      #FBFBF9;
    --ed-line:       #E2E2E2;
    --ed-white:      #ffffff;

    /* Type */
    --ed-serif: 'Newsreader', Georgia, 'Times New Roman', serif;
    --ed-sans:  'Libre Franklin', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, 'Helvetica Neue', Arial, sans-serif;

    /* Layout */
    --ed-wrap:   1220px;
    --ed-gutter: 32px;
}

/* --------------------------------------------------------------------------
   1. Scope root + local reset
   -------------------------------------------------------------------------- */

.ed-scope {
    font-family: var(--ed-sans);
    color: var(--ed-ink);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.ed-scope *,
.ed-scope *::before,
.ed-scope *::after {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.ed-scope a { color: inherit; text-decoration: none; }
.ed-scope a:hover,
.ed-scope a:focus { text-decoration: none; color: inherit; }
.ed-scope img { max-width: 100%; display: block; }
.ed-scope li { list-style: none; }

.ed-scope h1, .ed-scope h2, .ed-scope h3, .ed-scope h4 {
    font-family: var(--ed-serif);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -.4px;
}

/* Keyboard focus — the mockup had none. */
.ed-scope a:focus-visible,
.ed-scope button:focus-visible {
    outline: 2px solid var(--ed-crimson);
    outline-offset: 3px;
}

/* Page-level background, opt-in via <body class="ed-page"> */
body.ed-page { background: var(--ed-paper); }

/* --------------------------------------------------------------------------
   2. Primitives
   -------------------------------------------------------------------------- */

.ed-scope .ed-wrap {
    max-width: var(--ed-wrap);
    margin: 0 auto;
    padding: 0 var(--ed-gutter);
}

.ed-scope .ed-kicker {
    font-family: var(--ed-sans);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 12px;
    font-weight: 700;
    color: var(--ed-crimson);
}

.ed-scope .ed-btn {
    display: -webkit-inline-box;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: var(--ed-sans);
    font-weight: 600;
    font-size: 14px;
    padding: 13px 26px;
    border-radius: 2px;
    transition: background-color .18s, border-color .18s, color .18s;
    cursor: pointer;
    border: 1.5px solid var(--ed-navy);
    background: transparent;
    text-align: center;
}
.ed-scope .ed-btn-dark  { background: var(--ed-navy); color: #fff; }
.ed-scope .ed-btn-dark:hover  { background: var(--ed-navy-d); color: #fff; }
.ed-scope .ed-btn-out:hover   { background: var(--ed-navy); color: #fff; }
.ed-scope .ed-btn-light { background: #fff; border-color: #fff; color: var(--ed-crimson); }
.ed-scope .ed-btn-light:hover {
    background: #EBEAE8; border-color: #EBEAE8; color: var(--ed-crimson);
    box-shadow: 0 10px 24px rgba(0,0,0,.2);
    transform: translateY(-2px);
}

.ed-scope .ed-logo { height: 60px; width: auto; }

/* --------------------------------------------------------------------------
   3. Header
   -------------------------------------------------------------------------- */

.ed-header {
    border-bottom: 2px solid var(--ed-navy);
    position: sticky;
    top: 0;
    background: var(--ed-paper);
    z-index: 1030; /* above BS3 content, below BS3 modals (1040+) */
}

.ed-header .ed-tick {
    border-bottom: 1px solid var(--ed-line);
    font-size: 12.5px;
    color: var(--ed-slate);
}
.ed-header .ed-tick .ed-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 34px;
    gap: 16px;
}
.ed-header .ed-tick b { color: var(--ed-crimson); }
.ed-header .ed-tick a:hover { color: var(--ed-crimson); }
.ed-header .ed-tick-links { display: flex; gap: 14px; align-items: center; white-space: nowrap; }
.ed-header .ed-tick { position: relative; z-index: 2; }
.ed-header .ed-usermenu { position: relative; }
.ed-header .ed-usermenu > a { cursor: pointer; }
.ed-header .ed-usermenu .caret { margin-left: 3px; }
.ed-header .dropdown-menu-right { right: 0; left: auto; }

.ed-header .ed-navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 84px;
}

.ed-header .ed-menu {
    display: flex;
    gap: clamp(12px, 1.5vw, 30px);
    align-items: center;
    flex-wrap: nowrap;
}
.ed-header .ed-menu > li > a {
    font-weight: 600;
    font-size: clamp(12.5px, 1.05vw, 14.5px);
    letter-spacing: .2px;
    white-space: nowrap;
    padding: 6px 0;
    display: block;
    border-bottom: 2px solid transparent;
}
.ed-header .ed-menu > li > a:hover,
.ed-header .ed-menu > li.active > a {
    color: var(--ed-crimson);
    border-bottom-color: var(--ed-crimson);
}

/* Burger — the mockup simply hid the menu below 960px with no replacement. */
.ed-header .ed-burger {
    display: none;
    background: transparent;
    border: 1.5px solid var(--ed-navy);
    border-radius: 2px;
    padding: 9px 11px;
    cursor: pointer;
    line-height: 0;
}
.ed-header .ed-burger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--ed-navy);
    margin: 4px 0;
    transition: .2s;
}

@media (max-width: 1100px) {
    .ed-header .ed-menu { gap: 12px; }
}
@media (max-width: 991px) {
    .ed-header .ed-navbar { min-height: 68px; }
    .ed-header .ed-menu { display: none; }
    .ed-header .ed-burger { display: block; }
    .ed-header .ed-nav-cta { display: none; }
    .ed-scope .ed-logo { height: 46px; }

    .ed-header .ed-menu.is-open {
        display: block;
        position: absolute;
        left: 0; right: 0;
        top: 100%;
        background: var(--ed-paper);
        border-bottom: 2px solid var(--ed-navy);
        border-top: 1px solid var(--ed-line);
        padding: 8px var(--ed-gutter) 18px;
        max-height: calc(100vh - 120px);
        overflow-y: auto;
        box-shadow: 0 18px 30px rgba(0,0,0,.10);
    }
    .ed-header .ed-menu.is-open > li > a {
        padding: 12px 0;
        border-bottom: 1px solid var(--ed-line);
        font-size: 15.5px;
    }
    .ed-header .ed-menu.is-open > li:last-child > a { border-bottom: 0; }
}
@media (max-width: 600px) {
    :root { --ed-gutter: 18px; }
    .ed-header .ed-tick .ed-wrap { font-size: 11.5px; }
    .ed-header .ed-tick-hide { display: none; }
}

/* --- Injected Bootstrap 3 menus ------------------------------------------
   The Intranet and the Conference Review Platform replace the whole nav via
   @section('menu-items') with BS3 <li> markup, including .dropdown menus.
   Two things need repairing inside .ed-scope: the local reset strips
   .dropdown-menu padding, and those menus carry far more items than the
   editorial nav, so they must be allowed to wrap. */

.ed-header .ed-menu-injected {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 4px 18px;
    padding: 8px 0;
}
.ed-header .ed-menu-injected > li > a { font-size: 13.5px; }
.ed-header .ed-menu > li { position: relative; }

.ed-header .dropdown-menu {
    padding: 6px 0;
    min-width: 210px;
    border-radius: 2px;
    border-color: var(--ed-line);
    box-shadow: 0 12px 28px rgba(0,0,0,.14);
}
.ed-header .dropdown-menu > li > a {
    padding: 7px 20px;
    font-size: 13.5px;
    font-weight: 500;
    white-space: nowrap;
    display: block;
    color: var(--ed-ink);
}
.ed-header .dropdown-menu > li > a:hover {
    background: var(--ed-blue-tint);
    color: var(--ed-navy);
}
.ed-header .dropdown-menu .divider {
    height: 1px;
    margin: 6px 0;
    background: var(--ed-line);
}

/* A text brand from @section('logo'), e.g. "ISSMGE Conference Review Platform" */
.ed-header .navbar-brand {
    font-family: var(--ed-serif);
    font-size: clamp(16px, 1.8vw, 21px);
    color: var(--ed-navy);
    float: none;
    height: auto;
    padding: 0;
    line-height: 1.2;
    white-space: normal;
}

@media (max-width: 991px) {
    /* In the drawer, dropdowns must stack rather than overlay. */
    .ed-header .ed-menu.is-open .dropdown-menu {
        position: static;
        float: none;
        width: 100%;
        border: 0;
        box-shadow: none;
        background: transparent;
        padding: 0 0 6px 14px;
    }
    .ed-header .ed-menu.is-open .dropdown-menu > li > a { padding: 8px 0; }
    .ed-header .ed-menu-injected { gap: 0; padding: 0; }
}

/* --------------------------------------------------------------------------
   4. Hero
   -------------------------------------------------------------------------- */

.ed-scope .ed-hero { padding: 46px 0 60px; border-bottom: 1px solid var(--ed-line); }
.ed-scope .ed-hero-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 38px;
}

.ed-scope .ed-lead { position: relative; }
.ed-scope .ed-lead-img {
    border-radius: 4px;
    background: linear-gradient(130deg, #6E1A1F, #B12B32 90%);
    position: relative;
    overflow: hidden;
    margin-bottom: 22px;
    display: grid;
    place-items: center;
    /* padding-top fallback for browsers without aspect-ratio */
    padding-top: 62.5%; /* 16:10 */
}
@supports (aspect-ratio: 16/10) {
    .ed-scope .ed-lead-img { aspect-ratio: 16/10; padding-top: 0; }
}
.ed-scope .ed-lead-img > img {
    position: absolute;
    inset: 0;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: contain;
}
.ed-scope .ed-lead-img .ed-ph {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 34%; height: 60%;
    color: #fff;
    opacity: .22;
}
.ed-scope .ed-lead-img .ed-tag {
    position: absolute;
    left: 18px; bottom: 18px;
    background: var(--ed-crimson);
    color: #fff;
    font-family: var(--ed-sans);
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 7px 14px;
    z-index: 2;
}
.ed-scope .ed-lead h1 {
    font-size: clamp(28px, 4.4vw, 54px);
    margin: 8px 0 14px;
    letter-spacing: -1px;
    color: var(--ed-navy);
}
.ed-scope .ed-lead h1 a:hover { color: var(--ed-crimson); }
.ed-scope .ed-lead p { font-size: 20px; color: var(--ed-body); max-width: 54ch; }
.ed-scope .ed-lead .ed-by {
    font-family: var(--ed-sans);
    font-size: 13px;
    color: var(--ed-slate);
    margin-top: 16px;
    letter-spacing: .3px;
}

.ed-scope .ed-sidestack {
    border-left: 1px solid var(--ed-line);
    padding-left: 34px;
    display: flex;
    flex-direction: column;
}
.ed-scope .ed-sidestack .ed-sh {
    font-family: var(--ed-sans);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 12px;
    font-weight: 800;
    color: var(--ed-navy);
    padding-bottom: 14px;
    border-bottom: 2px solid var(--ed-navy);
    margin-bottom: 6px;
}
.ed-scope .ed-si {
    display: block;
    padding: 18px 0;
    border-bottom: 1px solid var(--ed-line);
}
.ed-scope .ed-si .ed-k {
    font-family: var(--ed-sans);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--ed-crimson);
}
.ed-scope .ed-si h3 { font-size: 20px; margin-top: 5px; color: var(--ed-ink); }
.ed-scope .ed-si:hover h3 { color: var(--ed-blue); }
.ed-scope .ed-si-foot { margin-top: auto; padding-top: 18px; }

@media (max-width: 900px) {
    .ed-scope .ed-hero-grid { grid-template-columns: 1fr; }
    .ed-scope .ed-sidestack { border-left: 0; padding-left: 0; }
    .ed-scope .ed-lead p { font-size: 18px; }
}

/* --------------------------------------------------------------------------
   5. Stats ribbon
   -------------------------------------------------------------------------- */

.ed-scope .ed-ribbon { background: var(--ed-navy); color: #F0DBDC; }
.ed-scope .ed-ribbon .ed-wrap {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
    padding-top: 30px;
    padding-bottom: 30px;
}
.ed-scope .ed-ribbon .ed-n {
    font-family: var(--ed-serif);
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 500;
    color: #fff;
    line-height: 1.1;
}
.ed-scope .ed-ribbon .ed-l {
    font-family: var(--ed-sans);
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #E0C4C5;
    margin-top: 4px;
}
.ed-scope .ed-ribbon .ed-wrap > div { border-right: 1px solid rgba(255,255,255,.14); }
.ed-scope .ed-ribbon .ed-wrap > div:last-child { border-right: 0; }
@media (max-width: 700px) {
    .ed-scope .ed-ribbon .ed-wrap { grid-template-columns: 1fr 1fr; gap: 24px; }
    .ed-scope .ed-ribbon .ed-wrap > div { border-right: 0; }
}

/* --------------------------------------------------------------------------
   6. Sections + magazine grid
   -------------------------------------------------------------------------- */

.ed-scope .ed-section { padding: 74px 0; }
@media (max-width: 700px) { .ed-scope .ed-section { padding: 48px 0; } }

.ed-scope .ed-sectop {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    border-bottom: 2px solid var(--ed-navy);
    padding-bottom: 12px;
    margin-bottom: 34px;
}
.ed-scope .ed-sectop h2 { font-size: clamp(24px, 3.4vw, 38px); color: var(--ed-navy); }
.ed-scope .ed-sectop a {
    font-family: var(--ed-sans);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--ed-crimson);
    white-space: nowrap;
}

.ed-scope .ed-mag { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.ed-scope .ed-art {
    display: block;
    cursor: pointer;
    padding: 14px;
    border-radius: 6px;
    transition: .18s;
}
.ed-scope .ed-art:hover {
    background: #fff;
    box-shadow: 0 14px 32px rgba(120,30,34,.14);
    transform: translateY(-4px);
}
.ed-scope .ed-art .ed-im {
    border-radius: 4px;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
    padding-top: 75%; /* 4:3 fallback */
    background: linear-gradient(135deg, #6E1A1F, #B12B32);
}
@supports (aspect-ratio: 4/3) {
    .ed-scope .ed-art .ed-im { aspect-ratio: 4/3; padding-top: 0; }
}
.ed-scope .ed-art .ed-im > img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: contain;
}
/* Only ~27% of enabled articles carry an image, so the imageless case is the
   common one, not the exception. Rather than a bare gradient rectangle, label
   the block with its category so it reads as a deliberate typographic plate
   and the grid keeps an even rhythm. */
.ed-scope .ed-im-label {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: grid;
    place-items: center;
    padding: 18px;
    font-family: var(--ed-serif);
    font-size: clamp(15px, 1.9vw, 21px);
    line-height: 1.25;
    text-align: center;
    color: #fff;
    opacity: .45;
    letter-spacing: -.2px;
}
.ed-scope .ed-art:hover .ed-im-label { opacity: .6; }

/* Article artwork is wildly heterogeneous: portrait bulletin covers (637x900),
   ultra-wide banners (1031x407), 16:9 webinar stills, square logos. A blanket
   object-fit:cover crops a portrait cover down to a horizontal sliver — the
   masthead disappears. The script in home-8 measures each image against its
   box and adds this class when the mismatch is severe, letterboxing onto the
   brand gradient instead of destroying the image. */
.ed-scope .ed-im-contain > img {
    object-fit: contain;
    padding: 12px;
}

.ed-scope .ed-m1 { background: linear-gradient(135deg,#6E1A1F,#B12B32); }
.ed-scope .ed-m2 { background: linear-gradient(135deg,#8E2228,#B12B32); }
.ed-scope .ed-m3 { background: linear-gradient(135deg,#97242A,#C8464C); }
.ed-scope .ed-m4 { background: linear-gradient(135deg,#8E2228,#A02931); }
.ed-scope .ed-m5 { background: linear-gradient(135deg,#7E1E24,#B12B32); }
.ed-scope .ed-m6 { background: linear-gradient(135deg,#6E1A1F,#97242A); }

.ed-scope .ed-art .ed-k {
    font-family: var(--ed-sans);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--ed-crimson);
}
.ed-scope .ed-art h3 {
    font-size: 23px;
    margin: 6px 0 8px;
    letter-spacing: -.5px;
    color: var(--ed-navy);
}
.ed-scope .ed-art:hover h3 { color: var(--ed-blue); }
.ed-scope .ed-art p { color: var(--ed-body); font-size: 16px; }

@media (max-width: 900px) { .ed-scope .ed-mag { grid-template-columns: 1fr 1fr; gap: 22px; } }
@media (max-width: 600px) { .ed-scope .ed-mag { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   7. Virtual University feature
   -------------------------------------------------------------------------- */

.ed-scope .ed-vu {
    background: #fff;
    border-top: 1px solid var(--ed-line);
    border-bottom: 1px solid var(--ed-line);
}
.ed-scope .ed-vu .ed-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}
.ed-scope .ed-vu .ed-vu-im {
    border-radius: 4px;
    /* Gradient shows only when there is no artwork; the image now covers it at
       full opacity rather than being tinted red. Depth comes from the shadow. */
    background: radial-gradient(circle at 40% 35%, #B12B32, #6E1A1F);
    box-shadow: 0 18px 42px rgba(34,31,31,.22);
    position: relative;
    overflow: hidden;
    display: grid;
    place-items: center;
    padding-top: 80%; /* 5:4 fallback */
}
@supports (aspect-ratio: 5/4) {
    .ed-scope .ed-vu .ed-vu-im { aspect-ratio: 5/4; padding-top: 0; }
}
.ed-scope .ed-vu .ed-vu-im > img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: contain;
}
.ed-scope .ed-vu .ed-play {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 84px; height: 84px;
    border-radius: 50%;
    background: var(--ed-crimson);
    display: grid;
    place-items: center;
    color: #fff;
    box-shadow: 0 12px 30px rgba(0,0,0,.3);
    z-index: 2;
    transition: .18s;
}
.ed-scope .ed-vu a:hover .ed-play { transform: translate(-50%,-50%) scale(1.06); }
.ed-scope .ed-vu .ed-play svg { width: 30px; height: 30px; margin-left: 5px; }
.ed-scope .ed-vu h2 { font-size: clamp(26px, 3.6vw, 44px); color: var(--ed-navy); margin: 10px 0 16px; }
.ed-scope .ed-vu p { font-size: 19px; color: var(--ed-body); margin-bottom: 24px; }
@media (max-width: 820px) {
    .ed-scope .ed-vu .ed-wrap { grid-template-columns: 1fr; gap: 30px; }
    .ed-scope .ed-vu p { font-size: 17px; }
}

/* --------------------------------------------------------------------------
   8. Library list
   -------------------------------------------------------------------------- */

.ed-scope .ed-lib-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    border-top: 1px solid var(--ed-line);
}
.ed-scope .ed-lib-item {
    padding: 26px 16px;
    border-bottom: 1px solid var(--ed-line);
    display: flex;
    gap: 16px;
    align-items: flex-start;
    border-radius: 6px;
    transition: .18s;
}
.ed-scope .ed-lib-item:hover {
    background: #fff;
    box-shadow: 0 12px 28px rgba(120,30,34,.12);
}
.ed-scope .ed-lib-item .ed-num {
    font-family: var(--ed-serif);
    font-size: 22px;
    color: var(--ed-crimson);
    min-width: 34px;
}
.ed-scope .ed-lib-item h4 { font-size: 18px; letter-spacing: -.3px; color: var(--ed-navy); }
.ed-scope .ed-lib-item p {
    font-family: var(--ed-sans);
    font-size: 13px;
    color: var(--ed-slate);
    margin-top: 3px;
}
@media (max-width: 820px) { .ed-scope .ed-lib-row { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   9. Join CTA
   -------------------------------------------------------------------------- */

.ed-scope .ed-join { background: var(--ed-crimson); color: #fff; text-align: center; }
.ed-scope .ed-join h2 {
    font-size: clamp(26px, 4vw, 50px);
    color: #fff;
    max-width: 28ch;
    margin: 0 auto 14px;
}
.ed-scope .ed-join p {
    font-size: 19px;
    color: #F6DFDF;
    max-width: 56ch;
    margin: 0 auto 28px;
}
@media (max-width: 700px) { .ed-scope .ed-join p { font-size: 17px; } }

/* --------------------------------------------------------------------------
   10. Footer
   -------------------------------------------------------------------------- */

.ed-footer {
    background: var(--ed-navy-d);
    border-top: 4px solid var(--ed-crimson);
    margin-top: 60px;
    padding: 56px 0 30px;
    font-size: 14px;
    color: #E0C4C5;
}
.ed-footer .ed-fgrid {
    display: grid;
    /* 5 columns: brand + 3 link lists + the conference-aware Contact block
       carried over from the legacy footer. */
    grid-template-columns: 1.7fr 1fr 1fr 1fr 1.5fr;
    gap: 32px;
    padding-bottom: 34px;
    border-bottom: 1px solid rgba(255,255,255,.1);
}
.ed-footer h4 {
    font-family: var(--ed-sans);
    color: #fff;
    font-weight: 800;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 14px;
}
.ed-footer li { padding: 5px 0; }
.ed-footer a:hover { color: #fff; }
.ed-footer .ed-logo-w {
    height: 62px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: .95;
    margin-bottom: 14px;
}
.ed-footer .ed-blurb { max-width: 42ch; }
.ed-footer .ed-social {
    display: flex;
    gap: 14px;
    margin-top: 16px;
    flex-wrap: wrap;
}
.ed-footer .ed-social a {
    width: 34px; height: 34px;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #E0C4C5;
    transition: .18s;
}
.ed-footer .ed-social a:hover {
    background: var(--ed-crimson);
    border-color: var(--ed-crimson);
    color: #fff;
}
.ed-footer-flush { margin-top: 0; }

.ed-footer .ed-foot-top { display: flex; justify-content: flex-end; margin-bottom: 18px; }
.ed-footer .ed-totop {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: var(--ed-sans);
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #E0C4C5;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 2px;
    padding: 7px 13px;
    transition: .18s;
}
.ed-footer .ed-totop:hover { background: var(--ed-crimson); border-color: var(--ed-crimson); color: #fff; }

.ed-footer .ed-copy {
    padding-top: 22px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 13px;
}
.ed-footer .ed-copy a { text-decoration: underline; }
@media (max-width: 700px)  { .ed-footer { margin-top: 40px; } }
@media (max-width: 1120px) { .ed-footer .ed-fgrid { grid-template-columns: 1.6fr 1fr 1fr; } }
@media (max-width: 820px)  { .ed-footer .ed-fgrid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px)  { .ed-footer .ed-fgrid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   11. Utilities
   -------------------------------------------------------------------------- */

.ed-scope .ed-block { width: 100%; justify-content: center; }

/* Mobile-only, independent of Bootstrap's hidden-* helpers so the chrome
   keeps working if BS3 is ever dropped. Matches the 991px drawer breakpoint. */
.ed-mobile-only { display: none; }
@media (max-width: 991px) { .ed-mobile-only { display: block; } }
.ed-scope .ed-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ed-scope .ed-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ed-sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

@media (prefers-reduced-motion: reduce) {
    .ed-scope *, .ed-scope *::before, .ed-scope *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
    .ed-scope .ed-art:hover { transform: none; }
}

/* --------------------------------------------------------------------------
   12. Conferences grid (homepage)
   -------------------------------------------------------------------------- */

.ed-scope .ed-conf {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.ed-scope .ed-conf-item {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--ed-line);
    border-left: 3px solid var(--ed-crimson);
    border-radius: 4px;
    padding: 20px 20px 18px;
    transition: box-shadow .18s;
}
.ed-scope a.ed-conf-item[href]:hover {
    box-shadow: 0 12px 28px rgba(120,30,34,.12);
}

.ed-scope .ed-conf-item h3 {
    font-size: 19px;
    line-height: 1.25;
    color: var(--ed-navy);
    margin: 6px 0 0;
}
.ed-scope a.ed-conf-item[href]:hover h3 { color: var(--ed-crimson); }

.ed-scope .ed-conf-note {
    font-family: var(--ed-sans);
    font-size: 13px;
    color: var(--ed-slate);
    margin-top: 8px;
}

.ed-scope .ed-conf-cta {
    margin-top: auto;
    padding-top: 16px;
    font-family: var(--ed-sans);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--ed-crimson);
}

.ed-scope .ed-conf-date {
    font-family: var(--ed-sans);
    font-size: 13px;
    font-weight: 600;
    color: var(--ed-ink);
    margin-top: 10px;
}
.ed-scope .ed-conf-date .fa { color: var(--ed-crimson); margin-right: 6px; }

/* No site announced yet: keep the tile in the grid but read it as pending
   rather than as something you can click. */
.ed-scope .ed-conf-item.is-tbc {
    background: transparent;
    border-left-color: var(--ed-line);
}

@media (max-width: 900px) { .ed-scope .ed-conf { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .ed-scope .ed-conf { grid-template-columns: 1fr; } }

/* Compact variant — Events page. Same component, dialled down: the page already
   has its own heading, map and filters, so this is a highlight strip rather
   than the main event. */
.ed-scope.ed-conf-section-compact {
    padding: 0;
    margin-bottom: 34px;
}

/* Full width on the Events page: the page's own .container already provides the
   gutter, so .ed-wrap's 1220px cap and 32px padding only inset this section
   64px narrower than everything around it. */
.ed-scope.ed-conf-section-compact > .ed-wrap {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}

/* Heading matched to #publications-container h3 — the border lives on the
   heading there, so the section rule above it is dropped. */
.ed-scope.ed-conf-section-compact .ed-sectop {
    display: block;
    border-bottom: 0;
    padding-bottom: 0;
    margin-bottom: 16px;
}
.ed-scope.ed-conf-section-compact .ed-sectop h2 {
    font-family: var(--ed-sans);
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--ed-navy);
    padding-bottom: 10px;
    margin-bottom: 0;
    border-bottom: 2px solid var(--ed-navy);
}

.ed-scope .ed-conf-compact { gap: 14px; }
.ed-scope .ed-conf-compact .ed-conf-item { padding: 14px 15px 13px; border-left-width: 3px; }
.ed-scope .ed-conf-compact .ed-conf-item h3 { font-size: 15.5px; line-height: 1.28; margin-top: 4px; }
.ed-scope .ed-conf-compact .ed-k { font-size: 10px; letter-spacing: 1px; }
.ed-scope .ed-conf-compact .ed-conf-date { font-size: 12px; margin-top: 7px; }
.ed-scope .ed-conf-compact .ed-conf-note { font-size: 12px; margin-top: 5px; }
.ed-scope .ed-conf-compact .ed-conf-cta { padding-top: 10px; font-size: 10.5px; }
