body.route-types-index .site-main,
body.route-types-index .type-explorer {
    background: var(--pv-color-canvas);
    color: var(--pv-color-text);
}

body.route-types-index .type-explorer {
    min-height: 70vh;
    font-family: var(--pv-font-sans);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.route-types-index .type-explorer *,
body.route-types-index .type-explorer *::before,
body.route-types-index .type-explorer *::after {
    box-sizing: border-box;
}

body.route-types-index .type-explorer-shell {
    width: min(calc(100% - 48px), 1020px);
    margin-inline: auto;
}

body.route-types-index .type-explorer-hero {
    padding: 18px 0 34px;
    border-bottom: 1px solid var(--pv-color-border);
}

body.route-types-index .type-explorer-hero .site-breadcrumbs {
    margin-bottom: 24px;
}

body.route-types-index .type-explorer-hero .pv-page-heading__eyebrow {
    margin-bottom: 10px;
}

body.route-types-index .type-explorer-hero .pv-page-heading__title {
    font-size: clamp(2.2rem, 5vw, 3.15rem);
    letter-spacing: -0.02em;
    line-height: 1.08;
}

body.route-types-index .type-explorer-hero .pv-page-heading__subtitle {
    max-width: 650px;
    margin-top: 13px;
    font-size: 1rem;
    line-height: 1.6;
}

body.route-types-index .type-explorer-tools {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
    gap: 24px;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid var(--pv-color-border);
}

body.route-types-index .type-explorer-filters {
    display: flex;
    gap: 6px;
    align-items: center;
    overflow-x: auto;
    padding: 2px;
    scrollbar-width: none;
}

body.route-types-index .type-explorer-filters::-webkit-scrollbar {
    display: none;
}

body.route-types-index .type-explorer-filter {
    display: inline-flex;
    min-height: 36px;
    flex: 0 0 auto;
    gap: 6px;
    align-items: center;
    padding: 7px 12px;
    border: 1px solid transparent;
    border-radius: var(--pv-radius-round);
    background: transparent;
    color: var(--pv-color-muted);
    font: 600 0.78rem/1.3 var(--pv-font-sans);
    white-space: nowrap;
    cursor: pointer;
    transition: background-color var(--pv-transition), border-color var(--pv-transition), color var(--pv-transition);
}

body.route-types-index .type-explorer-filter span {
    color: var(--pv-color-soft);
    font-size: 0.7rem;
}

body.route-types-index .type-explorer-filter:hover,
body.route-types-index .type-explorer-filter:focus-visible {
    border-color: var(--pv-color-border);
    background: var(--pv-color-surface-soft);
    color: var(--pv-color-primary);
}

body.route-types-index .type-explorer-filter[aria-pressed="true"] {
    border-color: var(--pv-color-action);
    background: var(--pv-color-action);
    color: var(--pv-color-on-action);
}

body.route-types-index .type-explorer-filter[aria-pressed="true"] span {
    color: inherit;
    opacity: 0.7;
}

body.route-types-index .type-explorer-search {
    position: relative;
}

body.route-types-index .type-explorer-search svg {
    position: absolute;
    top: 50%;
    left: 13px;
    width: 16px;
    height: 16px;
    color: var(--pv-color-muted);
    pointer-events: none;
    transform: translateY(-50%);
}

body.route-types-index .type-explorer-search input {
    width: 100%;
    min-height: 42px;
    padding: 9px 13px 9px 39px;
    border: 1px solid var(--pv-color-border-strong);
    border-radius: var(--pv-radius-control);
    outline: 0;
    background: var(--pv-color-surface);
    color: var(--pv-color-text);
    font: 400 0.86rem/1.4 var(--pv-font-sans);
}

body.route-types-index .type-explorer-search input::placeholder {
    color: var(--pv-color-soft);
}

body.route-types-index .type-explorer-search input:focus {
    border-color: var(--pv-color-accent);
    box-shadow: 0 0 0 3px rgba(46, 104, 181, 0.12);
}

body.route-types-index .type-explorer-results {
    display: flex;
    min-height: 52px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid var(--pv-color-border);
    color: var(--pv-color-muted);
    font-size: 0.8rem;
}

body.route-types-index .type-explorer-results strong {
    color: var(--pv-color-primary);
    font-weight: 650;
}

body.route-types-index .type-explorer-results button {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--pv-color-accent);
    font: 600 0.78rem/1.4 var(--pv-font-sans);
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

body.route-types-index .type-explorer-groups {
    padding-bottom: 62px;
}

body.route-types-index .type-explorer-group {
    padding: 36px 0 38px;
    border-bottom: 1px solid var(--pv-color-border);
}

body.route-types-index .type-explorer-group:last-of-type {
    border-bottom: 0;
}

body.route-types-index .type-explorer-group-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: end;
    margin-bottom: 22px;
}

