/*
Theme Name: EAN
Theme URI: https://eu-alara.net/
Description: Theme WordPress personnalisé pour European ALARA Network (EAN) recreant fidelement le design Joomla / Gantry Flux original.
Version: 1.0.0
Author: vrouzaud
Author URI: https://www.cepn.asso.fr/
Text Domain: ean
*/

/* ==========================================================================
   1. IMPORTS & CSS VARIABLES
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Actor&family=Catamaran:wght@300;400;600;700;800&display=swap');

/*
 * 'EAN Digits': the Actor font draws its figures at x-height (old-style look:
 * in "2nd" the "2" is the same size as "nd"). This face only covers the digits
 * (unicode-range 0-9) and substitutes full-height (lining) Catamaran figures,
 * while every other character keeps using Actor.
 */
@font-face {
    font-family: 'EAN Digits';
    font-style: normal;
    font-weight: 300 800;
    font-display: swap;
    src: url('assets/fonts/catamaran-latin.woff2') format('woff2');
    unicode-range: U+0030-0039;
}

:root {
    --ean-primary: #7dbda4;
    --ean-primary-hover: #509e7f;
    --ean-primary-dark: #3f7c64;
    --ean-accent-yellow: #ffe6a3;
    --ean-accent-yellow-dark: #ffd870;
    --ean-surround-bg: #a3c7b9;
    --ean-body-bg: #ffffff;
    --ean-text: #605c72;
    --ean-text-dark: #232529;
    --ean-text-light: #8e9dab;
    --ean-border: rgba(231, 232, 234, 0.4);
    --ean-border-dark: #e7e8ea;
    --ean-font-main: 'EAN Digits', 'Actor', 'Catamaran', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --ean-font-headings: 'EAN Digits', 'Actor', 'Catamaran', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --ean-font-sans: 'Catamaran', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* ==========================================================================
   2. RESET & BASE TYPOGRAPHY
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--ean-font-main);
    font-variant-numeric: lining-nums;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--ean-text);
    background-color: var(--ean-surround-bg);
}

body p {
    margin: 0 0 1.25rem 0;
}

body p:last-child {
    margin-bottom: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--ean-font-headings);
    color: var(--ean-text-dark);
    font-weight: 600;
    margin: 1.25rem 0 0.75rem 0;
    line-height: 1.3;
}

h1 { font-size: 2.2rem; }
h2 { font-size: 1.85rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

a {
    color: var(--ean-primary);
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

a:hover, a:focus {
    color: var(--ean-primary-dark);
    text-decoration: none;
}

img {
    max-width: min(100%, 450px);
    max-height: 450px;
    width: auto;
    height: auto;
    vertical-align: middle;
}

hr {
    border: 0;
    border-bottom: 1px solid var(--ean-border);
    margin: 2rem 0;
}

blockquote {
    border-left: 4px solid var(--ean-primary);
    margin: 1.5rem 0;
    padding: 0.5rem 1rem 0.5rem 1.5rem;
    color: var(--ean-text);
    background: #fbfdfc;
    font-style: italic;
}

table {
    width: auto !important;
    max-width: min(100%, 650px) !important;
    height: auto !important;
    border-collapse: collapse;
    margin: 1.25rem 0;
    border: 1px solid #dedede;
    font-size: 0.92rem;
}

tr {
    max-width: 100% !important;
    height: auto !important;
}

th, td {
    max-width: 320px !important;
    height: auto !important;
    padding: 0.35rem 0.5rem !important;
    border: 1px solid #dedede;
    text-align: left;
    vertical-align: middle;
    line-height: 1.4;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

th {
    background-color: #f2f5f4;
    font-weight: 600;
    color: var(--ean-text-dark);
}

tr:nth-child(even) td {
    background-color: #fafbfc;
}

/* ==========================================================================
   3. LAYOUT WRAPPERS & SURROUND
   ========================================================================== */
#g-page-surround {
    background: var(--ean-surround-bg);
    margin: 1.25rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-radius: 4px;
    overflow: hidden;
}

@media (max-width: 50.99rem) {
    #g-page-surround {
        margin: 0;
        border-radius: 0;
        box-shadow: none;
    }
}

.g-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-horizontal-paddings {
    padding-left: 5%;
    padding-right: 5%;
}

@media (min-width: 75rem) {
    .section-horizontal-paddings {
        padding-left: 8%;
        padding-right: 8%;
    }
}

@media (max-width: 50.99rem) {
    .section-horizontal-paddings {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* ==========================================================================
   4. NAVIGATION & HEADER (#g-navigation matching Gantry Flux)
   ========================================================================== */
#g-navigation {
    background: transparent;
    color: #ffffff;
    position: relative;
    z-index: 200;
    width: 100%;
}

#g-navigation .nav-grid {
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.75rem 2.5rem;
    margin: 0;
    gap: 1.5rem;
}

/* Logo Block (size-26) */
#g-navigation .logo-block {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

#g-navigation .logo-block .g-content {
    margin: 0;
    padding: 0;
}

#g-navigation .g-logo {
    display: block;
    text-align: center;
    position: relative;
    z-index: 1;
    color: #ffffff;
    box-shadow: none !important;
}

#g-navigation .g-logo img {
    max-height: 5rem;
    height: auto;
    width: auto;
    display: block;
    object-fit: contain;
}

