/* ==========================================================================
   REFERENCES PAGE — references.css
   ISIS Papyrus Design System
   ========================================================================== */
:root {
    --rc-primary: #6bb8be;
    --rc-primary-dark: #5aa8ae;
    --rc-primary-rgb: 107, 184, 190;
    --rc-navy: #1e293b;
    --rc-bg: #f8fafc;
    --rc-white: #ffffff;
    --rc-border: #e2e8f0;
    --rc-text: #334155;
    --rc-text-light: #64748b;
    --rc-text-lighter: #94a3b8;
    --rc-shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --rc-shadow: 0 4px 16px rgba(0,0,0,0.08);
    --rc-radius: 10px;
    --rc-ease: cubic-bezier(0.4,0,0.2,1);
    --rc-sidebar-w: 272px;
}

/* ===== HERO ===== */
.rc-hero { position: relative; background: var(--rc-navy); overflow: hidden; }
.rc-hero__overlay {
    position: absolute; inset: 0;
    background: linear-gradient(100deg, rgba(30,41,59,0.92) 0%, rgba(30,41,59,0.78) 40%, rgba(30,41,59,0.5) 70%, rgba(30,41,59,0.35) 100%),
        url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?q=80&w=2070&auto=format&fit=crop') center/cover no-repeat;
    z-index: 0;
}
.rc-hero .container { z-index: 1; }
.rc-hero__layout { display: flex; align-items: center; justify-content: space-between; gap: 48px; padding: 68px 0 64px; }
.rc-hero__content { flex: 1; max-width: 580px; }
.rc-hero__title { font-family: 'Montserrat', sans-serif; font-size: 2.8rem; font-weight: 800; color: var(--rc-white); line-height: 1.12; margin: 0 0 16px; }
.rc-hero__subtitle { font-size: 2rem; font-weight: 400; color: rgba(255,255,255,0.72); line-height: 1.55; margin: 0 0 28px; max-width: 540px; }
.rc-hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Buttons — white primary, glassmorphism secondary */
.rc-hero__btn { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 8px; font-family: 'Montserrat', sans-serif; font-weight: 600; text-decoration: none; transition: all 0.3s var(--rc-ease); }
.rc-hero__btn--primary { background: white; color: #5aa8ae; border: 2px solid white; box-shadow: 0 4px 15px rgba(0,0,0,0.15); }
.rc-hero__btn--primary:hover { background: rgba(255,255,255,0.15); color: white; border-color: white; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.2); text-decoration: none; }
.rc-hero__btn--secondary { background: rgba(255,255,255,0.15); color: rgba(255,255,255,0.95); border: 1.5px solid rgba(255,255,255,0.3); backdrop-filter: blur(10px); }
.rc-hero__btn--secondary:hover { background: rgba(255,255,255,0.25); color: white; border-color: rgba(255,255,255,0.5); text-decoration: none; transform: translateY(-2px); }

/* Stats — white text */
.rc-hero__stats { display: flex; gap: 14px; flex-shrink: 0; }
.rc-hero__stat { background: rgba(255,255,255,0.06); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid rgba(255,255,255,0.1); border-radius: 14px; padding: 28px 32px; text-align: center; min-width: 155px; transition: all 0.3s var(--rc-ease); }
.rc-hero__stat:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.2); transform: translateY(-2px); }
.rc-hero__stat-num { display: block; font-family: 'Montserrat', sans-serif; font-size: 2.4rem; font-weight: 800; color: var(--rc-white); line-height: 1.1; }
.rc-hero__stat-label { display: block; font-weight: 600; color: rgba(255,255,255,0.55); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 6px; }

/* ===== MAIN ===== */
.rc-main { background: var(--rc-bg); padding: 36px 0 60px; }
.rc-layout { display: flex; gap: 28px; align-items: flex-start; }

