:root{
    --chip-border:#E6E6E6;
    --muted:#6b7280;
}
*{ font-family: 'Bricolage Grotesque'; }
html{ scroll-behavior:smooth; scroll-padding-top:80px; }
body{ background: #fafafa; }

/* Banner */
#banner{
    background: linear-gradient(77deg, #f5f6ff, #e8e8ff);
    padding: 85px 0;
}
#banner h1{
    color: var(--black, #0f172a);
    font-weight: 800;
    letter-spacing: .5px;
    margin: 0;
}
#banner p{
    color:#191919; opacity:.8; font-size:18px; margin-top:8px;
}

/* Layout */
.container2{ width: 1200px; max-width: 100%; margin: 0 auto; }
.page-grid{
    display:grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
}
@media (max-width: 992px){
    .page-grid{ grid-template-columns: 1fr; }
}

/* Side TOC */
.side-card{
    position: sticky; top: 16px;
    background:#fff; border:1px solid #eee; border-radius:16px;
    padding:16px; box-shadow:0 4px 20px rgba(0,0,0,.04);
}
.side-title{ font-size:14px; font-weight:700; letter-spacing:.4px; color:#111827; text-transform:uppercase; margin-bottom:12px; }
#tagSearch{
    width:100%; padding:10px 12px; border:1px solid #e5e7eb; border-radius:10px; outline:none;
}
.az-grid{
    display:grid; grid-template-columns: repeat(6, 1fr); gap:8px; margin-top:14px;
}
.az-grid a{
    display:block; text-align:center; padding:8px 0; text-decoration:none;
    border:1px solid #e5e7eb; border-radius:10px; font-weight:600; color:#374151; font-size:14px;
    transition: all .2s ease;
}
.az-grid a:hover{ border-color: var(--blue, #2563eb); color: var(--blue, #2563eb); }
.az-grid a.disabled{ opacity:.35; cursor:not-allowed; }

/* Sections */
.section-block{
    margin-bottom: 28px;
}
.section-header{
    position: sticky; top: 0;
    backdrop-filter: saturate(180%) blur(6px);
    background: rgba(250,250,250,.75);
    border-bottom: 1px solid #eee;
    padding: 10px 6px;
    z-index: 5;
}
.section-header h2{
    font-size:18px; font-weight:800; letter-spacing:.5px; color:#0f172a; margin:0;
}

/* Tag grid */
.tag-grid{
    display:grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding: 14px 4px 6px;
}
@media (max-width: 1200px){ .tag-grid{ grid-template-columns: repeat(2, 1fr);} }
@media (max-width: 576px){ .tag-grid{ grid-template-columns: repeat(1, 1fr);} }

.tag-chip{
    background:#fff; border:1px solid var(--chip-border);
    border-radius:12px; padding:12px 14px;
    display:flex; align-items:center; justify-content:space-between;
    text-decoration:none; color:#111827; transition: all .2s ease;
    box-shadow:0 2px 10px rgba(0,0,0,.02);
}
.tag-chip:hover{
    border-color: var(--blue, #2563eb);
    transform: translateY(-1px);
    box-shadow:0 6px 18px rgba(0,0,0,.06);
}
.tag-name {
    font-size:15px;
    font-weight:600;
    letter-spacing:.2px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    max-width: 100%;
}
.tag-count{
    font-size:13px; font-weight:700; padding:4px 10px; border-radius:999px;
    color: var(--blue, #2563eb); background: var(--bg, #eef2ff);
}

/* Active letter highlight (scroll spy) */
.az-grid a.active{
    border-color: var(--blue, #2563eb);
    color: var(--blue, #2563eb);
    box-shadow: 0 2px 10px rgba(37,99,235,.15);
}