/* ArtifactScan – evaluation perspective selector & profile chips (public pages) */

/* ─── Choose your pathway ─── */
.ac-path {
    margin: 0 0 22px; padding: 18px 20px 20px;
    background: #fff; border: 1px solid #e5eaf2; border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0,0,0,.04);
    display: flex; flex-direction: column; gap: 14px;
}
.ac-path__head   { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 24px; }
.ac-path__intro  { display: flex; flex-direction: column; gap: 4px; flex: 1 1 520px; min-width: 0; }
.ac-path__kicker { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #475569; }
.ac-path__desc   { margin: 0; font-size: .875rem; line-height: 1.45; color: #334155; }
.ac-path__desc strong { color: #1e1b4b; }
.ac-path__aside  { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.ac-path__legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; padding: 0; list-style: none; font-size: .75rem; color: #475569; }
.ac-path__legend li { display: inline-flex; align-items: center; gap: 6px; }
.ac-path__sw { width: 12px; height: 7px; border-radius: 2px; display: inline-block; }

.ac-path__groups { display: flex; gap: 22px; align-items: stretch; }
.ac-path__group  { margin: 0; padding: 0; border: 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.ac-path__group--views    { flex: 2 1 0; }
.ac-path__group--profiles { flex: 4 1 0; padding-left: 22px; border-left: 1px solid #e2e8f0; }
.ac-path__label  { padding: 0; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #64748b; }
.ac-path__tiles  { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 10px; height: 100%; }

.ac-path__tile {
    font: inherit; text-align: left; cursor: pointer;
    display: flex; flex-direction: column; gap: 5px; min-height: 128px; min-width: 0;
    padding: 14px; border-radius: 12px; box-sizing: border-box;
    background: #fff; color: #0f172a; border: 2px solid #e5eaf2;
    transition: border-color .15s, box-shadow .15s, background .15s;
}
.ac-path__tile:hover        { border-color: #c7d2fe; }
.ac-path__tile:focus-visible { outline: 3px solid #818cf8; outline-offset: 2px; }
.ac-path__name { font-size: .9rem; line-height: 1.25; }
.ac-path__sub  { font-size: .78rem; line-height: 1.35; color: #475569; }
.ac-path__meta { font-size: .7rem; font-weight: 600; color: #64748b; font-variant-numeric: tabular-nums; }

.ac-path__bar  { margin-top: auto; display: flex; width: 100%; height: 7px; border-radius: 4px; overflow: hidden; background: #eef1f7; }
.ac-path__bar--full   { background: #64748b; }
.ac-path__bar--dashed { background: transparent; border: 1px dashed #94a3b8; box-sizing: border-box; }
.ac-path__seg  { height: 100%; }

.ac-path__seg--mandatory,   .ac-path__sw--mandatory   { background: #1e1b4b; }
.ac-path__seg--recommended, .ac-path__sw--recommended { background: #6366f1; }
.ac-path__seg--optional,    .ac-path__sw--optional    { background: #c7d2fe; }
.ac-path__seg--conditional, .ac-path__sw--conditional { background: repeating-linear-gradient(135deg, #f59e0b 0 3px, #fde68a 3px 6px); }

/* selected */
.ac-path__tile.is-on { background: #312e81; color: #fff; border-color: #312e81; box-shadow: 0 10px 24px rgba(49,46,129,.25); }
.ac-path__tile.is-on .ac-path__sub  { color: #e0e7ff; }
.ac-path__tile.is-on .ac-path__meta { color: #c7d2fe; }
.ac-path__tile.is-on .ac-path__bar  { background: rgba(255,255,255,.18); }
.ac-path__tile.is-on .ac-path__bar--full   { background: #e2e8f0; }
.ac-path__tile.is-on .ac-path__bar--dashed { background: transparent; border-color: #a5b4fc; }
.ac-path__tile.is-on .ac-path__seg--mandatory { background: #fff; }

/* ─── Scoring table (toggle) ─── */
.ac-score-table { border-top: 1px solid #eef1f7; padding-top: 12px; }
.ac-score-table__toggle {
    display: inline-flex; align-items: center; gap: 8px; cursor: pointer; list-style: none;
    min-height: 36px; padding: 0 14px; border-radius: 10px;
    font-size: .8rem; font-weight: 600; color: #3730a3;
    background: #eef2ff; border: 1px solid #c7d2fe; transition: background .15s, border-color .15s;
}
.ac-score-table__toggle::-webkit-details-marker { display: none; }
.ac-score-table__toggle:hover { background: #e0e7ff; border-color: #a5b4fc; }
.ac-score-table__toggle:focus-visible { outline: 3px solid #818cf8; outline-offset: 2px; }
.ac-score-table__hide { display: none; }
.ac-score-table[open] .ac-score-table__show { display: none; }
.ac-score-table[open] .ac-score-table__hide { display: inline; }
.ac-score-table__chev { transition: transform .15s; }
.ac-score-table[open] .ac-score-table__chev { transform: rotate(180deg); }

.ac-score-table__body  { margin-top: 14px; display: flex; flex-direction: column; gap: 14px; }
.ac-score-table__rules { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding: 0; list-style: none; font-size: .8rem; color: #475569; }
.ac-score-table__rules li { display: flex; align-items: center; gap: 8px; }
.ac-score-table__rules strong { color: #1e1b4b; }
.ac-score-table__scroll { overflow-x: auto; border: 1px solid #e5eaf2; border-radius: 12px; }
.ac-score-table__table  { width: 100%; min-width: 720px; border-collapse: collapse; font-size: .82rem; }
.ac-score-table__table th, .ac-score-table__table td { padding: 8px 12px; text-align: center; border-bottom: 1px solid #eef1f7; }
.ac-score-table__table thead th {
    position: sticky; top: 0; background: #f8fafc; color: #334155;
    font-size: .74rem; font-weight: 700; line-height: 1.3; vertical-align: bottom;
}
.ac-score-table__table .ac-score-table__check { text-align: left; font-weight: 500; color: #0f172a; min-width: 230px; }
.ac-score-table__table thead .ac-score-table__check { font-weight: 700; color: #334155; }
.ac-score-table__cat th {
    text-align: left; background: #f1f5f9; color: #475569;
    font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 6px 12px;
}
.ac-score-table__table tbody tr:not(.ac-score-table__cat):hover { background: #fafbff; }
.ac-score-table__table tfoot th, .ac-score-table__table tfoot td { border-bottom: 0; background: #f8fafc; font-weight: 700; color: #334155; font-variant-numeric: tabular-nums; }
.ac-score-table__table .is-on { background: #eef2ff; }
.ac-score-table__table thead th.is-on { background: #312e81; color: #fff; }
.ac-score-table__src { margin: 0; font-size: .72rem; color: #64748b; }

.ac-lv {
    display: inline-flex; align-items: center; justify-content: center;
    width: 24px; height: 22px; border-radius: 6px; font-size: .72rem; font-weight: 800;
}
.ac-lv--mandatory   { background: #1e1b4b; color: #fff; }
.ac-lv--recommended { background: #6366f1; color: #fff; }
.ac-lv--optional    { background: #e0e7ff; color: #3730a3; }
.ac-lv--conditional { background: #fef3c7; color: #92400e; border: 1px solid #fcd34d; box-sizing: border-box; }
.ac-lv--na          { background: transparent; color: #94a3b8; }

@media (max-width: 1100px) {
    .ac-path__aside { align-items: flex-start; }
    .ac-path__groups { flex-direction: column; gap: 14px; }
    .ac-path__group--profiles { padding-left: 0; border-left: 0; }
    .ac-path__tiles { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ac-path__tile  { min-height: 0; }
}
@media (max-width: 520px) {
    .ac-path__tiles { grid-template-columns: minmax(0, 1fr); }
}

.ac-pub-card-profile, .ac-proj-profile { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }

.ac-prof-chip, .ac-prof-met {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: .68rem; font-weight: 600; line-height: 1; white-space: nowrap;
    padding: 4px 8px; border-radius: 999px; border: 1px solid transparent;
}
.ac-prof-chip         { background: #eef2ff; color: #3730a3; border-color: #c7d2fe; }
.ac-prof-chip--all    { background: #f1f5f9; color: #475569; border-color: #e2e8f0; }
.ac-prof-chip__k      { font-weight: 500; opacity: .7; text-transform: uppercase; letter-spacing: .05em; font-size: .6rem; }
.ac-prof-met--yes     { background: #dcfce7; color: #166534; border-color: #bbf7d0; }
.ac-prof-met--no      { background: #fee2e2; color: #991b1b; border-color: #fecaca; }
.ac-prof-met--na      { background: #f1f5f9; color: #64748b; border-color: #e2e8f0; }
.ac-prof-met--warn    { background: #fef3c7; color: #92400e; border-color: #fde68a; }

