/* Warp Repeater demo */

.demo-metrics {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0.75rem;
}

.demo-metrics > div {
    flex: 1 1 8rem;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    background: white;
    box-shadow: 0 1px 2px rgb(0 0 0 / 0.05);
    outline: 1px solid rgb(3 7 18 / 0.05);
}

.dark .demo-metrics > div {
    background: rgb(255 255 255 / 0.05);
    outline-color: rgb(255 255 255 / 0.1);
}

.demo-metrics-mode {
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: 1.125rem;
    font-weight: 600;
}

.demo-metrics-sub,
.demo-metrics-label {
    font-size: 0.75rem;
    font-weight: 400;
    color: rgb(107 114 128);
}

.demo-metrics-value {
    font-size: 1.5rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

/* Notice bar above the panel */
.demo-notice {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.25rem 1.5rem;
    padding: 0.4rem 1rem;
    font-size: 0.8125rem;
    color: white;
    background: rgb(17 24 39);
}

.demo-notice a {
    color: rgb(253 186 116);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.demo-notice-links {
    display: inline-flex;
    gap: 1rem;
}

.demo-notice a.demo-notice-buy {
    color: white;
    font-weight: 600;
}

/* Tour page */
.demo-tour-section + .demo-tour-section {
    margin-top: 0.5rem;
}

.demo-tour-heading {
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: rgb(107 114 128);
}

.demo-tour-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
    gap: 1rem;
}

.demo-tour-card {
    display: flex;
    gap: 0.875rem;
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    background: white;
    box-shadow: 0 1px 2px rgb(0 0 0 / 0.05);
    outline: 1px solid rgb(3 7 18 / 0.05);
    transition: outline-color 0.15s;
}

.demo-tour-card:hover {
    outline: 2px solid var(--primary-500);
}

.dark .demo-tour-card {
    background: rgb(255 255 255 / 0.05);
    outline-color: rgb(255 255 255 / 0.1);
}

.demo-tour-icon {
    flex: none;
    width: 1.5rem;
    height: 1.5rem;
    color: var(--primary-500);
}

.demo-tour-title {
    font-weight: 600;
}

.demo-tour-text {
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: rgb(107 114 128);
}

.demo-oom p + p {
    margin-top: 0.75rem;
}

.demo-oom a {
    color: var(--primary-600);
    font-weight: 600;
    text-decoration: underline;
}
