.ark-wp-page .ark-post-layout {display:grid;grid-template-columns:minmax(0,760px) 220px;gap:40px;max-width:1320px;margin:0 auto;align-items:start;justify-content:center;}
.ark-wp-page .ark-post-layout.has-toc {grid-template-columns:200px minmax(0,760px) 220px;}
.ark-wp-page .ark-post-layout:not(:has(.ark-post-recent)) {grid-template-columns:minmax(0,760px);}
.ark-wp-page .ark-post-layout.has-toc:not(:has(.ark-post-recent)) {grid-template-columns:200px minmax(0,760px);}
.ark-post-main {width:100%;min-width:0;max-width:100%;}
.ark-post-layout > * {min-width:0;max-width:100%;box-sizing:border-box;}
.ark-post-layout :is(img,video,iframe,embed,object,svg) {max-width:100%;}
.ark-post-layout :is(img,video) {height:auto;}
.ark-post-layout .ark-article-content :is(.alignwide,.alignfull) {width:100%;max-width:100%;margin-left:0;margin-right:0;left:auto;right:auto;}
.ark-post-layout .ark-article-content figure {max-width:100%;margin-left:0;margin-right:0;}
.ark-post-layout .ark-article-content :is(pre,.wp-block-table) {max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;}
.ark-post-layout .ark-article-content table {display:block;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;}
.ark-post-layout .ark-article-content :is(.wp-block-columns,.wp-block-column,.wp-block-group) {min-width:0;}
.ark-post-layout .ark-post-toc nav {max-width:100%;overscroll-behavior-x:contain;}
.ark-post-layout .ark-post-cta {overflow-wrap:anywhere;}
.ark-wp-page .ark-post-layout .ark-article-content {width:100%;min-width:0;max-width:none;margin:0;overflow-wrap:anywhere;}
.ark-post-layout .ark-article-content :is(h2,h3) {scroll-margin-top:110px;}
/* Clip sideways overflow without creating a scroll container that breaks sticky. */
body.single-post .ark-wp-page {overflow-x:clip;overflow-y:visible;}
.ark-post-toc {position:sticky;top:24px;align-self:start;min-width:0;padding:20px 14px;background:#f5f1fb;border:1px solid #e2d9ee;border-radius:6px;max-height:calc(100vh - 48px);overflow-y:auto;}
body.admin-bar .ark-post-toc {top:56px;max-height:calc(100vh - 80px);}
.ark-post-toc[hidden] {display:none;}
.ark-post-toc summary {font-size:15px;font-weight:700;cursor:pointer;color:#241a37;}
.ark-post-toc nav {display:flex;flex-direction:column;gap:4px;margin-top:12px;padding:0;}
.ark-post-toc nav a {display:block;color:#514a62;font-size:13px;line-height:1.5;text-decoration:none;border-left:2px solid transparent;padding:9px 10px;overflow-wrap:anywhere;}
.ark-post-toc nav a:hover,.ark-post-toc nav a[aria-current="location"] {color:#6128ce;border-color:#7b3ff2;background:#ebe2f8;}
.ark-post-toc a:focus-visible,.ark-recent-card:focus-visible {outline:2px solid #7b3ff2;outline-offset:3px;}
.ark-post-recent {min-width:0;border-top:2px solid #7b3ff2;padding-top:18px;}
.ark-wp-page .ark-post-recent h2 {font-size:15px;letter-spacing:0;line-height:1.5;margin:0 0 20px;}
.ark-recent-card {display:block;padding:0 0 24px;margin-bottom:24px;border-bottom:1px solid #e3dfea;text-decoration:none;color:#241a37;}
.ark-recent-card img {display:block;width:100%;height:auto;aspect-ratio:16/10;object-fit:cover;border-radius:4px;margin-bottom:12px;}
.ark-recent-card span {display:block;font-size:16px;font-weight:650;line-height:1.4;}
.ark-recent-card:hover span {color:#6630cf;}
.ark-recent-card time {display:block;font-size:12px;color:#646b7a;margin-top:8px;}
@media(max-width:1150px) {
 .ark-wp-page .ark-post-layout,.ark-wp-page .ark-post-layout.has-toc {grid-template-columns:180px minmax(0,1fr);gap:30px;}
 .ark-wp-page .ark-post-layout:not(.has-toc) {grid-template-columns:minmax(0,1fr);}
 .ark-post-recent {grid-column:2;}
 .ark-post-layout:not(.has-toc) .ark-post-recent {grid-column:1;}
}
@media(max-width:800px) {
 .ark-wp-page .ark-post-layout,.ark-wp-page .ark-post-layout.has-toc,.ark-wp-page .ark-post-layout.has-toc:not(:has(.ark-post-recent)) {display:flex;flex-direction:column;gap:32px;}
 .ark-post-toc {position:static;width:100%;box-sizing:border-box;background:#f6f2fc;padding:18px;}
 .ark-post-toc nav {max-height:250px;}
 .ark-post-recent {width:100%;}
 .ark-recent-card img {max-width:320px;}
}

.ark-blog-widget {margin:0 0 28px;padding:0 0 24px;border-bottom:1px solid #e3dfea;overflow-wrap:anywhere;}
.ark-blog-widget ul {padding:0;margin:0;list-style:none;}
.ark-blog-widget li {margin:0 0 12px;font-size:14px;line-height:1.5;}
.ark-blog-widget ul ul {padding-left:14px;margin-top:12px;}
.ark-blog-widget input:not([type=checkbox]):not([type=radio]),.ark-blog-widget select {width:100%;max-width:100%;min-width:0;padding:10px;border:1px solid #d9d1e4;border-radius:4px;font:inherit;box-sizing:border-box;}
.ark-blog-widget button,.ark-blog-widget input[type=submit] {background:#6630cf;color:#fff;border:0;padding:10px 12px;border-radius:4px;font-size:13px;cursor:pointer;}
.ark-blog-widget .search-submit {margin-top:8px;}
.ark-post-recent .search-submit,.ark-post-recent .wp-block-search__button {background:#6630cf!important;color:#fff!important;border:1px solid #6630cf!important;min-height:48px;padding:12px 18px;font-size:15px;font-weight:700;cursor:pointer;}
.ark-post-recent .search-submit:hover,.ark-post-recent .wp-block-search__button:hover {background:#5123a4!important;border-color:#5123a4!important;}
.ark-blog-widget .wp-block-search__inside-wrapper {flex-wrap:wrap;gap:8px;}
.ark-blog-widget .wp-block-search__button {margin:0;}
.ark-blog-widget img {max-width:100%;height:auto;}
.ark-blog-widget .ark-recent-card:last-child {margin-bottom:0;border:0;padding-bottom:0;}

/* Match the service-page navigation breakpoint and horizontal mobile rail. */
@media(max-width:1050px) {
 .ark-wp-page .ark-post-layout,.ark-wp-page .ark-post-layout.has-toc,.ark-wp-page .ark-post-layout.has-toc:not(:has(.ark-post-recent)) {display:flex;flex-direction:column;gap:32px;}
 .ark-post-toc,body.admin-bar .ark-post-toc {position:static;top:auto;width:100%;max-height:none;padding:12px;overflow:visible;box-sizing:border-box;}
 .ark-post-toc summary {font-size:12px;}
 .ark-post-toc nav {display:flex;flex-direction:row;flex-wrap:nowrap;gap:8px;max-height:none;overflow-x:auto;}
 .ark-post-toc nav a {flex:0 0 auto;max-width:240px;border-left:0;border-bottom:2px solid transparent;}
 .ark-post-recent {width:100%;}
}

.ark-wp-page .ark-post-cta {margin-top:56px;padding:34px;background:#f5f1fb;border:1px solid #e2d9ee;border-radius:6px;color:#241a37;}
.ark-post-cta .ark-post-cta-eyebrow {font-size:11px;letter-spacing:1.5px;font-weight:700;color:#6630cf;margin:0 0 14px;}
.ark-wp-page .ark-post-cta h2 {font-size:clamp(26px,2.6vw,36px);line-height:1.15;letter-spacing:-1px;margin:0 0 18px;}
.ark-post-cta p {font-size:16px;line-height:1.7;color:#514a62;margin:0 0 22px;}
.ark-post-cta-actions {display:flex;flex-wrap:wrap;align-items:center;gap:18px 24px;}
.ark-wp-page .ark-post-cta-primary {display:inline-flex;align-items:center;justify-content:space-between;gap:20px;background:#6630cf;color:#fff;padding:16px 20px;border-radius:4px;font-size:14px;font-weight:700;text-decoration:none;}
.ark-wp-page .ark-post-cta-primary:hover {background:#5123a4;color:#fff;}
.ark-wp-page .ark-post-cta-secondary {color:#6630cf;font-size:14px;line-height:1.5;text-decoration:underline;text-underline-offset:4px;}
.ark-post-cta .ark-post-cta-note {font-size:12px;margin:18px 0 0;color:#646b7a;}
@media(max-width:600px) {
 .ark-wp-page .ark-post-cta {padding:24px;margin-top:40px;}
 .ark-post-cta-actions {align-items:stretch;flex-direction:column;}
 .ark-post-cta-primary {width:100%;box-sizing:border-box;}
}
