/* ==========================================================================
   Charlottetown Police Services - Main Stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   Font Face - Axiforma
   Note: Upload font files to /assets/fonts/ directory.
   Expected files: Axiforma-Regular, Axiforma-SemiBold, Axiforma-Bold
   -------------------------------------------------------------------------- */
@font-face {
    font-family: 'Axiforma';
    src: url('../fonts/Axiforma-Regular.ttf?v=2') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Axiforma';
    src: url('../fonts/Axiforma-SemiBold.ttf?v=2') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Axiforma';
    src: url('../fonts/Axiforma-Bold.ttf?v=2') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* --------------------------------------------------------------------------
   CSS Custom Properties
   -------------------------------------------------------------------------- */
:root {
    /* Colors */
    --color-primary: #2A3B4F;
    --color-primary-light: #556272;
    /* --color-accent: #0357D5; */
    --color-accent: #e8b629;
    --color-accent-alt: #8B9FAE;
    --color-white: #FFFFFF;
    --color-off-white: #FAFAFA;
    --color-text: #000000;
    --color-text-muted: #5A5A5A;
    --color-border: rgba(162, 162, 162, 0.3);

    /* Typography */
    --font-family: 'Axiforma', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-xs: 10px;
    --font-size-sm: 12px;
    --font-size-base: 14px;
    --font-size-md: 15px;
    --font-size-body: 16px;
    --font-size-h5: 17px;
    --font-size-h4: 24px;
    --font-size-h3: 26px;
    --font-size-h2: 40px;
    --font-size-h1: 56px;
    --line-height-tight: 1.2;
    --line-height-normal: 1.45;
    --line-height-relaxed: 1.65;

    /* Spacing */
    --page-padding: 64px;
    --container-max: 1400px;
    --section-padding: 60px;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 40px;
    --radius-pill: 140px;
    --radius-circle: 50%;
}

/* --------------------------------------------------------------------------
   Reset & Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Zero out block gap on frontend only (editor keeps spacing for visual clarity) */
:root :where(.is-layout-flow) > *, :root :where(.is-layout-constrained) > * {
    margin-block-start: 0;
    margin-block-end: 0;
}

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-body);
    font-weight: 400;
    line-height: var(--line-height-relaxed);
    color: var(--color-text-muted);
    background-color: var(--color-white);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: var(--line-height-tight);
    color: var(--color-primary);
}

h1 {
    font-size: var(--font-size-h1);
    letter-spacing: -1.12px;
}

h2 {
    font-size: var(--font-size-h2);
    letter-spacing: -0.8px;
}

h3 {
    font-size: var(--font-size-h3);
}

h4 {
    font-size: var(--font-size-h4);
}

h5 {
    font-size: var(--font-size-h5);
}

p {
    margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.cps-container {
    max-width: var(--container-max);
    width: 100%;
    margin: 0 auto;
}

.cps-section {
    padding: var(--section-padding) var(--page-padding);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.home article.cps-section {
    padding-top: 0;
}

/* Full-width blocks (Group block set to "Full Width") */
.cps-container .alignfull {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

.cps-container .alignfull > .wp-block-group__inner-container,
.cps-container .alignfull > :where(.wp-block-group-is-layout-flow) {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--page-padding);
}

/* --------------------------------------------------------------------------
   Top Bar (Navbar / 3)
   -------------------------------------------------------------------------- */
.cps-top-bar {
    background-color: var(--color-white);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0 48px;
    height: 106px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cps-top-bar__inner {
    max-width: var(--container-max);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    height: 79px;
}

.cps-top-bar__logo {
    width: 247px;
    height: 80px;
    flex-shrink: 0;
}

.cps-top-bar__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cps-top-bar__contact {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
}

.cps-top-bar__contact-line {
    font-size: var(--font-size-sm);
    color: var(--color-primary);
    line-height: var(--line-height-normal);
    padding: 7px 11px 5px;
    border: 1px solid;
    border-radius: 5px;
    width: 10rem;
    text-align: center;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    justify-content: center;
    transition: 0.2s all;
}

.cps-top-bar__contact-line.emergency {
    color: white;
    background: #ca2e22;
    border-color: #ca2e22;
}

.cps-top-bar__contact-line i {
    margin-top: -3px;
}

.cps-top-bar__contact-line:hover {
    filter: brightness(110%);
}

.cps-top-bar__right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
}

/* Search form */
.cps-search-form {
    width: 480px;
    flex-shrink: 0;
}

.cps-search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.cps-search-input {
    width: 100%;
    height: 48px;
    background: var(--color-off-white);
    border: 1px solid var(--color-border);
    border-radius: 300px;
    padding: 8px 12px 8px 59px;
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    color: var(--color-text);
    outline: none;
    transition: border-color 0.2s ease;
}

.cps-search-input::placeholder {
    color: rgba(0, 0, 0, 0.35);
    font-size: var(--font-size-base);
}

.cps-search-input:focus {
    border-color: var(--color-primary);
}

.cps-search-submit {
    position: absolute;
    left: 2.5px;
    top: 2px;
    width: 45px;
    height: 44px;
    background: var(--color-accent);
    border: none;
    border-radius: 300px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    transition: background-color 0.2s ease;
}

.cps-search-submit:hover {
    background-color: var(--color-primary-light);
}

/* --------------------------------------------------------------------------
   Main Navigation (Navbar / 2)
   -------------------------------------------------------------------------- */
.cps-nav {
    background-color: var(--color-primary);
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 var(--page-padding);
    position: relative;
}

.cps-nav__inner {
    max-width: var(--container-max);
    width: 100%;
    display: flex;
    align-items: center;
    gap: 32px;
}

.cps-nav__menu {
    display: flex;
    align-items: center;
    gap: 3.25rem;
    flex: 1;
}

.cps-nav__menu > .menu-item {
    position: relative;
    padding: 19px 0;
}

.cps-nav__menu .menu-item > a {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: var(--font-size-md);
    color: var(--color-white);
    white-space: nowrap;
    line-height: 1.5;
    text-transform: uppercase;
    padding: 0;
    transition: opacity 0.2s ease;
}

.cps-nav__menu .menu-item > a:hover {
    opacity: 0.8;
}

/* Dropdown indicator */
.cps-nav__menu .menu-item-has-children > a::after {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    flex-shrink: 0;
}

/* Dropdown menu */
.cps-nav__menu .menu-item .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-white);
    min-width: 240px;
    padding: 12px 0;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    z-index: 100;
}

.cps-nav__menu .menu-item:hover > .sub-menu {
    display: block;
}

.cps-nav__menu .sub-menu .menu-item > a {
    color: var(--color-primary);
    font-size: var(--font-size-base);
    padding: 10px 20px;
    text-transform: none;
}

.cps-nav__menu .sub-menu .menu-item > a:hover {
    background-color: var(--color-off-white);
    opacity: 1;
}

/* Social link in nav */
.cps-nav__social {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 7px;
    margin-left: auto;
}

.cps-nav__social a {
    display: flex;
    align-items: center;
    color: var(--color-white);
    transition: opacity 0.2s ease;
}

.cps-nav__social a:hover {
    opacity: 0.8;
}

.cps-nav__social svg {
    width: 18px;
    height: 18px;
}

/* --------------------------------------------------------------------------
   Mobile Menu Toggle
   -------------------------------------------------------------------------- */
.cps-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--color-primary);
}

.cps-menu-toggle svg {
    width: 24px;
    height: 24px;
}

/* Top-bar mobile actions (Facebook + hamburger) — hidden on desktop */
.cps-top-bar__mobile {
    display: none;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.cps-top-bar__fb {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--color-primary);
    transition: background 0.2s ease;
}

.cps-top-bar__fb:hover {
    background: var(--color-off-white);
}

.cps-top-bar__fb svg {
    width: 20px;
    height: 20px;
}

/* Mobile drawer chrome — hidden on desktop, the drawer is transparent to layout */
.cps-nav__drawer {
    display: contents;
}

.cps-nav__backdrop,
.cps-nav__drawer-head,
.cps-nav__drawer-search,
.cps-submenu-toggle {
    display: none;
}

.cps-no-scroll {
    overflow: hidden;
}

/* --------------------------------------------------------------------------
   Banner / Hero Section
   -------------------------------------------------------------------------- */
.cps-banner {
    position: relative;
    width: 100%;
    height: 30rem;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 0 var(--page-padding);
    background: white;
}
.home .cps-banner {
    height: 40rem;
    background: var(--color-off-white);
}
.page-template-sectioned .cps-banner {
    background: var(--color-off-white);
}

.cps-banner__image {
    position: absolute;
    inset: 10px;
    z-index: 0;
}

.cps-banner__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

.cps-banner.cps-banner--no-image {
    height: auto;
    margin-top: 5rem;
}
.cps-banner.cps-banner--no-image .cps-banner__content {
    padding-bottom: 0;
}

.cps-banner.cps-banner--no-image .cps-banner__title {
    color: var(--color-primary);
}

.cps-banner__overlay {
    position: absolute;
    inset: 10px;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
    border-radius: var(--radius-lg);
}

.cps-banner__content {
    position: relative;
    z-index: 2;
    max-width: var(--container-max);
    width: 100%;
    padding-bottom: 70px;
    margin: 0 auto;
}

.cps-banner__title {
    font-size: var(--font-size-h1);
    font-weight: 700;
    color: var(--color-white);
    line-height: var(--line-height-tight);
    letter-spacing: -1.12px;
}

.cps-banner__title span {
  display: block;
}

.cps-banner__title span:last-child {
    border-bottom: 6px solid var(--color-accent);
    width: fit-content;
}

/* --------------------------------------------------------------------------
   Block Styles
   -------------------------------------------------------------------------- */

.wp-block-columns {
    gap: 5rem;
}
.wp-block-columns.small-gap {
    gap: 2rem;
}

.wp-block-heading {
    padding-bottom: 1.5rem;
}

ul.wp-block-list {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
    list-style: disc;
    list-style-position: outside;
}

.cps-container p {
    margin-bottom: 1.5rem;
}

.cps-container p a {
    text-decoration: underline;
    word-break: break-all;
}
.cps-container p a:hover {
    color: var(--color-accent);
}

.wp-block-separator {
    border: none;
    border-top: 1px solid;
    border-color: var(--color-border);
    margin: 0 0 1.5rem;
}