/* Menu Block (size-56) */
#g-navigation .menu-block {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
}

#g-navigation .menu-block .g-content {
    margin: 0;
    padding: 0;
}

/* Search Block (size-18 matching Gantry Flux particle) */
#g-navigation .search-block {
    flex: 0 0 auto;
    width: 175px;
    display: flex;
    justify-content: flex-end;
}

#g-navigation .search-block .g-content {
    margin: 0;
    padding: 0;
    width: 100%;
}

/* Navigation Element */
.g-main-nav {
    display: flex;
    align-items: center;
    white-space: nowrap;
    position: relative;
    z-index: 20;
}

/* Top Level Menu */
.g-main-nav .g-toplevel {
    display: flex;
    flex-flow: row nowrap;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    gap: 0.35rem;
}

.g-main-nav .g-toplevel > li {
    position: relative;
    display: inline-block;
    cursor: pointer;
    transition: background 0.2s ease-out;
    margin: 0;
    padding: 0;
}

.g-main-nav .g-toplevel > li > .g-menu-item-container {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.625rem 0.85rem;
    font-family: var(--ean-font-headings);
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.25s ease;
    white-space: nowrap;
    line-height: 1.3;
}

/* Hover state */
.g-main-nav .g-toplevel > li:hover > .g-menu-item-container {
    color: rgba(255, 255, 255, 0.7);
    background: transparent;
}

/* Active state (matches Joomla Gantry preset) */
.g-main-nav .g-toplevel > li.active > .g-menu-item-container,
.g-main-nav .g-toplevel > li.current-menu-item > .g-menu-item-container,
.g-main-nav .g-toplevel > li.current-menu-ancestor > .g-menu-item-container,
.g-main-nav .g-toplevel > li.current_page_item > .g-menu-item-container {
    background-color: #ffe6a3 !important;
    color: #232529 !important;
    border-radius: 4px;
}

/* Parent indicator arrow on top level */
.g-main-nav .g-toplevel > li.g-parent .g-menu-parent-indicator {
    display: inline-block;
    vertical-align: middle;
    margin-left: 0.35rem;
    font-size: 0.85rem;
    color: inherit;
    line-height: 1;
}

/* Non-clickable parent menu items */
.g-main-nav .g-toplevel > li.g-parent.g-non-clickable > .g-menu-item-container,
.g-main-nav .g-dropdown li.g-parent.g-non-clickable > .g-menu-item-container {
    cursor: default;
}

.g-main-nav .g-toplevel > li.g-parent .g-menu-parent-indicator i {
    color: inherit;
    opacity: 0.9;
}

/* Dropdown Submenu (.g-dropdown matching Gantry Flux) */
.g-main-nav .g-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 250px;
    background: #ffffff;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    border-radius: 0.6rem;
    list-style: none;
    margin: 8px 0 0 0;
    padding: 0.625rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.25s ease-out, transform 0.25s ease-out, visibility 0.25s ease-out;
    z-index: 250;
    border: none;
}

/* Invisible bridge so mouse hover doesn't break between parent & dropdown */
.g-main-nav .g-dropdown::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
    display: block;
}

.g-main-nav .g-toplevel > li:hover > .g-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Sublevel Items */
.g-main-nav .g-dropdown li {
    position: relative;
    margin: 0;
    padding: 0;
    display: block;
}

.g-main-nav .g-dropdown li > .g-menu-item-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.55rem 1.25rem;
    font-family: var(--ean-font-headings);
    font-size: 0.95rem;
    font-weight: 600;
    color: #8e9dab;
    text-decoration: none;
    transition: all 0.2s ease;
    line-height: 1.35;
    border-radius: 0.4rem;
    white-space: normal;
}

.g-main-nav .g-dropdown li:hover > .g-menu-item-container,
.g-main-nav .g-dropdown li.active > .g-menu-item-container,
.g-main-nav .g-dropdown li.current-menu-item > .g-menu-item-container {
    color: #000000;
    background: #ffffff;
}

/* Joomla iconic underline on sublevel title hover */
.g-main-nav .g-dropdown li:hover > .g-menu-item-container .g-menu-item-title,
.g-main-nav .g-dropdown li.active > .g-menu-item-container .g-menu-item-title {
    border-bottom: 2px solid #000000;
}

/* Nested flyout dropdown (Levels 2, 3+) */
.g-main-nav .g-dropdown .g-dropdown {
    top: 0;
    left: 100%;
    margin-top: 0;
    margin-left: 2px;
    transform: translateX(6px);
}

.g-main-nav .g-dropdown li:hover > .g-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.g-main-nav .g-dropdown li.g-parent .g-menu-parent-indicator {
    font-size: 0.8rem;
    opacity: 0.6;
    margin-left: 0.75rem;
}

/* Quick Search (.g-search matching Gantry Flux particle) */
.g-search {
    position: relative;
    width: 100%;
}

.g-search form {
    position: relative;
    margin: 0;
    display: flex;
    align-items: center;
}

.g-search form::before {
    content: "\f002";
    font-family: FontAwesome;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #ffffff;
    font-size: 0.95rem;
    pointer-events: none;
    width: 20px;
    text-align: left;
}

