:root {
  --cpwl-primary: #2563eb;
  --cpwl-secondary: #0f172a;
  --cpwl-accent: #f59e0b;
  --cpwl-success: #16a34a;
  --cpwl-danger: #dc2626;
  --cpwl-bg: #f8fafc;
  --cpwl-surface: #ffffff;
  --cpwl-text: #0f172a;
  --cpwl-muted: #64748b;
  --cpwl-border: #e2e8f0;
  --cpwl-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --cpwl-font-scale: 100%;
  --cpwl-radius: 16px;
  --cpwl-container: 1200px;
  --cpwl-shadow: 0 18px 48px rgba(15, 23, 42, .1);
  --cpwl-shadow-soft: 0 8px 24px rgba(15, 23, 42, .06);
}

* { box-sizing: border-box; }
html { font-size: var(--cpwl-font-scale); scroll-behavior: smooth; }
body.cpwl-theme { margin: 0; min-width: 320px; background: var(--cpwl-bg); color: var(--cpwl-text); font-family: var(--cpwl-font); line-height: 1.58; }
body.cpwl-theme :where(h1, h2, h3, p) { margin-top: 0; }
body.cpwl-theme :where(a) { color: var(--cpwl-primary); }
body.cpwl-theme :where(img) { max-width: 100%; height: auto; }
.cpwl-container { width: min(calc(100% - 40px), var(--cpwl-container)); margin-inline: auto; }
.cpwl-main { min-height: 62vh; }
.screen-reader-text { clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; }

.cpwl-topbar { background: var(--cpwl-secondary); color: #fff; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; }
.cpwl-topbar .cpwl-container { display: flex; align-items: center; min-height: 34px; gap: .6rem; }
.cpwl-status-dot { width: .55rem; height: .55rem; border-radius: 999px; background: var(--cpwl-success); box-shadow: 0 0 0 4px color-mix(in srgb, var(--cpwl-success) 20%, transparent); }
.cpwl-header { position: relative; z-index: 30; background: color-mix(in srgb, var(--cpwl-surface) 94%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--cpwl-border) 80%, transparent); backdrop-filter: blur(14px); }
.cpwl-header-sticky .cpwl-header { position: sticky; top: 0; }
.cpwl-header__inner { display: flex; align-items: center; min-height: 80px; gap: 1.5rem; }
.cpwl-brand { display: inline-flex; align-items: center; min-width: 0; gap: .8rem; text-decoration: none; color: var(--cpwl-text) !important; }
.cpwl-brand img { width: 42px; height: 42px; object-fit: contain; flex: none; }
.cpwl-brand__copy { display: grid; min-width: 0; line-height: 1.15; }
.cpwl-brand__copy strong { overflow: hidden; color: var(--cpwl-secondary); font-size: .98rem; text-overflow: ellipsis; white-space: nowrap; }
.cpwl-brand__copy small { overflow: hidden; max-width: 315px; color: var(--cpwl-muted); font-size: .73rem; text-overflow: ellipsis; white-space: nowrap; }
.cpwl-navigation { margin-left: auto; }
.cpwl-menu, .cpwl-footer-menu { display: flex; align-items: center; gap: .2rem; margin: 0; padding: 0; list-style: none; }
.cpwl-menu li { position: relative; }
.cpwl-menu a { display: block; padding: .65rem .75rem; border-radius: calc(var(--cpwl-radius) * .55); color: var(--cpwl-text); font-weight: 650; font-size: .9rem; text-decoration: none; }
.cpwl-menu a:hover, .cpwl-menu .current-menu-item > a, .cpwl-menu .current_page_item > a { background: color-mix(in srgb, var(--cpwl-primary) 10%, transparent); color: var(--cpwl-primary); }
.cpwl-menu .sub-menu { position: absolute; top: calc(100% + .5rem); right: 0; display: none; width: 220px; margin: 0; padding: .5rem; border: 1px solid var(--cpwl-border); border-radius: var(--cpwl-radius); background: var(--cpwl-surface); box-shadow: var(--cpwl-shadow-soft); list-style: none; }
.cpwl-menu li:hover > .sub-menu, .cpwl-menu li:focus-within > .sub-menu { display: block; }
.cpwl-menu-toggle { display: none; width: 44px; height: 44px; margin-left: auto; padding: .72rem; border: 1px solid var(--cpwl-border); border-radius: calc(var(--cpwl-radius) * .55); background: var(--cpwl-surface); color: var(--cpwl-text); cursor: pointer; }
.cpwl-menu-toggle span:not(.screen-reader-text) { display: block; width: 100%; height: 2px; margin: 4px 0; border-radius: 4px; background: currentColor; }

