/* The suggestions panel (Figma 38-26), under every search field; on a phone, the full-screen search.
   Brand palette tokens only. Figma's "Campus Black - Light 1" (#F6F6F6) has no token of that value in
   palette.css (its --cil-black-light-1 is #E7EBEF): the nearest, --cil-white-light-2 (#F3F3F3), stands in. */

.cil-sg {
    z-index: 100001;
    box-sizing: border-box;
    overflow: hidden auto;
    max-block-size: min(70vh, 640px);
    border-radius: 12px;
    background: var(--cil-white);
    box-shadow: 0 8px 24px -4px color-mix(in srgb, var(--cil-black) 16%, transparent),
                0 1px 3px 0 color-mix(in srgb, var(--cil-black) 8%, transparent);
    font-family: inherit;
    text-align: start;
    animation: cil-sg-in 0.16s ease-out;
}
.cil-sg[hidden] { display: none; }
@keyframes cil-sg-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

.cil-sg__list,
.cil-sg__group { margin: 0; padding: 0; list-style: none; }
.cil-sg__section { display: block; }

.cil-sg__status {
    padding: 12px 20px 10px;
    background: var(--cil-white-light-2);
    color: var(--cil-black-regular-7);
    font-size: 14px;
    line-height: 1.2;
}

.cil-sg__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px 8px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
}
.cil-sg__label { color: var(--cil-black-regular-7); }
.cil-sg .cil-sg__all,
.cil-sg .cil-sg__all:hover,
.cil-sg .cil-sg__all:focus {
    padding: 0;
    border: 0;
    background: none;
    color: var(--cil-blue-dark-1);
    font: inherit;
    text-decoration: none;
    cursor: pointer;
    background-image: linear-gradient(currentColor, currentColor);
    background-size: 0 1px;
    background-position: 0 100%;
    background-repeat: no-repeat;
    transition: background-size 0.2s ease;
}
.cil-sg .cil-sg__all:hover { background-size: 100% 1px; }

.cil-sg__row {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--cil-black);
    cursor: pointer;
    transition: background-color 0.12s ease;
}
.cil-sg__row.is-active { background: var(--cil-blue-light-1); }

.cil-sg__tile {
    display: grid;
    place-items: center;
    flex: none;
    inline-size: 36px;
    block-size: 36px;
    border-radius: 8px;
    background: var(--cil-white-light-2);
    overflow: hidden;
}
.cil-sg__tile img { display: block; }
.cil-sg__tile--person { border-radius: 50%; background: var(--cil-blue-light-5); }
.cil-sg__tile--municipality { background: var(--cil-blue-light-1); }
.cil-sg__avatar { inline-size: 36px; block-size: 36px; object-fit: cover; }

.cil-sg__words { display: flex; flex: 1 1 auto; flex-direction: column; gap: 2px; min-inline-size: 0; line-height: 1.2; }
.cil-sg__title { font-size: 16px; color: var(--cil-black); overflow-wrap: anywhere; }
.cil-sg__meta { font-size: 14px; color: var(--cil-black-regular-7); overflow-wrap: anywhere; }
.cil-sg__row--correction .cil-sg__title { color: var(--cil-blue-dark-1); }

.cil-sg__enter {
    display: none;
    flex: none;
    color: var(--cil-blue-dark-1);
    font-size: 14px;
    line-height: 1.2;
    white-space: nowrap;
}
.cil-sg__row.is-active .cil-sg__enter { display: block; }

.cil-sg .cil-sg__remove {
    display: grid;
    place-items: center;
    flex: none;
    inline-size: 28px;
    block-size: 28px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--cil-black-light-2);
    color: var(--cil-black);
    opacity: 0;
    cursor: pointer;
    transition: opacity 0.15s ease, background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.cil-sg__row:hover .cil-sg__remove,
.cil-sg__row.is-active .cil-sg__remove { opacity: 1; }
/* Pointed at, the circle turns the brand's red under a white x (Oren 2026-10-07): removing is a red act. */
.cil-sg .cil-sg__remove:is(:hover, :focus-visible) { background: var(--cil-red); color: var(--cil-white); transform: scale(1.06); }
/* The x is a picture (suggest-view.js icon()): drawn white over the red. */
.cil-sg .cil-sg__remove img { transition: filter 0.15s ease; }
.cil-sg .cil-sg__remove:is(:hover, :focus-visible) img { filter: brightness(0) invert(1); }
.cil-sg__row:has(.cil-sg__remove).is-active .cil-sg__enter { display: none; }

