/* Article reading surface and guide board. Shared scenery lives in world.css. */
.ok-article-layout { display:grid; grid-template-columns:minmax(0,1fr) 260px; align-items:start; gap:24px; width:calc(100% - 64px); max-width:1080px!important; margin:0 auto!important; padding:10px 0 30px; }
.ok-single-main .ok-article { min-width:0; width:100%; max-width:none; margin:0; padding:0; border:0; border-radius:12px; background:#fff; }
.ok-article-body { max-width:736px!important; margin:0 auto; padding:18px 28px 30px; }
.ok-article-body > *, .ok-article-body > .wp-block-post-content > * { max-width:100%!important; }
.ok-article-body .wp-block-post-content { width:100%; max-width:none!important; margin:0; color:#263f58; font-size:1rem; }
.ok-article-body .wp-block-post-content > :first-child { margin-top:0; }
.ok-article-body .wp-block-post-content > p:empty { display:none; }
.ok-article-body .wp-block-post-content > p { margin-block:1.2em; }
.ok-article-body .im-diagram { width:100%; max-width:100%!important; margin-inline:0!important; margin-block:26px; box-sizing:border-box; }
.ok-article-body .im-dialogue { max-width:100%; margin-block:20px; }
.ok-article-body .im-notice { margin:0 0 22px; padding:12px 15px; font-size:.8rem; line-height:1.7; }
.ok-article-body .im-notice p { margin:4px 0 0; line-height:1.7; }
.ok-article-body .wp-block-post-content > .wp-block-heading { position:relative; margin-top:38px; padding:0 0 18px 35px; border:0; background:url('../images/ornament-divider.svg') left bottom / 100% 12px no-repeat; font-size:clamp(1.2rem,2vw,1.45rem); line-height:1.5; color:#12365d; }
.ok-article-body .wp-block-post-content > h2.wp-block-heading::before { content:""; position:absolute; left:0; top:2px; width:27px; height:30px; background:url('../images/compass.svg') center / contain no-repeat; }
.ok-article-body .wp-block-post-content > .ok-chapter-start { margin-top:62px; }
.ok-quest-label { position:absolute; top:-37px; left:-4px; display:flex; align-items:center; justify-content:center; width:118px; height:31px; background:url('../images/parchment-ribbon.svg') center / 100% 100% no-repeat; color:#79502b; font-size:.72rem; font-weight:850; letter-spacing:.05em; }
.ok-article-body .wp-block-table { width:100%; margin-inline:0; overflow:auto; }
.ok-article-body .wp-block-table table { width:100%; border-collapse:collapse; font-size:.86rem; }
.ok-article-body .wp-block-table th,.ok-article-body .wp-block-table td { padding:9px 11px; border:1px solid #d5e3ec; overflow-wrap:anywhere; }
.ok-article-body .wp-block-table th { background:#eff6fb; color:#173b65; }
.ok-article-end { font-size:.85rem; }
.ok-sidebar { display:grid; gap:16px; min-width:0; margin:0; }
.ok-sidebar-panel { position:relative; padding:4px 5px 7px; border:15px solid transparent; border-image:url('../images/notice-board-frame.svg') 32 fill / 15px / 0 stretch; background:none; filter:drop-shadow(0 2px 2px #896e3c16); color:#24425e; }
.ok-sidebar-panel h2,.ok-sidebar-search label { position:relative; display:block; margin:0 0 9px; padding:0 17px 9px 23px; border-bottom:1px solid #d2b584; color:#12365d; font-size:1rem; font-weight:850; line-height:1.5; }
.ok-sidebar-panel h2::before,.ok-sidebar-search label::before { content:""; position:absolute; left:0; top:1px; width:18px; height:21px; background:url('../images/compass.svg') center/contain no-repeat; }
.ok-sidebar-panel h2::after,.ok-sidebar-search label::after { content:""; position:absolute; right:0; top:2px; width:10px; height:15px; background:url('../images/ornament-divider.svg') center / auto 15px no-repeat; }
.ok-sidebar-panel ul { margin:0; padding:3px 10px; list-style:none; border:1px solid #e6d8bf; border-radius:4px; background:#ffffffed; }
.ok-sidebar-panel li + li { border-top:1px solid #e5edf3; }
.ok-sidebar-panel li a { display:block; padding:10px 0; color:#1c426b; font-size:.82rem; line-height:1.6; text-decoration:none; overflow-wrap:anywhere; }
.ok-sidebar-panel li a:hover { text-decoration:underline; }
.ok-sidebar-panel > p { margin:0; padding:10px; border-radius:5px; background:#ffffffc9; font-size:.8rem; line-height:1.8; }
.ok-sidebar-search .ok-search-fields { padding:7px; border-radius:5px; background:#fff; }
.ok-sidebar-service { border-image-source:url('../images/notice-board-green.svg'); }
.ok-sidebar-service h2 { color:#176d4e; border-color:#99c4a2; }
.ok-sidebar-cta { display:block; margin-top:12px; padding:12px 9px; border:1px solid #0f7859; border-radius:6px; background:linear-gradient(#249b79,#087050); box-shadow:inset 0 1px 0 #7dcbb2; color:#fff; text-align:center; font-size:.82rem; font-weight:800; line-height:1.5; text-decoration:none; }
.ok-sidebar-cta:hover { background:#075c43; }
@media(max-width:1100px) {
 .ok-article-layout { width:calc(100% - 40px); gap:20px; }
 .ok-article-body { padding-inline:22px; }
}
@media(max-width:960px) {
 .ok-article-layout { grid-template-columns:minmax(0,1fr); max-width:744px!important; }
 .ok-sidebar { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:600px) {
 .ok-article-layout { width:100%; padding:0 14px 24px; gap:24px; }
 .ok-article-body { padding:16px 4px 22px; }
 .ok-article-body .wp-block-post-content { font-size:.94rem; }
 .ok-article-body .wp-block-post-content > .wp-block-heading { padding-left:29px; font-size:1.2rem; }
 .ok-article-body .wp-block-post-content > h2.wp-block-heading::before { width:23px; height:27px; }
 .ok-sidebar { grid-template-columns:1fr; gap:14px; }
 .ok-sidebar-panel { padding:5px 7px 9px; }
}
@media(max-width:360px) { .ok-article-layout { padding-inline:12px; } }

/* Shared prompt / code copy panels. */
.ok-copy-panel{margin:1.5rem 0;border:1px solid #9eb9ab;border-radius:14px;overflow:hidden;background:#f8faf7;max-width:100%;box-sizing:border-box}
.ok-copy-toolbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;padding:12px 16px;background:#eaf2ec;color:#173f39;font-weight:700;font-size:.9rem;border-bottom:1px solid #c6d6cc}
.ok-copy-button{appearance:none;min-height:44px;border:1px solid #235545;border-radius:8px;padding:9px 14px;background:#235545;color:#fff;font:inherit;font-weight:700;line-height:1.4;cursor:pointer}
.ok-copy-button:hover{background:#173f39}
.ok-copy-button:focus-visible{outline:3px solid #d99c32;outline-offset:3px}
.ok-copy-button:disabled{opacity:.75;cursor:wait}
.ok-copy-panel>pre,.ok-copy-panel>.ok-prompt{box-sizing:border-box;margin:0;padding:18px;border:0;border-radius:0;background:#f8faf7;color:#1c3334;white-space:pre-wrap;overflow-wrap:anywhere;overflow-x:auto;font-size:14px;line-height:1.8}
.ok-copy-panel>pre code{color:inherit;background:transparent;padding:0;white-space:inherit}
.ok-copy-panel>textarea{display:block;width:100%;max-width:100%;margin:0;border:0!important;border-radius:0!important}
.ok-copy-status{margin:0!important;padding:10px 16px;border-top:1px solid #d6e2d9;color:#415a50;background:#f1f6f0;font-size:.85rem!important;line-height:1.6!important}
@media(max-width:480px){.ok-copy-toolbar{padding:10px 12px}.ok-copy-panel>pre,.ok-copy-panel>.ok-prompt{padding:14px;font-size:13px}.ok-copy-button{width:100%}}
