/* TMA Research Hub – premium research-first page */
.rx-page {
    --rx-bg: #eef2f7;
    --rx-ink: #061627;
    --rx-navy: #0c2340;
    --rx-blue: #0b5cab;
    --rx-cyan: #00c2e0;
    --rx-violet: #5b6cff;
    --rx-gold: #e8a838;
    --rx-surface: #ffffff;
    --rx-muted: #5a7088;
    --rx-line: rgba(6, 22, 39, 0.08);
    --rx-radius: 16px;
    --rx-radius-sm: 10px;
    --rx-shadow: 0 20px 50px rgba(6, 22, 39, 0.08);
    --rx-nav-w: 240px;
    --rx-header-h: 56px;
    background: var(--rx-bg);
    color: var(--rx-ink);
    overflow-x: clip;
}

.rx-page .rx-sr {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ── Hero ── */
.rx-hero {
    position: relative;
    min-height: clamp(340px, 52vh, 520px);
    display: flex;
    align-items: flex-end;
    background: var(--rx-ink);
    overflow: hidden;
}
.rx-hero__bg {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 70% 20%, rgba(0, 194, 224, 0.18), transparent 55%),
        radial-gradient(ellipse 50% 50% at 20% 80%, rgba(91, 108, 255, 0.14), transparent 50%),
        linear-gradient(165deg, #061627 0%, #0c2340 45%, #0a3055 100%);
}
.rx-hero__mesh {
    position: absolute; inset: 0; opacity: 0.35;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='600'%3E%3Cg fill='none' stroke='%2300c2e0' stroke-width='.6' opacity='.5'%3E%3Ccircle cx='120' cy='80' r='3'/%3E%3Ccircle cx='280' cy='140' r='3'/%3E%3Ccircle cx='450' cy='60' r='3'/%3E%3Ccircle cx='620' cy='180' r='3'/%3E%3Ccircle cx='180' cy='320' r='3'/%3E%3Ccircle cx='380' cy='280' r='3'/%3E%3Ccircle cx='560' cy='350' r='3'/%3E%3Ccircle cx='720' cy='260' r='3'/%3E%3Cpath d='M120 80L280 140M280 140L450 60M450 60L620 180M280 140L380 280M380 280L560 350M180 320L380 280M560 350L720 260'/%3E%3C/g%3E%3C/svg%3E");
    background-size: cover;
    background-position: center;
    animation: rx-mesh-drift 40s linear infinite;
}
@keyframes rx-mesh-drift {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-1%, 1%) scale(1.02); }
    100% { transform: translate(0, 0) scale(1); }
}
.rx-hero__inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: clamp(72px, 10vw, 120px) clamp(16px, 4vw, 40px) clamp(32px, 5vw, 48px);
    display: flex;
    flex-direction: column;
    align-items: stretch;
}
.rx-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(0, 194, 224, 0.12);
    border: 1px solid rgba(0, 194, 224, 0.35);
    color: #7ee8f7;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.rx-hero__badge-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--rx-cyan);
    box-shadow: 0 0 10px var(--rx-cyan);
    animation: rx-pulse 2s ease infinite;
}
@keyframes rx-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}
.rx-hero__title {
    margin: 0 0 14px;
    font-family: var(--font-display, "Space Grotesk", sans-serif);
    font-size: clamp(2.4rem, 6vw, 4rem);
    font-weight: 700;
    line-height: 1.05;
    color: #fff;
    max-width: 100%;
}
.rx-hero__intro {
    margin: 0 0 28px;
    width: 100%;
    max-width: 100%;
    font-size: clamp(0.95rem, 1.8vw, 1.08rem);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.82);
    padding: clamp(14px, 2.5vw, 20px) clamp(16px, 3vw, 22px);
    border-radius: var(--rx-radius-sm);
    background: rgba(6, 22, 39, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-sizing: border-box;
}
.rx-hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}
.rx-hero__stat {
    flex: 1 1 120px;
    min-width: 100px;
    padding: 14px 16px;
    border-radius: var(--rx-radius-sm);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
}
.rx-hero__stat-val {
    display: block;
    font-family: var(--font-display, "Space Grotesk", sans-serif);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--rx-cyan);
    line-height: 1;
}
.rx-hero__stat-lbl {
    display: block;
    margin-top: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.3;
}
.rx-hero__jump {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--rx-cyan), var(--rx-blue));
    color: var(--rx-ink);
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}
.rx-hero__jump:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0, 194, 224, 0.35);
}

