/* CapeLookout Community Relevance v0.1.1 — R3A Personal Relevance Foundation
   Hero Utility R1: the Explore / For You dashboard frames are gone. The shell is
   two unboxed, fixed-height horizontal strips whose heights come from the
   Community Hero's shared geometry tokens (--cl-hero-rail-h / --cl-hero-rail-gap /
   --cl-hero-personal-h, Hero >= 1.6.3). The fallbacks below equal the Hero's
   desktop defaults so an older Hero still renders sane rows. Hover/focus, the
   follow state and the verified badge are unchanged from v0.1.0. */
.cl-community-relevance {
    --_rail: var(--cl-hero-rail-h, 36px);
    --_gap: var(--cl-hero-rail-gap, 8px);
    --_personal: var(--cl-hero-personal-h, 30px);
    display: flex;
    flex-direction: column;
    gap: var(--_gap);
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: #fff;
}
/* Both rows are horizontal strips: a constant height regardless of how many
   items they hold (0, 1, 3 or 4+ recents; following on/off), so Hero height is
   never a function of personal content. Overflow scrolls, scrollbar hidden. */
.cl-community-relevance__collections,
.cl-community-relevance__personal {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
}
.cl-community-relevance__collections { height: var(--_rail); }
.cl-community-relevance__personal { height: var(--_personal); flex-direction: row; justify-content: flex-start; }
.cl-community-relevance__collections::-webkit-scrollbar,
.cl-community-relevance__personal::-webkit-scrollbar { display: none; }
.cl-community-relevance__personal[hidden],
.cl-community-relevance__follow[hidden] { display: none; }

/* "Explore" and "For you" stay in the accessibility tree, not on the canvas. */
.cl-community-relevance__label {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
.cl-community-relevance__recent-label {
    flex: 0 0 auto;
    font-size: 11px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: .02em;
    color: rgba(255,255,255,.66);
    text-shadow: 0 1px 6px rgba(0,0,0,.6);
    white-space: nowrap;
}
.cl-community-relevance__collection-links,
.cl-community-relevance__recent-links {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
    flex: 0 0 auto;
    min-width: 0;
}
.cl-community-relevance__personal-head,
.cl-community-relevance__recent {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    min-width: 0;
}
/* Action chips: the light control group under Search. Translucent, no blur —
   the photograph shows through and there are at most four paint regions. */
.cl-community-relevance__collection {
    height: var(--_rail);
    min-height: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.20);
    background: rgba(6,16,30,.60);
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    touch-action: manipulation;
}
/* Personal chips: quieter than the action rail, subordinate to Search. */
.cl-community-relevance__recent-links a,
.cl-community-relevance__follow {
    height: var(--_personal);
    min-height: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    padding: 0 11px;
    border-radius: 999px;
    border: 1px solid rgba(95,220,255,.24);
    background: rgba(6,16,30,.52);
    color: rgba(255,255,255,.92);
    font: inherit;
    font-size: 12px;
    font-weight: 750;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    touch-action: manipulation;
}
.cl-community-relevance__collection:hover,
.cl-community-relevance__recent-links a:hover,
.cl-community-relevance__follow:hover {
    border-color: rgba(95,220,255,.55);
    background: rgba(8,28,45,.86);
}
.cl-community-relevance__collection:focus-visible,
.cl-community-relevance__recent-links a:focus-visible,
.cl-community-relevance__follow:focus-visible {
    outline: 2px solid rgba(95,220,255,.95);
    outline-offset: 2px;
}
.cl-community-relevance__follow[aria-pressed="true"] {
    color: #9ff2ff;
    border-color: rgba(95,220,255,.55);
    box-shadow: inset 0 0 0 1px rgba(95,220,255,.12);
}
.cl-community-relevance__follow:disabled { opacity: .62; cursor: progress; }
.cl-community-relevance-verified {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    width: max-content;
    max-width: 100%;
    padding: 2px 6px;
    border-radius: 999px;
    border: 1px solid rgba(95,220,255,.42);
    background: rgba(7,28,42,.78);
    color: #9ff2ff;
    font-size: 9px;
    font-weight: 900;
    line-height: 1.25;
    letter-spacing: .04em;
    text-transform: uppercase;
    white-space: nowrap;
}
.cl-sheet-title .cl-community-relevance-verified {
    display: inline-flex;
    margin-left: 8px;
    vertical-align: middle;
    transform: translateY(-2px);
}
@media (max-width: 760px) {
    /* Row heights come from the Hero tokens (40px action chips <=900px);
       only the horizontal padding changes here. */
    .cl-community-relevance__collection { padding-inline: 13px; }
}
@media (prefers-reduced-motion: reduce) {
    .cl-community-relevance *,
    .cl-community-relevance-verified { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
