.ame-module,
.ame-resource,
.ame-detail-widget {
    min-width: 0;
}

.ame-grid {
    display: grid;
    grid-template-columns: repeat(var(--ame-columns, 3), minmax(0, 1fr));
    gap: var(--ame-gap, 16px);
}

.ame-channel,
.ame-resource {
    border: 1px solid var(--main-border-color, rgba(128, 128, 128, .14));
    border-radius: 12px;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.ame-channel:hover,
.ame-resource:hover {
    border-color: var(--theme-color);
    box-shadow: 0 4px 16px rgba(0, 0, 0, .04);
}

.ame-channel {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 28px;
}

.ame-channel-top {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    margin-bottom: 28px;
}

.ame-channel-icon {
    font-size: 20px;
    width: 24px;
    text-align: center;
    color: var(--theme-color);
}

.ame-channel h2 {
    margin: 0 0 12px;
    font-size: 26px;
    line-height: 1.3;
    font-weight: 500;
}

.ame-channel p {
    font-size: 14px;
    line-height: 1.7;
    margin: 0 0 32px;
    max-width: 32ch;
}

.ame-channel-count {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--main-border-color, rgba(128, 128, 128, .12));
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

.ame-channel-count .fa {
    color: var(--theme-color);
    margin-left: auto;
}

.ame-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    padding: 24px;
    border: 1px solid var(--main-border-color, rgba(128, 128, 128, .14));
}

.ame-stats > a,
.ame-stats > div {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px 16px;
}

.ame-stats strong {
    font-size: 28px;
    line-height: 1.2;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

.ame-stats span {
    font-size: 13px;
}

.ame-resource {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.ame-resource-body {
    display: flex;
    flex-direction: column;
    padding: 24px;
    flex: 1;
}

.ame-card-heading {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
    margin-bottom: 16px;
}

.ame-logo {
    display: flex;
    flex: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: var(--muted-bg-color, rgba(128, 128, 128, .08));
    border-radius: 8px;
    color: var(--muted-color);
}

.ame-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.ame-resource-copy {
    min-width: 0;
    flex: 1;
}

.ame-resource h3 {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.4;
    margin: 0 0 4px;
    overflow-wrap: anywhere;
}

.ame-resource h3 a {
    color: var(--main-color);
}

.ame-resource h3 a:hover {
    color: var(--theme-color);
}

.ame-publisher {
    font-size: 12px;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.5;
}

.ame-card-badges,
.ame-detail-badges {
    display: flex;
    gap: 4px;
    flex-direction: column;
    align-items: flex-end;
    flex: none;
}

.ame-badge {
    font-size: 11px;
    font-weight: 400;
    white-space: nowrap;
    color: var(--muted-color);
}

.ame-badge .fa-check-circle {
    color: var(--theme-color);
}

.ame-card-description {
    font-size: 14px;
    line-height: 1.75;
    margin: 0 0 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 48px;
    overflow-wrap: anywhere;
}

.ame-card-connection {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--main-border-color, rgba(128, 128, 128, .12));
    background: var(--muted-bg-color, rgba(128, 128, 128, .06));
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 20px;
    min-width: 0;
    font-size: 12px;
}

.ame-connection-label {
    flex: none;
    color: var(--muted-color);
}

.ame-connection-label .fa {
    margin-right: 4px;
}

.ame-card-connection code {
    background: transparent;
    color: var(--main-color);
    padding: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
}

.ame-client-platforms {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-size: 13px;
    margin: 0 0 12px;
    overflow-wrap: anywhere;
}

.ame-client-platforms .fa {
    color: var(--muted-color);
}

.ame-card-features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 16px;
    margin-bottom: 20px;
    font-size: 12px;
}

.ame-card-features .fa {
    width: 16px;
    margin-right: 4px;
}

.ame-feature-yes .fa,
.ame-supported .fa {
    color: var(--theme-color);
}

.ame-connector-facts {
    display: grid;
    gap: 8px;
    font-size: 12px;
    margin: 0 0 20px;
    padding-left: 12px;
    border-left: 2px solid var(--main-border-color, rgba(128, 128, 128, .14));
}

.ame-connector-facts > div {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 12px;
    line-height: 1.6;
}

.ame-connector-facts dt {
    font-weight: 400;
}

.ame-connector-facts dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.ame-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 20px;
    font-size: 12px;
}

.ame-card-tags:empty {
    display: none;
}

.ame-tag {
    padding: 4px 8px;
    border-radius: 4px;
    background: var(--muted-bg-color, rgba(128, 128, 128, .07));
    color: var(--muted-color);
    max-width: 100%;
    overflow-wrap: anywhere;
    line-height: 1.5;
}

.ame-tag-plain {
    padding: 4px 0;
    background: transparent;
}

.ame-card-footer {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 16px;
    font-size: 12px;
    margin-top: auto;
    line-height: 1.5;
    font-variant-numeric: tabular-nums;
}

.ame-card-footer time {
    margin-left: auto;
    font-size: 11px;
}

.ame-card-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 12px;
    padding: 16px 24px;
    border-top: 1px solid var(--main-border-color, rgba(128, 128, 128, .12));
    color: var(--main-color);
    background: var(--muted-bg-color, rgba(128, 128, 128, .03));
    transition: color .16s ease, background-color .16s ease;
}

.ame-card-action:hover {
    color: var(--theme-color);
    background: var(--muted-bg-color, rgba(128, 128, 128, .07));
}

.ame-density-compact .ame-resource-body {
    padding: 20px;
}

.ame-density-compact .ame-card-description {
    -webkit-line-clamp: 2;
    min-height: 0;
}

.ame-layout-list {
    grid-template-columns: 1fr;
}

.ame-layout-list .ame-card-description {
    min-height: 0;
    -webkit-line-clamp: 2;
}

.ame-more {
    text-align: right;
    margin-top: 24px;
}

.ame-empty {
    border: 1px dashed var(--main-border-color, rgba(128, 128, 128, .25));
    text-align: center;
    padding: 48px 24px;
    color: var(--muted-color);
    font-size: 14px;
}

.ame-navigation {
    padding: 12px;
}

.ame-navigation > a {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.5;
    margin: 4px 0;
    transition: color .16s ease, background-color .16s ease;
}

.ame-navigation > a.active,
.ame-navigation > a:hover {
    background: var(--muted-bg-color, rgba(128, 128, 128, .08));
    color: var(--theme-color);
}

.ame-nav-name {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.ame-nav-name i {
    width: 16px;
    text-align: center;
    flex: none;
    font-size: 14px;
}

.ame-navigation .ame-nav-child {
    padding-left: 36px;
    font-size: 12px;
}

.ame-nav-divider {
    height: 1px;
    background: var(--main-border-color, rgba(128, 128, 128, .12));
    margin: 8px 0;
}

.ame-navigation small {
    font-size: 11px;
    font-variant-numeric: tabular-nums;
}

.ame-catalogue-heading {
    margin-bottom: 24px;
}

.ame-catalogue-heading > p {
    font-size: 12px;
    margin: 0 0 8px;
}

.ame-catalogue-heading h1 {
    font-size: 28px;
    font-weight: 500;
    line-height: 1.3;
    margin: 0;
}

.ame-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    align-items: center;
    margin-bottom: 20px;
}

