.gl-wrap { padding: 0 var(--pd-edge); }

.gl-h1 { margin: 0; }

.gl-crumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-2);
    min-height: 44px;
    padding-top: var(--space-3);
    font-size: 13px;
    color: var(--color-text-muted);
}

.gl-head {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: var(--space-5) 0 var(--space-8);
}

.gl-head__eyebrow { margin: 0; }

.gl-head__lede {
    max-width: 680px;
    font-size: var(--font-size-lg);
    line-height: 1.55;
    color: var(--color-text-muted);
}

.gl-head__meta {
    font-size: 13px;
    line-height: 1.5;
    color: var(--color-text-muted);
}

.gl-toolbar {
    padding: var(--space-4) 0;
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.gl-toolbar__row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-5);
}

.gl-switch {
    display: flex;
    gap: var(--space-1);
}

.gl-crumbs__link { display: inline-flex; align-items: center; min-height: 44px; }

.gl-head__link { white-space: nowrap; }

.gl-switch__item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 var(--space-4);
    border-radius: var(--radius-md);
    background: var(--bg-tint);
    font-size: var(--font-size-sm);
    font-weight: 600;
    white-space: nowrap;
    color: var(--color-text-muted);
}

.gl-switch__item[aria-current="page"] {
    background: var(--color-surface);
    box-shadow: 0 0 0 1px var(--color-border-strong);
    color: var(--color-text);
}

.gl-jump {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-2);
    min-width: 0;
}

.gl-jump__label,
.gl-rows__head,
.gl-find__label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.gl-jump__item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    padding: 0 var(--space-3);
    border-radius: 16px;
    box-shadow: inset 0 0 0 1px var(--color-border-strong);
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    color: var(--color-text);
}

.gl-jump__item:hover { text-decoration: none; box-shadow: inset 0 0 0 1px var(--color-accent); }

.gl-jump__item[aria-disabled="true"] {
    box-shadow: none;
    color: var(--color-text-muted);
    opacity: 0.55;
}

.gl-jump__item--letter { min-width: 32px; justify-content: center; padding: 0 var(--space-2); }

.gl-jump__count {
    font-family: var(--font-mono);
    font-size: var(--font-size-xs);
    font-variant-numeric: tabular-nums;
    color: var(--color-text-muted);
}

.gl-legend {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: var(--space-4);
    font-size: 13px;
    line-height: 1.5;
    color: var(--color-text-muted);
}

.gl-legend__num,
.gl-row__num {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
    color: var(--color-text);
}

.gl-bar { flex: none; display: block; width: 56px; height: 6px; border-radius: 3px; }
.gl-bar__track { fill: var(--bg-tint); }
.gl-bar__fill { fill: var(--color-accent); }

.gl-notice {
    margin: 0 0 var(--space-6);
    padding: var(--space-3) var(--space-4);
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-md);
    background: var(--color-surface);
    font-size: var(--font-size-sm);
    line-height: 1.5;
}

.gl-notice--warn {
    border-color: var(--color-warning-border);
    background: var(--color-warning-bg);
    color: var(--color-warning-text);
}

.gl-notice__link { margin-left: var(--space-2); font-weight: 600; }

.gl-find {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: 560px;
    margin-top: var(--space-3);
}

.gl-find__row { display: flex; gap: var(--space-2); }

.gl-find__input {
    flex: 1;
    min-width: 0;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-md);
    background: var(--color-surface);
    color: var(--color-text);
    font: inherit;
}

.gl-find__input:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 1px; }

.gl-find__go {
    min-height: 44px;
    padding: 0 var(--space-5);
    border: 0;
    border-radius: var(--radius-md);
    background: var(--color-surface);
    box-shadow: inset 0 0 0 1px var(--color-border-strong);
    color: var(--color-text);
    font: inherit;
    font-size: var(--font-size-sm);
    font-weight: 600;
    cursor: pointer;
}

.gl-groups { padding-top: var(--space-8); padding-bottom: var(--space-12); }

.gl-group {
    padding-top: var(--space-4);
    scroll-margin-top: calc(var(--topbar-h, 60px) + var(--space-4));
}

.gl-group + .gl-group { margin-top: var(--space-10); }

