/* Recognition page (/recognition/): awards, press cuttings, certificates, videos. */
.rc-page { max-width: 1200px; margin: 0 auto; padding: 3rem 1.25rem 4rem; }
.rc-head { text-align: center; margin: 0 auto 2rem; max-width: 640px; }
.rc-head h1 { font-size: clamp(2.4rem, 7vw, 4rem); font-weight: 800; line-height: 1.02; letter-spacing: -.04em; margin: 0 0 .8rem; }
.rc-head .grad { background: linear-gradient(110deg, #6366f1, #d946ef 55%, #fb923c); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rc-head .hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 1.2rem; padding: 7px 16px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); font-size: .8rem; font-weight: 600; color: var(--text-secondary); }
.rc-head .hero-eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, .18); }
.rc-head p { color: var(--text-secondary); margin: 0; }

.rc-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 2rem; }
.rc-filters[hidden] { display: none; }
.rc-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text-secondary); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; }
.rc-chip:hover { border-color: var(--primary); color: var(--text-primary); }
.rc-chip.active { background: var(--text-primary); border-color: var(--text-primary); color: var(--bg-white, #fff); }
.rc-chip .n { font-size: 12px; opacity: 0.75; }

/* Uniform cards: same media box, same text rows, same height in every row */
.rc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.25rem; }
.rc-card { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 24px; background: var(--surface); overflow: hidden; transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s, border-color .25s; }
.rc-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, #6366f1 45%, var(--border)); box-shadow: 0 22px 38px -26px rgba(99, 102, 241, .55); }
.rc-card[hidden] { display: none; }
.rc-media { position: relative; display: block; flex: none; aspect-ratio: 3 / 2; background: var(--bg-gray); border-bottom: 1px solid var(--border); overflow: hidden; line-height: 0; }
.rc-media img { display: block; width: 100%; height: 100%; object-fit: contain; }
.rc-video img { object-fit: cover; }
.rc-photo { cursor: zoom-in; }
.rc-photo::after { content: ""; position: absolute; right: 10px; bottom: 10px; width: 30px; height: 30px; border-radius: 8px; background: rgba(0, 0, 0, 0.6) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7'/%3E%3C/svg%3E") center / 16px no-repeat; }
.rc-video { cursor: pointer; }
.rc-play { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: rgba(0, 0, 0, 0.62); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35); transition: transform 0.15s, background 0.15s; }
.rc-play::after { content: ""; position: absolute; left: 26px; top: 20px; border-style: solid; border-width: 12px 0 12px 19px; border-color: transparent transparent transparent #fff; }
.rc-video:hover .rc-play, .rc-video:focus-visible .rc-play { transform: scale(1.08); background: rgba(0, 0, 0, 0.78); }
.rc-media:focus-visible { outline: 3px solid var(--primary); outline-offset: -3px; }

/* Text box: tag line, 2-line title, then the full caption. Cards in one grid row stretch to the same height. */
.rc-body { position: relative; flex: 1; padding: 1rem 1.1rem 1.2rem; }
.rc-meta { display: flex; align-items: center; gap: 0.5rem; height: 1.6rem; margin: 0 0 0.5rem; font-size: 0.8rem; color: var(--text-light); white-space: nowrap; overflow: hidden; }
.rc-tag { background: var(--bg-gray); color: var(--primary); padding: 2px 9px; border-radius: 999px; font-weight: 600; }
.rc-kind::before, .rc-meta time::before { content: "\00b7"; margin-right: 0.5rem; }
.rc-body h2 { font-size: 1.05rem; line-height: 1.3; height: 2.6em; margin: 0 0 0.5rem; color: var(--text-primary); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rc-body p { margin: 0; color: var(--text-secondary); font-size: 0.92rem; line-height: 1.5; }
.rc-body p:not(.rc-meta) { min-height: 4.5em; }
/* Title and caption of a card can share one link (source post). It looks like plain text on purpose. */
.rc-body .rc-textlink { color: inherit; text-decoration: none; }
.rc-body .rc-textlink:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 3px; }
.rc-empty { text-align: center; color: var(--text-secondary); }

/* Photo viewer: fills the whole screen; picture on top, full text underneath */
.rc-lightbox { border: 0; padding: 0; background: #05080f; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; height: 100dvh; margin: 0; }
.rc-lightbox::backdrop { background: #05080f; }
.rc-lightbox[open] { display: flex; }
.rc-lightbox figure { margin: 0; width: 100%; height: 100%; display: flex; flex-direction: column; }
.rc-lightbox img { flex: 1 1 0; min-height: 0; width: 100%; object-fit: contain; background: transparent; filter: none; padding: 56px 64px 8px; box-sizing: border-box; }
.rc-lightbox figcaption { flex: none; max-height: 30vh; overflow: auto; color: #e6ebf5; font-size: 0.95rem; line-height: 1.5; text-align: center; padding: 0.5rem 72px 1.2rem; }
.rc-close, .rc-nav { position: fixed; border: 0; border-radius: 50%; width: 44px; height: 44px; background: rgba(255, 255, 255, 0.16); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }
.rc-close:hover, .rc-nav:hover { background: rgba(255, 255, 255, 0.3); }
.rc-close { top: max(14px, env(safe-area-inset-top)); right: 14px; }
.rc-nav { top: 50%; margin-top: -22px; }
.rc-prev { left: 12px; }
.rc-next { right: 12px; }
.rc-nav[hidden] { display: none; }

@media (max-width: 600px) {
    .rc-page { padding: 2rem 1rem 3rem; }
    .rc-grid { grid-template-columns: 1fr; }
    .rc-lightbox img { padding: 56px 8px 8px; }
    .rc-lightbox figcaption { padding: 0.5rem 16px 4.5rem; }
    .rc-nav { top: auto; bottom: 14px; margin-top: 0; }
    .rc-prev { left: calc(50% - 56px); }
    .rc-next { right: calc(50% - 56px); }
}

/* Video player: as large as the screen allows, 16:9 */
.rc-player { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.rc-player::backdrop { background: rgba(0, 0, 0, 0.92); }
.rc-player[open] { display: flex; align-items: center; justify-content: center; }
.rc-player-box { width: min(100vw, calc(100vh * 16 / 9)); aspect-ratio: 16 / 9; background: #000; }
.rc-player-box iframe { display: block; width: 100%; height: 100%; border: 0; }