.ame-search {
    flex: 1;
    min-width: 160px;
}

.ame-search input,
.ame-filters select,
.ame-tool-search input {
    border: 1px solid var(--main-border-color, rgba(128, 128, 128, .2));
    border-radius: 6px;
    background: var(--main-bg-color);
    padding: 8px 12px;
    min-height: 40px;
    color: var(--main-color);
    width: 100%;
    font-size: 13px;
}

.ame-filters label {
    margin: 0;
}

.ame-verified {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.ame-results {
    font-size: 12px;
    margin: 0 0 16px;
}

.ame-pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 24px;
    flex-wrap: wrap;
}

.ame-pagination .page-numbers {
    padding: 8px 12px;
    border: 1px solid var(--main-border-color, rgba(128, 128, 128, .15));
    border-radius: 4px;
}

.ame-pagination .current {
    background: var(--theme-color);
    color: white;
}

.ame-mobile-navigation {
    display: none;
}

.ame-breadcrumb {
    display: flex;
    gap: 8px;
    padding: 24px 0;
    font-size: 12px;
    flex-wrap: wrap;
}

.ame-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    align-items: start;
}

.ame-detail-layout.ame-has-sidebar {
    grid-template-columns: minmax(0, 1fr) 280px;
}

.ame-detail-main,
.ame-detail-aside {
    min-width: 0;
}

.ame-detail-aside {
    position: sticky;
    top: 96px;
}

.ame-detail-section {
    padding: 28px;
    border: 1px solid var(--main-border-color, rgba(128, 128, 128, .12));
    border-radius: 12px;
    line-height: 1.7;
    scroll-margin-top: 104px;
}

.ame-detail-widget,
.ame-detail-main > .zib-widget-wrap + .zib-widget-wrap {
    margin-bottom: 28px;
}

.ame-detail-main > .zib-widget-wrap + .zib-widget-wrap {
    margin-top: 28px;
}

.ame-detail-aside .ame-detail-section {
    padding: 20px;
}

.ame-detail-identity {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.ame-detail-identity .ame-logo {
    width: 64px;
    height: 64px;
    font-size: 28px;
    border-radius: 12px;
}

.ame-detail-identity > div {
    min-width: 0;
}

.ame-detail-identity > div > span {
    font-size: 12px;
}

.ame-detail-section h1 {
    font-size: 36px;
    font-weight: 500;
    margin: 4px 0 0;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.ame-detail-publisher {
    font-size: 12px;
    margin: 8px 0 0;
}

.ame-detail-badges {
    margin-left: auto;
}

.ame-detail-description {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 24px;
    max-width: 70ch;
    overflow-wrap: anywhere;
}

.ame-detail-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 32px;
    margin: 28px 0;
    padding: 20px 0;
    border-top: 1px solid var(--main-border-color, rgba(128, 128, 128, .12));
    border-bottom: 1px solid var(--main-border-color, rgba(128, 128, 128, .12));
}

.ame-detail-metrics > div {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 100%;
}

.ame-detail-metrics dt {
    font-size: 12px;
    font-weight: 400;
}

.ame-detail-metrics dd {
    font-size: 18px;
    font-weight: 500;
    margin: 0;
    line-height: 1.4;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}

.ame-detail-primary,
.ame-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ame-detail-primary {
    margin-bottom: 20px;
}

.ame-detail-actions .but {
    font-size: 12px;
    padding: 8px 12px;
}

.ame-detail-actions .fa {
    font-size: 10px;
    margin-left: 4px;
}

.ame-share-link {
    border: 0;
    background: transparent;
    padding: 0;
    margin: 20px 0 0;
    font-size: 12px;
    color: var(--muted-color);
    cursor: pointer;
}

.ame-share-link:hover {
    color: var(--theme-color);
}

.ame-detail-section h3 {
    font-size: 16px;
    font-weight: 500;
    margin: 0 0 12px;
    line-height: 1.6;
}

.ame-detail-navigation {
    display: grid;
    gap: 4px;
}

.ame-detail-navigation > a {
    display: block;
    font-size: 13px;
    padding: 8px 12px;
    border-left: 2px solid transparent;
    color: var(--muted-color);
    transition: color .16s ease, background-color .16s ease;
}

.ame-detail-navigation > a.active,
.ame-detail-navigation > a:hover {
    color: var(--theme-color);
    border-left-color: var(--theme-color);
    background: var(--muted-bg-color, rgba(128, 128, 128, .06));
}

.ame-connection-part + .ame-connection-part {
    margin-top: 28px;
}

.ame-code-wrap {
    background: var(--muted-bg-color, rgba(128, 128, 128, .06));
    border: 1px solid var(--main-border-color, rgba(128, 128, 128, .12));
    border-radius: 8px;
    overflow: hidden;
}

.ame-code-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    border-bottom: 1px solid var(--main-border-color, rgba(128, 128, 128, .12));
    font-size: 11px;
    color: var(--muted-color);
}

.ame-copy {
    border: 0;
    background: transparent;
    color: var(--main-color);
    font-size: 12px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
}

.ame-copy:hover {
    background: var(--muted-bg-color, rgba(128, 128, 128, .12));
}

.ame-code {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    padding: 20px;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--main-color);
    font-size: 12px;
    line-height: 1.8;
    max-height: 420px;
    overflow-y: auto;
}

.ame-facts {
    margin: 0;
    font-size: 12px;
}

.ame-facts > div {
    display: grid;
    grid-template-columns: minmax(64px, 1fr) minmax(0, 1.2fr);
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--main-border-color, rgba(128, 128, 128, .1));
}

.ame-facts > div:first-child {
    padding-top: 0;
}

.ame-facts > div:last-child {
    border: 0;
    padding-bottom: 0;
}

.ame-facts dt {
    font-weight: 400;
}

.ame-facts dd {
    margin: 0;
    text-align: right;
    overflow-wrap: anywhere;
    font-variant-numeric: tabular-nums;
}

.ame-tool-search {
    display: flex;
    align-items: center;
    position: relative;
    margin-bottom: 24px;
}

.ame-tool-search > .fa {
    position: absolute;
    left: 12px;
    color: var(--muted-color);
    font-size: 14px;
}

.ame-tool-search input {
    padding-left: 36px;
}

.ame-tool-search-status {
    font-size: 12px;
    margin: -12px 0 24px;
}

.ame-tool-list {
    display: grid;
    gap: 12px;
}

.ame-tool {
    padding: 20px;
    border: 1px solid var(--main-border-color, rgba(128, 128, 128, .12));
    border-radius: 8px;
}

.ame-tool h4 {
    display: flex;
    align-items: baseline;
    gap: 12px;
    font-size: 14px;
    margin: 0 0 12px;
    font-weight: 500;
    overflow-wrap: anywhere;
}