.cpwl-hero { position: relative; overflow: hidden; padding: clamp(4.5rem, 9vw, 8.5rem) 0 clamp(4.5rem, 7vw, 6rem); background: linear-gradient(135deg, var(--cpwl-secondary) 0%, color-mix(in srgb, var(--cpwl-secondary) 74%, var(--cpwl-primary)) 70%, var(--cpwl-primary) 140%); color: #fff; }
.cpwl-hero::before, .cpwl-hero::after { position: absolute; border-radius: 999px; content: ""; filter: blur(1px); pointer-events: none; }
.cpwl-hero::before { top: -15rem; right: -10rem; width: 36rem; height: 36rem; background: color-mix(in srgb, var(--cpwl-primary) 54%, transparent); opacity: .7; }
.cpwl-hero::after { bottom: -19rem; left: -7rem; width: 34rem; height: 34rem; border: 1px solid color-mix(in srgb, #fff 25%, transparent); }
.cpwl-hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.28fr) minmax(270px, .72fr); align-items: center; gap: clamp(2rem, 6vw, 6.2rem); }
.cpwl-hero__content { max-width: 760px; }
.cpwl-eyebrow { display: inline-flex; align-items: center; gap: .5rem; margin-bottom: .9rem; color: var(--cpwl-primary); font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.cpwl-hero .cpwl-eyebrow { color: color-mix(in srgb, #fff 80%, var(--cpwl-accent)); }
.cpwl-hero h1 { max-width: 780px; margin-bottom: 1.1rem; color: #fff; font-size: clamp(2.35rem, 5vw, 4.4rem); letter-spacing: -.055em; line-height: 1.03; }
.cpwl-hero p { max-width: 650px; margin-bottom: 1.7rem; color: color-mix(in srgb, #fff 78%, transparent); font-size: clamp(1rem, 1.75vw, 1.22rem); }
.cpwl-hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.cpwl-button { display: inline-flex; align-items: center; justify-content: center; min-height: 45px; padding: .7rem 1rem; border: 1px solid transparent; border-radius: calc(var(--cpwl-radius) * .65); font-size: .92rem; font-weight: 750; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.cpwl-button:hover { transform: translateY(-1px); }
.cpwl-button--primary { background: var(--cpwl-primary); color: #fff !important; box-shadow: 0 10px 25px color-mix(in srgb, var(--cpwl-primary) 35%, transparent); }
.cpwl-hero .cpwl-button--primary { background: #fff; color: var(--cpwl-secondary) !important; }
.cpwl-button--ghost { border-color: color-mix(in srgb, #fff 45%, transparent); color: #fff !important; background: color-mix(in srgb, #fff 8%, transparent); }
.cpwl-hero__panel { display: grid; gap: 1px; overflow: hidden; border: 1px solid color-mix(in srgb, #fff 18%, transparent); border-radius: calc(var(--cpwl-radius) + 4px); background: color-mix(in srgb, #fff 9%, transparent); box-shadow: 0 24px 70px rgba(0, 0, 0, .18); backdrop-filter: blur(10px); }
.cpwl-hero__panel div { display: grid; gap: .25rem; padding: 1.1rem 1.15rem; background: color-mix(in srgb, var(--cpwl-secondary) 26%, transparent); }
.cpwl-hero__panel strong { color: #fff; font-size: 1rem; }
.cpwl-hero__panel span { color: color-mix(in srgb, #fff 68%, transparent); font-size: .86rem; }

.cpwl-section { padding: clamp(3.7rem, 7vw, 6.6rem) 0; }
.cpwl-section--soft { background: color-mix(in srgb, var(--cpwl-primary) 4%, var(--cpwl-bg)); border-block: 1px solid color-mix(in srgb, var(--cpwl-border) 70%, transparent); }
.cpwl-intro { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1fr); gap: clamp(2rem, 8vw, 9rem); align-items: start; }
.cpwl-section h2 { margin-bottom: .65rem; color: var(--cpwl-secondary); font-size: clamp(1.85rem, 3.2vw, 2.9rem); letter-spacing: -.04em; line-height: 1.08; }
.cpwl-intro p, .cpwl-section-heading p { max-width: 720px; color: var(--cpwl-muted); font-size: 1.05rem; }
.cpwl-section-heading { max-width: 720px; margin-bottom: 2rem; }
.cpwl-section-heading h2 { margin-bottom: .4rem; }

.cpwl-module-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.cpwl-module-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .95rem; min-height: 125px; padding: 1.1rem; border: 1px solid var(--cpwl-border); border-radius: var(--cpwl-radius); background: var(--cpwl-surface); box-shadow: 0 1px 0 rgba(15,23,42,.02); color: var(--cpwl-text) !important; text-decoration: none; transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.cpwl-module-card:hover { border-color: color-mix(in srgb, var(--cpwl-primary) 50%, var(--cpwl-border)); box-shadow: var(--cpwl-shadow-soft); transform: translateY(-2px); }
.cpwl-module-card__icon { display: inline-grid; width: 43px; height: 43px; place-items: center; border-radius: calc(var(--cpwl-radius) * .62); background: color-mix(in srgb, var(--cpwl-primary) 11%, transparent); color: var(--cpwl-primary); }
.cpwl-module-card__body { display: grid; gap: .25rem; min-width: 0; }
.cpwl-module-card__body strong { color: var(--cpwl-secondary); font-size: .98rem; }
.cpwl-module-card__body small { color: var(--cpwl-muted); font-size: .79rem; line-height: 1.38; }
.cpwl-module-card__arrow { color: var(--cpwl-primary); font-size: 1.2rem; }
.cpwl-module-card--pending { grid-template-columns: auto minmax(0, 1fr); opacity: .88; }
.cpwl-module-card__state { grid-column: 2; color: var(--cpwl-muted); font-size: .76rem; }

.cpwl-news-layout { display: grid; gap: .4rem; }
.cpwl-post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.cpwl-post-card { min-height: 180px; padding: 1.25rem; border: 1px solid var(--cpwl-border); border-radius: var(--cpwl-radius); background: var(--cpwl-surface); box-shadow: 0 1px 0 rgba(15,23,42,.015); }
.cpwl-post-card > span { display: block; margin-bottom: .55rem; color: var(--cpwl-muted); font-size: .78rem; font-weight: 700; }
.cpwl-post-card h2, .cpwl-post-card h3 { margin-bottom: .5rem; color: var(--cpwl-secondary); font-size: 1.1rem; line-height: 1.25; }
.cpwl-post-card h2 a, .cpwl-post-card h3 a { color: inherit; text-decoration: none; }
.cpwl-post-card h2 a:hover, .cpwl-post-card h3 a:hover { color: var(--cpwl-primary); }
.cpwl-post-card p { margin-bottom: 0; color: var(--cpwl-muted); font-size: .9rem; }
.cpwl-empty-state { display: grid; justify-items: start; gap: .55rem; padding: 2rem; border: 1px dashed color-mix(in srgb, var(--cpwl-primary) 35%, var(--cpwl-border)); border-radius: var(--cpwl-radius); background: color-mix(in srgb, var(--cpwl-primary) 3%, var(--cpwl-surface)); color: var(--cpwl-muted); text-align: left; }
.cpwl-empty-state strong { color: var(--cpwl-secondary); font-size: 1.1rem; }
.cpwl-empty-state p { margin-bottom: .3rem; }

.cpwl-entry { max-width: min(820px, calc(100% - 40px)); }
.cpwl-entry__header { margin-bottom: 2rem; }
.cpwl-entry__header h1 { margin-bottom: 0; color: var(--cpwl-secondary); font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.06; letter-spacing: -.045em; }
.cpwl-entry__image { margin-bottom: 2rem; overflow: hidden; border-radius: var(--cpwl-radius); }
.cpwl-entry__image img { width: 100%; }
.cpwl-entry__content { color: var(--cpwl-text); font-size: 1.02rem; }
.cpwl-entry__content > * + * { margin-top: 1.25em; }
.cpwl-entry__content :where(h2, h3, h4) { margin-top: 1.7em; color: var(--cpwl-secondary); line-height: 1.2; }
.cpwl-entry__content :where(blockquote) { margin-inline: 0; padding: 1rem 1.2rem; border-left: 4px solid var(--cpwl-primary); border-radius: 0 var(--cpwl-radius) var(--cpwl-radius) 0; background: color-mix(in srgb, var(--cpwl-primary) 6%, var(--cpwl-surface)); color: var(--cpwl-muted); }
.cpwl-entry__content :where(table) { width: 100%; border-collapse: collapse; }
.cpwl-entry__content :where(th, td) { padding: .7rem; border: 1px solid var(--cpwl-border); text-align: left; }
.cpwl-entry__content :where(.wp-block-button__link) { border-radius: calc(var(--cpwl-radius) * .65); background: var(--cpwl-primary); }
.wp-block-separator { border-color: var(--cpwl-border); }

.cpwl-shortcode-dashboard { padding: 1.5rem; border: 1px solid var(--cpwl-border); border-radius: var(--cpwl-radius); background: var(--cpwl-surface); }
.cpwl-shortcode-dashboard > header { margin-bottom: 1.4rem; }
.cpwl-shortcode-dashboard h2 { margin-bottom: .3rem; color: var(--cpwl-secondary); }
.cpwl-shortcode-dashboard p { margin-bottom: 0; color: var(--cpwl-muted); }
.cpwl-directory-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.cpwl-person-card { display: flex; align-items: center; gap: .9rem; padding: 1rem; border: 1px solid var(--cpwl-border); border-radius: var(--cpwl-radius); background: var(--cpwl-surface); }
.cpwl-person-card img { width: 52px; height: 52px; flex: none; border-radius: 999px; object-fit: cover; }
.cpwl-person-card div { min-width: 0; }
.cpwl-person-card h3 { overflow: hidden; margin-bottom: .05rem; color: var(--cpwl-secondary); font-size: .96rem; text-overflow: ellipsis; white-space: nowrap; }
.cpwl-person-card span { color: var(--cpwl-primary); font-size: .78rem; font-weight: 700; }
.cpwl-person-card p { display: -webkit-box; overflow: hidden; margin: .35rem 0 0; color: var(--cpwl-muted); font-size: .78rem; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }

.cpwl-footer { background: var(--cpwl-secondary); color: color-mix(in srgb, #fff 74%, transparent); }
.cpwl-footer__grid { display: grid; grid-template-columns: 1.25fr repeat(3, minmax(0, 1fr)); gap: 2rem; padding-block: 3.2rem 2.2rem; }
.cpwl-footer__brand img { width: 48px; height: 48px; margin-bottom: .75rem; filter: brightness(0) invert(1); }
.cpwl-footer h2, .cpwl-footer .cpwl-widget__title { margin-bottom: .65rem; color: #fff; font-size: 1rem; }
.cpwl-footer p, .cpwl-footer li { margin: 0; color: color-mix(in srgb, #fff 64%, transparent); font-size: .88rem; }
.cpwl-footer__widgets > * + * { margin-top: 1rem; }
.cpwl-footer__widgets ul { margin: 0; padding-left: 1rem; }
.cpwl-footer__nav { align-self: start; }
.cpwl-footer-menu { display: grid; align-items: start; gap: .5rem; }
.cpwl-footer-menu a { color: color-mix(in srgb, #fff 77%, transparent); font-size: .88rem; text-decoration: none; }
.cpwl-footer-menu a:hover { color: #fff; }
.cpwl-footer__bottom { display: flex; justify-content: space-between; gap: 1rem; padding-block: 1rem; border-top: 1px solid color-mix(in srgb, #fff 12%, transparent); color: color-mix(in srgb, #fff 51%, transparent); font-size: .75rem; }

body.cpwl-theme :focus-visible { outline: 3px solid var(--cpwl-accent); outline-offset: 3px; }
@media (max-width: 960px) {
  .cpwl-module-grid, .cpwl-post-grid, .cpwl-directory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cpwl-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cpwl-hero__grid, .cpwl-intro { grid-template-columns: 1fr; }
  .cpwl-hero__panel { max-width: 620px; }
}
@media (max-width: 760px) {
  .cpwl-container { width: min(calc(100% - 30px), var(--cpwl-container)); }
  .cpwl-header__inner { min-height: 70px; }
  .cpwl-brand__copy small { max-width: 210px; }
  .cpwl-menu-toggle { display: block; }
  .cpwl-navigation { position: absolute; top: calc(100% + 1px); right: 0; left: 0; display: none; margin: 0; padding: .8rem 15px 1rem; border-bottom: 1px solid var(--cpwl-border); background: var(--cpwl-surface); box-shadow: var(--cpwl-shadow-soft); }
  .cpwl-navigation.is-open { display: block; }
  .cpwl-menu { display: grid; gap: .15rem; width: min(100%, var(--cpwl-container)); margin-inline: auto; }
  .cpwl-menu a { padding: .8rem; }
  .cpwl-menu .sub-menu { position: static; display: block; width: auto; margin-left: 1rem; border: 0; box-shadow: none; }
  .cpwl-module-grid, .cpwl-post-grid, .cpwl-directory-grid { grid-template-columns: 1fr; }
  .cpwl-footer__grid { grid-template-columns: 1fr; gap: 1.4rem; padding-block: 2.5rem 1.7rem; }
  .cpwl-footer__bottom { display: grid; }
  .cpwl-section { padding: 3.6rem 0; }
  .cpwl-hero { padding: 4.2rem 0; }
  .cpwl-hero h1 { font-size: clamp(2.18rem, 11vw, 3.25rem); }
}
@media (max-width: 440px) {
  .cpwl-brand__copy small { display: none; }
  .cpwl-brand img { width: 38px; height: 38px; }
  .cpwl-module-card { min-height: 105px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