/* ── Sticky top nav ── */
.rx-topnav {
    position: sticky;
    top: var(--rx-header-h);
    z-index: 40;
    background: rgba(238, 242, 247, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--rx-line);
    box-shadow: 0 4px 20px rgba(6, 22, 39, 0.04);
}
.rx-topnav__track {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 10px clamp(16px, 4vw, 40px);
    max-width: 1240px;
    margin: 0 auto;
}
.rx-topnav__track::-webkit-scrollbar { display: none; }
.rx-topnav__link {
    flex: 0 0 auto;
    scroll-snap-align: start;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--rx-line);
    background: var(--rx-surface);
    color: var(--rx-navy);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.rx-topnav__link:hover,
.rx-topnav__link.is-active {
    background: var(--rx-navy);
    border-color: var(--rx-navy);
    color: #fff;
}
.rx-topnav__num {
    font-size: 0.68rem;
    opacity: 0.7;
    font-weight: 800;
}

/* ── Body layout ── */
.rx-body {
    max-width: 1240px;
    margin: 0 auto;
    padding: clamp(24px, 4vw, 40px) clamp(16px, 4vw, 40px) clamp(60px, 8vw, 100px);
    display: grid;
    grid-template-columns: minmax(0, var(--rx-nav-w)) minmax(0, 1fr);
    gap: clamp(20px, 3vw, 36px);
    align-items: start;
}
.rx-rail {
    grid-column: 1;
    position: sticky;
    top: calc(var(--rx-header-h) + 52px);
    z-index: 3;
    align-self: start;
    max-height: calc(100vh - var(--rx-header-h) - 64px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 4px;
    background: var(--rx-bg);
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.rx-rail__link {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--rx-radius-sm);
    text-decoration: none;
    color: var(--rx-muted);
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.35;
    border-left: 3px solid transparent;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.rx-rail__link:hover,
.rx-rail__link.is-active {
    background: var(--rx-surface);
    color: var(--rx-navy);
    border-left-color: var(--rx-cyan);
    box-shadow: var(--rx-shadow);
}
.rx-rail__idx {
    flex-shrink: 0;
    font-family: var(--font-display, "Space Grotesk", sans-serif);
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--rx-cyan);
    opacity: 0.8;
    min-width: 1.4em;
}
.rx-main {
    grid-column: 2;
    display: flex;
    flex-direction: column;
    gap: clamp(16px, 2.5vw, 24px);
    min-width: 0;
    width: 100%;
    position: relative;
    z-index: 1;
}

/* ── Section blocks ── */
.rx-block {
    scroll-margin-top: calc(var(--rx-header-h) + 64px);
    background: var(--rx-surface);
    border-radius: var(--rx-radius);
    border: 1px solid var(--rx-line);
    box-shadow: var(--rx-shadow);
    overflow: hidden;
}
.rx-block__toggle {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: clamp(14px, 2.5vw, 20px) clamp(16px, 3vw, 24px);
    border: 0;
    background: linear-gradient(90deg, rgba(11, 92, 171, 0.04), transparent);
    cursor: pointer;
    text-align: left;
    font: inherit;
    color: inherit;
    border-bottom: 1px solid transparent;
    transition: background 0.15s;
}
.rx-block__toggle:hover { background: linear-gradient(90deg, rgba(0, 194, 224, 0.06), transparent); }
.rx-block.is-open .rx-block__toggle { border-bottom-color: var(--rx-line); }
.rx-block__num {
    flex-shrink: 0;
    width: 36px; height: 36px;
    display: grid; place-items: center;
    border-radius: 10px;
    background: var(--rx-navy);
    color: var(--rx-cyan);
    font-family: var(--font-display, "Space Grotesk", sans-serif);
    font-size: 0.82rem;
    font-weight: 800;
}
.rx-block__head-text { flex: 1; min-width: 0; }
.rx-block__title {
    margin: 0;
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 700;
    color: var(--rx-navy);
    line-height: 1.3;
}
.rx-block__chevron {
    flex-shrink: 0;
    width: 28px; height: 28px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: var(--rx-bg);
    color: var(--rx-muted);
    transition: transform 0.25s;
}
.rx-block.is-open .rx-block__chevron { transform: rotate(180deg); }
.rx-block__panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease;
}
.rx-block.is-open .rx-block__panel { grid-template-rows: 1fr; }
.rx-block__inner {
    min-height: 0;
    overflow: hidden;
    padding: 0 clamp(16px, 3vw, 24px);
}
.rx-block.is-open .rx-block__inner {
    padding: clamp(16px, 3vw, 24px);
    overflow: visible;
}
.rx-block__inner--flush {
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-top: 0 !important;
}
.rx-block__inner--flush.rx-block.is-open,
.rx-block.is-open .rx-block__inner--flush {
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-top: 0 !important;
}
.rx-block__content {
    padding: clamp(16px, 3vw, 24px) clamp(16px, 3vw, 24px) clamp(16px, 3vw, 24px);
}
.rx-block__inner--flush .rx-block__content {
    padding-top: clamp(16px, 3vw, 24px);
}