.ame-tool h4 > .fa {
    width: 16px;
    font-size: 14px;
    color: var(--muted-color);
    flex: none;
}

.ame-tool h4 code {
    color: var(--main-color);
    background: transparent;
    padding: 0;
}

.ame-tool p {
    font-size: 13px;
    margin: 0;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.ame-tool .ame-tool-meta {
    margin-top: 12px;
    font-size: 12px;
}

.ame-tool summary {
    cursor: pointer;
    font-size: 12px;
    color: var(--muted-color);
    padding: 8px 0;
}

.ame-tool details {
    margin-top: 12px;
}

.ame-tool .ame-code-wrap {
    margin-top: 8px;
}

.ame-tool-explorer > [data-ame-tool-group] + [data-ame-tool-group] {
    margin-top: 28px;
}

.ame-tools-title span {
    font-size: 12px;
    margin-left: 8px;
    font-variant-numeric: tabular-nums;
}

.ame-feature-matrix {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 24px;
    margin: 0;
}

.ame-feature-matrix > div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--main-border-color, rgba(128, 128, 128, .1));
    font-size: 13px;
}

.ame-feature-matrix dt {
    font-weight: 400;
}

.ame-feature-matrix dd {
    margin: 0;
    text-align: right;
    overflow-wrap: anywhere;
    max-width: 60%;
}

.ame-capability-row + .ame-capability-row,
.ame-feature-matrix + .ame-capability-row {
    margin-top: 24px;
}

.ame-capability-row p,
.ame-use-cases {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 0;
    overflow-wrap: anywhere;
}

.ame-use-cases {
    padding-left: 20px;
}

.ame-readme {
    overflow-wrap: anywhere;
    font-size: 14px;
    line-height: 1.85;
}

.ame-readme img,
.ame-gallery img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.ame-gallery {
    display: grid;
    gap: 20px;
}

.ame-gallery figure {
    margin: 0;
}

.ame-gallery figcaption {
    font-size: 12px;
    padding-top: 8px;
}

.ame-faq {
    border-bottom: 1px solid var(--main-border-color, rgba(128, 128, 128, .12));
    padding: 16px 0;
}

.ame-faq:first-child {
    padding-top: 0;
}

.ame-faq:last-child {
    border: 0;
    padding-bottom: 0;
}

.ame-faq summary {
    cursor: pointer;
    font-size: 15px;
}

.ame-faq p {
    font-size: 14px;
    color: var(--muted-color);
    margin: 16px 0 0;
}

.ame-source-links {
    font-size: 13px;
    padding-left: 20px;
    margin: 20px 0 0;
}

.ame-source-links li + li {
    margin-top: 8px;
}

.ame-module a:focus-visible,
.ame-module button:focus-visible,
.ame-module input:focus-visible,
.ame-module select:focus-visible,
.ame-module summary:focus-visible {
    outline: 2px solid var(--theme-color);
    outline-offset: 4px;
}

.ame-detail-page [hidden],
.ame-module [hidden] {
    display: none !important;
}

.ame-home .header-slider-search {
    width: min(680px, calc(100% - 40px));
    text-align: center;
}

.ame-hero-copy h1 {
    font-size: 44px;
    line-height: 1.2;
    font-weight: 500;
    margin: 0 0 16px;
    color: #fff;
}

.ame-hero-copy p {
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255, 255, 255, .85);
    margin: 0 0 28px;
}

.ame-home .header-slider-search .search-input {
    max-width: 600px;
    margin: auto;
    text-align: left;
    background: var(--main-bg-color);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 8px;
    color: var(--main-color);
}

.ame-home .header-slider-search-more.before {
    margin: 0;
}

.ame-code-wrap .enlighter-toolbar {
    display: none !important;
}

.ame-code-wrap .enlighter-default {
    margin: 0 !important;
    border: 0 !important;
    padding: 0 !important;
    background: transparent !important;
}

.ame-code-wrap .enlighter > div {
    padding: 0 !important;
}

.ame-code-wrap .enlighter {
    font-size: 12px !important;
    line-height: 1.8 !important;
    background: transparent !important;
}

@media (max-width: 991px) {
    .ame-grid {
        grid-template-columns: repeat(min(var(--ame-columns, 3), 2), minmax(0, 1fr));
    }

    .ame-layout-list {
        grid-template-columns: 1fr;
    }

    .ame-detail-layout.ame-has-sidebar {
        grid-template-columns: 1fr;
    }

    .ame-detail-aside {
        position: static;
    }

    .ame-mobile-navigation {
        display: block;
        margin-bottom: 24px;
    }

    .ame-mobile-navigation .ame-navigation {
        display: flex;
        gap: 4px;
        overflow-x: auto;
        white-space: nowrap;
    }

    .ame-mobile-navigation .ame-navigation > a {
        flex: none;
        margin: 0;
    }

    .ame-mobile-navigation .ame-nav-child {
        padding-left: 12px;
    }

    .ame-mobile-navigation .ame-nav-divider {
        display: none;
    }

    .ame-hero-copy h1 {
        font-size: 36px;
    }
}

