/*
Theme Name: CX Portal
Author: Chanakya X LLP
Description: Responsive presentation for the CX Enrolment plugin. Business records remain in the plugin.
Version: 0.2.0
Requires at least: 6.6
Requires PHP: 8.1
License: GPL-2.0-or-later
Text Domain: cx-portal
*/
body { margin: 0; }
.wp-site-blocks { min-height: 100vh; display: flex; flex-direction: column; }
.wp-site-blocks > header, .wp-site-blocks > footer, .wp-site-blocks > main { margin-block-start: 0; }
.wp-site-blocks > main { flex: 1; width: 100%; box-sizing: border-box; }
.cx-theme-header, .cx-theme-footer { padding-inline: max(1rem, calc((100% - 1200px) / 2)); }
.cx-theme-header { padding-block: 1.2rem; background: #fff; border-bottom: 1px solid #DCE4EF; gap: 1.25rem; }
.cx-theme-brand { min-width: 0; gap: .15rem; }
.cx-theme-brand .wp-block-site-title { margin: 0; font-size: 1.4rem; font-weight: 750; line-height: 1.15; letter-spacing: -.03em; overflow-wrap: anywhere; }
.cx-theme-brand .wp-block-site-title a { color: #102B4E; text-decoration: none; }
.cx-theme-brand .cx-theme-tagline { margin: .3rem 0 0; font-size: .76rem; color: #52647A; line-height: 1.5; }
.cx-theme-header .cx-navigation { display: flex; align-items: center; flex-wrap: wrap; gap: .25rem; margin: 0; }
.cx-theme-header .cx-navigation a { display: inline-flex; min-height: 44px; box-sizing: border-box; align-items: center; justify-content: center; padding: .55rem .75rem; border-radius: 8px; color: #52647A; text-decoration: none; font-size: .875rem; font-weight: 600; }
.cx-theme-header .cx-navigation a:hover { background: #F5F8FC; color: #154A8A; }
.cx-theme-header .cx-navigation a[aria-current="page"] { background: #eaf1fb; color: #154A8A; }
.cx-theme-header .cx-navigation ul { display: flex; flex-wrap: wrap; align-items: center; list-style: none; margin: 0; padding: 0; gap: .25rem; }
.cx-theme-main { padding: clamp(1.25rem, 3vw, 2.5rem) 1rem clamp(2rem, 5vw, 4rem); }
.cx-theme-main > .wp-block-post-content { margin-block-start: 0; }
.cx-theme-main .wp-block-post-title { color: #102B4E; letter-spacing: -.03em; font-size: clamp(1.8rem, 4vw, 2.75rem); }
.cx-theme-authored-content { margin-block: 2rem; overflow-wrap: anywhere; }
.cx-theme-authored-content:empty { display: none; }
.cx-theme-authored-content > :first-child { margin-block-start: 0; }
.cx-theme-footer { padding-block: 1.5rem; color: #52647A; border-top: 1px solid #DCE4EF; font-size: .8rem; background: #fff; }
.cx-theme-footer .cx-theme-footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: .75rem 2rem; }
.cx-theme-footer p { margin: 0; max-width: 720px; }
.cx-theme-footer .cx-theme-footer-label { color: #102B4E; font-weight: 700; font-size: .85rem; }
/* The working app supplies its own shared navigation; retain native navigation without JS. */
body.cx-portal-active .cx-theme-header, body.cx-portal-active .cx-theme-footer { display: none; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid #005FCC; outline-offset: 3px; }
@media (max-width: 767px) {
    .cx-theme-header { gap: .85rem; padding-block: 1rem .75rem; }
    .cx-theme-header .cx-navigation { width: 100%; gap: .1rem; }
    .cx-theme-header .cx-navigation a { font-size: .8rem; padding-inline: .65rem; }
    .cx-theme-brand .wp-block-site-title { font-size: 1.25rem; }
    .cx-theme-main { padding-top: 1rem; }
    .cx-theme-footer .cx-theme-footer-inner { display: block; }
    .cx-theme-footer .cx-theme-footer-label { margin-bottom: .5rem; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; }
}
