/* Tata letak penjelajah; warna, form, dan kartu dari croot.css. */
.page {
    padding-block: 32px 48px;
}

#open input {
    flex: 1 1 16rem;
    width: auto;
}

.crumbs {
    margin: 16px 0;
    overflow-wrap: anywhere;
}

.crumbs a + a::before {
    content: " / ";
    color: var(--croot-muted);
}

.explorer {
    display: grid;
    gap: 16px;
}

@media (min-width: 900px) {
    .explorer:has(.preview:not([hidden])) {
        grid-template-columns: minmax(16rem, 1fr) 2fr;
        align-items: start;
    }
}

.entries {
    margin: 0;
    padding: 0;
    list-style: none;
    border: 1px solid var(--croot-border);
    border-radius: var(--croot-radius);
    background-color: var(--croot-surface);
}

.entries li + li {
    border-top: 1px solid var(--croot-border);
}

.entries a {
    display: flex;
    gap: 8px;
    padding: 10px 12px;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.entries a[aria-current="true"] {
    font-weight: 700;
    background-color: color-mix(in srgb, var(--croot-accent) 10%, transparent);
}

.entries .size {
    margin-left: auto;
    color: var(--croot-muted);
    white-space: nowrap;
}

.entries .empty {
    padding: 10px 12px;
    color: var(--croot-muted);
}

.preview-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 12px;
}

.preview-head h2 {
    margin: 0;
    font-size: 1.1rem;
    overflow-wrap: anywhere;
}

.preview iframe {
    width: 100%;
    height: 75vh;
    border: 0;
}

.preview img {
    display: block;
    margin: 0 auto;
}

.preview pre {
    max-height: 70vh;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.small {
    font-size: 0.85rem;
}
