/* Mobile overflow fix — prevents long URLs/code from breaking layout */
.rich-content,
.rich-content a,
.rich-content p,
.rich-content li,
.rich-content td,
.rich-content th {
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.rich-content a {
    word-break: break-all;
}

/* Tables — horizontal scroll on mobile */
.rich-content table,
.wp-block-table,
.wp-block-table table {
    display: block;
    overflow-x: auto;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
}

/* Code blocks — horizontal scroll, preserve formatting */
.rich-content pre,
.wp-block-code,
pre {
    overflow-x: auto;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
    white-space: pre;
    word-wrap: normal;
    font-size: 0.85rem;
}

.rich-content pre code,
.wp-block-code code {
    white-space: pre;
    word-wrap: normal;
}

/* /only page — canvas and media responsiveness */
/* canvas, .canvas — only max-width, never auto height (breaks canvas buffer) */
canvas, .canvas {
    max-width: 100%;

/* /only and custom pages — canvas and media responsiveness */
canvas, .canvas {
    max-width: 100%;
}
iframe {
    max-width: 100%;
}
img {
    max-width: 100%;
    height: auto;
}
.cs, .music {
    overflow: hidden;
}