@media (max-width: 600px) {
    .ame-grid {
        grid-template-columns: repeat(var(--ame-mobile-columns, 1), minmax(0, 1fr));
        gap: 12px;
    }

    .ame-layout-list {
        grid-template-columns: 1fr;
    }

    .ame-resource-body,
    .ame-channel,
    .ame-detail-section {
        padding: 20px;
    }

    .ame-card-action {
        padding: 16px 20px;
    }

    .ame-channel-top {
        margin-bottom: 20px;
    }

    .ame-card-description {
        min-height: 0;
    }

    .ame-stats {
        grid-template-columns: repeat(2, 1fr);
        padding: 12px;
    }

    .ame-detail-section h1 {
        font-size: 28px;
    }

    .ame-detail-identity {
        gap: 12px;
        flex-wrap: wrap;
    }

    .ame-detail-identity .ame-logo {
        width: 52px;
        height: 52px;
    }

    .ame-detail-identity > div:not(.ame-detail-badges) {
        flex: 1;
    }

    .ame-detail-badges {
        flex-direction: row;
        margin-left: 0;
        width: 100%;
    }

    .ame-detail-description {
        font-size: 15px;
    }

    .ame-detail-metrics {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
        margin: 24px 0;
    }

    .ame-detail-metrics dd {
        font-size: 16px;
    }

    .ame-search {
        flex-basis: 100%;
    }

    .ame-feature-matrix {
        grid-template-columns: 1fr;
    }

    .ame-catalogue-heading h1 {
        font-size: 24px;
    }

    .ame-hero-copy h1 {
        font-size: 30px;
    }

    .ame-hero-copy p {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .ame-tool {
        padding: 16px;
    }

    .ame-code {
        padding: 16px;
        font-size: 12px;
    }

    .ame-connector-facts > div {
        grid-template-columns: 88px minmax(0, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    .ame-module *,
    .ame-module *::before,
    .ame-module *::after {
        transition: none !important;
        animation: none !important;
        scroll-behavior: auto !important;
    }
}

/* Dense MCP home surfaces keep the category entry points scannable. */
.ame-channels {
    gap: 12px;
}

.ame-channels .ame-channel {
    min-height: 0;
    padding: 18px;
    border-radius: 10px;
}

.ame-channels .ame-channel-top {
    gap: 8px;
    margin-bottom: 16px;
}

.ame-channels .ame-channel-icon {
    font-size: 16px;
    width: 20px;
}

.ame-channels .ame-channel h2 {
    margin-bottom: 8px;
    font-size: 20px;
}

.ame-channels .ame-channel p {
    margin-bottom: 18px;
    font-size: 13px;
    line-height: 1.55;
}

.ame-channels .ame-channel-count {
    padding-top: 12px;
}

.ame-detail-page .ame-readme,
.ame-detail-page .ame-connection-part .article {
    overflow-wrap: anywhere;
}

.ame-detail-page .ame-readme > :first-child,
.ame-detail-page .ame-connection-part .article > :first-child {
    margin-top: 0;
}

.ame-detail-page .ame-readme img,
.ame-detail-page .ame-connection-part .article img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.ame-detail-page .ame-readme table,
.ame-detail-page .ame-connection-part .article table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
    font-size: 13px;
}

.ame-detail-page .ame-readme th,
.ame-detail-page .ame-readme td,
.ame-detail-page .ame-connection-part .article th,
.ame-detail-page .ame-connection-part .article td {
    min-width: 120px;
    padding: 8px 10px;
    border: 1px solid var(--main-border-color, rgba(128, 128, 128, .16));
    text-align: left;
    vertical-align: top;
}

.ame-detail-page .ame-readme pre.enlighter-pre,
.ame-detail-page .ame-connection-part .article pre.enlighter-pre {
    max-width: 100%;
    margin: 16px 0;
    padding: 14px 16px;
    overflow-x: auto;
    border: 1px solid var(--main-border-color, rgba(128, 128, 128, .16));
    border-radius: 8px;
    background: var(--muted-bg-color, rgba(128, 128, 128, .06));
    font: 12px/1.7 var(--font-mono, ui-monospace, monospace);
}

.ame-detail-page .ame-readme code:not(.gl),
.ame-detail-page .ame-connection-part .article code:not(.gl) {
    padding: 2px 5px;
    border-radius: 4px;
    background: var(--muted-bg-color, rgba(128, 128, 128, .08));
    font-family: var(--font-mono, ui-monospace, monospace);
    font-size: .92em;
}

@media (max-width: 600px) {
    .ame-channels .ame-channel {
        padding: 16px;
    }
}

.ame-detail-top {
    margin-bottom: 32px;
}

.ame-detail-top .ame-detail-summary {
    max-width: none;
}

.ame-detail-top .ame-detail-metrics {
    gap: 24px 48px;
}

.ame-theme-share {
    margin-top: 20px;
    font-size: 12px;
}

.ame-theme-share > summary {
    cursor: pointer;
    color: var(--muted-color);
}

.ame-theme-share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.ame-theme-share-buttons > a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid var(--main-border-color, rgba(128, 128, 128, .12));
    border-radius: 4px;
    color: var(--main-color);
}

.ame-theme-share-buttons icon {
    display: inline-flex;
    font-size: 16px;
}

@media (max-width: 600px) {
    .ame-detail-top .ame-detail-metrics {
        gap: 20px;
    }
}

.ame-card-action > .fa,
.ame-channel-count > .fa {
    transition: transform .18s ease;
}

.ame-card-action:hover > .fa,
.ame-channel:hover .ame-channel-count > .fa {
    transform: translateX(3px);
}

.ame-detail-top {
    animation: ame-content-in .24s ease both;
}

@keyframes ame-content-in {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .ame-detail-top {
        animation: none;
    }
}

.ame-parameter-title {
    font-size: 13px;
    font-weight: 500;
    margin: 20px 0 8px;
}

.ame-parameter-list {
    border: 1px solid var(--main-border-color, rgba(128, 128, 128, .12));
    border-radius: 8px;
}

.ame-parameter-list > div {
    padding: 16px;
}

.ame-parameter-list > div + div {
    border-top: 1px solid var(--main-border-color, rgba(128, 128, 128, .12));
}

.ame-parameter-name {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 16px;
    font-size: 12px;
}

.ame-parameter-name code {
    background: transparent;
    color: var(--main-color);
    padding: 0;
    overflow-wrap: anywhere;
}

.ame-parameter-list p {
    margin: 8px 0 0;
    font-size: 13px;
}

.ame-parameter-schema {
    margin-top: 20px;
    font-size: 12px;
}

.ame-parameter-schema summary {
    cursor: pointer;
    margin-bottom: 8px;
}

.ame-submit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    padding: 24px;
}

.ame-submit p {
    margin: 0;
    max-width: 640px;
}