body.route-types-index .type-explorer-group-kicker {
    margin: 0 0 7px;
    color: var(--pv-color-accent);
    font-size: 0.7rem;
    font-weight: 650;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

body.route-types-index .type-explorer-group h2 {
    margin: 0;
    color: var(--pv-color-primary);
    font-family: var(--pv-font-serif);
    font-size: 1.55rem;
    font-weight: 500;
    letter-spacing: -0.012em;
    line-height: 1.18;
}

body.route-types-index .type-explorer-group-description {
    max-width: 650px;
    margin: 8px 0 0;
    color: var(--pv-color-muted);
    font-size: 0.86rem;
    line-height: 1.55;
}

body.route-types-index .type-explorer-guide-link {
    padding-bottom: 2px;
    color: var(--pv-color-accent);
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

body.route-types-index .type-explorer-guide-link:hover,
body.route-types-index .type-explorer-guide-link:focus-visible {
    text-decoration: underline;
    text-underline-offset: 3px;
}

body.route-types-index .type-explorer-pill-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(102px, 1fr));
    gap: 10px;
}

body.route-types-index .type-explorer-pill-grid--named {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

body.route-types-index .type-explorer-pill-grid--attachment {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.route-types-index .type-explorer-pill {
    display: inline-flex;
    min-width: 0;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 14px;
    border: 1px solid var(--pv-color-border);
    border-radius: var(--pv-radius-round);
    background: var(--pv-color-surface);
    color: var(--pv-color-primary);
    font-size: 0.83rem;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
    box-shadow: var(--pv-shadow-sm);
}

body.route-types-index .type-explorer-pill--code {
    font-family: var(--pv-font-mono);
    font-size: 0.82rem;
    letter-spacing: 0.035em;
}

body.route-types-index .type-explorer-pill strong {
    font-size: 0.72rem;
    font-weight: 650;
    letter-spacing: 0.02em;
}

body.route-types-index .type-explorer-pill span {
    color: var(--pv-color-muted);
    font-size: 0.78rem;
    font-weight: 500;
}

body.route-types-index a.type-explorer-pill {
    text-decoration: none;
    transition: border-color var(--pv-transition), background-color var(--pv-transition), color var(--pv-transition);
}

body.route-types-index a.type-explorer-pill:hover,
body.route-types-index a.type-explorer-pill:focus-visible {
    border-color: var(--pv-color-accent);
    background: var(--pv-color-accent-soft);
    color: var(--pv-color-accent);
}

body.route-types-index .type-explorer-empty {
    padding: 52px 24px;
    color: var(--pv-color-muted);
    text-align: center;
}

body.route-types-index .type-explorer-empty h2 {
    margin: 0;
    color: var(--pv-color-primary);
    font-family: var(--pv-font-serif);
    font-size: 1.35rem;
    font-weight: 500;
}

body.route-types-index .type-explorer-empty p {
    margin: 8px 0 0;
    font-size: 0.86rem;
}

body.route-types-index .type-explorer [hidden] {
    display: none !important;
}

@media (max-width: 840px) {
    body.route-types-index .type-explorer-tools {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    body.route-types-index .type-explorer-search {
        grid-row: 1;
    }

    body.route-types-index .type-explorer-pill-grid--attachment {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    body.route-types-index .type-explorer-shell {
        width: min(calc(100% - 32px), 1020px);
    }

    body.route-types-index .type-explorer-hero {
        padding-top: 12px;
    }

    body.route-types-index .type-explorer-hero .site-breadcrumbs {
        margin-bottom: 20px;
    }

    body.route-types-index .type-explorer-hero .pv-page-heading__title {
        font-size: 2.2rem;
    }

    body.route-types-index .type-explorer-hero .pv-page-heading__subtitle {
        font-size: 0.94rem;
    }

    body.route-types-index .type-explorer-group-heading {
        grid-template-columns: 1fr;
        gap: 12px;
        align-items: start;
    }

    body.route-types-index .type-explorer-pill-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 8px;
    }

    body.route-types-index .type-explorer-pill-grid--named,
    body.route-types-index .type-explorer-pill-grid--attachment {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.route-types-index .type-explorer-pill {
        min-height: 42px;
        padding: 8px 10px;
        font-size: 0.76rem;
    }

    body.route-types-index .type-explorer-pill--code {
        font-size: 0.72rem;
        letter-spacing: 0;
    }

    body.route-types-index .type-explorer-pill-grid--named .type-explorer-pill {
        min-height: 50px;
        flex-direction: column;
        gap: 2px;
    }
}

@media (max-width: 380px) {
    body.route-types-index .type-explorer-pill-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    body.route-types-index .type-explorer-pill-grid--named,
    body.route-types-index .type-explorer-pill-grid--attachment {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.route-types-index .type-explorer-filter {
        transition: none;
    }
}
