﻿@font-face {
    font-family: "Cairo";
    src: url("/static/fonts/Cairo-Variable.ttf") format("truetype");
    font-weight: 200 900;
    font-style: normal;
    font-display: swap;
}
:root {
    --cx-ink: #102820;
    --cx-forest: #003f33;
    --cx-deep: #002c24;
    --cx-green: #155743;
    --cx-mint: #eef7ef;
    --cx-paper: #fbfbf5;
    --cx-white: #ffffff;
    --cx-line: rgba(16, 40, 32, 0.12);
    --cx-line-strong: rgba(16, 40, 32, 0.18);
    --cx-muted: #61736d;
    --cx-soft: #f5f8f1;
    --cx-orange: #f59e0b;
    --cx-gold: #d8a13b;
    --cx-shadow: 0 22px 70px rgba(0, 45, 35, 0.10);
    --cx-soft-shadow: 0 14px 38px rgba(0, 45, 35, 0.07);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.cx-page {
    margin: 0;
    min-height: 100vh;
    color: var(--cx-ink);
    font-family: "Cairo", "Segoe UI", Tahoma, Arial, sans-serif;
    font-weight: 350;
    letter-spacing: 0;
    background:
        radial-gradient(circle at 9% 2%, rgba(245, 158, 11, 0.10), transparent 27%),
        radial-gradient(circle at 88% 8%, rgba(0, 63, 51, 0.09), transparent 24%),
        linear-gradient(180deg, #fbfbf5 0%, #f7faf3 42%, #ffffff 100%);
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.cx-shell { width: min(1220px, calc(100% - 44px)); margin: 0 auto; }
.cx-topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(251, 251, 245, 0.91);
    border-bottom: 1px solid rgba(16, 40, 32, 0.10);
    backdrop-filter: blur(20px);
}
.cx-topbar__inner {
    min-height: 82px;
    display: grid;
    grid-template-columns: 255px minmax(0, 1fr) auto;
    align-items: center;
    gap: 22px;
}
.cx-brand {
    min-height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 235px;
    padding: 10px 20px;
    border-radius: 18px;
    background: linear-gradient(135deg, #002c24, #064636);
    box-shadow: 0 18px 44px rgba(0, 45, 35, 0.20);
}
.cx-brand img { width: 168px; height: auto; display: block; filter: drop-shadow(0 4px 10px rgba(0,0,0,0.14)); }
.cx-nav {
    justify-self: center;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px;
    border: 1px solid rgba(16, 40, 32, 0.10);
    border-radius: 999px;
    background: rgba(255,255,255,0.72);
    box-shadow: 0 12px 34px rgba(0, 45, 35, 0.055);
}
.cx-nav a {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border-radius: 999px;
    color: #233d34;
    font-size: 0.94rem;
    font-weight: 420;
    white-space: nowrap;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}
.cx-nav a:hover { background: rgba(0, 63, 51, 0.07); transform: translateY(-1px); }
.cx-nav a.is-active { background: var(--cx-deep); color: #fff; box-shadow: 0 10px 24px rgba(0, 45, 35, 0.18); }
.cx-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.cx-btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 17px;
    border-radius: 14px;
    border: 1px solid rgba(16, 40, 32, 0.14);
    background: rgba(255,255,255,0.76);
    color: var(--cx-ink);
    font-weight: 520;
    font-size: 0.93rem;
    cursor: pointer;
    white-space: nowrap;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.cx-btn:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(0, 45, 35, 0.08); }
.cx-btn--dark { background: var(--cx-deep); color: #fff; border-color: var(--cx-deep); box-shadow: 0 16px 34px rgba(0, 45, 35, 0.18); }
.cx-btn--light { background: #fff; color: var(--cx-ink); border-color: rgba(245, 158, 11, 0.38); }
.cx-btn--line { background: transparent; color: var(--cx-ink); border-color: rgba(16, 40, 32, 0.20); }
.cx-btn--text { border: 0; background: transparent; padding-inline: 6px; min-height: 34px; color: var(--cx-green); }
.cx-hero { padding: 64px 0 36px; position: relative; overflow: hidden; }
.cx-hero:before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 360px;
    background-image: linear-gradient(rgba(0,63,51,0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(0,63,51,0.06) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: linear-gradient(180deg, rgba(0,0,0,0.45), transparent);
    pointer-events: none;
}
.cx-hero > * { position: relative; }
.cx-hero__grid { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.72fr); gap: 30px; align-items: stretch; }
.cx-eyebrow { color: var(--cx-orange); text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.73rem; font-weight: 650; }
.cx-title { margin: 14px 0 18px; font-size: clamp(2.45rem, 5.2vw, 5.35rem); line-height: 0.98; letter-spacing: 0; font-weight: 680; color: var(--cx-ink); max-width: 880px; }
.cx-text { color: var(--cx-muted); font-size: 1.07rem; line-height: 1.9; max-width: 760px; font-weight: 350; }
.cx-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.cx-hero-panel,
.cx-card,
.cx-section,
.cx-feed-card,
.cx-sidebar-card,
.cx-article,
.cx-program {
    background: rgba(255,255,255,0.82);
    border: 1px solid var(--cx-line);
    border-radius: 22px;
    box-shadow: var(--cx-soft-shadow);
}
.cx-hero-panel { padding: 24px; position: relative; overflow: hidden; min-height: 100%; }
.cx-hero-panel:before { content: ""; position: absolute; inset: 0; background: linear-gradient(145deg, rgba(0,63,51,0.055), rgba(245,158,11,0.11)); pointer-events: none; }
.cx-hero-panel:after { content: ""; position: absolute; width: 170px; height: 170px; right: -58px; bottom: -58px; border: 1px solid rgba(0,63,51,0.18); border-radius: 50%; }
.cx-hero-panel > * { position: relative; }
.cx-panel-title { font-size: 1.18rem; font-weight: 650; margin: 0 0 18px; }
.cx-metric-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cx-metric { padding: 17px; background: rgba(255,255,255,0.84); border: 1px solid var(--cx-line); border-radius: 16px; }
.cx-metric span { display: block; color: var(--cx-muted); font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 560; }
.cx-metric strong { display: block; margin-top: 9px; font-size: 1.38rem; font-weight: 650; color: var(--cx-forest); overflow-wrap: anywhere; }
.cx-section { padding: 30px; margin: 28px auto; box-shadow: var(--cx-soft-shadow); }
.cx-section__head { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: 24px; }
.cx-section__head h2 { margin: 9px 0 0; font-size: clamp(1.7rem, 3vw, 2.7rem); line-height: 1.12; font-weight: 650; letter-spacing: 0; }
.cx-section__head p { color: var(--cx-muted); line-height: 1.85; max-width: 540px; margin: 0; font-weight: 340; }
.cx-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cx-grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.cx-card { padding: 22px; box-shadow: none; transition: transform .18s ease, border-color .18s ease; }
.cx-card:hover { transform: translateY(-3px); border-color: rgba(245, 158, 11, 0.36); }
.cx-card i { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 15px; background: linear-gradient(135deg, var(--cx-deep), #0d5a48); color: #fff; font-size: 1.25rem; margin-bottom: 18px; }
.cx-card h3 { margin: 0 0 10px; font-size: 1.08rem; font-weight: 650; }
.cx-card p { margin: 0; color: var(--cx-muted); line-height: 1.75; font-weight: 330; }
.cx-program { display: grid; grid-template-columns: 58px minmax(0,1fr) 176px; gap: 18px; padding: 20px; margin-bottom: 15px; box-shadow: none; }
.cx-program__icon { width: 58px; height: 58px; border-radius: 19px; background: linear-gradient(135deg, #edf8ef, #fff4df); color: var(--cx-forest); display: flex; align-items: center; justify-content: center; font-size: 1.45rem; }
.cx-program h3 { margin: 8px 0 9px; font-size: 1.32rem; font-weight: 650; }
.cx-program p { margin: 0; color: var(--cx-muted); line-height: 1.78; font-weight: 330; }
.cx-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.cx-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 10px; border-radius: 999px; background: var(--cx-mint); color: var(--cx-forest); font-size: 0.81rem; font-weight: 520; border: 1px solid rgba(16,40,32,0.06); }
.cx-preview { margin-top: 16px; padding: 14px; border-radius: 16px; background: #f8fbf5; border: 1px solid rgba(16,40,32,0.09); }
.cx-preview__course { padding-top: 10px; margin-top: 10px; border-top: 1px solid rgba(16,40,32,0.09); }
.cx-preview__course:first-of-type { border-top: 0; margin-top: 0; padding-top: 0; }
.cx-preview b { display: block; margin-bottom: 8px; font-weight: 620; }
.cx-preview span { display: inline-flex; margin: 4px 8px 4px 0; color: var(--cx-muted); font-size: 0.9rem; }
.cx-progress { height: 8px; background: #edf2e9; border-radius: 99px; overflow: hidden; margin-top: 16px; }
.cx-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--cx-orange), #0d5a48); }
.cx-empty { padding: 22px; border: 1px dashed rgba(16,40,32,0.20); border-radius: 18px; color: var(--cx-muted); background: rgba(255,255,255,0.72); line-height: 1.7; }
.cx-knowledge-layout { display: grid; grid-template-columns: 282px minmax(0,1fr); gap: 20px; align-items: start; }
.cx-sticky { position: sticky; top: 112px; }
.cx-list { display: grid; gap: 14px; }
.cx-sidebar-card { padding: 20px; box-shadow: none; }
.cx-article { padding: 24px; box-shadow: none; }
.cx-article h3 { margin: 10px 0 10px; font-size: 1.32rem; font-weight: 650; }
.cx-rich { color: var(--cx-muted); line-height: 1.85; max-height: 154px; overflow: hidden; position: relative; font-weight: 330; }
.cx-rich:after { content: ""; position: absolute; inset: auto 0 0; height: 42px; background: linear-gradient(transparent, #fff); }
.cx-social-layout { display: grid; grid-template-columns: 258px minmax(0,1fr) 304px; gap: 18px; align-items: start; padding-bottom: 40px; }
.cx-profile-mini { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.cx-avatar { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, var(--cx-deep), #0e5a48); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 650; flex: none; }
.cx-feed-composer { padding: 16px; margin-bottom: 14px; background: #fff; border: 1px solid var(--cx-line); border-radius: 22px; box-shadow: var(--cx-soft-shadow); }
.cx-feed-composer__row { display: flex; gap: 12px; align-items: center; }
.cx-composer-input { flex: 1; min-height: 46px; border: 1px solid var(--cx-line); border-radius: 999px; display: flex; align-items: center; padding: 0 18px; color: var(--cx-muted); background: #fbfbf5; font-weight: 340; }
.cx-feed-card { padding: 0; overflow: hidden; box-shadow: var(--cx-soft-shadow); margin-bottom: 14px; background: #fff; }
.cx-feed-card__head { display: flex; gap: 12px; padding: 18px 18px 8px; align-items: flex-start; }
.cx-feed-card__author { font-weight: 620; }
.cx-feed-card__meta { color: var(--cx-muted); font-size: 0.86rem; margin-top: 3px; font-weight: 330; }
.cx-feed-card__body { padding: 8px 18px 18px; }
.cx-feed-card__body h3 { margin: 10px 0 10px; font-size: 1.24rem; line-height: 1.35; font-weight: 650; }
.cx-feed-card__body p { margin: 0; color: var(--cx-muted); line-height: 1.82; font-weight: 330; }
.cx-feed-card__actions { border-top: 1px solid var(--cx-line); display: flex; justify-content: space-between; gap: 12px; padding: 12px 18px; background: #fcfdf8; }
.cx-filter form { display: grid; gap: 12px; }
.cx-input, .cx-select { width: 100%; min-height: 44px; border: 1px solid var(--cx-line); border-radius: 13px; background: #fff; color: var(--cx-ink); padding: 0 12px; font: inherit; font-weight: 340; }
.cx-label { display: block; margin-bottom: 6px; color: var(--cx-muted); font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.10em; }
.cx-footer { padding: 34px 0 46px; color: var(--cx-muted); font-weight: 330; }
.admin-preview-back { position: fixed; left: 18px; bottom: 18px; z-index: 60; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px; background: var(--cx-deep); color: #fff; box-shadow: var(--cx-shadow); font-size: .9rem; }
@media (max-width: 1120px) {
    .cx-topbar__inner { grid-template-columns: 220px 1fr auto; }
    .cx-nav a { padding-inline: 12px; }
    .cx-social-layout { grid-template-columns: 1fr; }
}
@media (max-width: 980px) {
    .cx-topbar__inner { display: flex; flex-wrap: wrap; min-height: auto; padding: 14px 0; }
    .cx-brand { width: 210px; }
    .cx-brand img { width: 150px; }
    .cx-nav { order: 3; width: 100%; justify-content: flex-start; overflow-x: auto; }
    .cx-hero__grid, .cx-knowledge-layout { grid-template-columns: 1fr; }
    .cx-sticky { position: static; }
    .cx-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
    .cx-shell { width: min(100% - 24px, 1220px); }
    .cx-actions .cx-btn--line { display: none; }
    .cx-nav { border-radius: 18px; padding: 5px; }
    .cx-nav a { min-height: 38px; font-size: .86rem; }
    .cx-hero { padding-top: 36px; }
    .cx-title { font-size: clamp(2.05rem, 11vw, 3.25rem); }
    .cx-section { padding: 20px; }
    .cx-section__head { display: block; }
    .cx-grid-3, .cx-grid-4, .cx-metric-grid { grid-template-columns: 1fr; }
    .cx-program { grid-template-columns: 1fr; }
    .cx-program__actions { display: flex; flex-wrap: wrap; gap: 10px; }
    .cx-feed-card__actions { flex-direction: column; }
}

/* Compatibility layer for older Academy and Community subpages */
.academy-page,
.community-profile-page,
.community-post-page {
    font-family: "Cairo", "Segoe UI", Tahoma, Arial, sans-serif !important;
    font-weight: 350;
}
.academy-topbar,
.post-topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(251, 251, 245, 0.93) !important;
    border-bottom: 1px solid rgba(16, 40, 32, 0.10) !important;
    backdrop-filter: blur(20px);
}
.academy-topbar__inner,
.post-topbar__inner {
    width: min(1220px, calc(100% - 44px)) !important;
    min-height: 82px !important;
    margin: 0 auto !important;
    display: grid !important;
    grid-template-columns: 255px minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 22px !important;
}
.academy-brand,
.post-brand {
    min-height: 58px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 235px !important;
    padding: 10px 20px !important;
    border-radius: 18px !important;
    background: linear-gradient(135deg, #002c24, #064636) !important;
    box-shadow: 0 18px 44px rgba(0,45,35,.20) !important;
    color: #fff !important;
}
.academy-brand__logo,
.post-brand__logo,
.academy-brand img,
.post-brand img { width: 168px !important; max-height: 42px !important; object-fit: contain !important; }
.academy-brand span,
.post-brand span { display: none !important; }
.academy-nav,
.post-nav {
    justify-self: center !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    padding: 6px !important;
    border: 1px solid rgba(16,40,32,.10) !important;
    border-radius: 999px !important;
    background: rgba(255,255,255,.72) !important;
    box-shadow: 0 12px 34px rgba(0,45,35,.055) !important;
}
.academy-nav a,
.post-nav a {
    min-height: 42px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 16px !important;
    border-radius: 999px !important;
    color: #233d34 !important;
    font-size: .94rem !important;
    font-weight: 420 !important;
    white-space: nowrap !important;
}
.academy-nav a:hover,
.post-nav a:hover { background: rgba(0,63,51,.07) !important; }
.academy-actions,
.post-actions { display: flex !important; align-items: center !important; justify-content: flex-end !important; gap: 10px !important; }
.academy-button,
.post-button,
.post-action,
.community-action {
    min-height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 0 17px !important;
    border-radius: 14px !important;
    font-weight: 520 !important;
    font-size: .93rem !important;
}
.academy-button--dark,
.post-button--dark,
.post-action--dark,
.community-action--dark { background: #002c24 !important; color: #fff !important; border-color: #002c24 !important; }
@media (max-width: 980px) {
    .academy-topbar__inner,
    .post-topbar__inner { display: flex !important; flex-wrap: wrap !important; min-height: auto !important; padding: 14px 0 !important; }
    .academy-nav,
    .post-nav { order: 3; width: 100%; justify-content: flex-start !important; overflow-x: auto; }
}

/* Compatibility for legacy public portal headers */
.cp-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(251,251,245,.93) !important;
    border-bottom: 1px solid rgba(16,40,32,.10) !important;
    backdrop-filter: blur(20px);
}
.cp-header__inner {
    width: min(1220px, calc(100% - 44px)) !important;
    min-height: 82px !important;
    margin: 0 auto !important;
    display: grid !important;
    grid-template-columns: 255px minmax(0,1fr) auto !important;
    align-items: center !important;
    gap: 22px !important;
}
.cp-brand {
    min-height: 58px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 235px !important;
    padding: 10px 20px !important;
    border-radius: 18px !important;
    background: linear-gradient(135deg,#002c24,#064636) !important;
    color: #fff !important;
    box-shadow: 0 18px 44px rgba(0,45,35,.20) !important;
}
.cp-brand__logo { width: 168px !important; max-height: 42px !important; object-fit: contain !important; }
.cp-brand > div { display: none !important; }
.cp-nav {
    justify-self: center !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    padding: 6px !important;
    border: 1px solid rgba(16,40,32,.10) !important;
    border-radius: 999px !important;
    background: rgba(255,255,255,.72) !important;
    box-shadow: 0 12px 34px rgba(0,45,35,.055) !important;
}
.cp-nav__link,
.cp-nav a {
    min-height: 42px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 16px !important;
    border-radius: 999px !important;
    color: #233d34 !important;
    font-size: .94rem !important;
    font-weight: 420 !important;
    white-space: nowrap !important;
}
.cp-nav__link.is-active,
.cp-nav a.is-active { background: #002c24 !important; color: #fff !important; }
.cp-header__actions { display: flex !important; align-items: center !important; justify-content: flex-end !important; gap: 10px !important; }
.cp-button { font-family: "Cairo", "Segoe UI", Tahoma, Arial, sans-serif !important; font-weight: 520 !important; border-radius: 14px !important; }
@media (max-width: 980px) {
    .cp-header__inner { display: flex !important; flex-wrap: wrap !important; min-height: auto !important; padding: 14px 0 !important; }
    .cp-nav { order: 3; width: 100%; justify-content: flex-start !important; overflow-x: auto; }
}

/* No-italic override (2026-07-24): see cynapse_ui_governance.css for full
   rationale. Forced off here too in case this page loads without the
   shared governance stylesheet. */
html, body, *, *::before, *::after { font-style: normal !important; }