/* ── Full-width banner (no side-by-side empty space) ── */
.rx-banner {
    position: relative;
    width: 100%;
    max-height: clamp(160px, 24vw, 220px);
    overflow: hidden;
    background: var(--rx-navy);
}
.rx-banner__img {
    width: 100%;
    height: clamp(160px, 24vw, 220px);
    object-fit: cover;
    object-position: center;
    display: block;
}
.rx-banner__fade {
    position: absolute;
    inset: auto 0 0 0;
    height: 50%;
    background: linear-gradient(to top, rgba(6, 22, 39, 0.35), transparent);
    pointer-events: none;
}
/* Logos / wide covers (e.g. Horizon Europe) — show full image, no crop */
.rx-banner--contain {
    max-height: none;
    height: auto;
    overflow: visible;
    background: linear-gradient(180deg, #e8eef5 0%, #f4f7fb 100%);
}
.rx-banner--contain .rx-banner__img {
    width: 100%;
    height: auto;
    max-height: min(320px, 48vw);
    object-fit: contain;
    object-position: center;
    padding: clamp(16px, 3vw, 28px);
    box-sizing: border-box;
}
.rx-banner--contain .rx-banner__fade {
    display: none;
}

/* ── Blog-style article (float image, text wraps then continues below) ── */
.rx-article {
    display: flow-root;
    width: 100%;
    max-width: 100%;
    clear: both;
}
.rx-article__media {
    float: left;
    width: min(100%, clamp(200px, 36%, 340px));
    max-width: 100%;
    margin: 0 clamp(16px, 3vw, 28px) clamp(12px, 2vw, 16px) 0;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(180deg, #e8eef5 0%, #f4f7fb 100%);
    border: 1px solid rgba(6, 22, 39, 0.08);
    box-shadow: 0 8px 24px rgba(6, 22, 39, 0.08);
}
.rx-article__media--right {
    float: right;
    margin: 0 0 clamp(12px, 2vw, 16px) clamp(16px, 3vw, 28px);
}
.rx-article__zoom {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
    position: relative;
    text-align: left;
}
.rx-article__zoom:focus-visible {
    outline: 2px solid var(--rx-blue);
    outline-offset: 2px;
}
.rx-article__zoom::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(6, 22, 39, 0);
    transition: background 0.2s ease;
    pointer-events: none;
}
.rx-article__zoom:hover::after,
.rx-article__zoom:focus-visible::after {
    background: rgba(6, 22, 39, 0.1);
}
.rx-article__zoom-icon {
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(6, 22, 39, 0.72);
    color: #fff;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}
.rx-article__zoom:hover .rx-article__zoom-icon,
.rx-article__zoom:focus-visible .rx-article__zoom-icon {
    opacity: 1;
    transform: translateY(0);
}
.rx-article__media .rx-cover {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* ── Content typography ── */
.rx-prose p { margin: 0 0 12px; line-height: 1.65; color: var(--rx-muted); font-size: 0.94rem; }
.rx-prose a { color: var(--rx-blue); font-weight: 600; }
.rx-prose h1, .rx-prose h2 {
    margin: 0 0 12px;
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: var(--rx-navy);
    line-height: 1.25;
}
.rx-list { margin: 0 0 12px; padding-left: 1.2rem; line-height: 1.65; color: var(--rx-muted); font-size: 0.94rem; }

.rx-legacy-som--intro { margin-bottom: 16px; }
.rx-legacy-som .section-title,
.rx-legacy-som h1 { display: none; }
.rx-legacy-som .row,
.rx-legacy-som .container {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}
.rx-legacy-som .row > [class*="col"] {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    padding: 0 !important;
}
.rx-legacy-som .row > div:first-child {
    margin-bottom: 14px;
}
.rx-legacy-som .row img,
.rx-legacy-som img {
    width: 100%;
    height: clamp(140px, 22vw, 200px);
    object-fit: cover;
    border-radius: var(--rx-radius-sm);
    display: block;
}
.rx-legacy-som p { margin: 0 0 12px; line-height: 1.65; color: var(--rx-muted); font-size: 0.94rem; }

.rx-legacy-som--banner {
    padding: 0 clamp(16px, 3vw, 24px) clamp(16px, 3vw, 24px);
}
.rx-block__inner--flush .rx-legacy-som--banner .row > div:first-child {
    margin-left: calc(-1 * clamp(16px, 3vw, 24px));
    margin-right: calc(-1 * clamp(16px, 3vw, 24px));
    width: calc(100% + 2 * clamp(16px, 3vw, 24px));
    max-width: none;
    margin-bottom: 16px;
}
.rx-block__inner--flush .rx-legacy-som--banner .row img {
    width: 100%;
    height: clamp(160px, 24vw, 200px);
    object-fit: cover;
    border-radius: 0;
}

/* ── Scientific events: timeline list ── */
.rx-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid var(--rx-line);
    border-radius: var(--rx-radius-sm);
    overflow: hidden;
    background: var(--rx-bg);
}
.rx-timeline__item {
    display: grid;
    grid-template-columns: 28px 110px 1fr;
    gap: 0 12px;
    align-items: stretch;
    border-bottom: 1px solid var(--rx-line);
    background: var(--rx-surface);
    transition: background 0.15s;
}
.rx-timeline__item:last-child { border-bottom: 0; }
.rx-timeline__item:hover { background: #f8fafc; }
.rx-timeline__item--lead {
    background: linear-gradient(90deg, rgba(11, 92, 171, 0.06), var(--rx-surface));
}
.rx-timeline__item--lead .rx-timeline__body {
    padding-top: 16px;
    padding-bottom: 16px;
}
.rx-timeline__item--lead .rx-timeline__thumb {
    width: 96px;
    height: 72px;
}
.rx-timeline__item.is-past .rx-timeline__status { color: #64748b; }
.rx-timeline__item.is-upcoming .rx-timeline__status { color: var(--rx-blue); }
.rx-timeline__rail {
    display: flex;
    justify-content: center;
    padding-top: 18px;
    background: linear-gradient(180deg, var(--rx-cyan), rgba(0, 194, 224, 0.15));
    opacity: 0.5;
}
.rx-timeline__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--rx-cyan);
    box-shadow: 0 0 0 3px rgba(0, 194, 224, 0.25);
    margin-top: 2px;
}
.rx-timeline__date {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 12px 0;
    border-right: 1px solid var(--rx-line);
}
.rx-timeline__date time {
    font-family: var(--font-display, "Space Grotesk", sans-serif);
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--rx-navy);
    line-height: 1.2;
    word-break: break-word;
}
.rx-timeline__status {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.rx-timeline__body {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px 12px 0;
    min-width: 0;
}
.rx-timeline__thumb {
    flex-shrink: 0;
    width: 64px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--rx-bg);
}
.rx-timeline__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.rx-timeline__text {
    flex: 1;
    min-width: 0;
}
.rx-timeline__title {
    margin: 0 0 4px;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--rx-navy);
}
.rx-timeline__excerpt {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.45;
    color: var(--rx-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.rx-timeline__open {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 1px solid var(--rx-line);
    border-radius: 999px;
    padding: 8px 12px;
    background: var(--rx-surface);
    color: var(--rx-navy);
    font: inherit;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}
.rx-timeline__open:hover {
    background: var(--rx-navy);
    border-color: var(--rx-navy);
    color: #fff;
}
.rx-timeline__open span { display: none; }
@media (min-width: 640px) {
    .rx-timeline__open span { display: inline; }
}

/* ── Research activities: project registry ── */
.rx-registry {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.rx-registry__row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: var(--rx-radius-sm);
    border: 1px solid var(--rx-line);
    background: var(--rx-surface);
    border-left: 4px solid var(--rx-cyan);
    transition: box-shadow 0.15s, transform 0.15s;
}
.rx-registry__row:hover {
    box-shadow: 0 6px 20px rgba(6, 22, 39, 0.06);
    transform: translateX(2px);
}
.rx-registry__idx {
    flex-shrink: 0;
    font-family: var(--font-display, "Space Grotesk", sans-serif);
    font-size: 1.1rem;
    font-weight: 800;
    color: rgba(0, 194, 224, 0.45);
    line-height: 1;
    min-width: 2ch;
}
.rx-registry__main {
    flex: 1;
    min-width: 0;
}
.rx-registry__date {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--rx-blue);
    background: rgba(11, 92, 171, 0.08);
    padding: 2px 8px;
    border-radius: 999px;
    margin-bottom: 4px;
}
.rx-registry__title {
    margin: 0 0 4px;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--rx-navy);
}
.rx-registry__meta {
    margin: 0;
    font-size: 0.82rem;
    color: var(--rx-muted);
    line-height: 1.4;
}
.rx-registry__meta strong { color: var(--rx-navy); font-weight: 700; }
.rx-registry__meta--modal { margin-top: 14px; }
.rx-registry__open {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 0;
    border-radius: 999px;
    padding: 10px 14px;
    background: var(--rx-navy);
    color: #fff;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s;
}
.rx-registry__open:hover { background: var(--rx-blue); }