.ame-catalogue-submit {
    margin: 0 0 20px;
}
/* Grouped home recommendations keep each channel's resource semantics. */
.ame-home-recommendations{display:grid;grid-template-columns:repeat(var(--ame-home-cols,3),minmax(0,1fr));gap:var(--ame-home-gap,24px);align-items:start}
.ame-home-group{min-width:0}
.ame-home-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 0 16px;border-bottom:1px solid var(--main-border-color,rgba(127,127,127,.16));margin-bottom:16px}
.ame-home-heading h3{margin:0;font-size:17px;font-weight:500}
.ame-home-heading>span{font-variant-numeric:tabular-nums;font-size:12px}
.ame-home-recommendations .ame-resource-grid{grid-template-columns:1fr}
.ame-home-recommendations .ame-resource{border-radius:12px;box-shadow:none}
.ame-home-recommendations .ame-resource h3{font-size:18px;font-weight:500}
.ame-home-recommendations .ame-card-description{font-size:14px;line-height:1.7;-webkit-line-clamp:3}
.ame-home-recommendations .ame-resource-body{padding:20px}
.ame-home-recommendations .ame-card-footer{font-size:12px;min-height:20px}
.ame-home-recommendations .ame-card-action{padding:12px 20px;font-size:13px}
.ame-home-recommendations .ame-logo{width:36px;height:36px;min-width:36px}
.ame-home-recommendations .ame-card-connection{font-size:12px}
.ame-home-more{display:inline-flex;align-items:center;gap:12px;margin-top:20px;min-height:36px;font-size:14px}
.ame-home-more i{transition:transform .18s ease}
.ame-home-more:hover i{transform:translateX(3px)}
@media(max-width:991px){.ame-home-recommendations{grid-template-columns:1fr;gap:32px}.ame-home-recommendations .ame-resource-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.ame-home-recommendations .ame-resource-grid{grid-template-columns:repeat(var(--ame-home-mobile,1),minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){.ame-home-recommendations *{transition:none!important;animation:none!important}}
.ame-home-module>.box-body .title-theme{font-size:24px;font-weight:500}
.ame-home-module>.box-body .title-theme small{display:block;margin:8px 0 0;font-size:14px;line-height:1.6}

/* Homepage recommendations follow the original directory's card proportions. */
.ame-home-recommendations.ame-home-compact.links-box{display:grid;grid-template-columns:repeat(var(--ame-home-cols,4),minmax(0,1fr));gap:var(--ame-home-gap,10px);margin:0}
.ame-home-recommendations.ame-home-compact.links-box .links-card{width:auto;min-width:0;margin:0;padding:10px 4px 10px 8px;border:0;border-radius:8px;background:var(--main-bg-color);transition:background-color .18s ease,box-shadow .18s ease,transform .18s ease}
.ame-home-recommendations.ame-home-compact .links-card:hover{background:var(--muted-bg-2-color);box-shadow:0 2px 8px rgba(0,0,0,.06);transform:translateY(-1px)}
.ame-home-recommendations.ame-home-compact .links-card a:focus-visible{outline:2px solid var(--focus-color);outline-offset:4px;border-radius:4px}
.ame-home-recommendations.ame-home-compact .list-inline{display:flex;align-items:center;gap:10px;margin:0}
.ame-home-recommendations.ame-home-compact .list-inline>li{padding:0}
.ame-home-recommendations.ame-home-compact .list-inline>li:first-child{flex:0 0 38px}
.ame-home-recommendations.ame-home-compact .list-inline>li+li{flex:1;width:auto;min-width:0}
.ame-home-recommendations.ame-home-compact .link-img{width:38px;height:38px;--this-size:38px;position:relative;display:grid;place-items:center;overflow:hidden;color:var(--muted-color);background:var(--muted-bg-color)}
.ame-home-recommendations.ame-home-compact .link-img img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;border-radius:6px;background:var(--main-bg-color)}
.ame-home-recommendations.ame-home-compact .astral-card-fallback{font-size:20px}
.ame-home-recommendations.ame-home-compact dl{margin:0}
.ame-home-recommendations.ame-home-compact dt{font-size:14px;line-height:20px;font-weight:700}
.ame-home-recommendations.ame-home-compact dd{font-size:12.6px;line-height:18px;margin:3px 0 0;color:var(--muted-2-color)}
.ame-home-recommendations.ame-home-compact.ame-home-no-logo .list-inline>li:first-child{display:none}
.ame-home-module>.box-body{padding-bottom:15px}
.ame-home-module>.box-body .title-theme{font-size:14px;font-weight:400;line-height:20px}
.ame-home-module>.box-body .title-theme .pull-right{font-size:13px;margin-top:0}
.ame-home-category-links{display:flex;flex-wrap:wrap;gap:4px 20px;margin:-4px 0 12px;font-size:12px;line-height:28px;color:var(--muted-color)}
.ame-home-category-links a{display:inline-flex;align-items:center;gap:6px;color:var(--muted-color);white-space:nowrap}
.ame-home-category-links a:hover{color:var(--focus-color)}
.ame-home-category-links a:focus-visible{outline:2px solid var(--focus-color);outline-offset:3px}
.ame-home-category-links i{font-size:13px}
@media(max-width:1199px) and (min-width:992px){.ame-home-recommendations.ame-home-compact.links-box{grid-template-columns:repeat(min(3,var(--ame-home-cols)),minmax(0,1fr))}}
@media(max-width:991px){.ame-home-recommendations.ame-home-compact.links-box{grid-template-columns:repeat(min(3,var(--ame-home-cols)),minmax(0,1fr))}}
@media(max-width:767px){.ame-home-recommendations.ame-home-compact.links-box{grid-template-columns:repeat(var(--ame-home-mobile,1),minmax(0,1fr))}.ame-home-category-links{flex-wrap:nowrap;overflow-x:auto;gap:16px;margin-bottom:10px;padding:2px 0}.ame-home-module>.box-body{padding-bottom:12px}}
@media(prefers-reduced-motion:reduce){.ame-home-recommendations.ame-home-compact .links-card{transition:none;transform:none}}

/* Compact controls and cards inherit the theme's typography and surfaces. */
.ame-catalogue-compact .ame-catalogue-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
    padding: 16px;
    margin-bottom: 16px;
    border: 1px solid var(--main-border-color, rgba(128, 128, 128, .14));
}

.ame-catalogue-compact .ame-catalogue-title {
    flex: 0 1 auto;
    min-width: 112px;
}

.ame-catalogue-compact .ame-catalogue-title h1 {
    margin: 0;
    color: var(--main-color);
    font-size: 20px;
    font-weight: 500;
    line-height: 24px;
    overflow-wrap: anywhere;
}

.ame-catalogue-compact .ame-catalogue-title .ame-results {
    display: block;
    margin: 4px 0 0;
    font-size: 12px;
    line-height: 16px;
    font-variant-numeric: tabular-nums;
}

.ame-catalogue-compact .ame-catalogue-submit {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 36px;
    margin: 0 0 0 auto;
    padding: 8px 12px;
    border: 1px solid var(--main-border-color, rgba(128, 128, 128, .14));
    border-radius: 8px;
    color: var(--main-color);
    font-size: 12px;
    line-height: 18px;
    transition: color .16s ease, background-color .16s ease, border-color .16s ease;
}

