/* /api only (operator API doc): keep wide tables and code inside the phone width. */
.api-doc { overflow-wrap: anywhere; }
.api-doc pre { overflow-x: auto; max-width: 100%; padding: 12px 14px; border: 1px solid var(--rule); border-radius: 10px; background: var(--surface); font-size: 0.85rem; line-height: 1.55; white-space: pre; }
.api-doc pre code { overflow-wrap: normal; }
.api-doc code { font-size: 0.9em; overflow-wrap: anywhere; }
.api-doc table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; font-size: 0.9rem; }
.api-doc th, .api-doc td { padding: 6px 8px; border-bottom: 1px solid var(--rule); vertical-align: top; text-align: left; min-width: 7em; }
/* Owner 11/3: the 「AI에게 주기」 box at the top of the page, with the page address. */
.api-ai { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 8px 0 20px; padding: 14px 16px; border: 1px solid var(--lantern); border-radius: 14px; background: var(--surface); }
.api-ai p { flex: 1 1 22em; margin: 0; font-weight: 600; line-height: 1.6; }
.api-ai-url { flex: none; font-weight: 700; }
/* Owner tg 10508: 「공간 관리로 이동」 above everything, only for an operator signed in on this browser (api-owner.js). */
.api-manage { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; }
.api-manage[hidden] { display: none; }
/* owner 11/12: the line saying the same document opens inside 공간 관리 with the space's id */
.api-manage { align-items: center; padding: 12px 14px; border: 1px solid var(--rule); border-radius: 8px; background: var(--surface); }
.api-manage-line { flex: 1 1 100%; font-weight: 600; }
/* the portal example video (owner tg 13659): 16:9 at any width, the CC BY music credit small under it */
.ex-video { margin: 16px 0; max-width: 720px; }
.ex-video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 8px; background: #000; }
.ex-video figcaption { margin-top: 6px; font-size: 0.85rem; color: var(--ink-2); overflow-wrap: anywhere; }
.ex-video small { font-size: 0.75rem; }