.cil-sg__row--footer {
    justify-content: space-between;
    padding: 14px 20px 16px;
    background: var(--cil-white-light-2);
}
.cil-sg__row--footer .cil-sg__tile { order: 3; inline-size: 16px; block-size: 16px; background: none; border-radius: 0; }
.cil-sg__row--footer .cil-sg__tile img { inline-size: 16px; block-size: 16px; }
[dir="ltr"] .cil-sg__row--footer .cil-sg__tile img { transform: scaleX(-1); }
.cil-sg__row--footer .cil-sg__title { color: var(--cil-blue-dark-1); font-weight: 600; }
.cil-sg__row--footer.is-active { background: var(--cil-blue-light-1); }
.cil-sg__row--footer .cil-sg__enter { display: none !important; }
.cil-sg__row--footer .cil-sg__words { flex: 0 1 auto; }

.cil-sg__divider { block-size: 1px; background: var(--cil-black-light-3); }

.cil-sg__notice {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 28px 20px;
    text-align: center;
    line-height: 1.2;
}
.cil-sg__notice-title { color: var(--cil-black); font-size: 16px; font-weight: 700; }
.cil-sg__notice--error .cil-sg__notice-title { font-weight: 600; }
.cil-sg__notice-hint { color: var(--cil-black-regular-7); font-size: 14px; }
.cil-sg .cil-sg__retry,
.cil-sg .cil-sg__retry:hover,
.cil-sg .cil-sg__retry:focus {
    display: inline-flex;
    padding: 6px 12px;
    border: 1px solid var(--cil-blue-dark-1);
    border-radius: 8px;
    background: none;
    color: var(--cil-blue-dark-1);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: box-shadow 0.15s ease;
}
.cil-sg .cil-sg__retry:hover { box-shadow: inset 0 0 0 1px var(--cil-blue-dark-1); }
.cil-sg .cil-sg__retry:focus-visible { outline: 2px solid var(--cil-blue-dark-1); outline-offset: 2px; }

.cil-sg__skeleton {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
}
.cil-sg__skeleton::before {
    content: "";
    flex: none;
    inline-size: 36px;
    block-size: 36px;
    border-radius: 8px;
    background: var(--cil-black-light-2);
}
.cil-sg__skeleton::after {
    content: "";
    block-size: 12px;
    inline-size: min(var(--cil-sg-line, 300px), 70%);
    border-radius: 6px;
    background: var(--cil-black-light-2);
}

.cil-sg__live {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

/* ---- the phone's full-screen search ---- */

.cil-sg-locked,
.cil-sg-locked body { overflow: hidden; }

.cil-sg-sheet {
    position: fixed;
    inset: 0;
    z-index: 100002;
    display: none;
    flex-direction: column;
    background: var(--cil-white);
    font-family: inherit;
}
.cil-sg-sheet.is-open { display: flex; animation: cil-sg-in 0.18s ease-out; }
.cil-sg-sheet__bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-block-end: 1px solid var(--cil-black-light-3);
}
.cil-sg-sheet__field {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    gap: 10px;
    min-inline-size: 0;
    block-size: 48px;
    padding: 0 12px;
    border: 2px solid var(--cil-blue-dark-1);
    border-radius: 8px;
    background: var(--cil-white);
}
.cil-sg-sheet .cil-sg-sheet__input,
.cil-sg-sheet .cil-sg-sheet__input:focus {
    flex: 1 1 auto;
    min-inline-size: 0;
    block-size: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    outline: none;
    background: none;
    box-shadow: none;
    color: var(--cil-black);
    font: inherit;
    font-size: 16px;
}
.cil-sg-sheet__input::-webkit-search-cancel-button { display: none; }
.cil-sg-sheet .cil-sg-sheet__clear,
.cil-sg-sheet .cil-sg-sheet__cancel {
    display: grid;
    place-items: center;
    flex: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}
.cil-sg-sheet .cil-sg-sheet__clear { inline-size: 28px; block-size: 28px; border-radius: 50%; background: var(--cil-black-light-2); }
.cil-sg-sheet .cil-sg-sheet__cancel { color: var(--cil-blue-dark-1); font: inherit; font-size: 16px; font-weight: 600; }
.cil-sg-sheet .cil-sg-sheet__cancel:focus-visible,
.cil-sg-sheet .cil-sg-sheet__clear:focus-visible { outline: 2px solid var(--cil-blue-dark-1); outline-offset: 2px; }
.cil-sg-sheet .cil-sg {
    position: static !important;
    flex: 1 1 auto;
    inline-size: auto !important;
    max-block-size: none;
    border-radius: 0;
    box-shadow: none;
    animation: none;
}
.cil-sg-sheet .cil-sg__row--footer { position: sticky; inset-block-end: 0; }
.cil-sg-sheet .cil-sg__title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cil-sg-sheet .cil-sg__remove { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
    .cil-sg, .cil-sg-sheet.is-open { animation: none; }
    .cil-sg__row, .cil-sg .cil-sg__all, .cil-sg .cil-sg__remove { transition: none; }
}
