/* Force content body text to dark (overrides template #000c34 navy) */
body,
h1, h2, h3, h4, h5, h6,
p, li, a,
.content a,
.content p,
.content li,
.content h1,
.content h2,
.content h3,
.content h4,
[data-component="content"] a,
[data-component="content"] p,
article a,
article p {
    color: #101113 !important;
}

/* Remove the images inside tiles */
.tile-image {
    display: none !important;
}

/* Center the tiles horizontally */
.spaces .items.tiles {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

/* Apply hover styles globally */
.tile:hover {
    background-color: #FFFAF5;
    color: #101113;
}

:root {
    --K15t-background-neutral-subtle-hovered: #FFFAF5 !important;
    --K15t-background-brand-strong: #101113 !important;
    --K15t-surface-raised-hovered: #FFFAF5 !important;
}

/* Make child-pages links bold */
.child-pages a {
    font-weight: bold;
}

/* Remove underlines on hover for Child Page Lists */
[data-component="child-pages"] a:hover {
    text-decoration: none;
}

/* Remove spaces between expand sections */
.expand {
    margin-block: 0;
}

/* Bold the active page in the left navigation */
.tree-item a[aria-current="page"] {
    font-weight: bold;
}

/* Header picker active colours */
.header-pickers .picker {
    --_background-color-active: #101113 !important;
    --_text-color-active: #FFFAF5 !important;
}

.tree-item div:hover {
    background-color: #FFFAF5 !important;
}

/* ── Protect Header text colour (#FFFAF5 on #101113 bg) ── */
header a,
header p,
header li,
header span,
header h1, header h2, header h3, header h4, header h5, header h6,
[data-component="header"] a,
[data-component="header"] p,
[data-component="header"] li,
[data-component="header"] span,
.site-header a,
.site-header p,
.site-header li,
.site-header span {
    color: #FFFAF5 !important;
}

/* ── Protect Footer text colour (#FFFAF5 on dark bg) ── */
footer a,
footer p,
footer li,
footer span,
footer h1, footer h2, footer h3, footer h4, footer h5, footer h6,
[data-component="footer"] a,
[data-component="footer"] p,
[data-component="footer"] li,
[data-component="footer"] span,
.site-footer a,
.site-footer p,
.site-footer li,
.site-footer span {
    color: #FFFAF5 !important;
}

/* ── Fix article page titles overridden by header rule ── */
/* Intentionally excludes "main h1/h2" to avoid catching hero titles */
article h1,
article h2,
article h3,
article h4,
article h5,
article h6,
[data-component="content"] h1,
[data-component="content"] h2,
[data-component="content"] h3,
[data-component="content"] h4,
.content h1,
.content h2,
.content h3,
.content h4 {
    color: #101113 !important;
}