@font-face{font-family:"DM Sans";src:url(fonts/dm-sans.woff2) format("woff2");font-weight:100 1000;font-style:normal;font-display:swap}
@font-face{font-family:"Fraunces";src:url(fonts/fraunces.woff2) format("woff2");font-weight:100 900;font-style:normal;font-display:swap}
body{--wp--preset--font-family--body:"DM Sans", sans-serif;--wp--preset--font-family--display:"Fraunces", Georgia, serif;font-family:"DM Sans", sans-serif}
/* Article reading measure and heading scale */
@media (min-width:1100px){body.single-post .aen-r3-reading-layout{grid-template-columns:minmax(0,630px) 300px!important;justify-content:space-between}}
body.single-post .wp-block-post-content>p,body.single-post .wp-block-post-content>ul>li,body.single-post .wp-block-post-content>ol>li{font-size:19px;line-height:1.7}
main .wp-block-post-content h2{font-size:30px;line-height:1.25}
main .wp-block-post-content h3{font-size:22px;line-height:1.3}
@media (max-width:767px){body.single-post .wp-block-post-content>p,body.single-post .wp-block-post-content>ul>li,body.single-post .wp-block-post-content>ol>li{font-size:17px}main .wp-block-post-content h2{font-size:23px}main .wp-block-post-content h3{font-size:20px}}
.aen-r3-aside .aen-r3-info>p{display:flex;flex-direction:column;align-items:flex-start;gap:.55rem;margin:0}
/* Footer closing row */
.vf-footer-bottom{padding:16px 0 28px;border-top:1px solid var(--apk-line)}
.vf-copyright{margin:0;font-size:14px;line-height:1.5;color:var(--apk-muted)}
.apk-footer .aen-r5-bottom:empty{display:none}
.apk-footer .aen-r5-bottom{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 24px;margin-top:24px;padding-top:16px;border-top:1px solid var(--apk-line)}
.apk-footer .aen-r5-bottom .aen-r5-links{flex-direction:row;flex-wrap:wrap;gap:8px 20px}
.apk-footer .aen-r5-column h2{font-size:16px;line-height:1.3;margin:0 0 12px}
.apk-footer .aen-r5-links{display:flex;flex-direction:column;gap:10px;margin:0;padding:0;list-style:none}
.apk-footer .aen-r5-links a{font-size:14px;line-height:1.5}
/* Article content stays inside the text column: tables, code, media, long links, steps */
.wp-block-post-content{--vf-bg:var(--apk-bg,var(--wp--preset--color--base,#fff));--vf-line:color-mix(in srgb,currentColor 22%,transparent);min-width:0;overflow-wrap:break-word}
.wp-block-post-content a,.wp-block-post-content :is(td,th){overflow-wrap:anywhere}
.wp-block-post-content :is(img,video,iframe,embed,object,svg,canvas){max-width:100%}
.wp-block-post-content :is(img,video){height:auto}
.wp-block-post-content :is(figure,.wp-block-image,.wp-block-embed,.wp-block-video,.wp-block-table){max-width:100%;box-sizing:border-box;margin-inline:0}
.wp-block-post-content :is(.alignwide,.alignfull){width:auto;max-width:100%;margin-inline:0}
.wp-block-post-content pre{max-width:100%;box-sizing:border-box;overflow-x:auto;white-space:pre;padding:14px 16px;margin:1.5em 0;font-size:15px;line-height:1.55;border:1px solid var(--vf-line);border-radius:4px;background:color-mix(in srgb,currentColor 5%,transparent)}
.wp-block-post-content pre code{font-size:inherit;white-space:inherit;overflow-wrap:normal}
.wp-block-post-content :not(pre)>code{overflow-wrap:anywhere;font-size:.88em;padding:.1em .3em;border-radius:3px;background:color-mix(in srgb,currentColor 8%,transparent)}
.wp-block-post-content>table{display:block;max-width:100%;overflow-x:auto}
.wp-block-post-content .vf-table-scroll,.wp-block-post-content .wp-block-table{max-width:100%;overflow-x:auto;margin:1.5em 0;background:linear-gradient(to right,var(--vf-bg) 30%,transparent) left/28px 100% no-repeat local,linear-gradient(to left,var(--vf-bg) 30%,transparent) right/28px 100% no-repeat local,radial-gradient(farthest-side at 0 50%,rgba(0,0,0,.28),transparent) left/12px 100% no-repeat scroll,radial-gradient(farthest-side at 100% 50%,rgba(0,0,0,.28),transparent) right/12px 100% no-repeat scroll}
.wp-block-post-content .vf-table-scroll:focus-visible{outline:2px solid currentColor;outline-offset:2px}
body .wp-block-post-content table{width:100%;max-width:none;border-collapse:collapse;border-spacing:0;margin:0;font-size:16px;line-height:1.5;table-layout:auto}
body .wp-block-post-content table :is(td,th){min-width:4.5em!important;max-width:24em;overflow-wrap:anywhere!important;word-break:normal;padding:10px 14px;border:1px solid var(--vf-line);text-align:left;vertical-align:top;font-size:16px;line-height:1.5}
body .wp-block-post-content table tbody tr:nth-child(even)>:is(td,th){background:color-mix(in srgb,currentColor 4%,transparent)}
body .wp-block-post-content table :is(thead td,thead th,tbody th),body .wp-block-post-content table:not(:has(thead)) tr:first-child:not(:has(>td:not(:has(>strong)))) > td{font-weight:700;background:color-mix(in srgb,currentColor 9%,transparent)}
body .wp-block-post-content table :is(td,th) p{margin:0}
.wp-block-post-content .wp-block-table figcaption,.wp-block-post-content .vf-table-scroll+figcaption{font-size:15px;margin-top:8px}
.wp-block-post-content :is(ol,ul){box-sizing:border-box;max-width:100%;margin-inline:0;padding-inline-start:1.4em}
.wp-block-post-content li>:is(ol,ul){margin-block:.4em;padding-inline-start:1.3em}
.wp-block-post-content li+li{margin-top:.35em}
.wp-block-post-content blockquote{box-sizing:border-box;max-width:100%;margin:1.5em 0;padding:.2em 0 .2em 1.1em;border-left:3px solid var(--vf-line)}
.wp-block-post-content blockquote p:last-child{margin-bottom:0}
.wp-block-post-content .wp-block-columns{box-sizing:border-box;max-width:100%;margin-inline:0;gap:24px}
.wp-block-post-content .wp-block-column{min-width:0}
@media (max-width:767px){.wp-block-post-content :is(.vf-table-scroll,.wp-block-table)>table:not(:has(tr>:nth-child(4))){min-width:0}body .wp-block-post-content table :is(td,th){padding:10px 12px;font-size:15px}.wp-block-post-content .wp-block-columns{flex-direction:column;gap:12px}}
/* Header: masthead name and menu share one centred row, bands follow the container */
body.apk-game-unciv :is(.apk-header,.apk-footer){background:transparent}
.ot-header{display:grid;grid-template-columns:1fr auto;align-items:center;gap:12px 32px;border-top:1px solid var(--apk-primary);border-bottom:4px double var(--apk-primary);padding-block:16px!important;margin-top:16px}
.ot-masthead{display:flex;align-items:center;gap:14px;border:0;padding:0}
.ot-masthead-name{text-align:left}
.ot-masthead-name .wp-block-site-title{font-size:clamp(2rem,3.2vw,2.75rem)}
.ot-horizontal-nav{padding:0;border:0}
.ot-horizontal-nav .wp-block-navigation__container{gap:30px}
.ot-horizontal-nav .wp-block-navigation-item__content{font-size:15px;min-height:44px}
.ot-horizontal-nav a:hover,.ot-horizontal-nav a[aria-current=page]{color:var(--apk-primary);text-decoration:underline;text-underline-offset:6px}
@media (max-width:680px){.ot-header{margin-top:12px;padding-block:10px!important}.ot-masthead{display:flex}.ot-masthead-name .wp-block-site-title{font-size:2rem}.ot-horizontal-nav{padding:0}}
/* Footer: identity column, two link columns and the desk notes, tops aligned, readable sizes */
.ot-bibliography p,.ot-bibliography .ot-small,.ot-legal-nav .wp-block-navigation-item__content,.ot-bibliography .aen-contact,.ot-bibliography .aen-r5-links a{font-size:14px;line-height:1.6}
body .ot-bibliography .aen-r5-column h2{background:none;color:var(--apk-text);padding:0;margin:0 0 12px;font-size:16px}
.ot-bibliography .vf-copyright{font-size:14px}
.ot-bibliography .aen-r5-grid>*{margin:0!important}
@media (min-width:700px){body .wp-site-blocks .aen-r3-footer-shell .ot-bibliography .aen-r5-grid{grid-template-columns:minmax(0,1.1fr) minmax(0,.8fr) minmax(0,.8fr) minmax(0,1.6fr)!important;gap:16px 36px!important;align-items:start!important;grid-template-rows:auto auto 1fr!important}
body .wp-site-blocks .aen-r3-footer-shell .ot-bibliography .aen-r5-grid>.ot-bibliography-title{grid-column:1!important;grid-row:1!important}
body .wp-site-blocks .aen-r3-footer-shell .ot-bibliography .aen-r5-grid>.ot-bibliography-source{grid-column:1!important;grid-row:2!important}
body .wp-site-blocks .aen-r3-footer-shell .ot-bibliography .aen-r5-grid>.ot-bibliography-credit{grid-column:1!important;grid-row:3!important}
body .wp-site-blocks .aen-r3-footer-shell .ot-bibliography .aen-r5-grid>section.aen-r5-column:nth-of-type(1){grid-column:2!important;grid-row:1/span 3!important}
body .wp-site-blocks .aen-r3-footer-shell .ot-bibliography .aen-r5-grid>section.aen-r5-column:nth-of-type(2){grid-column:3!important;grid-row:1/span 3!important}
body .wp-site-blocks .aen-r3-footer-shell .ot-bibliography .aen-r5-grid>.ot-bibliography-links{grid-column:4!important;grid-row:1/span 3!important}}

/* r8 single article: compact title (h1 > h2), ~20px body/sidebar gap, columns fill the content container */
:root body.single-post main h1,:root body.single-post main h1.wp-block-post-title{font-size:clamp(26px,calc(1.15vw + 19.5px),36px)!important;line-height:1.2!important;letter-spacing:normal}
:root body.single-post main .wp-block-post-content h2{font-size:clamp(21px,calc(.5vw + 18px),26px)!important;line-height:1.25!important}
:root body.single-post main .wp-block-post-content h3{font-size:clamp(18px,calc(.3vw + 16px),21px)!important;line-height:1.3!important}
@media (min-width:1024px){body.single .wp-site-blocks main .aen-r3-reading-layout:has(>.aen-r3-aside),body.page .wp-site-blocks main .aen-r3-reading-layout:has(>.aen-r3-aside){display:grid!important;grid-template-columns:minmax(0,1fr) 300px!important;gap:20px!important;justify-content:stretch!important;align-items:start;width:100%!important;max-width:none!important;margin-inline:0!important}
body.single .wp-site-blocks main .aen-r3-reading-layout:has(>.aen-r3-aside)>*,body.page .wp-site-blocks main .aen-r3-reading-layout:has(>.aen-r3-aside)>*{max-width:none!important;width:auto!important;margin-inline:0!important}}

/* r8 family A: title in the reading column, sidebar right (shared r8 rule) */

/* r8b: body column fills the freed width next to the sidebar (no centred inner measure) */
@media (min-width:1024px){:root body.single main .wp-block-post-content.is-layout-constrained>*,:root body.page main .wp-block-post-content.is-layout-constrained>*{max-width:none!important;margin-left:0!important;margin-right:0!important}}
@media (min-width:1024px){:root body.single-post main .aen-r3-reading-layout:has(>.aen-r3-aside) .wp-block-post-content,:root body.page main .aen-r3-reading-layout:has(>.aen-r3-aside) .wp-block-post-content,:root body.single-post main .au-post-layout .wp-block-post-content{width:auto!important;max-width:none!important;margin-inline:0!important;padding-inline:0!important}:root body.single-post main .aen-r3-reading-layout:has(>.aen-r3-aside) .wp-block-post-content>*,:root body.page main .aen-r3-reading-layout:has(>.aen-r3-aside) .wp-block-post-content>*,:root body.single-post main .au-post-layout .wp-block-post-content>*{max-width:none!important;margin-left:0!important;margin-right:0!important}}

/* r8d: keep the ~20px gap but hold body text to ~60-75 characters per line; the sidebar takes the freed width */
:root body:is(.single,.page) main{--vf-measure:54ch}
@media (min-width:1024px){:root body:is(.single,.page) .wp-site-blocks main .aen-r3-reading-layout:has(>.aen-r3-aside){grid-template-columns:minmax(0,var(--vf-measure)) minmax(300px,1fr)!important}
:root body:is(.single,.page) main .aen-r3-aside{container-type:inline-size}}
@container (min-width:460px){:root body:is(.single,.page) main .aen-r3-aside ul{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:12px 16px;padding:0!important;list-style:none}
:root body:is(.single,.page) main .aen-r3-aside li{margin:0!important;padding:12px 14px;border:1px solid color-mix(in srgb,currentColor 16%,transparent);border-radius:6px}}

/* r8e: in a wide sidebar the 'This site' links sit as cards too */
@container (min-width:460px){:root body:is(.single,.page) main .aen-r3-aside .aen-r3-info>p{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:12px 16px}
:root body:is(.single,.page) main .aen-r3-aside .aen-r3-info>p>a{display:block;padding:12px 14px;border:1px solid color-mix(in srgb,currentColor 16%,transparent);border-radius:6px}}

/* r9: same treatment as BD-A04 - 1-column sidebar, list covers, two-row footer */
@media (min-width:1024px){:root body.single-post .wp-site-blocks main .aen-r3-reading-layout:has(>.aen-r3-aside){grid-template-columns:minmax(0,1fr) 300px!important;gap:20px!important}}
:root body.single-post main .aen-r3-aside ul{grid-template-columns:1fr!important;gap:10px!important}
:root body .wp-site-blocks main .aen-r3-aside:has(.aen-r3-info){display:none!important}
:root body.page .wp-site-blocks main .aen-r3-reading-layout:has(>.aen-r3-aside .aen-r3-info){display:block!important;grid-template-columns:none!important}
:root body .wp-block-query .wp-block-post-template>li.wp-block-post:has(>.wp-block-post-featured-image){display:grid;grid-template-columns:320px minmax(0,1fr);column-gap:24px;align-items:start;margin:0 0 28px!important;position:relative}
:root body .wp-block-query .wp-block-post-template>li.wp-block-post>.wp-block-post-featured-image{grid-row:1 / span 4;position:relative!important;width:100%!important;max-width:320px!important;height:auto!important;aspect-ratio:16/10!important;align-self:start!important;margin:0!important;overflow:hidden!important;contain:paint;border-radius:6px}
:root body .wp-block-query .wp-block-post-template>li.wp-block-post>.wp-block-post-featured-image>a{display:block!important;width:100%!important;height:100%!important}
:root body .wp-block-query .wp-block-post-template>li.wp-block-post>.wp-block-post-featured-image :is(img,.aen-no-image){position:static!important;display:block;width:100%!important;max-width:100%!important;height:100%!important;aspect-ratio:auto!important;object-fit:cover;margin:0!important}
:root body .wp-block-query .wp-block-post-template>li.wp-block-post:has(>.wp-block-post-featured-image)>:not(.wp-block-post-featured-image){grid-column:2;margin-top:0;min-width:0;position:relative;z-index:1}
:root body .wp-block-query .wp-block-post-template>li.wp-block-post .wp-block-post-title{font-size:clamp(19px,1.6vw,22px)!important;line-height:1.3!important;margin:0 0 6px!important}
@media (max-width:640px){:root body .wp-block-query .wp-block-post-template>li.wp-block-post:has(>.wp-block-post-featured-image){grid-template-columns:1fr}:root body .wp-block-query .wp-block-post-template>li.wp-block-post>.wp-block-post-featured-image{grid-row:auto;max-width:none!important;margin-bottom:12px!important}:root body .wp-block-query .wp-block-post-template>li.wp-block-post:has(>.wp-block-post-featured-image)>:not(.wp-block-post-featured-image){grid-column:1}}
:root body .apk-footer .ot-footer-brand{display:flex!important;align-items:center;gap:10px;margin:0!important}
:root body .apk-footer .ot-footer-mark{margin:0!important;flex:0 0 auto}
:root body .apk-footer .ot-footer-mark,:root body .apk-footer .ot-footer-mark img{width:32px!important;height:32px!important;display:block;border-radius:6px}
:root body .apk-footer .ot-footer-brand .wp-block-site-title{margin:0!important;line-height:32px!important}
@media (min-width:701px){
:root body .apk-footer .ot-bibliography{display:grid!important;grid-template-columns:auto minmax(0,1fr) auto!important;grid-template-areas:"brand . nav" "copy credit source"!important;column-gap:24px!important;row-gap:10px!important;align-items:center!important}
:root body .apk-footer .ot-bibliography>.aen-r5-grid,:root body .apk-footer .ot-bibliography>.aen-r5-bottom{display:contents!important}
:root body .apk-footer .ot-bibliography-title{grid-area:brand;margin:0!important}
:root body .apk-footer .ot-bibliography-title>p.ot-small{display:none!important}
:root body .apk-footer .ot-bibliography-source{grid-area:source;text-align:right;margin:0!important}
:root body .apk-footer .ot-bibliography-credit{grid-area:credit;text-align:center;margin:0!important}
:root body .apk-footer :is(.ot-bibliography-source,.ot-bibliography-credit) br{display:none}
:root body .apk-footer .ot-bibliography-source a+br+a::before,:root body .apk-footer .ot-bibliography-source a+a::before{content:" · ";display:inline-block;white-space:pre}
:root body .apk-footer .ot-bibliography-credit br+*::before{content:" "}
:root body .apk-footer .aen-r5-bottom>.vf-copyright{grid-area:copy;margin:0!important}
:root body .apk-footer .aen-r5-bottom>.aen-r5-inline{grid-area:nav;justify-self:end}
:root body .apk-footer .aen-r5-bottom>.aen-r5-inline ul{display:flex!important;flex-wrap:wrap;gap:6px 18px;margin:0!important;padding:0!important;list-style:none}
:root body .apk-footer :is(.vf-copyright,.ot-bibliography-source,.ot-bibliography-credit){font-size:14px!important}
}
@media (max-width:700px){:root body .apk-footer .ot-bibliography-title>p.ot-small{display:none!important}}
/* r9b: centered pagination */
:root body .wp-block-query .wp-block-query-pagination{display:flex!important;justify-content:center!important;align-items:center!important;flex-wrap:wrap;gap:8px 16px!important;width:100%;text-align:center}
:root body .wp-block-query .wp-block-query-pagination>*{margin:0!important}
:root body .wp-block-query .wp-block-query-pagination-numbers{display:flex;justify-content:center;gap:8px}
/* r9c: home hero title smaller, full width */
:root body .apk-home .ot-front-heading{max-width:none!important;width:100%!important}
:root body .apk-home .ot-front-heading>*{max-width:none!important}
:root body .apk-home h1.ot-front-title{font-size:clamp(28px,calc(1.4vw + 16px),40px)!important;line-height:1.2!important;letter-spacing:-.01em!important;max-width:none!important;margin:0 0 12px!important}
@media (min-width:900px){:root body .apk-home h1.ot-front-title br{display:none}:root body .apk-home h1.ot-front-title{text-wrap:balance}}
:root body .apk-home .ot-frontline{align-items:start!important;column-gap:48px!important}
:root body .apk-home .ot-front-heading{align-self:start!important;padding-top:0!important}
:root body .apk-home .ot-front-deck{margin:0!important;font-size:17px;line-height:1.7}
/* r9d: compact release slip */
:root body .apk-home .ot-release-slip .apk-download{margin:0 0 6px!important;padding:0!important}
:root body .apk-home .ot-release-slip .apk-download-button{padding:10px 12px!important;line-height:1.3!important}
:root body .apk-home .ot-release-slip .apk-download p{margin:4px 0 0!important;line-height:1.35!important}
:root body .apk-home .ot-release-slip .apk-specs{margin:6px 0!important;row-gap:0!important}
:root body .apk-home .ot-release-slip .apk-specs>div{padding:3px 8px 3px 0!important}
:root body .apk-home .ot-release-slip .apk-specs :is(dt,dd){margin:0!important;line-height:1.3!important}
:root body .apk-home .ot-release-slip>*{margin-top:0!important;margin-bottom:6px!important}
:root body .apk-home .ot-release-slip>*:last-child{margin-bottom:0!important}
:root body .apk-home .ot-release-slip p{line-height:1.35!important}