[data-culture-term] {
    color: #78BFFF;
    font: inherit;
    background: none;
    border: 0;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: .15em;
    cursor: pointer;
}
[data-culture-dialog] {
    position: fixed;
    inset: var(--culture-top, 12px) auto auto var(--culture-left, 12px);
    margin: 0;
    padding: 0;
    width: min(26rem, calc(100vw - 24px));
    max-height: calc(100dvh - 24px);
    border: 1px solid #746347;
    border-radius: .75rem;
    color: #e9e2d3;
    background: #101513;
}
[data-culture-dialog]::backdrop { background: #0007; }
[data-culture-content] {
    padding: 1rem;
    overflow: auto;
    max-height: calc(100dvh - 28px);
}
[data-culture-content] a { color: #78BFFF; }
[data-culture-content] img { max-width: 100%; height: auto; }
[data-culture-close] { float: right; }
@media (max-width: 640px) {
    [data-culture-dialog] { inset: auto 0 0; width: auto; max-width: none; }
    [data-culture-content] {
        max-height: 70dvh;
        padding-bottom: max(1rem, env(safe-area-inset-bottom));
    }
}


@media (min-width: 641px) {
    [data-culture-dialog] {
        --culture-visible-top: min(var(--culture-top, 12px), 50dvh);
        top: var(--culture-visible-top);
        max-height: calc(100dvh - var(--culture-visible-top) - 12px);
    }
    [data-culture-content] {
        box-sizing: border-box;
        max-height: calc(100dvh - var(--culture-visible-top) - 14px);
    }
}