ul.special-list {
    padding-left: 0 !important;
    margin-bottom: 0;
    list-style: none !important;
}
ul.special-list li {
    border-bottom: 1px solid #e0e2e5;
    padding: 17px 0;
}
ul.special-list li:before {
    content: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMiIgaGVpZ2h0PSIxOSIgdmlld0JveD0iMCAwIDMyIDE5IiBmaWxsPSJub25lIj4KICA8bWFzayBpZD0ibWFzazBfMTAyNzlfNjE1MzUiIHN0eWxlPSJtYXNrLXR5cGU6bHVtaW5hbmNlIiBtYXNrVW5pdHM9InVzZXJTcGFjZU9uVXNlIiB4PSIwIiB5PSIxIiB3aWR0aD0iMzAiIGhlaWdodD0iMTciPgogICAgPHBhdGggZD0iTTI5LjEzMTYgMS41SDAuNVYxNy41SDI5LjEzMTZWMS41WiIgZmlsbD0id2hpdGUiLz4KICA8L21hc2s+CiAgPGcgbWFzaz0idXJsKCNtYXNrMF8xMDI3OV82MTUzNSkiPgogICAgPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0yNi45MjcxIDEwLjMzMzRIMS4xNjYwMlY5LjMzMzM1SDI2LjkyNzFMMjMuNDUxNiA1Ljg1MzYyTDI0LjE1NzggNS4xNDY0OEwyOC44MzkgOS44MzM0MkwyNC4xNTc4IDE0LjUyMDNMMjMuNDUxNiAxMy44MTMyTDI2LjkyNzEgMTAuMzMzNFoiIGZpbGw9IiMwMzU3RDUiLz4KICA8L2c+Cjwvc3ZnPg==);
    margin-right: 1rem;
    vertical-align: sub;
}
ul.special-list li:last-child {
    border-bottom: none;
}

/* Accordion / Details Block */

/* --- Details block (native <details>) --- */
.wp-block-details {
    background-color: var(--color-off-white) !important;
    border: none !important;
    border-left: 4px solid var(--color-accent) !important;
    border-radius: var(--radius-md) !important;
    padding: 0 !important;
    margin-bottom: 12px;
    box-shadow: none !important;
}

.wp-block-details summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    font-family: var(--font-family);
    font-size: var(--font-size-h5);
    font-weight: 700;
    color: var(--color-primary);
    cursor: pointer;
    list-style: none;
    user-select: none;
    background: transparent !important;
}

.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::marker { display: none; content: ''; }

.wp-block-details summary::after {
    content: '';
    display: block;
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    min-width: 22px;
    margin-left: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230357D5' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-size: 22px 22px;
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.2s ease;
}

.wp-block-details[open] > summary::after {
    transform: rotate(180deg);
}

.wp-block-details > *:not(summary) {
    padding: 0 24px 20px;
    color: var(--color-text-muted);
    font-size: var(--font-size-body);
    line-height: var(--line-height-relaxed);
}

.wp-block-details > *:not(summary) ul {
    padding-left: 1.5rem;
    list-style: disc;
    list-style-position: outside;
}

.wp-block-details > *:not(summary) ul li {
    margin-bottom: 4px;
}

/* --- Accordion block (JS-powered <button> structure) --- */
.wp-block-accordion-item {
    background-color: var(--color-off-white) !important;
    border: none !important;
    border-radius: var(--radius-md) !important;
    padding: 0 !important;
    margin-bottom: 12px;
    box-shadow: none !important;
    overflow: hidden;
}

/* Strip default h3 margins inside accordion */
.wp-block-accordion-heading {
    margin: 0 !important;
    padding: 0 !important;
}

.wp-block-accordion-heading__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 20px 24px;
    font-family: var(--font-family);
    font-size: var(--font-size-h5);
    font-weight: 700;
    color: var(--color-primary);
    background: transparent !important;
    border: none !important;
    cursor: pointer;
    text-align: left;
}

/* Hide the built-in +/- icon */
.wp-block-accordion-heading__toggle-icon {
    display: none !important;
}

/* Custom chevron via ::after on the button */
.wp-block-accordion-heading__toggle::after {
    content: '';
    display: block;
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    min-width: 22px;
    margin-left: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230357D5' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-size: 22px 22px;
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.2s ease;
    filter: brightness(0.5);
}

/* Rotate chevron when expanded */
.wp-block-accordion-heading__toggle[aria-expanded="true"]::after,
.wp-block-accordion-item.is-open .wp-block-accordion-heading__toggle::after {
    transform: rotate(180deg);
    filter: brightness(1);
}

.wp-block-accordion-heading__toggle:hover::after {
    filter: brightness(1);
}

.wp-block-accordion-heading__toggle:hover .wp-block-accordion-heading__toggle-title,
.wp-block-accordion-heading__toggle[aria-expanded="true"] .wp-block-accordion-heading__toggle-title {
    color: var(--color-accent);
    text-decoration: none;
}

/* Content panel */
.wp-block-accordion-panel {
    padding: 0 24px 20px;
    color: var(--color-text-muted);
    font-size: var(--font-size-body);
    line-height: var(--line-height-relaxed);
}

.wp-block-accordion-panel ul, .wp-block-accordion-panel ol {
    padding-left: 1.5rem;
    list-style: revert;
    list-style-position: outside;
}

.wp-block-accordion-panel ul li, .wp-block-accordion-panel ol li {
    margin-bottom: 4px;
}

.wp-block-accordion-panel ul ul, .wp-block-accordion-panel ul ol,
.wp-block-accordion-panel ol ul, .wp-block-accordion-panel ol ol {
    margin-top: 4px;
    margin-bottom: 0;
    list-style: circle;
}

.wp-block-accordion-panel p:last-child {
    margin-bottom: 0;
}

.heading-accordion h3 button {
    padding: 0;
    font-size: 1.5rem;
}

.heading-accordion .wp-block-accordion-panel {
    padding: 0.75rem 0;
}

/* --------------------------------------------------------------------------
   Button Card Block
   -------------------------------------------------------------------------- */
.cps-button-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: var(--color-off-white);
    border-radius: var(--radius-md);
    padding: 24px 28px;
    margin-bottom: 16px;
    text-decoration: none;
    transition: background-color 0.15s ease;
}

.cps-button-card:hover,
.cps-button-card:focus {
    background-color: #f0f1f3;
}

.cps-button-card.white {
    background-color: var(--color-white);
}

/* Icon circle */
.cps-button-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border: 2px solid #d9dce0;
    border-radius: 50%;
    color: #8a9099;
    font-size: 24px;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.cps-button-card:hover .cps-button-card__icon {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

/* Title */
.cps-button-card__title {
    margin-right: auto;
    font-family: var(--font-family);
    font-size: var(--font-size-h4);
    font-weight: 700;
    color: var(--color-primary);
    position: relative;
}

/* Blue underline on hover */
.cps-button-card .cps-button-card__title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0%;
    height: 2px;
    background-color: var(--color-accent);
    transition: width 0.15s ease;
}

.cps-button-card:hover .cps-button-card__title::after {
    width: 100%;
}

/* Arrow circle */
.cps-button-card__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--color-accent);
    color: #fff;
    transition: background-color 0.15s ease, transform 0.15s ease;
}

.cps-button-card__arrow svg {
    width: 20px;
    height: 20px;
    transition: transform 0.15s ease;
}

/* Hover: dark circle + rotate arrow to point right */
.cps-button-card:hover .cps-button-card__arrow {
    background-color: var(--color-primary);
}

.cps-button-card:hover .cps-button-card__arrow svg {
    transform: rotate(45deg);
}

/* Responsive */
@media (max-width: 640px) {
    .cps-button-card {
        gap: 14px;
        padding: 18px 18px;
    }

    .cps-button-card__icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }

    .cps-button-card__title {
        font-size: var(--font-size-h5);
        line-height: var(--line-height-tight);
    }

    .cps-button-card__arrow {
        width: 40px;
        height: 40px;
    }

    .cps-button-card__arrow svg {
        width: 16px;
        height: 16px;
    }
}

/* --------------------------------------------------------------------------
   Info Card Block
   -------------------------------------------------------------------------- */
.cps-info-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background-color: var(--color-off-white);
    border-radius: var(--radius-md);
    padding: 24px 28px;
    margin-bottom: 16px;
}

.cps-info-card.white {
    background-color: var(--color-white);
}

/* Icon circle — matches Button Card resting state */
.cps-info-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border: 2px solid #d9dce0;
    border-radius: 50%;
    color: #8a9099;
    font-size: 24px;
}

/* Body */
.cps-info-card__body {
    flex: 1;
    min-width: 0;
    padding-top: 4px;
}

.cps-info-card__title {
    font-family: var(--font-family);
    font-size: var(--font-size-h4);
    font-weight: 700;
    color: var(--color-primary);
    margin: 0 0 10px;
    line-height: var(--line-height-tight);
}

.cps-info-card__content {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    color: var(--color-text);
    line-height: var(--line-height-relaxed);
}

.cps-info-card__content > *:first-child {
    margin-top: 0;
}

.cps-info-card__content > *:last-child {
    margin-bottom: 0;
}

.cps-info-card__content ul {
    list-style: disc;
}
.cps-info-card__content ul,
.cps-info-card__content ol {
    margin: 0 0 12px;
    padding-left: 1.25em;
}

.cps-info-card__content li {
    margin-bottom: 6px;
}

.cps-info-card__content a {
    color: #0357D5;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 640px) {
    .cps-info-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        padding: 20px;
    }

    .cps-info-card__icon {
        width: 52px;
        height: 52px;
        font-size: 20px;
    }
}

/* --------------------------------------------------------------------------
   Link List Block
   -------------------------------------------------------------------------- */
.cps-link-list {
    padding: 0;
}

.cps-link-list__item {
    border-bottom: 1px solid #e0e2e5;
    padding: 24px 0;
}

.cps-link-list__item:first-child {
    padding-top: 0;
}

.cps-link-list__item:last-child {
    border-bottom: none;
}

.cps-link-list__link {
    display: block;
    text-decoration: none;
}

.cps-link-list__title {
    display: block;
    font-family: var(--font-family);
    font-size: var(--font-size-h5);
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 4px;
}

.cps-link-list__link:hover .cps-link-list__title {
    text-decoration: underline;
}

.cps-link-list__url {
    display: block;
    font-family: var(--font-family);
    font-size: var(--font-size-body);
    color: var(--color-accent);
    text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Icon List Block
   -------------------------------------------------------------------------- */
.cps-icon-list {
    padding: 0;
}

.cps-icon-list__item {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 8px 0;
}

.cps-icon-list__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    font-size: 20px;
    color: var(--color-primary);
}

.cps-icon-list__text {
    font-family: var(--font-family);
    line-height: 1.5;
    padding-top: 6px;
}

