/* TopBoss UK: reversible, UK-only presentation adjustments. */
body.topboss-uk-layout-none .site-layout {max-width:1440px;grid-template-columns:minmax(0,1fr)}
body.page-template-page-topboss-uk-home .site-layout {display:block}
body.page-template-page-topboss-uk-home .site-main {width:100%;max-width:none}
body.page-template-page-topboss-uk-home .tb-uk-home {width:100%;max-width:none}
body.page-template-page-topboss-uk-home .tb-uk-home p {font-size:clamp(15px,1.1vw,17px);line-height:1.75}
body.page-template-page-topboss-uk-home .tb-uk-home img {max-width:100%;height:auto}
/* Related-reading text must remain readable against white card backgrounds. */
body.single .related-posts,body.single .related-reading {color:#242424}
body.single .related-posts p,body.single .related-reading p,
body.single .related-posts .excerpt,body.single .related-reading .excerpt {color:#444!important;opacity:1}
/* Compact archive images without altering featured images or attachment metadata. */
body.category .content-card img,body.archive .content-card img,
body.category .post-card img,body.archive .post-card img {max-height:190px;object-fit:cover}
@media(max-width:700px){body.page-template-page-topboss-uk-home .tb-uk-home p{font-size:15px}}

/* TopBoss UK launch QA: light editorial surface contrast */

/* White editorial cards must use dark text, not inherited UK gold. */
body.archive .tb-content-card,
body.category .tb-content-card,
body.single .tb-editorial-related .tb-content-card {
    background: #fff;
    color: #292929;
}

body.archive .tb-content-card h3,
body.category .tb-content-card h3,
body.single .tb-editorial-related .tb-content-card h3 {
    color: #651016;
}

body.archive .tb-content-card p,
body.category .tb-content-card p,
body.single .tb-editorial-related .tb-content-card p {
    color: #424242 !important;
    opacity: 1;
}

body.archive .tb-content-card .tb-content-card-category,
body.category .tb-content-card .tb-content-card-category,
body.archive .tb-content-card .tb-content-card-more,
body.category .tb-content-card .tb-content-card-more {
    color: #651016;
}

/* Editorial metadata and descriptions on dark UK panels. */
body.archive .tb-archive-description,
body.category .tb-archive-description,
body.single .tb-editorial-meta,
body.archive .tb-editorial-meta,
body.category .tb-editorial-meta {
    color: #e5e5e5;
}

/* Readable navigation links inside legacy article content. */
body .site-layout .entry .tb-uk-legacy-nav a {
    color: #f1d18a;
    text-decoration: underline;
    text-underline-offset: 3px;
}

body .site-layout .entry .tb-uk-legacy-nav a:hover,
body .site-layout .entry .tb-uk-legacy-nav a:focus-visible {
    color: #fff;
}
