:is(body.page, .editor-styles-wrapper) .lt-agenda-page {
    box-sizing: border-box;
    max-width: 1120px;
    margin: 0 auto;
    padding: clamp(3rem, 6vw, 5rem) 24px !important;
}
:is(body.page, .editor-styles-wrapper) .lt-agenda-header { text-align: center; padding: 0 !important; margin: 0 0 3rem; }
:is(body.page, .editor-styles-wrapper) .lt-agenda-header h1 {
    display: inline-block;
    background: #fbbc56;
    padding: .1em .3em;
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1.1;
    margin: 0 0 1.25rem;
}
:is(body.page, .editor-styles-wrapper) .lt-agenda-header p { max-width: 740px; margin: 0 auto; font-size: 1.15rem; line-height: 1.6; }
:is(body.page, .editor-styles-wrapper) .lt-agenda-page > h2 { font-size: clamp(1.5rem, 3vw, 2.3rem); line-height: 1.2; margin: 0 0 1.5rem; }
:is(body.page, .editor-styles-wrapper) .lt-agenda-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding: 0 !important; }
:is(body.page, .editor-styles-wrapper) .lt-agenda-event {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    min-width: 0;
    margin: 0;
    padding: clamp(1.25rem, 2.5vw, 2rem);
    border: 2px solid #ee7444;
    border-top-width: 7px;
    border-radius: 10px;
    background: #fffcf5;
    overflow-wrap: anywhere;
}
:is(body.page, .editor-styles-wrapper) .lt-agenda-event:nth-child(3n+2) { border-color: #898221; }
:is(body.page, .editor-styles-wrapper) .lt-agenda-event:nth-child(3n) { border-color: #9a466e; }
:is(body.page, .editor-styles-wrapper) .lt-agenda-event h3 { font-size: 1.5rem; line-height: 1.25; margin: 0 0 1rem; }
:is(body.page, .editor-styles-wrapper) .lt-agenda-event p { margin: 0 0 1rem; }
:is(body.page, .editor-styles-wrapper) .lt-agenda-event .lt-agenda-status { align-self: flex-start; padding: .3rem .65rem; border-radius: 4px; background: #fbbc56; color: #292929; font-size: .85rem; font-weight: 700; }
:is(body.page, .editor-styles-wrapper) .lt-agenda-details { padding-bottom: 1rem; border-bottom: 1px solid #e3dace; }
:is(body.page, .editor-styles-wrapper) .lt-agenda-event .lt-agenda-link { margin-top: auto; margin-bottom: 0; padding-top: .5rem; }
:is(body.page, .editor-styles-wrapper) .lt-agenda-link a { display: inline-block; padding: .5rem 0; color: #333; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
:is(body.page, .editor-styles-wrapper) .lt-agenda-link a:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }
@media (max-width: 650px) {
    :is(body.page, .editor-styles-wrapper) .lt-agenda-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Agenda is a category-filtered list of posts. */
:is(body.page, .editor-styles-wrapper) .lt-agenda-post-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}
:is(body.page, .editor-styles-wrapper) .lt-agenda-post-grid > li { margin: 0; min-width: 0; }
:is(body.page, .editor-styles-wrapper) .lt-agenda-post-card {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    height: 100%;
    padding: clamp(1.25rem, 2.5vw, 2rem);
    border: 2px solid #ee7444;
    border-top-width: 7px;
    border-radius: 10px;
    background: #fffcf5;
    overflow-wrap: anywhere;
}
:is(body.page, .editor-styles-wrapper) .lt-agenda-post-grid > li:nth-child(3n+2) .lt-agenda-post-card { border-color: #898221; }
:is(body.page, .editor-styles-wrapper) .lt-agenda-post-grid > li:nth-child(3n) .lt-agenda-post-card { border-color: #9a466e; }
:is(body.page, .editor-styles-wrapper) .lt-agenda-post-card h3 { font-size: 1.5rem; line-height: 1.25; margin: 0 0 1rem; }
:is(body.page, .editor-styles-wrapper) .lt-agenda-post-card a { color: inherit; }
:is(body.page, .editor-styles-wrapper) .lt-agenda-post-card .wp-block-post-featured-image { margin: 0 0 1rem; }
:is(body.page, .editor-styles-wrapper) .lt-agenda-post-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 4px; }
:is(body.page, .editor-styles-wrapper) .lt-agenda-post-card .wp-block-read-more { margin-top: auto; padding: .65rem 0; font-weight: 700; text-decoration: underline; }
:is(body.page, .editor-styles-wrapper) .lt-agenda-query .wp-block-query-pagination { margin-top: 2rem; display: flex; gap: 1rem; flex-wrap: wrap; }
:is(body.single-post, .editor-styles-wrapper) .lt-agenda-article { max-width: 860px; box-sizing: border-box; margin: 0 auto; padding: clamp(2rem, 5vw, 4rem) 24px !important; overflow-wrap: anywhere; }
:is(body.single-post, .editor-styles-wrapper) .lt-agenda-article h1 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.12; margin: 0 0 1.5rem; }
:is(body.single-post, .editor-styles-wrapper) .lt-agenda-article h2 { font-size: clamp(1.4rem, 2.5vw, 2rem); line-height: 1.2; margin: 2rem 0 1rem; }
:is(body.single-post, .editor-styles-wrapper) .lt-agenda-article .lt-agenda-status { display: inline-block; padding: .4rem .7rem; background: #fbbc56; color: #292929; font-weight: 700; border-radius: 4px; }
:is(body.single-post, .editor-styles-wrapper) .lt-agenda-article .lt-agenda-details { padding: 1rem; background: #fffcf5; border-left: 4px solid #ee7444; line-height: 1.8; }
@media (max-width: 650px) {
    :is(body.page, .editor-styles-wrapper) .lt-agenda-post-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Use the same editable featured image in the listing and the full event. */
:is(body.single-post, .editor-styles-wrapper) .lt-agenda-article .lt-agenda-article-image {
    display: block !important;
    margin: 1.5rem 0;
}
:is(body.single-post, .editor-styles-wrapper) .lt-agenda-article .lt-agenda-article-image img {
    display: block !important;
    width: 100%;
    height: auto;
    border-radius: 10px;
}

body.single-post .entry-content > .lt-agenda-breadcrumb {
    box-sizing: border-box;
    max-width: 860px;
    margin: 0 auto;
    padding: 2rem 24px 0;
    color: var(--lt-neutre-fosc, #4e5a50);
    font-size: .9rem;
    line-height: 1.6;
}
body.single-post .lt-agenda-breadcrumb ol { display: flex; flex-wrap: wrap; gap: .35rem .65rem; list-style: none; padding: 0; margin: 0; }
body.single-post .lt-agenda-breadcrumb li { display: inline-flex; align-items: baseline; gap: .65rem; min-width: 0; margin: 0; }
body.single-post .lt-agenda-breadcrumb [aria-current="page"] { overflow-wrap: anywhere; }
body.single-post .lt-agenda-breadcrumb a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
body.single-post .lt-agenda-breadcrumb a:hover { color: var(--lt-morat, #9a466e); }
body.single-post .lt-agenda-breadcrumb a:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
body.single-post .lt-agenda-breadcrumb + .lt-agenda-article { padding-top: 1.25rem !important; }