.g-search input[type="search"],
.g-search input[type="text"] {
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4) !important;
    border-radius: 0 !important;
    padding: 0.35rem 0.5rem 0.35rem 1.6rem !important;
    color: #ffffff !important;
    font-size: 0.95rem !important;
    font-family: var(--ean-font-headings);
    width: 100%;
    outline: none !important;
    box-shadow: none !important;
    transition: border-color 0.2s ease;
}

.g-search input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.g-search input:focus {
    border-bottom-color: #ffffff !important;
}

/* Mobile Toggle */
.mobile-nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: #ffffff;
    font-size: 1.35rem;
    padding: 0.4rem 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-nav-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

@media (max-width: 68rem) {
    #g-navigation .nav-grid {
        flex-wrap: wrap;
        padding: 0.75rem 1rem;
        gap: 0.75rem;
    }

    #g-navigation .logo-block {
        order: 1;
    }

    .mobile-nav-toggle {
        display: block;
        order: 2;
    }

    #g-navigation .search-block {
        order: 3;
        width: 100%;
        margin-top: 0.5rem;
    }

    #g-navigation .menu-block {
        order: 4;
        width: 100%;
    }

    .g-main-nav {
        display: none;
        width: 100%;
        background: #8eaba0;
        border-radius: 6px;
        padding: 1rem;
        margin-top: 0.5rem;
    }

    .g-main-nav.active {
        display: block;
    }

    .g-main-nav .g-toplevel {
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
    }

    .g-main-nav .g-toplevel > li > .g-menu-item-container {
        padding: 0.75rem 1rem;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }

    .g-main-nav .g-dropdown {
        position: static;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.95);
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        padding-left: 1rem;
        border-radius: 4px;
        margin: 0.25rem 0 0.5rem;
    }

    .g-main-nav .g-dropdown.active {
        display: block;
    }

    .g-main-nav .g-dropdown .g-dropdown {
        position: static;
        padding-left: 1.5rem;
    }
}

/* ==========================================================================
   5. HERO BANNER SECTION (#g-above)
   ========================================================================== */
#g-above {
    position: relative;
    background-color: #d2c0db;
    background-image: url('assets/images/hero-bg.png');
    background-repeat: no-repeat;
    background-position: left bottom;
    background-size: cover;
    color: #232529;
    padding: 4.5rem 0;
    overflow: hidden;
}

@media (max-width: 50.99rem) {
    #g-above {
        padding: 2.5rem 0;
    }
}

.hero-grid {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.hero-content-box {
    width: 55%;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    border-radius: 8px;
    padding: 2rem 2.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

@media (max-width: 60rem) {
    .hero-content-box {
        width: 80%;
    }
}

@media (max-width: 50.99rem) {
    .hero-content-box {
        width: 100%;
        padding: 1.5rem;
    }
}

.hero-title {
    font-size: 2.1rem;
    font-weight: 700;
    color: var(--ean-text-dark);
    margin: 0 0 1rem 0;
    line-height: 1.25;
}

@media (max-width: 50.99rem) {
    .hero-title {
        font-size: 1.6rem;
    }
}

.hero-description {
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--ean-text);
    margin: 0;
}

/* ==========================================================================
   6. MAIN CONTAINER & 2-COLUMN LAYOUT (#g-container-main)
   ========================================================================== */
#g-container-main {
    background: var(--ean-body-bg);
    padding: 2.5rem 0 3.5rem 0;
    min-height: 500px;
}

.main-layout-grid {
    display: flex;
    gap: 2.5rem;
    align-items: flex-start;
}

@media (max-width: 60rem) {
    .main-layout-grid {
        flex-direction: column;
        gap: 2rem;
    }
}

.mainbar {
    flex: 1 1 73%;
    min-width: 0;
}

.aside-sidebar {
    flex: 0 0 27%;
    min-width: 260px;
}

@media (max-width: 60rem) {
    .mainbar, .aside-sidebar {
        flex: 1 1 100%;
        width: 100%;
    }
}

/* Page Header */
.page-header {
    border-bottom: 2px solid var(--ean-border);
    margin-bottom: 2rem;
    padding-bottom: 0.75rem;
}

.page-header h1, .page-header h2 {
    margin: 0;
    font-size: 2rem;
    color: var(--ean-text-dark);
}

.page-header p.description {
    margin: 0.5rem 0 0 0;
    color: var(--ean-text-light);
    font-size: 1.05rem;
}

/* ==========================================================================
   7. POST CARDS & ARTICLES LOOP
   ========================================================================== */
.post-item {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--ean-border);
    position: relative;
}

.post-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.post-title {
    font-size: 1.65rem;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.post-title a {
    color: var(--ean-text-dark);
}

.post-title a:hover {
    color: var(--ean-primary);
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--ean-text-light);
    margin-bottom: 1rem;
}

.post-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.post-meta a {
    color: var(--ean-text);
}

.post-meta a:hover {
    color: var(--ean-primary);
}

.meta-category {
    background: #f0f6f4;
    color: var(--ean-primary-dark) !important;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
}

.post-thumbnail {
    margin: 1rem 0 1.25rem 0;
    border-radius: 6px;
    overflow: hidden;
    max-width: 450px;
}

.post-thumbnail img {
    max-width: 450px !important;
    max-height: 450px !important;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
    display: block;
}

.post-thumbnail:hover img {
    transform: scale(1.02);
}

.post-excerpt {
    font-size: 1rem;
    line-height: 1.65;
    color: var(--ean-text);
    margin-bottom: 1.25rem;
}