.cps-icon-list__text a {
    color: var(--color-text-muted);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cps-icon-list__text a:hover {
    color: var(--color-accent);
}

/* --------------------------------------------------------------------------
   Text List Block
   -------------------------------------------------------------------------- */
.cps-text-list {
    padding: 0;
}

.cps-text-list__item {
    border-bottom: 1px solid #e0e2e5;
    padding: 24px 0;
    font-family: var(--font-family);
    font-weight: 700;
    color: var(--color-primary);
    line-height: var(--line-height-relaxed);
}

.cps-text-list__item:first-child {
    padding-top: 0;
}

.cps-text-list__item:last-child {
    border-bottom: none;
}

/* --------------------------------------------------------------------------
   Blurb Block
   -------------------------------------------------------------------------- */
.cps-blurb {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
    background: #fafafa;
    margin-bottom: 5rem;
    border-radius: 15px;
    height: stretch;
}

.cps-blurb__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border: 2px solid #d9dce0;
    border-radius: 50%;
    color: #8a9099;
    font-size: 24px;
    transition: border-color 0.15s ease, color 0.15s ease;
    margin-bottom: 1rem;
}

.cps-blurb__subtitle {
    display: block;
    font-family: var(--font-family);
    font-size: var(--font-size-md);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent);
    margin-bottom: 8px;
}

.cps-blurb__title {
    display: block;
    font-family: var(--font-family);
    font-size: 28px;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.2;
    margin-bottom: 12px;
}

.cps-blurb__description {
    font-family: var(--font-family);
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    line-height: var(--line-height-relaxed);
    margin: 0 !important;
    max-width: 320px;
}

/* Linked variant — entire blurb is clickable */
.cps-blurb--linked {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.cps-blurb--linked:hover,
.cps-blurb--linked:focus-visible {
    background: #f0f1f3;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(42, 59, 79, 0.08);
}

.cps-blurb--linked:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.cps-blurb--linked:hover .cps-blurb__icon,
.cps-blurb--linked:focus-visible .cps-blurb__icon {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.cps-blurb--linked:hover .cps-blurb__title,
.cps-blurb--linked:focus-visible .cps-blurb__title {
    color: #0357D5;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.cps-footer {
    background-color: var(--color-primary);
    padding: 44px var(--page-padding) 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

.cps-footer__inner {
    max-width: var(--container-max);
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 38px;
}

/* Footer main content */
.cps-footer__main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.cps-footer__main h3 {
    font-size: var(--font-size-h5);
    font-weight: 700;
    color: var(--color-white);
}

.cps-footer__grid {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 5rem;
    align-items: center;
    width: 100%;
}

.cps-footer__contact {
    display: flex;
    gap: 24px;
    align-items: center;
}

.cps-footer__logo {
    height: 147px;
    flex-shrink: 0;
}

.cps-footer__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cps-footer__info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: var(--font-size-md);
    color: var(--color-white);
    line-height: var(--line-height-normal);
}

.cps-footer__info p {
    display: flex;
    /* align-items: center; */
    gap: 10px;
}

.cps-footer__info p i {
    font-style: normal;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 2px;
}

.cps-footer__connected {
    display: flex;
    flex-direction: column;
    gap: 11px;
    font-size: var(--font-size-md);
    color: var(--color-white);
    line-height: var(--line-height-normal);
    justify-content: flex-end;
    align-items: flex-end;
}

.cps-footer_connected__icons a {
    display: block;
    margin-top: 5px;
    width: 20px;
}

/* Footer bottom / credits */
.cps-footer__bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.cps-footer__divider {
    width: 100%;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.2);
}

.cps-footer__links {
    display: flex;
    align-items: center;
    gap: 11px;
    padding-top: 20px;
}

.cps-footer__links a {
    font-size: var(--font-size-md);
    color: var(--color-white);
    line-height: var(--line-height-normal);
    transition: opacity 0.2s ease;
}

.cps-footer__links a:hover {
    opacity: 0.8;
}

.cps-footer__links .cps-footer__link--muted {
    color: rgba(255, 255, 255, 0.6);
}

.cps-footer__links-dot {
    width: 3px;
    height: 3px;
    border-radius: var(--radius-circle);
    background-color: var(--color-white);
    flex-shrink: 0;
}

.cps-footer__copyright {
    font-size: var(--font-size-sm);
    color: var(--color-white);
    line-height: var(--line-height-relaxed);
    padding-bottom: 30px;
}

/* --------------------------------------------------------------------------
   Newsletter CTA Section
   -------------------------------------------------------------------------- */
.cps-newsletter {
    background-color: var(--color-primary);
    padding: 60px var(--page-padding) 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cps-newsletter__card {
    position: relative;
    max-width: var(--container-max);
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 64px;
}

.cps-newsletter__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.cps-newsletter__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cps-newsletter__bg-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.cps-newsletter__bg--fallback {
    background-color: var(--color-primary-light);
}

.cps-newsletter__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    max-width: 768px;
    width: 100%;
    padding: 20px 0;
}

.cps-newsletter__text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    text-align: center;
    width: 100%;
    color: var(--color-white);
}

.cps-newsletter__title {
    font-size: var(--font-size-h2);
    font-weight: 700;
    color: var(--color-white);
    letter-spacing: -0.8px;
    line-height: var(--line-height-tight);
}

.cps-newsletter__title span {
    color: rgba(255, 255, 255, 0.65);
}

.cps-newsletter__subtitle {
    font-size: var(--font-size-body);
    color: var(--color-white);
    line-height: var(--line-height-relaxed);
}

.cps-newsletter__form {
    width: 513px;
    max-width: 100%;
}

.cps-newsletter__form form {
    display: flex;
    align-items: center;
    gap: 12px;
}

#mc_embed_signup_scroll {
    width: 100%;
}

.mc-field-group {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

/* Default embed form styling overrides */
.cps-newsletter__form input[type="email"],
.cps-newsletter__form input[type="text"] {
    width: 100%;
    flex: 1;
    height: 44px;
    background: transparent;
    border: 1px solid var(--color-white);
    border-radius: var(--radius-md);
    padding: 12px;
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    color: var(--color-white);
    outline: none;
}

.cps-newsletter__form.news-modal input[type="email"],
.cps-newsletter__form.news-modal input[type="text"] {
    border: 1px solid var(--color-border);
    color: var(--color-text);
}

.cps-newsletter__form input[type="email"]::placeholder,
.cps-newsletter__form input[type="text"]::placeholder {
    color: rgba(255, 255, 255, 0.65);
}

.cps-newsletter__form.news-modal input[type="email"]::placeholder,
.cps-newsletter__form.news-modal input[type="text"]::placeholder {
    color: rgba(0, 0, 0, 0.65);
}


.cps-newsletter__form input[type="submit"],
.cps-newsletter__form button[type="submit"] {
    height: 44px;
    background: var(--color-white);
    color: var(--color-text);
    border: 1px solid var(--color-white);
    border-radius: 5px;
    padding: 11px 41px 9px;
    font-family: var(--font-family);
    font-size: var(--font-size-md);
    font-weight: 400;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.2s ease;
}

.cps-newsletter__form.news-modal input[type="submit"],
.cps-newsletter__form.news-modal button[type="submit"] {
    background: var(--color-primary);
    color: var(--color-white);
    border: 1px solid var(--color-primary);
}

.cps-newsletter__form input[type="submit"]:hover,
.cps-newsletter__form button[type="submit"]:hover {
    opacity: 0.9;
}

/* --------------------------------------------------------------------------
   WordPress Core Overrides
   -------------------------------------------------------------------------- */
.wp-block-group,
.wp-block-columns {
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
}

/* Screen reader text */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* --------------------------------------------------------------------------
   News Listing Shortcode
   -------------------------------------------------------------------------- */
.cps-news {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 0 var(--section-padding);
}

/* ── Two-column layout: list + sidebar ─────────────────────────── */
.cps-news__layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    align-items: start;
}

.cps-news__main {
    min-width: 0;
}

/* ── Sidebar ───────────────────────────────────────────────────── */
.cps-news__sidebar {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 22px;
    background: var(--color-off-white);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.cps-news__sidebar-block {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cps-news__sidebar-heading {
    font-family: var(--font-family);
    font-size: var(--font-size-sm);
    font-weight: 700;
    color: var(--color-primary);
    margin: 0;
    line-height: 1.2;
}

/* Subscribe button at top of sidebar */
.cps-news__subscribe-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 20px 10px;
    font-family: var(--font-family);
    font-size: var(--font-size-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-white);
    background: var(--color-primary);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background 0.2s;
}

.cps-news__subscribe-btn:hover {
    background: var(--color-primary-light);
}

/* Search input */
.cps-news__search {
    position: relative;
}

.cps-news__search-input {
    width: 100%;
    padding: 11px 14px;
    font-family: var(--font-family);
    font-size: var(--font-size-sm);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-white);
    color: var(--color-text);
    outline: none;
    transition: border-color 0.2s;
}

.cps-news__search-input:focus {
    border-color: var(--color-primary);
}

.cps-news__search-input::placeholder {
    color: var(--color-text-muted);
}

/* Date range */
.cps-news__dates {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cps-news__date-field {
    display: flex;
}

.cps-news__date-input {
    width: 100%;
    font-family: var(--font-family);
    font-size: var(--font-size-sm);
    padding: 10px 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text);
    background: var(--color-white);
    outline: none;
}

.cps-news__date-input:focus {
    border-color: var(--color-primary);
}

/* Action buttons (Search / Clear) */
.cps-news__sidebar-actions {
    display: flex;
    gap: 8px;
}