/* ===== SIDEBAR ===== */
.rc-sidebar { width: var(--rc-sidebar-w); flex-shrink: 0; position: sticky; top: 20px; max-height: calc(100vh - 40px); overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
.rc-sidebar::-webkit-scrollbar { width: 4px; }
.rc-sidebar::-webkit-scrollbar-track { background: transparent; margin: 14px 4px; }
.rc-sidebar::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
.rc-sidebar::-webkit-scrollbar-thumb:hover { background: var(--rc-text-lighter); }
.rc-sidebar { scrollbar-width: thin; scrollbar-color: #cbd5e1 transparent; }
.rc-sidebar__inner { background: var(--rc-white); border: 1px solid var(--rc-border); border-radius: var(--rc-radius); padding: 20px; box-shadow: var(--rc-shadow-sm); }
.rc-sidebar__header { display: none; }
.rc-sidebar__title { font-family: 'Montserrat', sans-serif; font-weight: 700; color: var(--rc-navy); margin: 0; display: flex; align-items: center; gap: 8px; }
.rc-sidebar__close { background: none; border: none; color: var(--rc-text-light); cursor: pointer; padding: 4px; line-height: 1; }

/* Search */
.rc-filter-group { margin-bottom: 20px; }
.rc-filter-group:last-child { margin-bottom: 0; }
.rc-search { position: relative; }
.rc-search__icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--rc-text-lighter); pointer-events: none; }
.rc-search__input { width: 100%; height: 40px; padding: 0 34px 0 36px; border: 1.5px solid var(--rc-border); border-radius: 8px; font-family: inherit; font-weight: 500; color: var(--rc-text); background: var(--rc-white); transition: all 0.25s var(--rc-ease); outline: none; }
.rc-search__input:focus { border-color: var(--rc-primary); box-shadow: 0 0 0 3px rgba(var(--rc-primary-rgb), 0.12); }
.rc-search__input::placeholder { color: var(--rc-text-lighter); font-weight: 400; }
.rc-search__clear { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--rc-text-lighter); cursor: pointer; padding: 4px; line-height: 1; display: none; }
.rc-search__clear.visible { display: block; }

/* Filter meta */
.rc-filter-meta { display: flex; align-items: center; justify-content: space-between; padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--rc-border); }
.rc-filter-count { font-weight: 600; color: var(--rc-text-light); }
.rc-filter-count strong { color: var(--rc-navy); }
.rc-filter-reset { font-family: inherit; font-weight: 600; color: var(--rc-primary-dark); background: none; border: none; cursor: pointer; padding: 3px 6px; border-radius: 4px; transition: all 0.2s; display: none; align-items: center; gap: 4px; }
.rc-filter-reset.visible { display: inline-flex; }
.rc-filter-reset:hover { background: rgba(var(--rc-primary-rgb), 0.08); }

/* Filter headings — 1.2rem */
.rc-filter-heading { font-family: 'Montserrat', sans-serif; font-size: 1.2rem; font-weight: 700; color: var(--rc-navy); text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 10px; }

/* Filter buttons with icon */
.rc-filter-options { display: flex; flex-direction: column; gap: 3px; }
.rc-filter-btn { display: flex; align-items: center; width: 100%; padding: 7px 10px; border: none; border-radius: 6px; background: transparent; font-family: inherit; font-weight: 500; color: var(--rc-text); cursor: pointer; transition: all 0.2s var(--rc-ease); text-align: left; gap: 8px; }
.rc-filter-btn:hover { background: rgba(var(--rc-primary-rgb), 0.06); color: var(--rc-primary-dark); }
.rc-filter-btn.active { background: rgba(var(--rc-primary-rgb), 0.1); color: var(--rc-primary-dark); font-weight: 600; }
.rc-filter-btn__icon { width: 18px; text-align: center; color: var(--rc-text-lighter); flex-shrink: 0; }
.rc-filter-btn.active .rc-filter-btn__icon { color: var(--rc-primary-dark); }
.rc-filter-btn__label { flex: 1; }
.rc-filter-btn__count { font-weight: 600; color: var(--rc-text-lighter); min-width: 22px; text-align: right; flex-shrink: 0; }
.rc-filter-btn.active .rc-filter-btn__count { color: var(--rc-primary-dark); }