.gl-group__head {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: var(--space-1) var(--space-3);
    margin-bottom: var(--space-3);
}

.gl-group__title { font-size: var(--font-size-xl); font-weight: 700; letter-spacing: -0.015em; line-height: 1.2; }

.gl-group__count {
    font-family: var(--font-mono);
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
}

.gl-group__sub { font-size: var(--font-size-sm); color: var(--color-text-muted); }

.gl-rows {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    overflow: hidden;
}

.gl-rows__head,
.gl-row {
    display: grid;
    grid-template-columns: minmax(150px, 220px) minmax(0, 1fr) 168px;
    align-items: center;
    column-gap: var(--space-6);
    padding: var(--space-3) var(--space-5);
}

.gl-rows--plain .gl-rows__head,
.gl-rows--plain .gl-row { grid-template-columns: minmax(150px, 220px) minmax(0, 1fr); }

.gl-rows__head {
    padding-top: var(--space-2);
    padding-bottom: var(--space-2);
    background: var(--bg-tint);
}

.gl-row + .gl-row { border-top: 1px solid var(--color-border); }

.gl-row__name {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-1) var(--space-2);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.gl-row__def {
    font-size: var(--font-size-sm);
    line-height: 1.5;
    color: var(--color-text-muted);
}

.gl-row__count {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: var(--font-size-sm);
    white-space: nowrap;
}

.gl-row__unit { color: var(--color-text-muted); }

.gl-row__tag {
    display: inline-flex;
    align-self: center;
    padding: 0 var(--space-2);
    border-radius: var(--radius-sm);
    background: var(--bg-tint);
    font-size: 11px;
    font-weight: 600;
    color: var(--color-text-muted);
}

.gl-empty {
    margin: var(--space-8) 0 var(--space-12);
    padding: var(--space-8) var(--space-6);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    text-align: center;
    color: var(--color-text-muted);
}

@media (max-width: 1023px) {
    .gl-rows--az .gl-rows__head { display: none; }
    .gl-rows--az .gl-row { grid-template-areas: "name count" "def def"; grid-template-columns: minmax(0, 1fr) auto; row-gap: var(--space-1); padding: var(--space-1) var(--space-5) var(--space-3); }
    .gl-rows--az .gl-row__name { flex-wrap: nowrap; }
    .gl-rows--az .gl-row__link { display: inline-flex; align-items: center; min-height: 44px; }
    .gl-rows--az .gl-row__tag { flex: none; white-space: nowrap; }
    .gl-rows--az .gl-row__name { grid-area: name; }
    .gl-rows--az .gl-row__count { grid-area: count; }
    .gl-rows--az .gl-row__def { grid-area: def; }
}

@media (max-width: 767px) {
    .gl-h1 { font-size: var(--font-size-2xl); }
    .gl-head__lede { font-size: var(--font-size-base); }
    .gl-toolbar__row { gap: var(--space-3); }
    .gl-jump__item { min-height: 44px; }
    .gl-jump__item--letter { min-width: 44px; }
    .gl-switch__item { min-height: 44px; }
    .gl-rows__head { display: none; }
    .gl-row {
        grid-template-areas: "name count" "def def";
        grid-template-columns: minmax(0, 1fr) auto;
        row-gap: var(--space-1);
        padding: var(--space-1) var(--space-4) var(--space-3);
    }
    .gl-rows--az .gl-row { padding-left: var(--space-4); padding-right: var(--space-4); }
    .gl-rows--az .gl-row__name { flex-direction: column; align-items: flex-start; gap: 0; }
    .gl-rows--plain .gl-row { grid-template-columns: minmax(0, 1fr); grid-template-areas: "name" "def"; }
    .gl-row__name { grid-area: name; font-size: var(--font-size-base); }
    .gl-row__link { display: inline-flex; align-items: center; min-height: 44px; }
    .gl-row__count { grid-area: count; }
    .gl-row__def { grid-area: def; font-size: var(--font-size-base); }
    .gl-groups { padding-top: var(--space-6); }
}

@media (max-width: 359px) {
    .gl-row,
    .gl-rows--az .gl-row { grid-template-areas: "name" "count" "def"; grid-template-columns: minmax(0, 1fr); }
    .gl-rows--plain .gl-row { grid-template-areas: "name" "def"; }
}
