/* Shared styles for the addon guides (addons.html, addon-*.html). */

.addon-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 16px;
}

.addon-tile {
    display: flex;
    gap: 16px;
    padding: 20px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    transition: box-shadow 0.2s, transform 0.2s;
}

.addon-tile:hover {
    color: inherit;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

/* The template underlines every a:hover; cards are links but should not. */
.addon-tile:hover,
.addon-tile:hover * {
    text-decoration: none;
}

.addon-tile__icon {
    flex: 0 0 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--tile, #2451ff);
    color: #fff;
    font-size: 28px;
}

.addon-tile__body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.addon-tile__name {
    font-weight: 700;
    font-size: 18px;
}

.addon-tile__desc {
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.85;
}

.addon-tile__meta {
    font-size: 13px;
    font-weight: 600;
    opacity: 0.7;
}

.addon-table {
    font-size: 15px;
    margin-bottom: 0;
}

.addon-table th {
    white-space: nowrap;
}

.addon-table td,
.addon-table th {
    padding: 12px 14px;
    vertical-align: top;
}

.addon-table em {
    font-style: normal;
    font-weight: 600;
}

.addon-flow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 12px 0 20px;
}

.addon-flow__step {
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(36, 81, 255, 0.08);
    font-size: 14px;
    font-weight: 600;
}

.addon-flow__arrow {
    opacity: 0.5;
}

.documentation-body__content-item h4 {
    margin-top: 20px;
}

/*
 * One sidebar scrollbar only. "after-effect" paints a decorative track and
 * thumb with ::before/::after; the addon menus are long enough that
 * .sidebar-menu also shows its real scrollbar, so both appeared side by side.
 * Keep the real (already styled) one and drop the decoration.
 */
.sidebar-menu-list.after-effect {
    padding-right: 0;
}

.sidebar-menu-list.after-effect::before,
.sidebar-menu-list.after-effect::after {
    display: none;
}

/* The sidebar starts 130px down; a full 100vh pushed its scroll end off-screen. */
@media (min-width: 992px) {
    .sidebar-menu {
        height: calc(100vh - 130px);
        padding-bottom: 20px;
    }
}

@media (max-width: 767px) {
    .addon-grid {
        grid-template-columns: 1fr;
    }
}