/* ── Kids University: mosaic gallery ── */
.rx-mosaic {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
}
.rx-mosaic__tile {
    margin: 0;
    min-height: 140px;
}
.rx-mosaic__hit {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    min-height: 140px;
    padding: 0;
    border: 0;
    border-radius: var(--rx-radius-sm);
    overflow: hidden;
    cursor: pointer;
    text-align: left;
    background: var(--rx-navy);
    transition: transform 0.2s, box-shadow 0.2s;
}
.rx-mosaic__hit:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(6, 22, 39, 0.18);
}
.rx-mosaic__hit:focus-visible {
    outline: 3px solid var(--rx-cyan);
    outline-offset: 2px;
}
.rx-mosaic__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}
.rx-mosaic__hit:hover .rx-mosaic__img { transform: scale(1.06); }
.rx-mosaic__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(6, 22, 39, 0.88) 0%, rgba(6, 22, 39, 0.2) 55%, transparent 100%);
    pointer-events: none;
}
.rx-mosaic__content {
    position: absolute;
    inset: auto 0 0 0;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 1;
}
.rx-mosaic__title {
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.3;
    color: #fff;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.rx-mosaic__hint {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Docs & toolbar ── */
.rx-doc {
    margin-top: 14px;
    padding: 12px 16px;
    border-radius: var(--rx-radius-sm);
    background: var(--rx-bg);
    border: 1px solid var(--rx-line);
}
.rx-doc a {
    color: var(--rx-navy);
    font-weight: 700;
    text-decoration: none;
    font-size: 0.9rem;
}
.rx-doc a:hover { color: var(--rx-blue); }
.rx-contact { margin-top: 12px; font-size: 0.9rem; color: var(--rx-muted); }
.rx-contact a { color: var(--rx-blue); font-weight: 700; text-decoration: none; }

.rx-feed-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 14px;
}
.rx-feed-count {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--rx-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.rx-search {
    flex: 1 1 200px;
    max-width: 360px;
    padding: 9px 14px 9px 36px;
    border-radius: 999px;
    border: 1px solid var(--rx-line);
    background: var(--rx-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%235a7088' stroke-width='2'%3E%3Ccircle cx='7' cy='7' r='5'/%3E%3Cpath d='m11 11 3 3'/%3E%3C/svg%3E") 12px center no-repeat;
    font: inherit;
    font-size: 0.88rem;
}

.rx-btn {
    border: 0;
    border-radius: 999px;
    padding: 8px 16px;
    background: var(--rx-navy);
    color: #fff;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
}
.rx-btn:hover { background: var(--rx-blue); }

/* Pagination */
.rx-pager {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-top: 14px;
}
.rx-pager button {
    min-width: 36px; min-height: 36px;
    border-radius: 8px;
    border: 1px solid var(--rx-line);
    background: var(--rx-surface);
    color: var(--rx-navy);
    font: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
}
.rx-pager button.is-active {
    background: var(--rx-navy);
    border-color: var(--rx-navy);
    color: #fff;
}

/* Modal – self-contained tokens (dialog is moved to body on open) */
.rx-modal {
    --rx-bg: #eef2f7;
    --rx-ink: #061627;
    --rx-navy: #0c2340;
    --rx-blue: #0b5cab;
    --rx-surface: #ffffff;
    --rx-muted: #5a7088;
    --rx-line: rgba(6, 22, 39, 0.08);
    --rx-radius: 16px;
    --rx-radius-sm: 10px;
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--rx-ink);
    width: min(920px, calc(100vw - 20px));
    max-width: min(920px, calc(100vw - 20px));
    max-height: calc(100vh - 24px);
    margin: 0;
    position: fixed;
    top: 50%;
    left: 50%;
    right: auto;
    bottom: auto;
    transform: translate(-50%, -50%);
    overflow: visible;
    z-index: 10050;
}
.rx-modal:not([open]) {
    display: none;
}
.rx-modal[open] {
    display: block;
}
.rx-modal::backdrop {
    background: rgba(6, 22, 39, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.rx-modal__panel {
    background: var(--rx-surface);
    border-radius: var(--rx-radius);
    overflow: hidden;
    max-height: calc(100vh - 24px);
    display: flex;
    flex-direction: column;
    box-shadow: 0 32px 80px rgba(6, 22, 39, 0.3);
    border: 1px solid var(--rx-line);
}
.rx-modal__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    background: var(--rx-navy);
    color: #fff;
}
.rx-modal__head h3 {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.35;
    color: #fff;
}
.rx-modal__x {
    border: 0; background: rgba(255,255,255,0.12);
    color: #fff; width: 32px; height: 32px;
    border-radius: 50%; font-size: 1.3rem;
    cursor: pointer; flex-shrink: 0;
}
.rx-modal__body {
    padding: 18px;
    overflow: auto;
    background: var(--rx-surface);
    color: var(--rx-ink);
}
.rx-modal__body .rx-prose,
.rx-modal__body .rx-prose p {
    color: var(--rx-muted);
}
.rx-modal__body .rx-prose a {
    color: var(--rx-blue);
}
.rx-modal__body .rx-registry__meta {
    color: var(--rx-muted);
}
.rx-modal__body .rx-registry__meta strong {
    color: var(--rx-navy);
}
.rx-modal__media {
    margin-bottom: 16px;
    border-radius: var(--rx-radius-sm);
    overflow: hidden;
    max-height: 280px;
}
.rx-modal__media img {
    width: 100%;
    height: auto;
    max-height: 280px;
    object-fit: cover;
    display: block;
}
.rx-modal__foot {
    padding: 12px 18px 18px;
    border-top: 1px solid var(--rx-line);
    background: var(--rx-surface);
}
.rx-modal__foot .rx-btn { background: var(--rx-bg); color: var(--rx-navy); border: 1px solid var(--rx-line); }
.rx-modal--photo .rx-modal__body--photo {
    padding: 0;
    background: linear-gradient(180deg, #e8eef5 0%, #f4f7fb 100%);
}
.rx-modal--photo .rx-modal__body--photo img {
    width: 100%;
    height: auto;
    max-height: calc(100vh - 180px);
    object-fit: contain;
    display: block;
}

/* ── Responsive ── */
@media (max-width: 960px) {
    .rx-body { grid-template-columns: 1fr; }
    .rx-rail { display: none; }
    .rx-timeline__item {
        grid-template-columns: 20px 90px 1fr;
    }
    .rx-registry__open span { display: none; }
}
@media (max-width: 640px) {
    .rx-timeline__item {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        gap: 0;
    }
    .rx-timeline__rail { display: none; }
    .rx-timeline__date {
        flex-direction: row;
        align-items: center;
        gap: 10px;
        padding: 10px 14px;
        border-right: 0;
        border-bottom: 1px solid var(--rx-line);
        background: var(--rx-bg);
    }
    .rx-timeline__body {
        flex-wrap: wrap;
        padding: 12px 14px;
    }
    .rx-timeline__open span { display: none; }
    .rx-registry__row {
        flex-wrap: wrap;
    }
    .rx-registry__open {
        width: 100%;
        justify-content: center;
        margin-top: 4px;
    }
    .rx-mosaic {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .rx-article__media,
    .rx-article__media--right {
        float: none;
        width: 100%;
        max-width: 360px;
        margin: 0 auto clamp(16px, 3vw, 20px);
    }
}
@media (max-width: 560px) {
    .rx-hero__stats { gap: 8px; }
    .rx-hero__stat { flex: 1 1 calc(50% - 8px); }
    .rx-mosaic { grid-template-columns: 1fr; }
    .rx-block__content { padding-bottom: clamp(16px, 3vw, 24px); }
}