.cps-news__action-btn {
    flex: 1;
    padding: 10px 16px 8px;
    font-family: var(--font-family);
    font-size: var(--font-size-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.cps-news__action-btn--primary {
    background: var(--color-primary);
    color: var(--color-white);
    border: 1px solid var(--color-primary);
}

.cps-news__action-btn--primary:hover {
    background: var(--color-primary-light);
    border-color: var(--color-primary-light);
}

.cps-news__action-btn--ghost {
    background: var(--color-white);
    color: var(--color-primary);
    border: 1px solid var(--color-border);
}

.cps-news__action-btn--ghost:hover {
    background: var(--color-off-white);
    border-color: var(--color-primary);
}

/* Categories */
.cps-news__categories {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cps-news__cat-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-family);
    font-size: var(--font-size-sm);
    color: var(--color-primary);
    cursor: pointer;
    user-select: none;
}

.cps-news__cat-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.cps-news__cat-check {
    width: 18px;
    height: 18px;
    border: 2px solid var(--color-primary);
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.15s, border-color 0.15s;
}

.cps-news__cat-label input:checked + .cps-news__cat-check {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.cps-news__cat-label input:checked + .cps-news__cat-check::after {
    content: '';
    display: block;
    width: 5px;
    height: 9px;
    border: solid var(--color-white);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) translateY(-1px);
}

/* ── News list (stacked) ───────────────────────────────────────── */
.cps-news__grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cps-news__empty {
    text-align: center;
    font-family: var(--font-family);
    font-size: var(--font-size-body);
    color: var(--color-text-muted);
    padding: 60px 20px;
}

/* ── Card (horizontal: info left, image right) ─────────────────── */
.cps-news-card {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
    background: var(--color-off-white);
    border-radius: var(--radius-lg);
    padding: 24px;
    align-items: center;
}

.cps-news-card:not(:has(.cps-news-card__thumb)) {
    grid-template-columns: 1fr;
}

.cps-news-card__body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.cps-news-card__meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-family: var(--font-family);
    font-size: var(--font-size-xs);
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.cps-news-card__date {
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.cps-news-card__date i {
    margin-top: -2px;
}

.cps-news-card__cats a {
    color: var(--color-primary);
    text-decoration: none;
    background: white;
    padding: 5px 6px 3px;
    border-radius: var(--radius-sm);
}

.cps-news-card__cats a:hover {
    text-decoration: underline;
}

.cps-news-card__title {
    font-family: var(--font-family);
    font-size: var(--font-size-h5);
    font-weight: 700;
    margin: 0;
    line-height: var(--line-height-tight);
}

.cps-news-card__title a {
    color: var(--color-text);
    text-decoration: none;
}

.cps-news-card__title a:hover {
    color: #0357D5;
}

.cps-news-card__excerpt {
    font-family: var(--font-family);
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    line-height: var(--line-height-relaxed);
}

.cps-news-card__read-more {
    display: inline-block;
    padding: 9px 18px 6px;
    font-family: var(--font-family);
    font-size: 11px;
    color: var(--color-white);
    background: var(--color-primary);
    border-radius: var(--radius-pill);
    text-decoration: none;
    text-transform: uppercase;
    align-self: flex-start;
    transition: background 0.2s;
    margin-top: 4px;
}

.cps-news-card__read-more:hover {
    background: var(--color-primary-light);
}

.cps-news-card__thumb {
    position: relative;
    display: block;
    border-radius: var(--radius-md);
    overflow: hidden;
    align-self: stretch;
}

.cps-news-card__thumb img {
    width: 100%;
    height: 100%;
    min-height: 180px;
    object-fit: cover;
    display: block;
}

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .cps-news__layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .cps-news__sidebar {
        position: static;
        order: -1;
    }

    .cps-news__categories {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px 16px;
    }
}

@media (max-width: 640px) {
    .cps-news-card {
        grid-template-columns: 1fr;
    }

    .cps-news-card__thumb {
        order: -1;
    }

    .cps-news-card__thumb img {
        min-height: 0;
    }
}

/* Load More */
.cps-news__load-more-wrap {
    text-align: center;
    margin-top: 40px;
}

.cps-news__load-more {
    padding: 14px 40px;
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    font-weight: 700;
    color: var(--color-primary);
    background: transparent;
    border: 2px solid var(--color-primary);
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.cps-news__load-more:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

.cps-news__load-more:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* â”€â”€ Subscribe Modal â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.cps-news__subscribe-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    opacity: 0;
    transition: opacity 0.25s;
}

.cps-news__subscribe-modal[hidden] {
    display: none;
}

.cps-news__subscribe-modal.is-visible {
    opacity: 1;
}

.cps-news__subscribe-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 40px;
    max-width: 520px;
    width: 100%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.cps-news__subscribe-card h3 {
    font-family: var(--font-family);
    font-size: var(--font-size-h4);
    font-weight: 700;
    color: var(--color-primary);
    margin: 0 0 8px;
}

.cps-news__subscribe-card p {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    color: var(--color-text-muted);
    margin: 0 0 24px;
}

.cps-news__subscribe-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--color-text-muted);
    cursor: pointer;
    line-height: 1;
}

.cps-news__subscribe-close:hover {
    color: var(--color-text);
}

/* Responsive */
@media (max-width: 768px) {
    .cps-news__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .cps-news__filter-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .cps-news__dates {
        margin-left: 0;
    }
}

/* --------------------------------------------------------------------------
   Single Post
   -------------------------------------------------------------------------- */
.cps-single {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    align-items: start;
    max-width: var(--container-max);
    margin: 0 auto;
}

.cps-single__main {
    min-width: 0;
}

/* Meta row */
.cps-single__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 16px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--color-border);
    font-family: var(--font-family);
    font-size: var(--font-size-xs);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-primary);
}

.cps-single__date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.cps-single__date i {
    margin-top: -2px;
}

.cps-single__cats {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
}

.cps-single__cats a {
    color: var(--color-primary);
    text-decoration: none;
    background: var(--color-off-white);
    padding: 5px 8px 3px;
    border-radius: var(--radius-sm);
    transition: background 0.2s;
}

.cps-single__cats a:hover {
    background: var(--color-border);
}

/* Article content (the_content) */
.cps-single__content {
    font-family: var(--font-family);
    font-size: var(--font-size-body);
    line-height: var(--line-height-relaxed);
    color: var(--color-text-muted);
}

.cps-single__content p { 
    padding-bottom: 1.25rem;
}
.cps-single__content p:last-child {
    padding-bottom: 0;
}

.cps-single__content > * + * {
    margin-top: 1.25rem;
}

.cps-single__content h1,
.cps-single__content h2,
.cps-single__content h3,
.cps-single__content h4,
.cps-single__content h5 {
    font-family: var(--font-family);
    font-weight: 700;
    color: var(--color-primary);
    line-height: var(--line-height-tight);
    margin-top: 2rem;
}

.cps-single__content h2 { font-size: var(--font-size-h3); }
.cps-single__content h3 { font-size: var(--font-size-h4); }
.cps-single__content h4 { font-size: var(--font-size-h5); }

.cps-single__content p {
    margin: 0;
}

.cps-single__content a {
    color: #0357D5;
    text-decoration: underline;
}

.cps-single__content a:hover {
    color: var(--color-primary);
}

.cps-single__content ul,
.cps-single__content ol {
    padding-left: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cps-single__content li {
    line-height: var(--line-height-relaxed);
}

.cps-single__content img,
.cps-single__content figure {
    border-radius: var(--radius-md);
    max-width: 100%;
    height: auto;
}

.cps-single__content figure {
    margin: 1.5rem 0;
}

.cps-single__content figcaption {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    text-align: center;
    margin-top: 8px;
}

.cps-single__content blockquote {
    border-left: 4px solid var(--color-accent);
    background: var(--color-off-white);
    border-radius: var(--radius-md);
    padding: 16px 24px;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--color-text);
}

/* Footer / back link */
.cps-single__footer {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
}

.cps-single__back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px 10px;
    font-family: var(--font-family);
    font-size: var(--font-size-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-primary);
    background: transparent;
    border: 2px solid var(--color-primary);
    border-radius: var(--radius-pill);
    transition: background 0.2s, color 0.2s;
}

.cps-single__back:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

/* ── Sidebar ───────────────────────────────────────────────────── */
.cps-single__sidebar {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 22px;
    background: var(--color-off-white);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.cps-single__image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    object-fit: cover;
}

.cps-single__subscribe-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 20px 10px;
    font-family: var(--font-family);
    font-size: var(--font-size-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-white);
    background: var(--color-primary);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background 0.2s;
}

.cps-single__subscribe-btn:hover {
    background: var(--color-primary-light);
}

.cps-single__sidebar-block {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cps-single__sidebar-heading {
    font-family: var(--font-family);
    font-size: var(--font-size-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-primary);
    margin: 0;
    line-height: 1.2;
}

/* Recent posts list */
.cps-single__recent {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cps-single__recent-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: background 0.2s;
}

.cps-single__recent-item:hover {
    background: var(--color-white);
}

.cps-single__recent-thumb {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.cps-single__recent-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cps-single__recent-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.cps-single__recent-date {
    font-family: var(--font-family);
    font-size: var(--font-size-xs);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-text-muted);
}

.cps-single__recent-title {
    font-family: var(--font-family);
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-text);
    line-height: var(--line-height-tight);
    transition: color 0.2s;
}

.cps-single__recent-item:hover .cps-single__recent-title {
    color: #0357D5;
}

.cps-single__recent-empty {
    font-family: var(--font-family);
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
}

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .cps-single {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .cps-single__sidebar {
        position: static;
    }
}

/* --------------------------------------------------------------------------
   Homepage News Panel  [cps_homepage_news]
   -------------------------------------------------------------------------- */
.cps-hpnews {
    font-family: var(--font-family);
}

/* 2-column grid: news block | sidebar */
.cps-hpnews__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 3.5rem;
    align-items: start;
}

/* News block: featured (with image) | list (no image) */
.cps-hpnews__news {
    display: grid;
    grid-template-columns: minmax(0, .75fr) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: start;
}

/* Featured article */
.cps-hpnews__featured {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.cps-hpnews__featured-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 2 / 1.6;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--color-off-white);
    margin-bottom: 1.5rem;
}

.cps-hpnews__featured-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.cps-hpnews__featured-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cps-hpnews__featured-date {
    font-size: var(--font-size-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.cps-hpnews__featured-title {
    font-size: var(--font-size-h4);
    font-weight: 700;
    line-height: var(--line-height-tight);
    color: var(--color-primary);
    transition: color 0.2s ease;
}

.cps-hpnews__featured:hover .cps-hpnews__featured-title {
    color: #0357D5;
}

.cps-hpnews__featured-excerpt {
    font-size: var(--font-size-sm);
    line-height: 1.6;
    color: var(--color-text-muted);
}

/* Article list (no images) */
.cps-hpnews__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.cps-hpnews__list-item {
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--color-border);
}

.cps-hpnews__list-item:first-child {
    border-top: none;
}

.cps-hpnews__list-link {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 1.5rem 0;
    text-decoration: none;
    color: inherit;
}

.cps-hpnews__list-item:first-child .cps-hpnews__list-link {
    padding-top: 0;
}

.cps-hpnews__list-title {
    font-size: var(--font-size-h4);
    font-weight: 700;
    line-height: var(--line-height-tight);
    color: var(--color-primary);
    transition: color 0.2s ease;
}

.cps-hpnews__list-link:hover .cps-hpnews__list-title {
    color: #0357D5;
}

.cps-hpnews__list-date {
    font-size: var(--font-size-xs);
    font-weight: 700;
    color: var(--color-text-muted);
    text-transform: uppercase;
}

/* In the Community sidebar */
.cps-hpnews__community {
    background: var(--color-primary);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    color: var(--color-white);
}

.cps-hpnews__community-title {
    font-size: var(--font-size-h4);
    font-weight: 700;
    color: var(--color-white);
    margin: 0 0 28px;
    line-height: var(--line-height-tight);
}

.cps-hpnews__events {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.cps-hpnews__event-empty {
    padding: 16px 0;
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.7);
    line-height: var(--line-height-tight);
}

.cps-hpnews__event {
    display: block;
    margin: 0;
    padding: 0;
}

.cps-hpnews__event-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    text-decoration: none;
    color: inherit;
}