.ame-catalogue-compact .ame-catalogue-submit .fa {
    color: var(--theme-color, #f26b3a);
}

.ame-catalogue-compact .ame-catalogue-submit:hover {
    border-color: var(--theme-color, #f26b3a);
    background: var(--muted-bg-color);
}

.ame-catalogue-compact .ame-filters {
    display: flex;
    flex: 1 1 400px;
    align-items: center;
    gap: 8px;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

.ame-catalogue-compact .ame-filters > label {
    display: flex;
    align-items: center;
    min-width: 0;
    margin: 0;
    font-weight: 400;
}

.ame-catalogue-compact .ame-filters .ame-search {
    flex: 1 1 140px;
    gap: 8px;
    min-width: 120px;
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid var(--main-border-color, rgba(128, 128, 128, .16));
    border-radius: 8px;
    background: var(--muted-bg-color);
}

.ame-catalogue-compact .ame-filters .ame-search > .fa {
    flex: none;
    color: var(--muted-color);
    font-size: 12px;
}

.ame-catalogue-compact .ame-filters input[type="search"],
.ame-catalogue-compact .ame-filters select {
    min-height: 36px;
    padding: 8px;
    border-color: var(--main-border-color, rgba(128, 128, 128, .16));
    border-radius: 8px;
    font: inherit;
    font-size: 12px;
    line-height: 18px;
}

.ame-catalogue-compact .ame-filters .ame-search input {
    flex: 1;
    width: 100%;
    min-width: 0;
    min-height: 34px;
    padding: 8px 0;
    border: 0;
    outline: 0;
    box-shadow: none;
    background: transparent;
}

.ame-catalogue-compact .ame-filters .ame-sort {
    flex: 0 1 140px;
}

.ame-catalogue-compact .ame-filters .ame-verified {
    flex: none;
    gap: 8px;
    min-height: 36px;
    padding: 0 4px;
    color: var(--main-color);
    font-size: 12px;
    white-space: nowrap;
    cursor: pointer;
}

.ame-catalogue-compact .ame-filters input[type="checkbox"] {
    appearance: auto;
    flex: none;
    width: 16px;
    height: 16px;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 4px;
    box-shadow: none;
    accent-color: var(--theme-color, #f26b3a);
    cursor: pointer;
}

.ame-catalogue-compact .ame-filters .but {
    flex: none;
    min-height: 36px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    line-height: 20px;
}

.ame-catalogue-compact .ame-search:focus-within,
.ame-catalogue-compact .ame-filters select:focus-visible,
.ame-catalogue-compact .ame-filters input[type="checkbox"]:focus-visible,
.ame-catalogue-compact .ame-filters .but:focus-visible,
.ame-catalogue-compact .ame-catalogue-submit:focus-visible {
    outline: 2px solid var(--theme-color, #f26b3a);
    outline-offset: 3px;
}

.ame-resource-grid.ame-density-compact.ame-layout-cards {
    gap: var(--ame-gap, 12px);
}

.ame-resource-grid.ame-density-compact.ame-layout-cards .ame-resource {
    position: relative;
    min-width: 0;
    min-height: 136px;
    border-radius: 10px;
    box-shadow: none;
    transition: transform .16s ease, border-color .16s ease, background-color .16s ease;
}

.ame-resource-grid.ame-density-compact.ame-layout-cards .ame-resource:hover {
    border-color: var(--theme-color, #f26b3a);
    transform: translateY(-1px);
}

.ame-resource-grid.ame-density-compact.ame-layout-cards .ame-resource-body {
    min-width: 0;
    padding: 12px;
}

.ame-resource-grid.ame-density-compact.ame-layout-cards .ame-card-heading {
    gap: 10px;
    margin-bottom: 8px;
}

.ame-resource-grid.ame-density-compact.ame-layout-cards .ame-logo {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    font-size: 17px;
}

.ame-resource-grid.ame-density-compact.ame-layout-cards .ame-resource h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
}

.ame-resource-grid.ame-density-compact.ame-layout-cards .ame-resource h3 a {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.ame-resource-grid.ame-density-compact.ame-layout-cards .ame-publisher {
    font-size: 11px;
    line-height: 16px;
}

.ame-resource-grid.ame-density-compact.ame-layout-cards .ame-card-badges {
    gap: 2px;
}

.ame-resource-grid.ame-density-compact.ame-layout-cards .ame-badge {
    font-size: 10px;
    line-height: 14px;
}

.ame-resource-grid.ame-density-compact.ame-layout-cards .ame-card-description {
    min-height: 0;
    margin: 0 0 8px;
    font-size: 12px;
    line-height: 18px;
    -webkit-line-clamp: 2;
}

.ame-resource-grid.ame-density-compact.ame-layout-cards .ame-card-connection,
.ame-resource-grid.ame-density-compact.ame-layout-cards .ame-client-platforms,
.ame-resource-grid.ame-density-compact.ame-layout-cards .ame-card-features,
.ame-resource-grid.ame-density-compact.ame-layout-cards .ame-connector-facts {
    margin-bottom: 8px;
    font-size: 11px;
}

.ame-resource-grid.ame-density-compact.ame-layout-cards .ame-card-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
    min-height: 20px;
    margin-top: auto;
}

.ame-resource-grid.ame-density-compact.ame-layout-cards .ame-card-tags {
    min-width: 0;
    margin: 0;
    gap: 4px;
    overflow: hidden;
    flex-wrap: nowrap;
    font-size: 11px;
}

.ame-resource-grid.ame-density-compact.ame-layout-cards .ame-card-tags .ame-tag {
    display: block;
    overflow: hidden;
    padding: 2px 6px;
    border-radius: 4px;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 16px;
}

.ame-resource-grid.ame-density-compact.ame-layout-cards .ame-card-footer {
    flex: none;
    gap: 8px;
    margin: 0;
    font-size: 11px;
    line-height: 16px;
    white-space: nowrap;
}

.ame-resource-grid.ame-density-compact.ame-layout-cards .ame-card-footer time {
    margin-left: 0;
}

.ame-resource-grid.ame-density-compact.ame-layout-cards .ame-card-action {
    display: none;
}

.ame-resource-grid.ame-density-compact.ame-layout-cards .ame-card-link::after {
    position: absolute;
    z-index: 1;
    content: '';
    inset: 0;
    border-radius: inherit;
}

.ame-resource-grid.ame-density-compact.ame-layout-cards .ame-card-tags a,
.ame-resource-grid.ame-density-compact.ame-layout-cards .ame-card-footer a {
    position: relative;
    z-index: 2;
}

.ame-resource-grid.ame-density-compact.ame-layout-cards .ame-resource:has(.ame-card-link:focus-visible) {
    outline: 2px solid var(--theme-color, #f26b3a);
    outline-offset: 3px;
}

@media (min-width: 992px) and (max-width: 1199px) {
    .ame-resource-grid.ame-density-compact.ame-layout-cards {
        grid-template-columns: repeat(min(3, var(--ame-columns, 4)), minmax(0, 1fr));
    }
}

@media (min-width: 641px) and (max-width: 991px) {
    .ame-resource-grid.ame-density-compact.ame-layout-cards {
        grid-template-columns: repeat(min(2, var(--ame-columns, 4)), minmax(0, 1fr));
    }
}

@media (max-width: 1199px) {
    .ame-catalogue-compact .ame-catalogue-title {
        flex: 1;
    }

    .ame-catalogue-compact .ame-filters {
        order: 3;
        flex-basis: 100%;
    }
}

@media (max-width: 640px) {
    .ame-catalogue-compact .ame-catalogue-toolbar {
        gap: 12px;
        padding: 12px;
    }

    .ame-catalogue-compact .ame-catalogue-title h1 {
        font-size: 20px;
    }

    .ame-catalogue-compact .ame-filters {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px;
    }

    .ame-catalogue-compact .ame-filters .ame-search {
        grid-column: 1;
        min-width: 0;
    }

    .ame-catalogue-compact .ame-filters .ame-sort {
        grid-column: 1;
        grid-row: 2;
    }

    .ame-catalogue-compact .ame-filters .ame-verified {
        grid-column: 2;
        grid-row: 2;
        justify-self: start;
    }

    .ame-catalogue-compact .ame-filters .but {
        grid-column: 2;
        grid-row: 1;
        width: 100%;
    }

    .ame-resource-grid.ame-density-compact.ame-layout-cards {
        grid-template-columns: repeat(var(--ame-mobile-columns, 1), minmax(0, 1fr));
    }
}

@media (prefers-reduced-motion: reduce) {
    .ame-resource-grid.ame-density-compact.ame-layout-cards .ame-resource,
    .ame-catalogue-compact .ame-catalogue-submit {
        transition: none;
    }

    .ame-resource-grid.ame-density-compact.ame-layout-cards .ame-resource:hover {
        transform: none;
    }
}

/* MCP homepage recommendations keep the directory's compact rhythm. */
.ame-home-recommendations.ame-home-compact.links-box {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--ame-home-gap, 12px);
}

.ame-home-recommendations.ame-home-compact.links-box .links-card {
    min-height: 62px;
    padding: 10px 8px;
    border: 1px solid var(--main-border-color, rgba(128, 128, 128, .12));
    border-radius: 10px;
    background: var(--main-bg-color);
    transition: transform .16s ease, border-color .16s ease, background-color .16s ease;
}

.ame-home-recommendations.ame-home-compact.links-box .links-card:hover {
    border-color: var(--theme-color, #f26b3a);
    background: var(--muted-bg-color, rgba(128, 128, 128, .04));
    transform: translateY(-1px);
}

.ame-home-recommendations.ame-home-compact .list-inline {
    gap: 10px;
}

.ame-home-recommendations.ame-home-compact .link-img {
    width: 36px;
    height: 36px;
    min-width: 36px;
    --this-size: 36px;
    border: 1px solid var(--main-border-color, rgba(128, 128, 128, .12));
    border-radius: 8px;
    background: var(--muted-bg-color, rgba(128, 128, 128, .06));
}

.ame-home-recommendations.ame-home-compact .link-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 7px;
}

.ame-home-recommendations.ame-home-compact .astral-card-fallback {
    color: var(--theme-color, #f26b3a);
    font-size: 17px;
}

.ame-home-recommendations.ame-home-compact dt {
    overflow: hidden;
    color: var(--main-color);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ame-home-recommendations.ame-home-compact dd {
    display: -webkit-box;
    overflow: hidden;
    margin-top: 2px;
    color: var(--muted-color);
    font-size: 12px;
    line-height: 17px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.ame-home-recommendations.ame-home-compact .links-card > a:focus-visible {
    outline: 2px solid var(--theme-color, #f26b3a);
    outline-offset: 3px;
    border-radius: 6px;
}

.ame-home-recommendations:not(.ame-home-compact) {
    gap: 24px;
}

.ame-home-recommendations:not(.ame-home-compact) .ame-home-heading {
    padding-bottom: 10px;
    margin-bottom: 12px;
}

.ame-home-recommendations:not(.ame-home-compact) .ame-home-heading h3 {
    font-size: 16px;
}

.ame-home-recommendations:not(.ame-home-compact) .ame-resource-grid {
    gap: 10px;
}

.ame-home-recommendations:not(.ame-home-compact) .ame-resource-body {
    padding: 14px;
}

.ame-home-recommendations:not(.ame-home-compact) .ame-resource h3 {
    font-size: 14px;
    line-height: 20px;
}

.ame-home-recommendations:not(.ame-home-compact) .ame-card-description {
    margin-bottom: 10px;
    font-size: 12px;
    line-height: 18px;
    -webkit-line-clamp: 2;
}

.ame-home-recommendations:not(.ame-home-compact) .ame-card-footer {
    font-size: 11px;
}

.ame-home-recommendations:not(.ame-home-compact) .ame-card-action {
    display: none;
}

/* MCP detail pages use compact surfaces and a clear summary-to-details hierarchy. */
.ame-detail-page {
    --ame-detail-radius: 12px;
    --ame-detail-gap: 16px;
}

.ame-detail-page .ame-breadcrumb {
    gap: 8px;
    margin: 0 0 20px;
    padding: 0;
    font-size: 12px;
    line-height: 20px;
}

.ame-detail-page .ame-detail-top {
    margin-bottom: 20px;
}

.ame-detail-page .ame-detail-layout {
    gap: 24px;
}

.ame-detail-page .ame-detail-layout.ame-has-sidebar {
    grid-template-columns: minmax(0, 1fr) 256px;
}

.ame-detail-page .ame-detail-main > .zib-widget-wrap,
.ame-detail-page .ame-detail-aside > .zib-widget-wrap {
    margin: 0 0 var(--ame-detail-gap);
}

.ame-detail-page .ame-detail-main > .zib-widget-wrap:last-child,
.ame-detail-page .ame-detail-aside > .zib-widget-wrap:last-child {
    margin-bottom: 0;
}

.ame-detail-page .ame-detail-main .title-theme,
.ame-detail-page .ame-detail-aside .title-theme {
    margin: 0;
    padding: 0 0 10px;
    font-size: 17px;
    font-weight: 500;
    line-height: 24px;
}

.ame-detail-page .ame-detail-main .title-theme:before,
.ame-detail-page .ame-detail-aside .title-theme:before {
    display: none;
}

.ame-detail-page .ame-detail-section {
    padding: 24px;
    border: 1px solid var(--main-border-color, rgba(128, 128, 128, .14));
    border-radius: var(--ame-detail-radius);
    line-height: 1.7;
}

.ame-detail-page .ame-detail-summary {
    padding: 24px;
}

.ame-detail-page .ame-detail-identity {
    gap: 14px;
    margin-bottom: 16px;
}

.ame-detail-page .ame-detail-identity .ame-logo {
    width: 48px;
    height: 48px;
    border: 1px solid var(--main-border-color, rgba(128, 128, 128, .14));
    border-radius: 10px;
    background: var(--muted-bg-color, rgba(128, 128, 128, .06));
    font-size: 21px;
}

.ame-detail-page .ame-detail-identity .ame-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 9px;
}

.ame-detail-page .ame-detail-identity > div > span {
    display: block;
    font-size: 11px;
    line-height: 16px;
}

.ame-detail-page .ame-detail-identity h1 {
    margin: 0;
    color: var(--main-color);
    font-size: 30px;
    font-weight: 500;
    line-height: 38px;
}

.ame-detail-page .ame-detail-publisher {
    margin: 2px 0 0;
    font-size: 12px;
    line-height: 18px;
}

.ame-detail-page .ame-detail-badges {
    gap: 4px;
}

.ame-detail-page .ame-detail-badges .fa-check-circle,
.ame-detail-page .ame-detail-badges .fa-shield {
    color: var(--theme-color, #f26b3a);
}

.ame-detail-page .ame-detail-description {
    max-width: 72ch;
    margin: 0 0 16px;
    font-size: 15px;
    line-height: 26px;
}

.ame-detail-page .ame-detail-summary > .ame-card-tags {
    gap: 6px;
    margin: 0 0 16px;
}

.ame-detail-page .ame-detail-summary > .ame-card-tags .ame-tag {
    padding: 4px 8px;
    border: 1px solid var(--main-border-color, rgba(128, 128, 128, .14));
    border-radius: 6px;
    color: var(--muted-color);
    font-size: 11px;
    line-height: 16px;
}

.ame-detail-page .ame-detail-summary > .ame-card-tags .ame-tag .fa {
    color: var(--theme-color, #f26b3a);
}

.ame-detail-page .ame-detail-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px;
    margin: 16px 0;
    padding: 12px 0;
    border-top: 1px solid var(--main-border-color, rgba(128, 128, 128, .12));
    border-bottom: 1px solid var(--main-border-color, rgba(128, 128, 128, .12));
}

.ame-detail-page .ame-detail-metrics > div {
    min-width: 0;
    gap: 4px;
    padding: 10px 12px;
    border: 1px solid var(--main-border-color, rgba(128, 128, 128, .12));
    border-radius: 8px;
    background: var(--muted-bg-color, rgba(128, 128, 128, .035));
}

.ame-detail-page .ame-detail-metrics.ame-detail-metrics-single {
    grid-template-columns: minmax(120px, max-content);
    justify-content: start;
}

.ame-detail-page .ame-detail-metrics dt {
    font-size: 11px;
    line-height: 16px;
}

.ame-detail-page .ame-detail-metrics dd {
    color: var(--main-color);
    font-size: 16px;
    line-height: 22px;
}

.ame-detail-page .ame-detail-actions,
.ame-detail-page .ame-detail-primary {
    gap: 8px;
}

.ame-detail-page .ame-detail-actions .but,
.ame-detail-page .ame-detail-primary .but {
    min-height: 34px;
    padding: 7px 12px;
    border-radius: 6px;
    font-size: 12px;
    transition: color .16s ease, background-color .16s ease, border-color .16s ease, transform .16s ease;
}

.ame-detail-page .ame-detail-actions .but.hollow,
.ame-detail-page .ame-detail-primary .but.hollow {
    border-color: var(--theme-color, #f26b3a);
    color: var(--theme-color, #f26b3a);
}

.ame-detail-page .ame-detail-actions .but.hollow:hover,
.ame-detail-page .ame-detail-primary .but.hollow:hover {
    color: #fff;
    background: var(--theme-color, #f26b3a);
}

.ame-detail-page .ame-detail-actions .but:hover,
.ame-detail-page .ame-detail-primary .but:hover {
    transform: translateY(-1px);
}

.ame-detail-page .ame-theme-share {
    margin-top: 16px;
}

.ame-detail-page .ame-theme-share > summary,
.ame-detail-page .ame-share-link {
    color: var(--muted-color);
    transition: color .16s ease;
}

.ame-detail-page .ame-theme-share > summary:hover,
.ame-detail-page .ame-share-link:hover {
    color: var(--theme-color, #f26b3a);
}

.ame-detail-page .ame-detail-aside {
    position: sticky;
    top: 88px;
    align-self: start;
}

.ame-detail-page .ame-detail-aside .ame-detail-section {
    padding: 16px;
}

.ame-detail-page .ame-detail-aside .ame-detail-navigation > a {
    padding: 7px 10px;
    border-left-width: 2px;
    border-radius: 0 6px 6px 0;
    font-size: 12px;
    line-height: 18px;
}

.ame-detail-page .ame-detail-aside .ame-facts {
    font-size: 11px;
}

.ame-detail-page .ame-detail-aside .ame-facts > div {
    gap: 8px;
    padding: 9px 0;
}

.ame-detail-page .ame-detail-aside .ame-facts dd {
    font-size: 11px;
}

.ame-detail-page .ame-detail-section h2,
.ame-detail-page .ame-detail-section h3 {
    color: var(--main-color);
}

.ame-detail-page .ame-detail-section h3 {
    margin-bottom: 10px;
    font-size: 15px;
    line-height: 22px;
}

.ame-detail-page .ame-code-wrap {
    border-radius: 10px;
    background: var(--muted-bg-color, rgba(128, 128, 128, .05));
}

.ame-detail-page .ame-code-toolbar {
    padding: 8px 12px;
    border-color: var(--main-border-color, rgba(128, 128, 128, .12));
}

.ame-detail-page .ame-copy {
    color: var(--theme-color, #f26b3a);
    transition: color .16s ease, background-color .16s ease;
}

.ame-detail-page .ame-copy:hover {
    color: var(--theme-color, #f26b3a);
    background: var(--main-bg-color);
}

.ame-detail-page .ame-code {
    padding: 16px;
    font-size: 12px;
    line-height: 20px;
}

.ame-detail-page .ame-tool-list {
    gap: 8px;
}

.ame-detail-page .ame-tool {
    padding: 16px;
    border-radius: 10px;
    transition: border-color .16s ease, background-color .16s ease, transform .16s ease;
}

.ame-detail-page .ame-tool:hover {
    border-color: var(--theme-color, #f26b3a);
    background: var(--muted-bg-color, rgba(128, 128, 128, .035));
    transform: translateY(-1px);
}

.ame-detail-page .ame-tool h4 > .fa,
.ame-detail-page .ame-tools-title .fa,
.ame-detail-page .ame-capability-row > h3 .fa {
    color: var(--theme-color, #f26b3a);
}

.ame-detail-page .ame-tool h4 {
    margin-bottom: 8px;
    font-size: 14px;
}

.ame-detail-page .ame-tool p,
.ame-detail-page .ame-capability-row p,
.ame-detail-page .ame-readme {
    font-size: 13px;
    line-height: 24px;
}

.ame-detail-page .ame-feature-matrix > div {
    padding: 10px 0;
    font-size: 12px;
}

.ame-detail-page .ame-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.ame-detail-page .ame-gallery img {
    width: 100%;
    border-radius: 10px;
}

.ame-detail-page .ame-faq {
    padding: 12px 0;
}

.ame-detail-page .ame-faq summary {
    font-size: 14px;
    line-height: 22px;
}

.ame-detail-page .ame-faq p {
    margin-top: 10px;
    font-size: 13px;
    line-height: 22px;
}

@media (max-width: 1199px) and (min-width: 992px) {
    .ame-home-recommendations.ame-home-compact.links-box {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .ame-home-recommendations.ame-home-compact.links-box {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ame-detail-page .ame-detail-layout.ame-has-sidebar {
        grid-template-columns: 1fr;
    }

    .ame-detail-page .ame-detail-aside {
        position: static;
    }
}

@media (max-width: 600px) {
    .ame-home-recommendations.ame-home-compact.links-box {
        grid-template-columns: repeat(var(--ame-home-mobile, 1), minmax(0, 1fr));
    }

    .ame-detail-page .ame-detail-section,
    .ame-detail-page .ame-detail-summary {
        padding: 18px;
    }

    .ame-detail-page .ame-detail-identity h1 {
        font-size: 24px;
        line-height: 32px;
    }

    .ame-detail-page .ame-detail-identity .ame-logo {
        width: 44px;
        height: 44px;
    }

    .ame-detail-page .ame-detail-description {
        font-size: 14px;
        line-height: 23px;
    }

    .ame-detail-page .ame-detail-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }

    .ame-detail-page .ame-detail-metrics > div {
        padding: 8px 10px;
    }

    .ame-detail-page .ame-gallery {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ame-home-recommendations.ame-home-compact .links-card,
    .ame-detail-page .ame-detail-actions .but,
    .ame-detail-page .ame-detail-primary .but,
    .ame-detail-page .ame-tool {
        transition: none;
        transform: none;
    }
}