/* Buttons */
.button, .btn, .wp-block-button__link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--ean-font-headings);
    font-weight: 700;
    font-size: 0.75rem;
    color: #ffffff !important;
    background: var(--ean-primary);
    padding: 0.4rem 1.25rem;
    border-radius: 0.4rem;
    border: none;
    cursor: pointer;
    text-shadow: none;
    transition: all 0.2s ease;
}

.button:hover, .btn:hover, .wp-block-button__link:hover {
    background: linear-gradient(#ffedbd, #7dbda4) !important;
    color: #ffffff !important;
    box-shadow: none;
}

.button-outline {
    background: transparent !important;
    color: var(--ean-primary) !important;
    border: 2px solid var(--ean-primary) !important;
    border-radius: 0.4rem;
}

.button-outline:hover {
    background: var(--ean-primary) !important;
    color: #ffffff !important;
}

/* Pagination */
.pagination {
    margin: 2.5rem 0 1rem 0;
}

.pagination ul, .nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.pagination a, .pagination span,
.nav-links a, .nav-links span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 0.75rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ean-text);
    background: #ffffff;
    border: 1px solid var(--ean-border-dark);
}

.pagination a:hover, .nav-links a:hover {
    background: var(--ean-primary);
    color: #ffffff;
    border-color: var(--ean-primary);
}

.pagination .current, .nav-links .current {
    background: var(--ean-primary);
    color: #ffffff;
    border-color: var(--ean-primary);
}

/* Single Post & Page */
.single-post-article, .page-article {
    background: #ffffff;
}

.single-post-title {
    font-size: 2.2rem;
    margin: 0 0 0.75rem 0;
    line-height: 1.25;
}

.single-post-content {
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 1.5rem 0;
}

.single-post-content img,
.entry-content img,
.page-content img,
.post-excerpt img,
.post-item img,
article img,
figure img,
.wp-block-image img {
    max-width: min(100%, 450px) !important;
    max-height: 450px !important;
    width: auto;
    height: auto;
    object-fit: contain;
    margin: 1rem 0;
    border-radius: 4px;
}

/* Images inside table cells must fit compactly so tables do not expand huge */
table img,
tr img,
td img,
th img,
.single-post-content td img,
.entry-content td img,
article td img {
    max-width: min(100%, 140px) !important;
    max-height: 110px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
    margin: 0.25rem auto !important;
}

.wp-block-image,
figure.wp-block-image {
    max-width: 450px;
}

/* Image Alignments & Captions (max 450px) */
img.alignleft, .alignleft img, a img.alignleft {
    float: left;
    margin: 0.5rem 1.5rem 1rem 0;
}

img.alignright, .alignright img, a img.alignright {
    float: right;
    margin: 0.5rem 0 1rem 1.5rem;
}

img.aligncenter, .aligncenter img, a img.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    max-width: 450px;
    margin-bottom: 1.5rem;
}

.wp-caption-text {
    font-size: 0.85rem;
    color: var(--ean-text-light);
    margin-top: 0.5rem;
    text-align: center;
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--ean-border);
    gap: 1rem;
}

/* ==========================================================================
   8. SIDEBAR & WIDGETS (#g-aside)
   ========================================================================== */