.cps-hpnews__event-link:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

.cps-hpnews__event {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.cps-hpnews__event:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.cps-hpnews__events-more {
    margin-top: 12px;
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-transform: uppercase;
}

/* Date tile */
.cps-hpnews__event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    background: var(--color-white);
    border-radius: var(--radius-sm);
    padding: 6px 8px;
    line-height: 1;
    flex-shrink: 0;
}

.cps-hpnews__event-month {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-primary);
}

.cps-hpnews__event-day {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.1;
}

/* Event info */
.cps-hpnews__event-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.cps-hpnews__event-title {
    font-size: var(--font-size-sm);
    font-weight: 700;
    color: var(--color-white);
    line-height: var(--line-height-tight);
}

.cps-hpnews__event-location {
    font-size: var(--font-size-xs);
    color: rgba(255, 255, 255, 0.6);
}

/* Arrow button */
.cps-hpnews__event-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--color-accent);
    color: var(--color-white);
    flex-shrink: 0;
    text-decoration: none;
    transition: background-color 0.15s ease, transform 0.15s ease;
}

.cps-hpnews__event-arrow svg {
    transform: rotate(-45deg);
    transition: transform 0.15s ease;
}

.cps-hpnews__event-link:hover .cps-hpnews__event-arrow,
.cps-hpnews__event-link:focus-visible .cps-hpnews__event-arrow {
    background-color: #0357D5;
}

.cps-hpnews__event-link:hover .cps-hpnews__event-arrow svg,
.cps-hpnews__event-link:focus-visible .cps-hpnews__event-arrow svg {
    transform: rotate(0deg);
}

/* â”€â”€ Footer button â”€â”€ */
.cps-hpnews__footer {
    margin-top: 28px;
}

.cps-hpnews__explore-btn {
    display: inline-flex;
    align-items: center;
    padding: 14px 32px 12px;
    font-family: var(--font-family);
    font-size: var(--font-size-sm);
    text-transform: uppercase;
    color: white;
    background: var(--color-primary);
    border-radius: var(--radius-pill);
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.cps-hpnews__explore-btn:hover {
    background: var(--color-primary-light);
    color: var(--color-white);
}

/*  Responsive */
@media (max-width: 1180px) {
    .cps-hpnews__news {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 1024px) {
    .cps-hpnews__grid {
        grid-template-columns: 1fr 1fr;
    }

    .cps-hpnews__news {
        grid-column: 1 / -1;
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    }

    .cps-hpnews__community {
        grid-column: 1 / -1;
    }
}

@media (max-width: 760px) {
    .cps-hpnews__news {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .cps-hpnews__grid {
        grid-template-columns: 1fr;
    }
}

/* --------------------------------------------------------------------------
   Search Results
   -------------------------------------------------------------------------- */
.cps-search-results__again {
    margin-bottom: 24px;
}

.cps-search-results__again .cps-search-form {
    max-width: 560px;
}

.cps-search-results__count {
    font-family: var(--font-family);
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    margin: 0 0 24px;
}

.cps-search-card {
    border-bottom: 1px solid var(--color-border);
    padding: 28px 0;
}

.cps-search-card:first-of-type {
    border-top: 1px solid var(--color-border);
}

.cps-search-card__meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 8px;
    font-family: var(--font-family);
    font-size: var(--font-size-xs);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-text-muted);
}

.cps-search-card__type {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 3px 10px 0;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 10px;
}

.cps-search-card__date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.cps-search-card__title {
    font-family: var(--font-family);
    font-size: var(--font-size-h5);
    font-weight: 700;
    margin: 0 0 8px;
    line-height: var(--line-height-tight);
}

.cps-search-card__title a {
    color: var(--color-text);
    text-decoration: none;
}

.cps-search-card__title a:hover {
    color: #0357D5;
}

.cps-search-card__excerpt {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    color: var(--color-text-muted);
    line-height: var(--line-height-relaxed);
    margin-bottom: 12px;
}

.cps-search-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-family);
    font-size: var(--font-size-sm);
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s;
}

.cps-search-card__link:hover {
    color: #0357D5;
}

.cps-search-highlight {
    background: #fff3cd;
    color: inherit;
    padding: 1px 2px;
    border-radius: 2px;
}

.cps-search-results__pagination {
    margin-top: 32px;
}

.cps-search-results__pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-family);
    font-size: var(--font-size-base);
}

.cps-search-results__pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s, color 0.2s;
}

