/* Compact CVEs page styles (reuses home.css layout + fixed height). */

.cves{
    min-height: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  
  /* CSS typing for "$ cves" */
  .typewriter{
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    width: 0ch;
    animation: typing 0.85s steps(6, end) forwards;
  }
  @keyframes typing{
    from { width: 0ch; }
    to { width: 6ch; }
  }
  
  /* Compact stats */
  .stats{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }
  .stat{
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    padding: 10px 10px 8px;
  }
  .stat__label{
    color: rgba(233, 238, 246, 0.62);
    font-size: 0.82rem;
  }
  .stat__value{
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-top: 6px;
  }
  
  /* Search */
  .tools{ padding-top: 2px; }
  .search{
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    align-items: center;
  }
  .search__label{
    color: rgba(233, 238, 246, 0.68);
    font-size: 0.88rem;
  }
  .search__input{
    width: 100%;
    height: 38px;
    padding: 0 12px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(255,255,255,0.03);
    color: rgba(233, 238, 246, 0.92);
    outline: none;
  }
  .search__input:focus{
    border-color: rgba(255,255,255,0.22);
    background: rgba(255,255,255,0.05);
  }
  
  /* Buttons */
  .btn{
    height: 30px;
    padding: 0 10px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(255,255,255,0.05);
    color: rgba(233, 238, 246, 0.92);
    font: inherit;
    cursor: pointer;
    transition: background 140ms ease, border-color 140ms ease, transform 120ms ease, box-shadow 140ms ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    user-select: none;
    font-size: 0.9rem;
  }
  .btn:hover{
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.18);
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(0,0,0,0.22);
  }
  .btn:active{
    transform: translateY(0) scale(0.98);
    box-shadow: none;
  }
  .btn--primary{
    height: 38px;
    border-radius: 12px;
    padding: 0 12px;
    background: rgba(255,255,255,0.08);
  }
  .btn--details{
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.12);
  }
  .btn--details svg{
    width: 15px;
    height: 15px;
    fill: currentColor;
    opacity: 0.9;
  }
  
  /* Pagination state (no JS) */
  .pg{ position: absolute; opacity: 0; pointer-events: none; }
  
  .pages{ display: grid; gap: 10px; }
  .page{ display: none; }
  #pg1:checked ~ .pages .page--1{ display: block; }
  #pg2:checked ~ .pages .page--2{ display: block; }
  #pg3:checked ~ .pages .page--3{ display: block; }
  
  /* CVE list: 2 items per row */
  .cvelist{
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  
  .cve{
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    padding: 10px;
    display: grid;
    gap: 8px;
  }
  
  /* Single-line ID + excerpt */
  .cve__row{
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    align-items: center;
    min-width: 0;
  }
  
  .cve__id{
    font-weight: 600;
    font-size: 0.93rem;
    white-space: nowrap;
  }
  
  .cve__excerpt{
    color: rgba(233, 238, 246, 0.78);
    font-size: 0.93rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
  }
  
  /* Hover target: no more "help" cursor that shows ? */
  .tip{
    cursor: pointer;
    outline: none;
    border-radius: 8px;
    padding: 2px 4px;
    margin: -2px -4px;
    transition: background 140ms ease, box-shadow 140ms ease;
  }
  .tip:hover,
  .tip:focus-visible{
    background: rgba(255,255,255,0.05);
    box-shadow: 0 0 0 1px rgba(255,255,255,0.10) inset;
  }
  
  /* Badges + button row */
  .cve__meta{
    display: flex;
    align-items: center;
    gap: 8px;
  }
  
  .badge{
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(255,255,255,0.03);
    font-size: 0.82rem;
    line-height: 1;
  }
  
  .badge--score{
    color: rgba(233, 238, 246, 0.80);
  }
  
  .badge--sev{
    border-color: rgba(255,255,255,0.12);
  }
  
  /* Severity colors */
  .badge--low{
    background: rgba(120, 255, 180, 0.08);
    border-color: rgba(120, 255, 180, 0.22);
    color: rgba(160, 255, 205, 0.95);
  }
  .badge--medium{
    background: rgba(255, 220, 120, 0.08);
    border-color: rgba(255, 220, 120, 0.22);
    color: rgba(255, 230, 165, 0.95);
  }
  .badge--high{
    background: rgba(255, 150, 120, 0.08);
    border-color: rgba(255, 150, 120, 0.22);
    color: rgba(255, 190, 170, 0.95);
  }
  .badge--critical{
    background: rgba(255, 120, 160, 0.09);
    border-color: rgba(255, 120, 160, 0.26);
    color: rgba(255, 170, 200, 0.95);
  }
  
  /* Bottom pinned pagination */
  .bottom{
    margin-top: auto;
    padding-top: 6px;
  }
  
  .pager{
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .pager__spacer{ flex: 1; }
  
  .pager__link{
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(255,255,255,0.03);
    color: rgba(233, 238, 246, 0.9);
    transition: background 140ms ease, border-color 140ms ease, transform 120ms ease;
    cursor: pointer;
    user-select: none;
  }
  .pager__link:hover{
    background: rgba(255,255,255,0.07);
    border-color: rgba(255,255,255,0.18);
    transform: translateY(-1px);
  }
  .pager__link:active{
    transform: translateY(0) scale(0.98);
  }
  
  /* Active pager button */
  #pg1:checked ~ .bottom .pager label[for="pg1"],
  #pg2:checked ~ .bottom .pager label[for="pg2"],
  #pg3:checked ~ .bottom .pager label[for="pg3"]{
    background: rgba(255,255,255,0.10);
    border-color: rgba(255,255,255,0.26);
  }
  
  /* ===== Real tooltip rendered in BODY (not clipped by scroll) ===== */
  .tooltip{
    z-index: 9999;
    width: min(520px, 60vw);
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(10, 14, 22, 0.95);
    backdrop-filter: blur(10px);
    color: rgba(233, 238, 246, 0.92);
    font-size: 0.92rem;
    line-height: 1.45;
    box-shadow: 0 18px 40px rgba(0,0,0,0.45);
    transform-origin: top left;
  }
  
  /* Arrow */
  .tooltip::after{
    content: "";
    position: absolute;
    left: var(--arrow-x, 24px);
    width: 10px;
    height: 10px;
    background: rgba(10, 14, 22, 0.95);
    border-left: 1px solid rgba(255,255,255,0.14);
    border-top: 1px solid rgba(255,255,255,0.14);
    transform: rotate(45deg);
  }
  
  /* Below target: arrow on top */
  .tooltip--below::after{
    top: -6px;
  }
  
  /* Above target: arrow on bottom (flip) */
  .tooltip--above::after{
    bottom: -6px;
    transform: rotate(225deg);
  }
  
  /* Responsive */
  @media (max-width: 920px){
    .stats{ grid-template-columns: 1fr; }
    .search{ grid-template-columns: 1fr; }
    .cvelist{ grid-template-columns: 1fr; }
    .tooltip{ width: min(520px, 78vw); }
  }
  