.widget {
    background: #fbfdfc;
    border: 1px solid var(--ean-border);
    border-radius: 6px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.widget-title, h3.g-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ean-text-dark);
    margin: 0 0 1rem 0;
    padding-bottom: 0.65rem;
    border-bottom: 2px solid var(--ean-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.widget ul li {
    padding: 0.45rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget ul li a {
    color: var(--ean-text);
    font-weight: 500;
}

.widget ul li a:hover {
    color: var(--ean-primary);
    padding-left: 0.25rem;
}

/* Next Events Card (Recreating Gantry box1) */
.box1, .widget_ean_next_events {
    background: linear-gradient(135deg, #7dbda4, #62af91) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px;
    box-shadow: 0 6px 16px rgba(125, 189, 164, 0.35);
}

.box1 .widget-title, .widget_ean_next_events .widget-title,
.box1 h3.g-title, .widget_ean_next_events h3.g-title {
    color: #ffe6a3 !important;
    border-bottom: 2px solid rgba(255, 230, 163, 0.5) !important;
}

.box1 p, .widget_ean_next_events p,
.box1 li, .widget_ean_next_events li {
    color: rgba(255, 255, 255, 0.95) !important;
}

.box1 a, .widget_ean_next_events a {
    color: #ffffff !important;
    text-decoration: underline;
}

.box1 a:hover, .widget_ean_next_events a:hover {
    color: #ffe6a3 !important;
}

.box1 .btn-register {
    display: inline-block;
    margin-top: 0.75rem;
    background: #ffe6a3 !important;
    color: #232529 !important;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.45rem 1.25rem;
    border-radius: 0.4rem;
    text-decoration: none !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
}

.box1 .btn-register:hover {
    background: #ffffff !important;
    color: #7dbda4 !important;
}

/* Reset generic .widget card wrapper around EAN Next Events & LinkedIn widgets */
.widget.ean-next-events-widget-wrapper,
.widget.ean-linkedin-widget-wrapper {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    margin-bottom: 1.5rem;
}

/* Next Events widget: free rich text + dynamic lists */
.ean-next-events-box {
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 0;
}

.ean-next-events-box .widget-title {
    margin-top: 0;
}

.ean-next-events-box .ean-ne-text p {
    margin: 0 0 0.75rem 0;
}

.ean-next-events-box .ean-ne-text p:last-child {
    margin-bottom: 0;
}

.ean-next-events-box .ean-ne-text ul {
    list-style: disc;
    margin: 0 0 0.75rem 1.25rem;
    padding: 0;
}

.ean-next-events-box .ean-ne-text ol {
    list-style: decimal;
    margin: 0 0 0.75rem 1.25rem;
    padding: 0;
}

.ean-next-events-box .ean-ne-text li {
    padding: 0.15rem 0;
    border-bottom: none;
}

.ean-next-events-box .ean-ne-register {
    margin: 0;
}

.ean-next-events-box .ean-ne-separator {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    margin: 1rem 0;
}

.ean-next-events-box .ean-ne-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.95rem;
}

.ean-next-events-box .ean-ne-list > li {
    padding: 0;
    border-bottom: none;
    margin-bottom: 0.4rem;
}

.ean-next-events-box .ean-ne-list > li:last-child {
    margin-bottom: 0;
}

.ean-next-events-box .ean-ne-groups ul {
    list-style: disc;
    padding-left: 1.25rem;
    margin: 0.35rem 0 0 0;
}

.ean-next-events-box .ean-ne-groups ul li {
    padding: 0.1rem 0;
    border-bottom: none;
}

/* LinkedIn widget: simple clickable image */
.ean-linkedin-image {
    margin: 0;
    text-align: center;
}

.ean-linkedin-image a {
    display: inline-block;
    max-width: 100%;
    text-decoration: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.ean-linkedin-image a:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.ean-linkedin-image img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.ean-linkedin-fallback {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #0a66c2;
    color: #ffffff;
    font-weight: 600;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
}

.ean-linkedin-fallback .fa {
    font-size: 1.4em;
}

/* ==========================================================================
   8b. CATEGORY DISPLAY OPTIONS: PUBLICATION DATES & SPECIAL LINKS LIST
   Matching original Joomla com_content (newsletters.html / flux-joomla_9.css)
   ========================================================================== */
dl.article-info {
    margin: -0.25rem 0 1rem 0;
    padding: 0;
}

dl.article-info dt {
    display: none;
}

dl.article-info dd {
    display: inline-block;
    margin: 0;
    padding-right: 1.5rem;
    color: #605c72;
    font-size: 0.95rem;
    line-height: 1.8;
}

dl.article-info dd i {
    color: var(--ean-primary);
    margin-right: 0.35rem;
}

.items-more {
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

.items-more ol.nav.nav-tabs.nav-stacked {
    list-style: none;
    margin: 0 0 20px 0;
    padding: 0;
    border-bottom: 0;
}

.items-more .nav-tabs.nav-stacked > li {
    float: none;
    margin-bottom: -1px;
    line-height: 20px;
}

.items-more .nav-tabs.nav-stacked > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    margin-right: 0;
    line-height: 20px;
    border: 0 none;
    border-radius: 0;
    color: var(--ean-primary);
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.items-more .nav-tabs.nav-stacked > li > a .item-more-title::before {
    color: #7dbda4;
    font-family: FontAwesome;
    content: "\f054";
    margin-right: 0.5rem;
    font-size: 0.85em;
}

.items-more .nav-tabs.nav-stacked > li > a:hover,
.items-more .nav-tabs.nav-stacked > li > a:focus {
    background-color: #eeeeee;
    color: var(--ean-primary-hover);
    text-decoration: none;
}

.items-more .nav-tabs.nav-stacked > li > a .item-more-date {
    color: #605c72;
    font-size: 0.85rem;
    margin-left: 1rem;
    white-space: nowrap;
}

.items-more .nav-tabs.nav-stacked > li > a .item-more-date i {
    color: var(--ean-primary);
    margin-right: 0.3rem;
}

/* ==========================================================================
   9. FOOTER (#g-footer matching original Gantry Flux)
   ========================================================================== */
#g-footer {
    background: var(--ean-surround-bg);
    color: #605c72;
    border-top: none;
    position: relative;
}

#g-footer.section-vertical-paddings {
    padding-top: 3.5vw;
    padding-bottom: 3.5vw;
}

@media (max-width: 50.99rem) {
    #g-footer.section-vertical-paddings {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }
}

.footer-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

@media (max-width: 50.99rem) {
    .footer-grid {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
}

.footer-contact {
    flex: 0 0 71%;
    max-width: 71%;
}

@media (max-width: 50.99rem) {
    .footer-contact {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

.footer-contact h2.g-title {
    margin: 0 0 0.5rem;
    padding: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1.25rem;
    font-weight: 900;
    color: #ffffff;
}

.footer-contact h2.g-title.g-blockcontent-headline {
    margin: 0 0 0.75rem;
    font-size: 1.15rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #ffffff;
    line-height: 1.4;
}

.footer-contact .g-blockcontent-description {
    font-family: 'EAN Digits', 'Actor', sans-serif;
    font-size: 1.05rem;
    font-weight: 300;
    color: #605c72;
    margin: 0;
    line-height: 1.5;
}

.footer-contact a {
    color: #605c72;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-contact a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Scroll To Top button matching Gantry Flux totop particle */
.footer-totop {
    flex: 0 0 29%;
    max-width: 29%;
    text-align: right;
}

@media (max-width: 50.99rem) {
    .footer-totop {
        flex: 0 0 100%;
        max-width: 100%;
        text-align: center;
    }
}

#g-totop {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: transparent;
    color: #ffffff;
    padding: 0.5rem 0;
    font-family: inherit;
    font-weight: 800;
    font-size: 1.15rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    border: none;
    box-shadow: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

#g-totop:hover {
    color: #ffffff;
    opacity: 0.8;
    transform: translateY(-2px);
}

#g-totop i {
    font-size: 1.25rem;
}

/* ==========================================================================
   10. SPECIAL JOOMLA MIGRATION CLASSES & WEBLINKS
   ========================================================================== */
.mosaic {
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.mosaic-item {
    flex-basis: 10rem;
    padding: 0 0.5rem 1rem 0.5rem;
}

.table-th-nowrap, .table-td-nowrap {
    white-space: nowrap;
}

.hidden {
    display: none !important;
}

/* Weblinks (Joomla com_weblinks replica) */

/* 1. Categories list (/links/) */
.ean-weblinks-categories > div {
    margin: 0 0 1.25rem 0;
}

.ean-weblinks-categories h3.page-header.item-title {
    margin: 0.3125rem 0;
    padding-bottom: 0.6rem;
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 1.4;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.ean-weblinks-categories h3.page-header.item-title a {
    color: var(--link-color, #2361a1);
    text-decoration: none;
    transition: color 0.15s ease;
}

.ean-weblinks-categories h3.page-header.item-title a:hover {
    color: var(--ean-primary);
}

.ean-weblinks-categories .category-desc,
.ean-weblinks-category .category-desc {
    margin: 0.5rem 0 0 0;
}

/* 2. Category view (/links/{category}/) */
.ean-weblinks-category .weblink-category-title {
    font-size: 1.8rem;
    font-weight: 400;
    line-height: 1.4;
    margin: 0 0 1.25rem 0;
}

.ean-weblinks-category ul.category.list-striped {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.ean-weblinks-category ul.category.list-striped li {
    margin: 0;
    padding: 0.45rem 0.6rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    background-color: transparent;
    transition: background-color 0.15s ease;
}

.ean-weblinks-category ul.category.list-striped li:nth-child(odd),
.ean-weblinks-category ul.category.list-striped li.cat-list-row0 {
    background-color: #fcfcfc;
}

.ean-weblinks-category ul.category.list-striped li:hover {
    background-color: #f2f2f2;
}

.ean-weblinks-category .list-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ean-weblinks-category .list-title img.weblink-icon {
    width: 16px !important;
    height: 16px !important;
    max-width: 16px !important;
    flex-shrink: 0;
    margin: 0 !important;
    border: 0;
    box-shadow: none;
}

.ean-weblinks-category .list-title a.category {
    color: var(--link-color, #2361a1);
    text-decoration: none;
    transition: color 0.15s ease;
}

.ean-weblinks-category .list-title a.category:hover {
    color: var(--ean-primary);
    text-decoration: underline;
}

/* Docman Download Button */
.docman_download, .ean-download-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--ean-primary);
    color: #ffffff !important;
    padding: 0.45rem 1.25rem;
    border-radius: 0.4rem;
    font-weight: 700;
    font-size: 0.8rem;
    margin: 0.5rem 0;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.docman_download:hover, .ean-download-button:hover {
    background: linear-gradient(#ffedbd, #7dbda4) !important;
    color: #ffffff !important;
}

/* ==========================================================================
   11. CONTENT TABLES & TYPOGRAPHY ENHANCEMENTS
   ========================================================================== */
.entry-content table,
.single-post-content table,
.page-content table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    border: 1px solid #dedede;
    background-color: transparent;
}

.entry-content table th,
.entry-content table td,
.single-post-content table th,
.single-post-content table td,
.page-content table th,
.page-content table td {
    padding: 8px 12px;
    border-top: 1px solid #dedede;
    text-align: left;
    vertical-align: top;
    line-height: 1.5;
}

.entry-content table th,
.single-post-content table th,
.page-content table th {
    font-weight: 700;
    background: #f8faf9;
    color: var(--ean-text-dark);
}

.entry-content table tr:nth-child(even) td,
.single-post-content table tr:nth-child(even) td,
.page-content table tr:nth-child(even) td {
    background: rgba(163, 199, 185, 0.05);
}

.entry-content table img {
    margin: 0;
    vertical-align: middle;
}

/* ==========================================================================
   12. CATEGORY DOCUMENTS TABLE (JOOMLA CATEGORY-LIST STYLE)
   ========================================================================== */
.category-list {
    margin: 1.5rem 0 2rem 0;
    width: 100%;
    overflow-x: auto;
}

table.category.table {
    width: 100%;
    margin-bottom: 20px;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #dddddd;
    border-radius: 4px;
    background-color: #ffffff;
    font-size: 0.95rem;
}

table.category.table th,
table.category.table td {
    padding: 10px 14px;
    line-height: 1.5;
    text-align: left;
    vertical-align: middle;
    border-top: 1px solid #dddddd;
    border-left: 1px solid #dddddd;
}

table.category.table th:first-child,
table.category.table td:first-child {
    border-left: 0;
}

table.category.table thead:first-child tr:first-child th {
    border-top: 0;
    background-color: #f7f9f8;
    color: #333333;
    font-weight: 700;
}

table.category.table thead tr th:first-child {
    border-top-left-radius: 4px;
}

table.category.table thead tr th:last-child {
    border-top-right-radius: 4px;
}

table.category.table thead th a.sort-header {
    color: #333333;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: color 0.15s ease;
}

table.category.table thead th a.sort-header:hover,
table.category.table thead th a.sort-header.is-active {
    color: var(--ean-primary);
}

table.category.table td.list-title a {
    color: var(--link-color, #2361a1);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.15s ease;
}

table.category.table td.list-title a:hover {
    color: var(--ean-primary);
    text-decoration: underline;
}

table.category.table td.list-date {
    width: 190px;
    white-space: nowrap;
    color: #666666;
    font-size: 0.875rem;
}

table.category.table-striped tbody tr:nth-child(even) td,
table.category.table-striped tbody tr.cat-list-row1 td {
    background-color: #fbfcfb;
}

table.category.table-hover tbody tr:hover td {
    background-color: #f2f7f5;
}

/* ==========================================================================
   13. LARGE TABLE CELLS EXCEPTION (UP TO 200x160 RESPONSIVE)
   ========================================================================== */
.ean-large-table-cells table,
body.ean-large-table-cells table {
    width: 100% !important;
    max-width: min(100%, 920px) !important;
}

.ean-large-table-cells tr,
body.ean-large-table-cells tr {
    max-width: 100% !important;
}

.ean-large-table-cells th,
.ean-large-table-cells td,
body.ean-large-table-cells th,
body.ean-large-table-cells td {
    max-width: 260px !important;
    min-width: 70px;
    height: auto !important;
    padding: 6px 8px !important;
    text-align: center;
    vertical-align: middle;
}

.ean-large-table-cells table img,
.ean-large-table-cells tr img,
.ean-large-table-cells td img,
.ean-large-table-cells th img,
body.ean-large-table-cells table img,
body.ean-large-table-cells tr img,
body.ean-large-table-cells td img,
body.ean-large-table-cells th img,
body.ean-large-table-cells .entry-content td img,
body.ean-large-table-cells .single-post-content td img,
body.ean-large-table-cells article td img {
    max-width: min(100%, 200px) !important;
    max-height: 160px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
    margin: 4px auto !important;
    display: inline-block;
}

/* Responsive horizontal scrolling if table exceeds viewport on tablets / mobiles */
.ean-large-table-cells .entry-content,
.ean-large-table-cells .post-content,
.ean-large-table-cells .single-post-content,
body.ean-large-table-cells .entry-content,
body.ean-large-table-cells .single-post-content {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 600px) {
    .ean-large-table-cells th,
    .ean-large-table-cells td,
    body.ean-large-table-cells th,
    body.ean-large-table-cells td {
        max-width: 140px !important;
        padding: 4px !important;
    }

    .ean-large-table-cells td img,
    .ean-large-table-cells th img,
    body.ean-large-table-cells td img,
    body.ean-large-table-cells th img {
        max-width: min(100%, 130px) !important;
        max-height: 110px !important;
    }
}

/* ==========================================================================
   14. CATEGORY ARTICLES TABLE GRID (MATCHING EAN TABLE STYLES)
   ========================================================================== */
table.ean-category-table-grid {
    width: 100%;
    margin-bottom: 20px;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #dddddd;
    border-radius: 4px;
    background-color: #ffffff;
    font-size: 0.95rem;
    table-layout: fixed;
    overflow: hidden;
}

table.ean-category-table-grid td.ean-grid-cell {
    padding: 14px 10px;
    line-height: 1.5;
    text-align: center;
    vertical-align: top;
    border-top: 1px solid #dddddd;
    border-left: 1px solid #dddddd;
    background-color: #ffffff;
    transition: background-color 0.15s ease;
    box-sizing: border-box;
}

table.ean-category-table-grid tr:first-child td.ean-grid-cell {
    border-top: 0;
}

table.ean-category-table-grid td.ean-grid-cell:first-child {
    border-left: 0;
}

table.ean-category-table-grid tbody td.ean-grid-cell:hover {
    background-color: #f2f7f5;
}

table.ean-category-table-grid td.ean-grid-cell-empty {
    background-color: #fbfcfb;
    pointer-events: none;
}

table.ean-category-table-grid .ean-grid-item-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-decoration: none !important;
    color: inherit;
    width: 100%;
    height: 100%;
}

table.ean-category-table-grid .ean-grid-item-link:focus {
    outline: 2px solid var(--ean-primary, #008272);
    outline-offset: 2px;
}

table.ean-category-table-grid .ean-grid-item-thumb {
    width: 100%;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    overflow: hidden;
}

table.ean-category-table-grid .ean-grid-thumb-img {
    max-width: 130px;
    max-height: 100px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    transition: transform 0.15s ease;
}

table.ean-category-table-grid td.ean-grid-cell:hover .ean-grid-thumb-img {
    transform: scale(1.03);
}

table.ean-category-table-grid .ean-grid-thumb-placeholder {
    width: 64px;
    height: 64px;
    background: #f7f9f8;
    border: 1px dashed #ccd0d4;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #7dbda4;
    margin: 0 auto;
}

table.ean-category-table-grid .ean-grid-item-title {
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.4;
    color: var(--link-color, #2361a1);
    text-align: center;
    margin: 0;
    width: 100%;
    word-break: break-word;
    overflow-wrap: break-word;
    transition: color 0.15s ease;
}

table.ean-category-table-grid td.ean-grid-cell:hover .ean-grid-item-title,
table.ean-category-table-grid .ean-grid-item-link:hover .ean-grid-item-title {
    color: var(--ean-primary, #008272);
    text-decoration: underline;
}

table.ean-category-table-grid .ean-grid-item-date {
    font-size: 0.825rem;
    color: #666666;
    margin-top: 6px;
    text-align: center;
}

/* Modifier: Large table cells authorized (up to 200x160) */
.ean-large-table-cells table.ean-category-table-grid .ean-grid-item-thumb {
    height: 160px;
}

.ean-large-table-cells table.ean-category-table-grid .ean-grid-thumb-img {
    max-width: 200px;
    max-height: 155px;
}

/* Responsive (Tablets & Mobiles) */
@media (max-width: 768px) {
    table.ean-category-table-grid {
        display: block;
        overflow: hidden;
    }
    table.ean-category-table-grid tbody {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        width: 100%;
    }
    table.ean-category-table-grid tr {
        display: contents;
    }
    table.ean-category-table-grid td.ean-grid-cell {
        border: 0;
        border-right: 1px solid #dddddd;
        border-bottom: 1px solid #dddddd;
        width: 100% !important;
        padding: 10px 8px;
    }
    table.ean-category-table-grid td.ean-grid-cell:nth-child(2n) {
        border-right: 0;
    }
    table.ean-category-table-grid td.ean-grid-cell-empty {
        display: none;
    }
    table.ean-category-table-grid .ean-grid-item-thumb {
        height: 90px;
    }
    table.ean-category-table-grid .ean-grid-thumb-img {
        max-width: 110px;
        max-height: 85px;
    }
    table.ean-category-table-grid .ean-grid-item-title {
        font-size: 0.875rem;
    }
}

@media (max-width: 420px) {
    table.ean-category-table-grid tbody {
        grid-template-columns: 1fr;
    }
    table.ean-category-table-grid td.ean-grid-cell {
        border-right: 0;
    }
}



/* ==========================================================================
   15. RICH CATEGORY DESCRIPTIONS (headings + tables matching site tables)
   ========================================================================== */
.ean-rich-description {
    margin: 0 0 2rem 0;
    color: var(--ean-text);
}

.ean-rich-description h1,
.ean-rich-description h2 {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--ean-text-dark);
    text-align: left !important;
    margin: 2rem 0 0.9rem 0;
}

.ean-rich-description h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ean-text-dark);
    margin: 1.5rem 0 0.75rem 0;
}

.ean-rich-description > :first-child {
    margin-top: 0;
}

/* Neutralize legacy inline fonts (Joomla / Word pastes) */
.ean-rich-description h1 [style*="font-size"],
.ean-rich-description h2 [style*="font-size"],
.ean-rich-description h3 [style*="font-size"],
.ean-rich-description [style*="font-family"] {
    font-size: inherit !important;
    font-family: inherit !important;
}

/* Tables: same look as the documents / surveys tables (table.category.table) */
.ean-rich-description table {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #dddddd;
    border-radius: 4px;
    background-color: #ffffff;
    font-size: 0.95rem;
    margin: 1rem 0 2rem 0;
}

.ean-rich-description th,
.ean-rich-description td {
    width: auto !important;
    max-width: none !important;
    height: auto !important;
    padding: 12px 16px !important;
    border: 0;
    border-top: 1px solid #dddddd;
    border-left: 1px solid #dddddd;
    text-align: left;
    vertical-align: top;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.ean-rich-description tr:first-child > th,
.ean-rich-description tr:first-child > td {
    border-top: 0;
}

.ean-rich-description th:first-child,
.ean-rich-description td:first-child {
    border-left: 0;
}

.ean-rich-description th {
    background-color: #f7f9f8;
    color: #333333;
    font-weight: 700;
}

.ean-rich-description tbody tr:nth-child(even) td {
    background-color: #fbfcfb;
}

.ean-rich-description tbody tr:hover td {
    background-color: #f2f7f5;
}

.ean-rich-description td p,
.ean-rich-description td div {
    margin: 0;
    text-align: left !important;
}

.ean-rich-description td a {
    color: var(--link-color, #2361a1);
    text-decoration: none;
}

.ean-rich-description td a:hover {
    color: var(--ean-primary);
    text-decoration: underline;
}

/* Role label in a cell (e.g. CHAIRPERSON, TREASURER...) */
.ean-rich-description .ean-role {
    display: block;
    margin-bottom: 4px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ean-primary-dark);
}

@media (max-width: 600px) {
    .ean-rich-description table,
    .ean-rich-description tbody,
    .ean-rich-description tr,
    .ean-rich-description td,
    .ean-rich-description th {
        display: block;
        width: 100% !important;
        box-sizing: border-box;
    }
    .ean-rich-description td,
    .ean-rich-description th {
        border-left: 0;
        border-top: 1px solid #dddddd;
    }
    .ean-rich-description tr:first-child > td:first-child {
        border-top: 0;
    }
}