/* Country select */
.rc-country-select { width: 100%; height: 38px; padding: 0 30px 0 10px; border: 1.5px solid var(--rc-border); border-radius: 6px; font-family: inherit; font-weight: 500; color: var(--rc-text); background: var(--rc-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='%2364748b' d='M5 7L0.5 2.5h9L5 7z'/%3E%3C/svg%3E") right 10px center/8px no-repeat; appearance: none; -webkit-appearance: none; cursor: pointer; transition: all 0.25s var(--rc-ease); outline: none; }
.rc-country-select:focus { border-color: var(--rc-primary); box-shadow: 0 0 0 3px rgba(var(--rc-primary-rgb), 0.12); }
.rc-country-select.has-value { border-color: var(--rc-primary); color: var(--rc-navy); font-weight: 600; }

/* ===== MOBILE ===== */
.rc-mobile-toggle { display: none; align-items: center; gap: 8px; width: 100%; padding: 12px 16px; border: 1.5px solid var(--rc-border); border-radius: 8px; background: var(--rc-white); font-family: inherit; font-weight: 600; color: var(--rc-navy); cursor: pointer; margin-bottom: 20px; box-shadow: var(--rc-shadow-sm); }
.rc-mobile-badge { margin-left: auto; background: var(--rc-primary); color: var(--rc-white); font-weight: 700; min-width: 20px; height: 20px; border-radius: 10px; display: none; align-items: center; justify-content: center; padding: 0 6px; }
.rc-mobile-badge.visible { display: inline-flex; }
.rc-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 999; opacity: 0; transition: opacity 0.3s; }
.rc-overlay.open { display: block; opacity: 1; }

/* ===== CONTENT ===== */
.rc-content { flex: 1; min-width: 0; }
.rc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 14px; }

