/* =========================================================
   Components
   Buttons, cards, chips, sections, empty states
   ========================================================= */
.xr-kicker {
    color: var(--xr-teal);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin: 0 0 10px;
}
.xr-section-heading { max-width: 760px; margin-bottom: 28px; }
.xr-section-heading--center { text-align: center; margin-inline: auto; }
.xr-section-heading h2 { font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1; letter-spacing: -0.055em; margin: 0; }
.xr-section-heading p:not(.xr-kicker) { color: var(--xr-muted); font-size: 1.08rem; }

.xr-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.xr-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 999px;
    font-weight: 850;
    text-decoration: none;
    border: 1px solid transparent;
}
.xr-button--primary { background: var(--xr-red); color: #fff; }
.xr-button--dark { background: var(--xr-dark); color: #fff; }
.xr-button--ghost { border-color: var(--xr-border); background: #fff; color: var(--xr-dark); }
.xr-button:hover { transform: translateY(-1px); }

.xr-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--xr-gap); }
.xr-card-grid--articles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.xr-card-grid--compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.xr-card {
    background: #fff;
    border: 1px solid var(--xr-border);
    border-radius: var(--xr-radius);
    overflow: hidden;
    box-shadow: 0 8px 26px rgba(62, 58, 53, 0.04);
}
.xr-card__media { display: block; aspect-ratio: 1.45 / 1; background: var(--xr-bg-soft); overflow: hidden; text-decoration: none; }
.xr-card__media img { width: 100%; height: 100%; object-fit: cover; }
.xr-card__placeholder { height: 100%; display: flex; align-items: center; justify-content: center; color: var(--xr-muted); font-weight: 900; }
.xr-card__body { padding: 18px; }
.xr-card__meta { color: var(--xr-teal); font-size: 0.78rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 8px; }
.xr-card__title { font-size: 1.18rem; line-height: 1.15; letter-spacing: -0.03em; margin: 0 0 10px; }
.xr-card__title a { text-decoration: none; }
.xr-card__title a:hover { color: var(--xr-red); }
.xr-card p { color: var(--xr-muted); margin-bottom: 0; }


/* =========================================================
   Experience cards
   Homepage / archive Experience cards use portrait posters.
   ========================================================= */
.xr-card--experience .xr-card__media {
    aspect-ratio: 3 / 4;
}
.xr-card--experience .xr-card__body {
    padding: 16px 16px 18px;
}
.xr-card--experience .xr-card__title {
    margin-bottom: 0;
}
.xr-card--experience .xr-card__meta {
    color: var(--xr-muted);
}


.xr-chip { display: inline-flex; border: 1px solid var(--xr-border); border-radius: 999px; padding: 4px 10px; text-decoration: none; font-size: 0.84rem; }
.xr-empty-state { border: 1px dashed var(--xr-border); border-radius: var(--xr-radius); padding: 28px; background: var(--xr-bg-soft); color: var(--xr-muted); }
.xr-empty-state--large { text-align: center; padding: 70px 30px; }


/* =========================================================
   Event cartouches
   Homepage Events block uses elegant compact text cards, no image.
   ========================================================= */
.xr-event-cartouche {
    height: 100%;
    background: #fff;
    border: 1px solid var(--xr-border);
    border-radius: 22px;
    box-shadow: 0 10px 30px rgba(62, 58, 53, 0.055);
    overflow: hidden;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.xr-event-cartouche:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 177, 165, 0.34);
    box-shadow: 0 16px 42px rgba(62, 58, 53, 0.08);
}
.xr-event-cartouche__link {
    min-height: 168px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
    padding: 22px;
    color: inherit;
    text-decoration: none;
}
.xr-event-cartouche__topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.xr-event-cartouche__status {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(0, 177, 165, 0.10);
    color: var(--xr-teal);
    font-size: 0.72rem;
    font-weight: 950;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}
.xr-event-cartouche__country {
    color: var(--xr-muted);
    font-size: 0.8rem;
    font-weight: 850;
    text-align: right;
    white-space: nowrap;
}
.xr-event-cartouche__title {
    margin: 0;
    font-size: clamp(1.15rem, 1.6vw, 1.45rem);
    line-height: 1.05;
    letter-spacing: -0.045em;
}
.xr-event-cartouche__date {
    margin: 0;
    padding-top: 14px;
    border-top: 1px solid var(--xr-border);
    color: var(--xr-muted);
    font-size: 0.9rem;
    font-weight: 850;
}


/* Database fallback visual: XRMust logo, centered and discreet. */
.xrmust-db-placeholder-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: inherit;
}
.xrmust-db-placeholder-logo img {
    display: block;
    width: 20%;
    max-width: 96px;
    min-width: 42px;
    height: auto;
    opacity: .32;
    filter: grayscale(1);
}
