/* パネルの上のお知らせ */
.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(103 232 249);
    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;
}

/* お知らせのバーの言語のメニュー */
.demo-notice-lang select {
    padding: 0.1rem 1.6rem 0.1rem 0.5rem;
    font-size: 0.8125rem;
    color: white;
    background-color: rgb(31 41 55);
    border: 1px solid rgb(75 85 99);
    border-radius: 0.375rem;
}

.demo-notice-lang .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
}

/* Start here のページ */
.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);
}

/* ページのピボットは、お知らせと説明文の分だけ低くする（->height() を指定したウィジェットはそちらが優先） */
.fi-page .fi-warp-pvt {
    --fi-warp-pvt-height: max(26rem, calc(100vh - 19rem));
}

/* Developer hooks：ピボットが送るイベントの一覧 */
.demo-events {
    padding: 1rem;
    font-size: 0.875rem;
    border-radius: 0.75rem;
    background: white;
    box-shadow: 0 0 0 1px rgb(3 7 18 / 0.05);
}

.dark .demo-events {
    background: var(--gray-900);
    box-shadow: 0 0 0 1px rgb(255 255 255 / 0.1);
}

.demo-events-title {
    font-weight: 500;
}

.demo-events-empty {
    color: var(--gray-500);
}

.demo-events-list {
    margin-top: 0.5rem;
    font-family: var(--mono-font-family, ui-monospace, monospace);
    font-size: 0.75rem;
    line-height: 1.6;
}

.demo-events-name {
    color: var(--primary-600);
}

.dark .demo-events-name {
    color: var(--primary-400);
}