.cps-search-results__pagination .page-numbers:hover {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.cps-search-results__pagination .page-numbers.current {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.cps-search-results__empty {
    text-align: center;
    padding: 60px 0;
}

.cps-search-results__empty h2 {
    font-family: var(--font-family);
    font-size: var(--font-size-h4);
    color: var(--color-primary);
    margin: 0 0 8px;
}

.cps-search-results__empty p {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    color: var(--color-text-muted);
    margin: 0 0 24px;
}

.cps-search-results__empty .cps-search-form {
    max-width: 480px;
    margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Crime Stats Shortcode
   -------------------------------------------------------------------------- */
.cps-cs {
    max-width: var(--container-max);
    margin: 0 auto;
}

.cps-cs__filters {
    display: flex;
    gap: 20px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.cps-cs__filter {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cps-cs__filter label {
    font-family: var(--font-family);
    font-size: var(--font-size-sm);
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cps-cs__filter select {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    padding: 10px 36px 10px 14px;
    border: 2px solid var(--color-primary);
    border-radius: var(--radius-md);
    background: var(--color-white);
    color: var(--color-primary);
    font-weight: 600;
    min-width: 160px;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'><path d='M1 1L6 6L11 1' stroke='%232A3B4F' stroke-width='2' stroke-linecap='round'/></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
}

.cps-cs__tables {
    transition: opacity 0.2s;
}

.cps-cs__tables.is-loading {
    opacity: 0.5;
}

.cps-cs-empty {
    text-align: center;
    padding: 60px 20px;
    font-family: var(--font-family);
    color: var(--color-text-muted);
}

/* â”€â”€ Single table â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.cps-cs-table-wrap {
    margin-bottom: 32px;
    overflow-x: auto;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
}

.cps-cs-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-family);
    font-size: var(--font-size-sm);
    background: var(--color-white);
    min-width: 720px;
}

.cps-cs-table th,
.cps-cs-table td {
    padding: 10px 12px;
    text-align: center;
    border: 1px solid #d8dde3;
}

.cps-cs-table__header-1 th,
.cps-cs-table__header-2 th {
    background: var(--color-primary);
    color: var(--color-white);
    font-weight: 700;
    font-size: var(--font-size-xs);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-color: #d8dde3;
}

.cps-cs-table__header-1 th.cps-cs-table__title {
    font-size: var(--font-size-base);
    padding: 12px 16px;
    background: var(--color-primary);
    color: var(--color-white);
    letter-spacing: 0.02em;
    width: 25rem;
}

.cps-cs-table__year {
    border-left: 1px solid rgba(255, 255, 255, 0.25);
}

.cps-cs-table__chg {
    border-left: 1px solid rgba(255, 255, 255, 0.25);
}

.cps-cs-table tbody tr {
    transition: background 0.15s;
}

.cps-cs-table tbody tr:hover {
    background: #f5f7fa;
}

.cps-cs-table__row-label {
    text-align: left !important;
    color: var(--color-text);
    font-weight: 500;
    background: var(--color-white);
}

.cps-cs-table__total-row td {
    background: var(--color-primary) !important;
    color: var(--color-white);
    font-weight: 700;
    border-color: #d8dde3;
}

.cps-cs-table__total-row .cps-cs-table__row-label {
    color: var(--color-white);
}

/* % change cell colors */
.cps-cs-table td.is-neg {
    color: #C62828;
    font-weight: 600;
}

.cps-cs-table td.is-pos {
    color: #2E7D32;
    font-weight: 600;
}

.cps-cs-table td.is-zero {
    color: var(--color-text-muted);
}

.cps-cs-table td.is-na {
    color: var(--color-text-muted);
}

.cps-cs-table__total-row td.is-neg,
.cps-cs-table__total-row td.is-pos,
.cps-cs-table__total-row td.is-zero,
.cps-cs-table__total-row td.is-na {
    color: var(--color-white);
}

@media (max-width: 768px) {
    .cps-cs__filters {
        flex-direction: column;
        align-items: stretch;
    }
    .cps-cs__filter select {
        width: 100%;
    }
}

/* --------------------------------------------------------------------------
   Emergency Alert Modal
   -------------------------------------------------------------------------- */
.cps-alert-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cps-alert-overlay[hidden] {
    display: none;
}

.cps-alert-overlay.is-visible {
    opacity: 1;
}

.cps-alert {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 680px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    transform: translateY(20px) scale(0.97);
    transition: transform 0.3s ease;
}

.cps-alert-overlay.is-visible .cps-alert {
    transform: translateY(0) scale(1);
}

.cps-alert__header {
    background: var(--cps-alert-header-bg, #E53935);
    color: var(--cps-alert-header-color, #FFFFFF);
    display: flex;
    align-items: center;
    padding: 16px 24px;
    gap: 12px;
}

.cps-alert__header-icon {
    font-size: 22px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
}

.cps-alert__header-title {
    font-family: var(--font-family);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.05em;
    flex: 1;
}

.cps-alert__close {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.cps-alert__close:hover {
    opacity: 1;
}

.cps-alert__body {
    padding: 32px;
    overflow-y: auto;
}

.cps-alert__title {
    font-family: var(--font-family);
    font-size: 22px;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 16px;
    line-height: var(--line-height-tight);
}

.cps-alert__content {
    font-family: var(--font-family);
    font-size: var(--font-size-body);
    color: var(--color-text);
    line-height: var(--line-height-relaxed);
}

.cps-alert__content p {
    margin: 0 0 16px;
}

.cps-alert__content p:last-child {
    margin-bottom: 0;
}

.cps-alert__divider {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: 24px 0;
}

.cps-alert__dismiss {
    display: block;
    width: 100%;
    padding: 16px;
    background: var(--cps-alert-button-bg, var(--color-primary));
    color: var(--cps-alert-button-color, var(--color-white));
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: filter 0.2s, opacity 0.2s;
}

.cps-alert__dismiss:hover {
    filter: brightness(0.9);
}

@media (max-width: 768px) {
    .cps-alert__body {
        padding: 24px 20px;
    }

    .cps-alert__header-title {
        font-size: 16px;
    }
}

/* --------------------------------------------------------------------------
   Sectioned Page (Sticky Anchor Nav)
   -------------------------------------------------------------------------- */
.cps-sectioned {
    padding: var(--section-padding) 0;
    background: var(--color-off-white);
}

.cps-sectioned__inner {
    display: flex;
    gap: 5rem;
    align-items: flex-start;
}

.cps-sectioned__sidebar {
    position: sticky;
    top: 100px;
    flex: 0 0 30%;
    max-width: 30%;
}

P.cps-sectioned__sidebar-intro {
    font-family: var(--font-family);
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    margin: 0 0 15px;
    line-height: var(--line-height-relaxed);
}

.cps-sectioned__nav-list {
    list-style: none;
    margin: 0;
    padding: 0 0 0 1rem;
    border-left: 2px solid var(--color-border);
}

.cps-sectioned__nav-list li {
    margin: 0 0 0.5rem 0;
}
.cps-sectioned__nav-list li:last-child {
    margin-bottom: 0;
}

.cps-sectioned__nav-list a {
    display: block;
    padding: 14px 20px;
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    border-left: 3px solid transparent;
    margin-left: -2px;
    transition: color 0.2s, border-color 0.2s, background-color 0.2s;
    background: white;
    border-radius: var(--radius-md);
}

.cps-sectioned__nav-list a:hover {
    color: var(--color-accent);
}

.cps-sectioned__nav-list a.is-active {
    color: var(--color-white);
    background-color: var(--color-accent);
    border-left-color: var(--color-accent);
    border-radius: var(--radius-md);
    margin-left: 0;
}

.cps-sectioned__content {
    flex: 1;
    min-width: 0;
}

@media (max-width: 1024px) {
    .cps-sectioned__sidebar {
        display: none;
    }

    .cps-sectioned__inner {
        display: block;
    }

    .cps-sectioned {
        padding: var(--section-padding) var(--page-padding);
    }
}

/* --------------------------------------------------------------------------
   Utility Classes
   -------------------------------------------------------------------------- */
.w-25 { width: 25% !important; }
.w-50 { width: 50% !important; }
.w-75 { width: 75% !important; }
.w-100, .w-100 img { width: 100% !important; }
.mw-100 { max-width: 100% !important; }
.self-flex-end { align-self: flex-end !important; }
.gap-1 { gap: 1rem !important; }
.gap-2 { gap: 2rem !important; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    :root {
        --page-padding: 32px;
        --font-size-h1: 40px;
        --font-size-h2: 32px;
    }

    .m-gap-1 { gap: 1rem !important; }
    .mp-1 { padding: 1rem !important; }
    .hide-mobile { display: none !important; }
    .m-auto-size, .m-auto-size img {
        aspect-ratio: auto !important;
        height: auto !important;
        contain-intrinsic-size: auto 250px;
    }

    .cps-top-bar {
        padding: 0 20px;
        height: auto;
        min-height: 72px;
    }

    .cps-top-bar__inner {
        flex-wrap: nowrap;
        height: auto;
        padding: 10px 0;
        gap: 12px;
        justify-content: space-between;
    }

    .cps-top-bar__logo {
        width: 180px;
        height: 60px;
    }

    .cps-top-bar__right {
        display: none;
    }

    .cps-top-bar__mobile {
        display: flex;
    }

    .cps-menu-toggle {
        display: flex;
    }

    /* Hide the blue nav bar entirely on mobile — the drawer replaces it.
       Kept in the DOM (not display:none) so its fixed-position drawer/backdrop still render. */
    .cps-nav {
        height: 0;
        min-height: 0;
        padding: 0;
        background: transparent;
        overflow: visible;
    }

    .cps-nav__inner {
        height: 0;
    }

    .cps-nav__social {
        display: none;
    }

    /* ── Mobile slide-in drawer (from the left) ─────────────────── */
    .cps-nav__backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.55);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        z-index: 1000;
    }

    .cps-nav__backdrop.is-visible {
        opacity: 1;
        visibility: visible;
    }

    .cps-nav__drawer {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: min(86vw, 360px);
        background: var(--color-primary);
        z-index: 1001;
        padding: 0;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
        box-shadow: 12px 0 40px rgba(0, 0, 0, 0.3);
    }

    .cps-nav__drawer.is-open {
        transform: translateX(0);
    }

    .cps-nav__drawer-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 18px 24px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }

    .cps-nav__drawer-title {
        font-family: var(--font-family);
        font-size: var(--font-size-sm);
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        color: var(--color-white);
    }

    .cps-nav__drawer-close {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: none;
        border: none;
        border-radius: 50%;
        color: var(--color-white);
        cursor: pointer;
        transition: background 0.2s ease;
    }

    .cps-nav__drawer-close:hover {
        background: rgba(255, 255, 255, 0.1);
    }

    .cps-nav__drawer-close svg {
        width: 22px;
        height: 22px;
    }

    .cps-nav__drawer-search {
        display: block;
        padding: 20px 24px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }

    .cps-nav__drawer-search .cps-search-form {
        width: 100%;
    }

    .cps-nav__drawer-search .cps-search-input {
        height: 46px;
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(255, 255, 255, 0.2);
        color: var(--color-white);
    }

    .cps-nav__drawer-search .cps-search-input::placeholder {
        color: rgba(255, 255, 255, 0.5);
    }

    .cps-nav__drawer-search .cps-search-input:focus {
        border-color: var(--color-accent);
    }

    /* Menu list inside drawer */
    .cps-nav__menu {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        flex: none;
        padding: 8px 0 32px;
    }

    .cps-nav__menu > .menu-item {
        position: relative;
        padding: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .cps-nav__menu .menu-item > a {
        width: 100%;
        min-height: 56px;
        padding: 0 24px;
        border-bottom: none;
    }

    .cps-nav__menu .menu-item-has-children > a {
        padding-right: 60px;
    }

    /* Hide the desktop dropdown chevron; the toggle button provides its own */
    .cps-nav__menu .menu-item-has-children > a::after {
        display: none;
    }

    /* Accordion chevron toggle (injected by JS) */
    .cps-submenu-toggle {
        display: flex;
        position: absolute;
        top: 0;
        right: 0;
        width: 56px;
        height: 56px;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        border-left: 1px solid rgba(255, 255, 255, 0.08);
        color: var(--color-white);
        cursor: pointer;
    }

    .cps-submenu-toggle svg {
        width: 18px;
        height: 18px;
        transition: transform 0.25s ease;
    }

    .menu-item.is-expanded > .cps-submenu-toggle svg {
        transform: rotate(180deg);
    }

    /* Submenu accordion */
    .cps-nav__menu .menu-item .sub-menu {
        display: block;
        position: static;
        background: rgba(0, 0, 0, 0.18);
        box-shadow: none;
        border-radius: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .cps-nav__menu .menu-item.is-expanded > .sub-menu {
        max-height: 600px;
    }

    .cps-nav__menu .sub-menu .menu-item > a {
        color: rgba(255, 255, 255, 0.85);
        font-size: var(--font-size-base);
        min-height: 0;
        padding: 13px 24px 13px 36px;
        border-bottom: none;
        text-transform: none;
    }

    .cps-banner {
        height: 400px;
    }

    .cps-newsletter__card {
        padding: 40px 32px;
    }

    .cps-newsletter__form {
        width: 100%;
    }

    .wp-block-columns {
        gap: 2rem;
    }

    .cps-container .alignfull {
        padding-left: 1rem;
        padding-right: 1rem;
    }

}

@media (max-width: 768px) {
    :root {
        --page-padding: 20px;
        --section-padding: 40px;
        --font-size-h1: 32px;
        --font-size-h2: 28px;
    }

    .cps-top-bar__contact {
        display: none;
    }

    .home .cps-banner, .cps-banner {
        height: 17rem;
        border-radius: 0 0 20px 20px;
        padding:0 2rem;
    }

    h2.wp-block-heading {
        font-size: 24px;
    }

    .home-intro {
        padding-top: 2rem !important;
    }

    .cps-banner.cps-banner--no-image {
        height: auto;
        margin-top: 3rem;
        padding: 0 1rem;
        margin-bottom: -2rem;
    }

    .cps-banner__title {
        font-size: 24px;
    }

    .cps-banner__title span:last-child {
        border-bottom: 3px solid var(--color-accent);
    }

    .cps-banner__content {
        padding-bottom: 40px;
        padding-left: 0;
    }

    .cps-hpnews__featured-title, .cps-hpnews__list-title {
        font-size: 18px;
    }

    .cps-footer {
        padding: 30px var(--page-padding) 0;
    }

    .cps-footer__grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .cps-footer__contact {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .cps-footer__logo {
        height: 110px;
    }

    .cps-footer__info {
        align-items: center;
    }

    .cps-footer__info p {
        justify-content: center;
    }

    .cps-footer__connected {
        align-items: center;
        justify-content: center;
    }

    .cps-footer__connected .cps-newsletter__form {
        width: 100%;
    }

    .cps-footer__links {
        flex-wrap: wrap;
        justify-content: center;
        row-gap: 6px;
    }

    .cps-newsletter {
        padding: 40px var(--page-padding) 10px;
    }

    .cps-newsletter__card {
        padding: 32px 20px;
    }
}

@media (max-width: 480px) {
    .cps-top-bar__logo {
        width: 160px;
        height: 54px;
    }

    .cps-footer__logo {
        height: 90px;
    }
}

/* --------------------------------------------------------------------------
   Gravity Forms
   -------------------------------------------------------------------------- */
.gform_wrapper.gravity-theme,
.gform_wrapper {
    font-family: var(--font-family);
    color: var(--color-text);
}

.gform_wrapper .gform_heading {
    margin-bottom: 24px;
}

.gform_wrapper .gform_title {
    font-family: var(--font-family);
    font-size: var(--font-size-h3);
    font-weight: 700;
    color: var(--color-primary);
    line-height: var(--line-height-tight);
    margin-bottom: 8px;
}

.gform_wrapper .gform_description {
    font-size: var(--font-size-body);
    color: var(--color-text-muted);
    line-height: var(--line-height-relaxed);
}

/* Field grid spacing */
.gform_wrapper .gform_fields {
    grid-row-gap: 22px;
}

.gform_wrapper .gfield_label {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.gform_wrapper .gfield_required {
    color: #d6362b;
    margin-left: 2px;
}

/* Text-style inputs + textarea + select fill the container */
.gform_wrapper input[type="text"],
.gform_wrapper input[type="email"],
.gform_wrapper input[type="tel"],
.gform_wrapper input[type="url"],
.gform_wrapper input[type="number"],
.gform_wrapper input[type="password"],
.gform_wrapper input[type="date"],
.gform_wrapper input[type="time"],
.gform_wrapper textarea,
.gform_wrapper select {
    width: 100% !important;
    max-width: 100%;
    background: var(--color-off-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 13px 16px !important;
    font-family: var(--font-family);
    font-size: var(--font-size-body);
    color: var(--color-text);
    line-height: var(--line-height-normal);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.gform_wrapper textarea {
    min-height: 140px;
    resize: vertical;
}

/* Custom select chevron */
.gform_wrapper select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%232A3B4F' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 44px;
}

.gform_wrapper input::placeholder,
.gform_wrapper textarea::placeholder {
    color: rgba(0, 0, 0, 0.35);
}

.gform_wrapper input:focus,
.gform_wrapper textarea:focus,
.gform_wrapper select:focus {
    border-color: var(--color-primary);
    background: var(--color-white);
    box-shadow: 0 0 0 3px rgba(42, 59, 79, 0.08);
}

/* Field description / sub-labels */
.gform_wrapper .gfield_description,
.gform_wrapper .ginput_complex label,
.gform_wrapper .gform_fileupload_rules {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
}

/* Checkboxes & radios */
.gform_wrapper .gfield_checkbox label,
.gform_wrapper .gfield_radio label {
    font-size: var(--font-size-body);
    color: var(--color-text);
}

.gform_wrapper input[type="checkbox"],
.gform_wrapper input[type="radio"] {
    accent-color: var(--color-primary);
    width: 18px;
    height: 18px;
}

/* Submit button — big blue button */
.gform_wrapper .gform_footer {
    margin-top: 28px;
    padding: 0;
}

.gform_wrapper .gform_footer input[type="submit"],
.gform_wrapper .gform_page_footer input[type="submit"],
.gform_wrapper .gform_footer input[type="button"],
.gform_wrapper .gform_page_footer input[type="button"],
.gform_wrapper .gform_button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    color: var(--color-white);
    font-family: var(--font-family);
    font-size: var(--font-size-h5);
    font-weight: 600;
    line-height: 1;
    border: none;
    border-radius: var(--radius-md);
    padding: 18px 44px;
    min-width: 180px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.gform_wrapper .gform_footer input[type="submit"]:hover,
.gform_wrapper .gform_page_footer input[type="submit"]:hover,
.gform_wrapper .gform_button:hover {
    background: var(--color-accent);
}

.gform_wrapper .gform_footer input[type="submit"]:focus-visible,
.gform_wrapper .gform_button:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
}

/* Validation states */
.gform_wrapper .gfield_error input,
.gform_wrapper .gfield_error textarea,
.gform_wrapper .gfield_error select {
    border-color: #d6362b;
    background: #fdf3f2;
}

.gform_wrapper .gfield_validation_message,
.gform_wrapper .validation_message {
    font-size: var(--font-size-sm);
    color: #d6362b;
    margin-top: 6px;
}

.gform_wrapper .gform_validation_errors {
    border: 1px solid #d6362b;
    background: #fdf3f2;
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin-bottom: 24px;
}

.gform_wrapper .gform_validation_errors .gform_submission_error {
    color: #d6362b;
    font-weight: 600;
}

/* Confirmation message */
.gform_confirmation_wrapper .gform_confirmation_message {
    font-size: var(--font-size-body);
    color: var(--color-text);
    background: var(--color-off-white);
    border-left: 4px solid var(--color-accent);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    line-height: var(--line-height-relaxed);
}

/* Progress bar (multi-page) */
.gform_wrapper .gf_progressbar_percentage {
    background: var(--color-primary);
}

@media (max-width: 768px) {
    .gform_wrapper .gform_footer input[type="submit"],
    .gform_wrapper .gform_page_footer input[type="submit"],
    .gform_wrapper .gform_button {
        width: 100%;
    }
}

/* --------------------------------------------------------------------------
   Events List  [cps_events]
   -------------------------------------------------------------------------- */
.cps-events {
    font-family: var(--font-family);
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cps-events__empty,
.cps-events__notice {
    text-align: center;
    font-size: var(--font-size-body);
    color: var(--color-text-muted);
    padding: 60px 20px;
}

/* Month divider */
.cps-events__month {
    font-family: var(--font-family);
    font-size: var(--font-size-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-accent);
    margin: 24px 0 6px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-border);
}

.cps-events__month:first-child {
    margin-top: 0;
}

/* Event row */
.cps-events__item {
    display: flex;
    align-items: center;
    gap: 24px;
    background: var(--color-off-white);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    text-decoration: none;
    border: 1px solid transparent;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.cps-events__item:hover {
    background: var(--color-white);
    border-color: var(--color-border);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(42, 59, 79, 0.08);
}

/* Date tile */
.cps-events__date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 84px;
    padding: 14px 8px;
    background: var(--color-primary);
    border-radius: var(--radius-md);
    color: var(--color-white);
    line-height: 1;
    text-align: center;
    transition: background 0.2s ease;
}

.cps-events__item:hover .cps-events__date {
    background: var(--color-accent);
}

.cps-events__date-weekday {
    font-size: var(--font-size-xs);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.75;
    margin-bottom: 6px;
}

.cps-events__date-day {
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
}

.cps-events__date-month {
    font-size: var(--font-size-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 4px;
}

/* Event info */
.cps-events__info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cps-events__title {
    font-family: var(--font-family);
    font-size: var(--font-size-h5);
    font-weight: 700;
    color: var(--color-primary);
    margin: 0;
    line-height: var(--line-height-tight);
    transition: color 0.2s ease;
}

.cps-events__item:hover .cps-events__title {
    color: #0357D5;
}

.cps-events__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 20px;
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
}

.cps-events__time,
.cps-events__venue {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

.cps-events__meta i {
    color: var(--color-accent);
    font-size: var(--font-size-base);
}

.cps-events__excerpt {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    line-height: var(--line-height-relaxed);
    margin: 2px 0 0;
}

/* Arrow */
.cps-events__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-accent);
    color: var(--color-white);
    transition: background 0.2s ease, transform 0.15s ease;
}

.cps-events__item:hover .cps-events__arrow {
    background: var(--color-primary);
    transform: translateX(3px);
}

/* Responsive */
@media (max-width: 640px) {
    .cps-events__item {
        gap: 16px;
        padding: 16px;
    }

    .cps-events__date {
        width: 64px;
        padding: 10px 6px;
    }

    .cps-events__date-day {
        font-size: 24px;
    }

    .cps-events__arrow {
        display: none;
    }
}

/* ──────────────────────────────────────────────────────────────────────────
   Events view toggle (List / Month)
   ────────────────────────────────────────────────────────────────────────── */
.cps-events-wrap {
    width: 100%;
}

.cps-events-toggle {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    margin: 0 auto 28px;
    background: var(--color-off-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-pill);
}

.cps-events-toggle__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border: none;
    border-radius: var(--radius-pill);
    background: transparent;
    color: var(--color-primary);
    font-family: 'Axiforma', sans-serif;
    font-size: var(--font-size-sm, 14px);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.cps-events-toggle__btn i {
    font-size: var(--font-size-sm, 14px);
}

.cps-events-toggle__btn:hover {
    color: var(--color-accent);
}

.cps-events-toggle__btn.is-active {
    background: var(--color-primary);
    color: var(--color-white);
}

.cps-events-toggle__btn.is-active:hover {
    color: var(--color-white);
}

/* Center the toggle above the views */
.cps-events-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cps-events-view {
    width: 100%;
}

/* ──────────────────────────────────────────────────────────────────────────
   Events Month Calendar [cps_events view="month"]
   ────────────────────────────────────────────────────────────────────────── */
.cps-events-cal {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    position: relative;
}

.cps-events-cal.is-loading {
    opacity: 0.55;
    pointer-events: none;
}

.cps-events-cal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.cps-events-cal__title {
    font-size: var(--font-size-h4, 28px);
    font-weight: 700;
    color: var(--color-primary);
    text-align: center;
    margin: 0;
    flex: 1 1 auto;
}

.cps-events-cal__nav {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-circle);
    border: none;
    background: var(--color-primary);
    color: var(--color-white);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.cps-events-cal__nav:hover {
    background: var(--color-accent);
    color: var(--color-primary);
    transform: scale(1.05);
}

.cps-events-cal__grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.cps-events-cal__weekday {
    text-align: center;
    font-size: var(--font-size-xs, 10px);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--color-accent);
    padding: 8px 0;
}

.cps-events-cal__cell {
    min-height: 104px;
    background: var(--color-off-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow: hidden;
}

.cps-events-cal__cell--empty {
    background: transparent;
    border-color: transparent;
}

.cps-events-cal__cell.has-events {
    border-color: rgba(42, 59, 79, 0.25);
}

.cps-events-cal__cell.is-today {
    border-color: var(--color-accent);
    box-shadow: inset 0 0 0 1px var(--color-accent);
}

.cps-events-cal__daynum {
    font-size: var(--font-size-sm, 14px);
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
}

.cps-events-cal__cell.is-today .cps-events-cal__daynum {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: var(--radius-circle);
    background: var(--color-accent);
    color: var(--color-primary);
}

.cps-events-cal__events {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.cps-events-cal__event {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    padding: 3px 6px;
    border-radius: var(--radius-sm);
    background: var(--color-white);
    border: 1px solid var(--color-border);
    text-decoration: none;
    transition: background 0.18s ease, border-color 0.18s ease;
}

.cps-events-cal__event:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.cps-events-cal__event-dot {
    flex: 0 0 auto;
    width: 7px;
    height: 7px;
    border-radius: var(--radius-circle);
    background: var(--color-accent);
}

.cps-events-cal__event-label {
    font-size: var(--font-size-xs, 10px);
    font-weight: 600;
    color: var(--color-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.cps-events-cal__event:hover .cps-events-cal__event-label {
    color: var(--color-white);
}

.cps-events-cal__more {
    font-size: var(--font-size-xs, 10px);
    font-weight: 600;
    color: var(--color-text-muted);
    padding-left: 2px;
}

/* Responsive — compact dots on small screens */
@media (max-width: 640px) {
    .cps-events-cal__head {
        margin-bottom: 14px;
    }

    .cps-events-cal__title {
        font-size: var(--font-size-h5, 20px);
    }

    .cps-events-cal__grid {
        gap: 3px;
    }

    .cps-events-cal__cell {
        min-height: 56px;
        padding: 5px 4px;
        gap: 4px;
    }

    .cps-events-cal__weekday {
        font-size: 9px;
        padding: 4px 0;
    }

    .cps-events-cal__events {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 3px;
    }

    .cps-events-cal__event {
        padding: 2px 0;
        border: none;
        background: transparent;
    }

    .cps-events-cal__event:hover {
        background: transparent;
    }

    .cps-events-cal__event-dot {
        width: 8px;
        height: 8px;
    }

    .cps-events-cal__event-label {
        font-size: 8px;
        margin-bottom: -2px;
    }

    .cps-events-cal__more {
        font-size: 9px;
    }
}

/* ──────────────────────────────────────────────────────────────────────────
   Single Event page [tribe-events/single-event.php]
   ────────────────────────────────────────────────────────────────────────── */

#tribe-events-pg-template {
    margin: 0 auto;
    max-width: 1400px;
    padding: var(--tec-spacer-8) 0 var(--tec-spacer-4);
}

@media (max-width: 768px) {
    #tribe-events-pg-template {
        padding: 0 var(--page-padding);
    }
}


.cps-event-single {
    max-width: var(--container-max, 1400px);
    margin: 0 auto;
    padding: 0;
    color: var(--color-primary);
}

/* Hero */
.cps-event-single__hero {
    margin: 0 0 2.5rem;
}

.cps-event-single__hero-image {
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 2rem;
    aspect-ratio: 16 / 6;
    background: var(--color-off-white);
}

.cps-event-single__hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cps-event-single__back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: var(--font-size-sm, 14px);
    font-weight: 600;
    color: var(--color-text-muted);
    text-decoration: none;
    margin-bottom: 1.25rem;
    transition: color 0.2s ease, gap 0.2s ease;
}

.cps-event-single__back:hover {
    color: var(--color-accent);
    gap: 12px;
}

.cps-event-single__cats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1rem;
}

.cps-event-single__cats a {
    display: inline-block;
    padding: 5px 14px;
    border-radius: var(--radius-pill);
    background: var(--color-accent);
    color: var(--color-primary);
    font-size: var(--font-size-xs, 10px);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.cps-event-single__cats a:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

.cps-event-single__title {
    font-size: var(--font-size-h1, 56px);
    font-weight: 700;
    line-height: var(--line-height-tight, 1.05);
    letter-spacing: -1px;
    color: var(--color-primary);
    margin: 0 0 1.25rem;
}

.cps-event-single__schedule {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: var(--font-size-lg, 18px);
    font-weight: 600;
    color: var(--color-primary);
    margin: 0;
    padding: 12px 20px;
    background: var(--color-off-white);
    border-left: 4px solid var(--color-accent);
    border-radius: var(--radius-sm);
}

.cps-event-single__schedule i {
    color: var(--color-accent);
}

/* Body layout */
.cps-event-single__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 3rem;
    align-items: start;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--color-border);
}

.cps-event-single__main {
    min-width: 0;
}

.cps-event-single__description {
    font-size: var(--font-size-base, 16px);
    line-height: 1.7;
    color: var(--color-text-muted);
}

.cps-event-single__description h2,
.cps-event-single__description h3,
.cps-event-single__description h4 {
    color: var(--color-primary);
    margin-top: 2rem;
}

.cps-event-single__description a {
    color: #0357D5;
    text-decoration: underline;
    word-break: break-word;
}

.cps-event-single__description img {
    border-radius: var(--radius-md);
    height: auto;
}

/* Details sidebar card */
.cps-event-single__sidebar {
    position: sticky;
    top: 2rem;
}

.cps-event-single__card {
    background: var(--color-off-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
}

.cps-event-single__card-title {
    font-size: var(--font-size-h5, 20px);
    font-weight: 700;
    color: var(--color-primary);
    margin: 0 0 1.25rem;
    padding-bottom: 0.85rem;
    border-bottom: 2px solid var(--color-accent);
}

.cps-event-single__details {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.cps-event-single__detail {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.cps-event-single__detail-icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-circle);
    background: var(--color-primary);
    color: white;
    font-size: 15px;
}

.cps-event-single__detail-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.cps-event-single__detail-label {
    font-size: var(--font-size-xs, 10px);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-accent);
}

.cps-event-single__detail-value {
    font-size: var(--font-size-sm, 14px);
    font-weight: 600;
    color: var(--color-primary);
    line-height: 1.4;
    word-break: break-word;
}

.cps-event-single__detail-value a {
    color: #0357D5;
    text-decoration: none;
    word-break: break-word;
}

.cps-event-single__detail-value a:hover {
    text-decoration: underline;
}

.cps-event-single__detail-sub {
    display: block;
    margin-top: 2px;
    font-size: var(--font-size-xs, 10px);
    font-weight: 500;
    color: var(--color-text-muted);
}

/* Prev / next navigation */
.cps-event-single__nav {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    margin: 2.5rem 0 4rem;
}

.cps-event-single__nav-prev,
.cps-event-single__nav-next {
    flex: 1 1 0;
    min-width: 0;
}

.cps-event-single__nav-next {
    text-align: right;
}

.cps-event-single__nav a {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    max-width: 100%;
    text-decoration: none;
    color: var(--color-primary);
    transition: color 0.2s ease;
}

.cps-event-single__nav-next a {
    align-items: flex-end;
}

.cps-event-single__nav a:hover {
    color: var(--color-accent);
}

.cps-event-single__nav-dir {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: var(--font-size-xs, 10px);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-accent);
}

.cps-event-single__nav-title {
    font-size: var(--font-size-base, 16px);
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

/* Responsive */
@media (max-width: 900px) {
    .cps-event-single__body {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .cps-event-single__sidebar {
        position: static;
    }
}

@media (max-width: 640px) {
    .cps-event-single__hero {
        margin: 2rem 0 2rem;
    }

    .cps-event-single__hero-image {
        aspect-ratio: 16 / 10;
        margin-bottom: 1.5rem;
    }

    .cps-event-single__schedule {
        font-size: var(--font-size-base, 16px);
        width: 100%;
    }

    .cps-event-single__nav {
        flex-direction: column;
        gap: 1rem;
    }

    .cps-event-single__nav-next {
        text-align: left;
    }

    .cps-event-single__nav-next a {
        align-items: flex-start;
    }
}

/* ──────────────────────────────────────────────────────────────────────────
   Site Map  [page-site-map.php]
   ────────────────────────────────────────────────────────────────────────── */
.cps-sitemap__intro {
    font-size: var(--font-size-base, 16px);
    line-height: 1.7;
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
    max-width: 720px;
}

.cps-sitemap__section {
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--color-border);
}

.cps-sitemap__section:first-child {
    padding-top: 0;
}

.cps-sitemap__section:last-child {
    border-bottom: none;
}

.cps-sitemap__heading {
    font-size: var(--font-size-h4, 28px);
    font-weight: 700;
    color: var(--color-primary);
    margin: 0 0 1.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--color-accent);
    display: inline-block;
}

/* Section head with "latest" note */
.cps-sitemap__section-head {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    margin-bottom: 1.75rem;
}

.cps-sitemap__section-head .cps-sitemap__heading {
    margin-bottom: 0;
}

.cps-sitemap__note {
    font-size: var(--font-size-xs, 10px);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-muted);
}

/* Dated list (news / events) */
.cps-sitemap__list {
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
    max-width: 720px;
}

.cps-sitemap__list-item {
    border-top: 1px solid var(--color-border);
}

.cps-sitemap__list-item:last-child {
    border-bottom: 1px solid var(--color-border);
}

.cps-sitemap__list-link {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 0.9rem 0;
    text-decoration: none;
    transition: padding-left 0.2s ease;
}

.cps-sitemap__list-link:hover {
    padding-left: 6px;
}

.cps-sitemap__list-title {
    font-size: var(--font-size-base, 16px);
    font-weight: 600;
    color: var(--color-primary);
    line-height: var(--line-height-tight, 1.2);
    transition: color 0.2s ease;
}

.cps-sitemap__list-link:hover .cps-sitemap__list-title {
    color: #0357D5;
}

.cps-sitemap__list-date {
    flex: 0 0 auto;
    font-size: var(--font-size-xs, 10px);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-accent);
    white-space: nowrap;
}

/* View all button */
.cps-sitemap__view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 24px 8px;
    border-radius: var(--radius-md);
    background: var(--color-primary);
    color: var(--color-white);
    font-size: var(--font-size-sm, 14px);
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, gap 0.2s ease;
    text-transform: uppercase;
}

.cps-sitemap__view-all:hover {
    background: var(--color-accent);
    color: var(--color-primary);
    gap: 12px;
}

/* Navigation columns */
.cps-sitemap__columns {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 2rem;
}

.cps-sitemap__group-title {
    font-size: var(--font-size-h5, 20px);
    font-weight: 700;
    margin: 0 0 0.85rem;
    line-height: var(--line-height-tight, 1.1);
}

.cps-sitemap__group-title a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.cps-sitemap__group-title a:hover {
    color: #0357D5;
}

.cps-sitemap__links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.cps-sitemap__links a {
    font-size: var(--font-size-sm, 14px);
    font-weight: 500;
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.cps-sitemap__links a:hover {
    color: var(--color-accent);
    padding-left: 4px;
}

/* Inline link lists (news / events) */
.cps-sitemap__links--inline {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.6rem 1rem;
}

.cps-sitemap__links--inline li {
    position: relative;
    padding-right: 1rem;
}

.cps-sitemap__links--inline li::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    border-radius: var(--radius-circle, 50%);
    background: var(--color-border);
}

.cps-sitemap__links--inline li:last-child {
    padding-right: 0;
}

.cps-sitemap__links--inline li:last-child::after {
    display: none;
}

/* All pages list */
.cps-sitemap__pages {
    list-style: none;
    margin: 0;
    padding: 0;
    columns: 3;
    column-gap: 2.5rem;
}

.cps-sitemap__page {
    break-inside: avoid;
    margin-bottom: 0.7rem;
}

.cps-sitemap__page a {
    font-size: var(--font-size-sm, 14px);
    font-weight: 500;
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.cps-sitemap__page a:hover {
    color: var(--color-accent);
}

.cps-sitemap__page--depth-1 { padding-left: 1rem; }
.cps-sitemap__page--depth-2 { padding-left: 2rem; }
.cps-sitemap__page--depth-3 { padding-left: 3rem; }

@media (max-width: 900px) {
    .cps-sitemap__pages {
        columns: 2;
    }
}

@media (max-width: 600px) {
    .cps-sitemap__pages {
        columns: 1;
    }

    .cps-sitemap__heading {
        font-size: var(--font-size-h5, 20px);
    }
}