/* ===== CARD ===== */
.rc-card { background: var(--rc-white); border: 1px solid var(--rc-border); border-radius: var(--rc-radius); padding: 18px 20px; transition: all 0.25s var(--rc-ease); display: flex; flex-direction: column; opacity: 0; transform: translateY(10px); animation: rcFadeIn 0.3s ease forwards; }
@keyframes rcFadeIn { to { opacity: 1; transform: translateY(0); } }
.rc-card:hover { border-color: rgba(var(--rc-primary-rgb), 0.3); box-shadow: var(--rc-shadow); transform: translateY(-2px); }
.rc-card__top { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 4px; }
.rc-card__avatar { width: 42px; height: 42px; min-width: 42px; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.rc-card__name { font-family: 'Montserrat', sans-serif; font-weight: 700; color: var(--rc-navy); line-height: 1.3; margin-bottom: 3px; }
.rc-card__meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; color: var(--rc-text-light); }
.rc-card__meta i { color: var(--rc-text-lighter); margin-right: 2px; }
.rc-card__meta-sep { color: var(--rc-border); }
.rc-card__app { margin-top: 8px; color: var(--rc-primary-dark); font-weight: 600; }
.rc-card__desc { font-weight: 400; color: var(--rc-text-light); line-height: 1.65; flex: 1; margin-top: 8px; }
.rc-card__desc.clamped { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rc-card__more { font-family: inherit; font-weight: 600; color: var(--rc-primary-dark); background: none; border: none; cursor: pointer; padding: 3px 0; margin-top: 4px; opacity: 0.7; }
.rc-card__more:hover { opacity: 1; color: var(--rc-navy); }

/* Card colors */
.rc-card[data-ind="fin"] .rc-card__avatar { background: rgba(59,130,246,0.1); color: #2563eb; }
.rc-card[data-ind="ins"] .rc-card__avatar { background: rgba(16,185,129,0.1); color: #059669; }
.rc-card[data-ind="svc"] .rc-card__avatar { background: rgba(107,184,190,0.1); color: #5aa8ae; }
.rc-card[data-ind="pub"] .rc-card__avatar { background: rgba(139,92,246,0.1); color: #7c3aed; }
.rc-card[data-ind="mfg"] .rc-card__avatar { background: rgba(245,158,11,0.1); color: #d97706; }
.rc-card[data-ind="tel"] .rc-card__avatar { background: rgba(236,72,153,0.1); color: #db2777; }
.rc-card[data-ind="ret"] .rc-card__avatar { background: rgba(244,63,94,0.1); color: #e11d48; }
.rc-card[data-ind="utl"] .rc-card__avatar { background: rgba(14,165,233,0.1); color: #0284c7; }

.rc-card:nth-child(1){animation-delay:0s}.rc-card:nth-child(2){animation-delay:.03s}.rc-card:nth-child(3){animation-delay:.06s}.rc-card:nth-child(4){animation-delay:.09s}.rc-card:nth-child(5){animation-delay:.12s}.rc-card:nth-child(6){animation-delay:.15s}.rc-card:nth-child(n+7){animation-delay:.18s}
.rc-hl { background: rgba(var(--rc-primary-rgb), 0.2); border-radius: 2px; padding: 0 1px; }

/* ===== EMPTY / LOAD MORE ===== */
.rc-empty { display: none; text-align: center; padding: 70px 20px; color: var(--rc-text-light); }
.rc-empty.visible { display: block; }
.rc-empty i { display: block; margin-bottom: 16px; color: var(--rc-text-lighter); }
.rc-empty h3 { font-family: 'Montserrat', sans-serif; font-weight: 700; color: var(--rc-navy); margin-bottom: 6px; }
.rc-empty__btn { font-family: inherit; font-weight: 600; padding: 10px 22px; border-radius: 8px; border: none; background: var(--rc-primary); color: var(--rc-white); cursor: pointer; }
.rc-loadmore { display: none; text-align: center; margin-top: 24px; }
.rc-loadmore.visible { display: block; }
.rc-loadmore__btn { font-family: inherit; font-weight: 600; padding: 10px 28px; border-radius: 8px; border: 1.5px solid var(--rc-border); background: transparent; color: var(--rc-text-light); cursor: pointer; transition: all 0.25s var(--rc-ease); }
.rc-loadmore__btn:hover { border-color: var(--rc-primary); color: var(--rc-primary-dark); }
.rc-loadmore__count { font-weight: 500; color: var(--rc-text-lighter); margin-left: 4px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) { .rc-hero__layout { gap: 32px; } .rc-hero__stat { min-width: 130px; padding: 22px 20px; } .rc-hero__stat-num { font-size: 2rem; } }
@media (max-width: 991px) {
    .rc-hero__layout { flex-direction: column; gap: 28px; padding: 56px 0 48px; }
    .rc-hero__content { max-width: none; }
    .rc-hero__title { font-size: 2.4rem; }
    .rc-hero__stats { width: 100%; justify-content: center; }
    .rc-hero__stat { flex: 1; max-width: 200px; }
    .rc-sidebar { position: fixed; top: 0; left: -320px; width: 300px; height: 100vh; max-height: 100vh; z-index: 1000; background: var(--rc-white); border-radius: 0; transition: left 0.3s var(--rc-ease); padding: 0; }
    .rc-sidebar.open { left: 0; }
    .rc-sidebar__inner { border: none; border-radius: 0; box-shadow: none; height: 100%; overflow-y: auto; padding: 20px; }
    .rc-sidebar__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--rc-border); }
    .rc-mobile-toggle { display: flex; }
}
@media (max-width: 767px) { .rc-hero__layout { padding: 44px 0 36px; } .rc-hero__title { font-size: 2rem; } .rc-hero__subtitle { font-size: 1.6rem; } .rc-hero__stat { padding: 18px 14px; } .rc-hero__stat-num { font-size: 1.6rem; } .rc-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .rc-hero__stat { min-width: unset; } .rc-card { padding: 14px 16px; } .rc-card__avatar { width: 36px; height: 36px; min-width: 36px; } }
body.rc-sidebar-open { overflow: hidden; }