:root {
    --cfs-navy: #17324d;
    --cfs-blue: #315b78;
    --cfs-yellow: #d5a62e;
    --cfs-surface: #f6f1e6;
    --cfs-text: #172033;
    --cfs-muted: #647184;
    --cfs-heading-font: Georgia, "Times New Roman", serif;
    --cfs-body-font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --cfs-radius: 6px;
    --cfs-content-width: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.cfs-theme { margin: 0; color: var(--cfs-text); background: #fff; font: 400 16px/1.65 var(--cfs-body-font); }
.cfs-theme img { max-width: 100%; height: auto; }
.cfs-theme a { color: var(--cfs-blue); text-underline-offset: .16em; }
.cfs-theme h1, .cfs-theme h2, .cfs-theme h3 { color: var(--cfs-text); font-family: var(--cfs-heading-font); line-height: 1.08; }
.cft-shell { width: min(calc(100% - 40px), var(--cfs-content-width)); margin-inline: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { z-index: 100000; top: 8px; left: 8px; width: auto; height: auto; padding: 12px 16px; clip: auto; background: #fff; color: #111; }

.site-header { position: relative; z-index: 50; border-bottom: 1px solid color-mix(in srgb, var(--cfs-navy) 12%, transparent); background: color-mix(in srgb, #fff 96%, transparent); }
.cft-header-inner { display: flex; min-height: 88px; align-items: center; justify-content: space-between; gap: 28px; }
.cft-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--cfs-navy); font-weight: 800; line-height: 1.15; text-decoration: none; }
.cft-brand img, .cft-brand .custom-logo { width: auto; max-width: 260px; height: 60px; object-fit: contain; }
.cft-brand .custom-logo-link { display: inline-flex; }
.cft-brand-mark { display: grid; width: 46px; height: 46px; place-items: center; border-radius: calc(var(--cfs-radius) * .8); background: var(--cfs-navy); color: var(--cfs-yellow); font-size: 26px; }
.cft-menu, .cft-footer-menu { display: flex; align-items: center; gap: clamp(16px, 2.5vw, 34px); padding: 0; margin: 0; list-style: none; }
.cft-menu li { position: relative; }
.cft-menu a { color: var(--cfs-text); font-size: .88rem; font-weight: 750; letter-spacing: .035em; text-decoration: none; }
.cft-menu a:hover, .cft-menu .current-menu-item > a { color: var(--cfs-blue); }
.cft-menu .sub-menu { position: absolute; top: calc(100% + 15px); left: -18px; display: none; min-width: 210px; padding: 12px; margin: 0; border: 1px solid color-mix(in srgb, var(--cfs-navy) 12%, transparent); border-radius: var(--cfs-radius); background: #fff; box-shadow: 0 20px 45px rgba(15,23,42,.12); list-style: none; }
.cft-menu li:hover > .sub-menu, .cft-menu li:focus-within > .sub-menu { display: grid; gap: 8px; }

.cft-main { min-height: 62vh; padding-block: clamp(56px, 8vw, 110px); }
.cft-archive-header, .cft-page-header { max-width: 880px; margin-bottom: clamp(38px, 6vw, 72px); }
.cft-archive-header > span, .cft-page-header > span, .cft-page-header > time, .cft-empty > span { display: block; margin-bottom: 12px; color: var(--cfs-blue); font-size: .75rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.cft-archive-header h1, .cft-page-header h1, .cft-empty h1 { max-width: 14ch; margin: 0 0 18px; font-size: clamp(2.7rem, 6vw, 5.5rem); letter-spacing: -.055em; }
.cft-post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 34px); }
.cft-post-card { overflow: hidden; border: 1px solid color-mix(in srgb, var(--cfs-navy) 13%, transparent); border-radius: var(--cfs-radius); background: #fff; box-shadow: 0 14px 40px color-mix(in srgb, var(--cfs-navy) 7%, transparent); }
.cft-post-card-image { display: block; aspect-ratio: 16/10; overflow: hidden; background: var(--cfs-surface); }
.cft-post-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.cft-post-card:hover .cft-post-card-image img { transform: scale(1.035); }
.cft-post-card-body { padding: 24px; }
.cft-post-card time { color: var(--cfs-muted); font-size: .78rem; font-weight: 700; text-transform: uppercase; }
.cft-post-card h2 { margin: 10px 0 12px; font-size: clamp(1.4rem, 2vw, 2rem); }
.cft-post-card h2 a { color: inherit; text-decoration: none; }
.cft-text-link { font-weight: 800; text-decoration: none; }
.cft-singular { width: min(calc(100% - 40px), 980px); }
.cft-featured { margin: 0 0 46px; }
.cft-featured img { width: 100%; border-radius: var(--cfs-radius); }
.cft-entry-content { font-size: 1.08rem; }
.cft-entry-content > * { max-width: 760px; margin-right: auto; margin-left: auto; }
.cft-entry-content > .alignwide { max-width: var(--cfs-content-width); }
.cft-entry-content > .alignfull { width: 100vw; max-width: none; margin-left: calc(50% - 50vw); }
.cft-entry-content :where(h2,h3,h4) { margin-top: 1.8em; }
.cft-entry-content :where(button,.wp-element-button,.wp-block-button__link) { border-radius: max(4px, calc(var(--cfs-radius) * .7)); }
.cft-empty { display: grid; min-height: 46vh; place-content: center; text-align: center; }
.cft-empty h1 { max-width: none; }
.cft-actions { display: flex; justify-content: center; gap: 12px; }
.cft-actions a { padding: 12px 18px; border-radius: var(--cfs-radius); background: var(--cfs-navy); color: #fff; font-weight: 750; text-decoration: none; }

.site-footer { padding-block: 56px; background: var(--cfs-navy); color: color-mix(in srgb, #fff 76%, transparent); }
.cft-footer-inner { display: grid; grid-template-columns: 1.4fr 1fr; align-items: end; gap: 36px; }
.cft-brand--footer { color: #fff; }
.cft-footer-menu { justify-content: flex-end; }
.cft-footer-menu a { color: #fff; }
.cft-footer-inner small { grid-column: 1/-1; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.16); }

body.cfs-design-heritage .site-header { border-top: 4px solid var(--cfs-yellow); }
body.cfs-design-heritage .cft-post-card { border-bottom: 3px solid var(--cfs-yellow); }
body.cfs-design-arena { background: #f8fafc; }
body.cfs-design-arena .site-header { background: var(--cfs-navy); }
body.cfs-design-arena .cft-brand, body.cfs-design-arena .cft-menu a { color: #fff; }
body.cfs-design-arena .cft-brand-mark { background: var(--cfs-blue); }
body.cfs-design-arena .cft-page-header h1, body.cfs-design-arena .cft-archive-header h1 { font-weight: 900; line-height: .93; text-transform: uppercase; }
body.cfs-design-arena .cft-post-card { border: 0; box-shadow: 0 20px 55px rgba(15,23,42,.13); }
body.cfs-design-momentum { background: color-mix(in srgb, var(--cfs-surface) 34%, white); }
body.cfs-design-momentum .site-header { width: min(calc(100% - 24px), calc(var(--cfs-content-width) + 48px)); margin: 12px auto 0; border: 1px solid color-mix(in srgb, var(--cfs-blue) 15%, transparent); border-radius: 999px; box-shadow: 0 15px 40px color-mix(in srgb, var(--cfs-navy) 9%, transparent); }
body.cfs-design-momentum .cft-post-card { border: 0; box-shadow: 0 18px 48px color-mix(in srgb, var(--cfs-navy) 10%, transparent); }
body.cfs-design-momentum .site-footer { margin: 12px; border-radius: calc(var(--cfs-radius) * 1.6); background: linear-gradient(135deg, var(--cfs-navy), var(--cfs-blue)); }

.nav-links { display: flex; justify-content: center; gap: 10px; margin-top: 48px; }
.nav-links a, .nav-links .current { display: grid; min-width: 42px; height: 42px; place-items: center; border: 1px solid color-mix(in srgb, var(--cfs-navy) 15%, transparent); border-radius: var(--cfs-radius); text-decoration: none; }
.nav-links .current { background: var(--cfs-navy); color: #fff; }

@media (max-width: 900px) {
    .cft-header-inner { align-items: flex-start; flex-direction: column; padding-block: 20px; }
    .cft-menu { flex-wrap: wrap; gap: 12px 20px; }
    .cft-post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cft-footer-inner { grid-template-columns: 1fr; }
    .cft-footer-menu { justify-content: flex-start; flex-wrap: wrap; }
    .cft-footer-inner small { grid-column: auto; }
    body.cfs-design-momentum .site-header { border-radius: calc(var(--cfs-radius) * 1.2); }
}

@media (max-width: 620px) {
    .cft-shell, .cft-singular { width: min(calc(100% - 28px), var(--cfs-content-width)); }
    .cft-post-grid { grid-template-columns: 1fr; }
    .cft-archive-header h1, .cft-page-header h1 { font-size: clamp(2.4rem, 13vw, 4rem); }
    .cft-actions { align-items: stretch; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}


/* Chess Suite product mark fallback. Organization-uploaded logos still take precedence. */
.cft-brand-suite-mark{width:42px;height:42px;display:block;flex:0 0 42px;border-radius:10px}
