/* ===================== Base ===================== */
.cm-archive-wrap, .cm-single-wrap {
    /* Blue -> green theme (matches the site's brand gradient) */
    --cm-blue: #2F8FE0;
    --cm-blue-dark: #135FA6;
    --cm-blue-50: #EAF5FF;
    --cm-green: #43C46F;
    --cm-green-dark: #1E9A50;
    --cm-green-50: #EEFBEE;
    --cm-gradient-soft: linear-gradient(120deg, #DCEFFF 0%, #E7FBE0 100%);
    --cm-gradient-vivid: linear-gradient(120deg, #2F8FE0 0%, #43C46F 100%);
    --cm-gradient-pastel: linear-gradient(120deg, #9CD1FF 0%, #D9FFC4 100%);

    /* Back-compat aliases so nothing else in this file has to change meaning */
    --cm-primary: var(--cm-blue);
    --cm-primary-dark: var(--cm-blue-dark);
    --cm-accent: var(--cm-green);

    --cm-ink: #16202B;
    --cm-muted: #5B6B76;
    --cm-border: #DCEEF2;
    --cm-bg-soft: #F1F9F6;

    max-width: 1180px;
    margin: 0 auto;
    padding: 48px 20px 80px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--cm-ink);
}

.cm-archive-wrap *, .cm-single-wrap * { box-sizing: border-box; }
.cm-archive-wrap img, .cm-single-wrap img { max-width: 100%; height: auto; }

/* ===================== Archive hero ===================== */
.cm-archive-hero {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 48px;
}
.cm-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--cm-blue-dark);
    background: var(--cm-blue-50);
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
}
.cm-archive-hero h1 {
    font-size: clamp(15px, 6.5vw, 40px) !important;
    font-weight: 600 !important;
    letter-spacing: -0.02em;
    margin: 0 0 12px;
    line-height: 1.2;
    white-space: nowrap;
}
.cm-archive-hero p {
    color: var(--cm-muted);
    font-size: 16px;
    line-height: 1.6;
    text-align: center;
}

/* ===================== Hub page (3 category cards) ===================== */
.cm-hub-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
    align-items: stretch;
}
@media (max-width: 900px) {
    .cm-hub-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
    .cm-hub-grid { grid-template-columns: 1fr; }
}

.cm-hub-card {
    display: flex;
    flex-direction: column;
    position: relative;
    background: #fff;
    padding: 32px;
    border-radius: 24px;
    text-decoration: none;
    color: var(--cm-ink);
    overflow: hidden;
    height: 100%;
    border: 1px solid var(--cm-border);
    box-shadow: 0 10px 26px -18px rgba(20,30,45,0.25);
    transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease, border-color .3s ease;
}
/* Soft decorative color wash + a glowing blob in the corner, tinted
   per-card, so each tile reads as its own color story instead of a
   plain white box with a thin top bar. */
.cm-hub-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(165deg, var(--hub-tint, var(--cm-blue-50)) 0%, #fff 42%);
    opacity: .6;
    z-index: 0;
    pointer-events: none;
}
.cm-hub-card::after {
    content: "";
    position: absolute;
    top: -60px; right: -60px;
    width: 150px; height: 150px;
    border-radius: 50%;
    background: var(--hub-accent, var(--cm-blue));
    opacity: .14;
    z-index: 0;
    pointer-events: none;
    transition: transform .4s ease, opacity .4s ease;
}
.cm-hub-card:hover::after { transform: scale(1.35); opacity: .2; }
.cm-hub-card > * { position: relative; z-index: 1; }

.cm-hub-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 26px 46px -18px var(--hub-shadow, rgba(47,143,224,0.35));
}

/* Three distinct accent colors — blue, green, and amber — so the
   tiles feel varied while the site's blue/green identity still leads. */
.cm-hub-card-1 {
    --hub-accent: #2F8FE0;
    --hub-accent-dark: #135FA6;
    --hub-tint: #EAF5FF;
    --hub-shadow: rgba(47,143,224,0.35);
}
.cm-hub-card-2 {
    --hub-accent: #2FB673;
    --hub-accent-dark: #1E9A50;
    --hub-tint: #EAFBF2;
    --hub-shadow: rgba(47,182,115,0.35);
}
.cm-hub-card-3 {
    --hub-accent: #E0A62F;
    --hub-accent-dark: #B37D14;
    --hub-tint: #FFF6E5;
    --hub-shadow: rgba(224,166,47,0.35);
}

.cm-hub-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.cm-hub-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: linear-gradient(145deg, var(--hub-accent, var(--cm-blue)) 0%, var(--hub-accent-dark, var(--cm-blue-dark)) 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 10px 20px -8px var(--hub-shadow, rgba(47,143,224,0.5));
}
.cm-hub-icon svg { width: 25px; height: 25px; }

.cm-hub-count {
    font-size: 12px;
    font-weight: 700;
    color: var(--hub-accent-dark, var(--cm-blue-dark));
    background: var(--hub-tint, var(--cm-blue-50));
    padding: 5px 12px;
    border-radius: 20px;
    white-space: nowrap;
}

.cm-hub-card h2 {
    font-size: clamp(17px, 4vw, 21px) !important;
    font-weight: 600 !important;
    letter-spacing: -0.01em;
    line-height: 1.3;
    margin: 0 0 10px;
    color: var(--cm-ink);
}
.cm-hub-card p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--cm-muted);
    margin: 0;
    flex-grow: 1;
    text-align: justify;
}

.cm-hub-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--cm-border);
}
.cm-hub-cta {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #fff;
    background: var(--hub-accent, var(--cm-blue));
    padding: 8px 16px;
    border-radius: 30px;
    transition: background .2s ease;
}
.cm-hub-card:hover .cm-hub-cta { background: var(--hub-accent-dark, var(--cm-blue-dark)); }
.cm-hub-arrow {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--hub-tint, var(--cm-blue-50));
    color: var(--hub-accent-dark, var(--cm-blue-dark));
    display: flex; align-items: center; justify-content: center;
    transition: background .2s ease, transform .2s ease, color .2s ease;
    flex-shrink: 0;
}
.cm-hub-arrow svg { width: 15px; height: 15px; }
.cm-hub-card:hover {
    border-color: var(--hub-accent, var(--cm-blue));
}
.cm-hub-card:hover .cm-hub-arrow {
    background: var(--hub-accent, var(--cm-blue));
    color: #fff;
    transform: translateX(3px);
}

@media (max-width: 480px) {
    .cm-hub-card { padding: 22px; }
    .cm-hub-icon { width: 46px; height: 46px; }
}

/* ===================== Card grid ===================== */
.cm-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
}

.cm-course-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--cm-border);
    box-shadow: 0 1px 2px rgba(20,22,43,0.04);
    transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease, border-color .3s ease;
}
.cm-course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 48px -12px rgba(47,143,224,0.28);
    border-color: transparent;
}

.cm-card-image {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #eee;
}
.cm-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .4s ease;
}
.cm-course-card:hover .cm-card-image img { transform: scale(1.08); }
.cm-card-placeholder {
    width: 100%;
    height: 100%;
    background: var(--cm-gradient-vivid);
}
.cm-card-image-fade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15,30,25,0.55) 0%, rgba(15,30,25,0) 45%);
}
.cm-card-tag {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(4px);
    color: var(--cm-blue-dark);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 5px 12px;
    border-radius: 20px;
}
.cm-card-term {
    position: absolute;
    top: 14px;
    right: 14px;
    background: var(--cm-gradient-vivid);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 5px 12px;
    border-radius: 20px;
    white-space: nowrap;
}
/* Old / previous-term courses get a red badge instead of the usual
   blue-green, so they stand out from the current term's courses. */
.cm-card-term-old {
    background: linear-gradient(120deg, #E0522F 0%, #C43A3A 100%);
}

.cm-card-body {
    padding: 20px 22px 8px;
    flex-grow: 1;
}
.cm-card-body h3 {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    overflow-wrap: anywhere;
    min-height: 2.7em;
}
.cm-card-excerpt {
    font-size: 14px;
    color: var(--cm-muted);
    line-height: 1.7;
    margin: 0;
    text-align: justify;
}

.cm-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 22px;
    border-top: 1px solid var(--cm-border);
    margin-top: 14px;
    gap: 10px;
}
.cm-card-instructor {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--cm-ink);
    min-width: 0;
}
.cm-card-instructor span { overflow-wrap: anywhere; }
.cm-card-instructor img {
    width: 26px; height: 26px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
}
.cm-avatar-fallback {
    width: 26px; height: 26px; border-radius: 50%;
    background: var(--cm-gradient-vivid);
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700; flex-shrink: 0;
}
.cm-avatar-lg { width: 84px; height: 84px; font-size: 30px; flex-shrink: 0; }

.cm-card-arrow {
    width: 30px; height: 30px;
    border-radius: 50%;
    background: var(--cm-bg-soft);
    display: flex; align-items: center; justify-content: center;
    color: var(--cm-blue);
    transition: background .2s ease, transform .2s ease;
    flex-shrink: 0;
}
.cm-card-arrow svg { width: 15px; height: 15px; }
.cm-course-card:hover .cm-card-arrow {
    background: var(--cm-gradient-vivid);
    color: #fff;
    transform: translateX(3px);
}

/* Card-only courses: same look and hover effects, but not clickable —
   normal cursor and no arrow (it would imply a link). */
.cm-course-card-static { cursor: default; }
.cm-course-card-static .cm-card-arrow { display: none; }

.cm-empty-state {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--cm-muted);
    padding: 60px 0;
}

/* ===================== Single: Hero ===================== */
/* Hero: title + a normal-sized image, top-aligned so badges never
   get centered away from the top no matter how tall either side is. */
.cm-hero {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 24px;
    align-items: flex-start;
    background: var(--cm-gradient-soft);
    border-radius: 20px;
    padding: 26px 30px;
    margin-bottom: 32px;
}
@media (max-width: 900px) {
    .cm-hero { grid-template-columns: 1fr; padding: 22px 20px; }
}
@media (max-width: 480px) {
    .cm-hero { padding: 16px 14px; border-radius: 16px; gap: 14px; }
}

.cm-single-cats {
    margin-bottom: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.cm-single-cats a {
    display: inline-block;
    background: #fff;
    color: var(--cm-blue-dark);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 4px 10px;
    border-radius: 20px;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(20,22,43,0.08);
}
/* Term/Semester badge (e.g. "Fall 2024") — fixed compact pill so it
   never affects the header's height, no matter how it's worded. */
.cm-term-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--cm-gradient-vivid);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 4px 10px 4px 8px;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
}
.cm-term-badge svg { width: 11px; height: 11px; }
/* Old / previous-term courses get a red badge instead of the usual
   blue-green, so they stand out from the current term's courses. */
.cm-term-badge-old {
    background: linear-gradient(120deg, #E0522F 0%, #C43A3A 100%);
}

/* Enlarged per site owner request — big, prominent course title. */
/* !important here on purpose: this heading renders whatever the site
   owner types into WordPress's own native "Title" field, with no
   control over length/weight from our side — so its size must stay
   fixed no matter what theme styles try to apply to h1. */
.cm-hero-text h1 {
    font-size: clamp(30px, 4vw, 48px) !important;
    font-weight: 800 !important;
    letter-spacing: -0.01em;
    line-height: 1.2 !important;
    margin: 0 0 12px;
    overflow-wrap: anywhere;
}
.cm-hero-desc {
    font-size: 16px;
    line-height: 1.7;
    color: #3c3e57;
    margin: 0;
    text-align: justify;
    overflow-wrap: anywhere;
}
.cm-hero-image {
    border-radius: 14px;
    overflow: hidden;
    height: 210px;
}
.cm-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
@media (max-width: 900px) {
    .cm-hero-image { height: 190px; }
}
@media (max-width: 480px) {
    .cm-hero-image { height: 150px; }
}

/* ===================== Single: content layout ===================== */
.cm-single-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 48px;
    align-items: start;
}
@media (max-width: 900px) {
    .cm-single-content { grid-template-columns: 1fr; }
}

.cm-section { margin-bottom: 34px; }
/* Enlarged per site owner request — heading is at least 2x the size
   of the body text sitting underneath it (body text tops out at 16px,
   so this stays comfortably above 32px). */
.cm-section h2 {
    font-size: clamp(26px, 2.4vw, 34px) !important;
    font-weight: 400 !important;
    margin: 0 0 16px;
    letter-spacing: 0;
    position: relative;
    padding-left: 16px;
    text-transform: none;
    color: var(--cm-ink);
}
.cm-section h2::before {
    content: "";
    position: absolute;
    left: 0; top: 4px; bottom: 4px;
    width: 4px;
    border-radius: 4px;
    background: var(--cm-gradient-vivid);
}

.cm-bullet-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.cm-bullet-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
    line-height: 1.7;
    color: #2c2e45;
	text-align: justify;
}
.cm-check {
    flex-shrink: 0;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--cm-green-50);
    color: var(--cm-green-dark);
    display: flex; align-items: center; justify-content: center;
    margin-top: 1px;
}
.cm-check svg { width: 12px; height: 12px; }

.cm-course-description {
    font-size: 16px;
    line-height: 1.9;
    color: #2c2e45;
    overflow-wrap: anywhere;
    text-align: justify;
}
.cm-course-description p { margin: 0 0 1.2em; text-align: justify; }
.cm-course-description img { max-width: 100%; height: auto; border-radius: 12px; }

/* Evaluation Method — now shown inline under Course Description */
.cm-eval-inline {
    background: var(--cm-bg-soft);
    border: 1px solid var(--cm-border);
    border-radius: 14px;
    padding: 18px 20px;
    font-size: 15px;
    line-height: 1.7;
    color: #2c2e45;
    text-align: justify;
}

.cm-topics-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.cm-topics-list li {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--cm-bg-soft);
    color: var(--cm-blue-dark);
    padding: 7px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}
.cm-topics-list li svg { width: 13px; height: 13px; opacity: .7; }

/* Compact tile grid — built to stay tidy even with 15-20 files.
   Each file is a small square-ish card so many sit side by side
   instead of stacking into one long list. */
.cm-files-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
    gap: 10px;
}
.cm-file-download {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 7px;
    padding: 16px 8px 10px;
    background: #fff;
    border: 1px solid var(--cm-border);
    border-radius: 14px;
    text-decoration: none;
    color: var(--cm-ink);
    overflow: hidden;
    transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s ease, border-color .25s ease;
}
.cm-file-download:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 28px -14px rgba(20,30,45,0.28);
    border-color: transparent;
}
.cm-file-icon {
    color: var(--cm-blue);
    flex-shrink: 0;
    width: 38px; height: 38px;
    border-radius: 11px;
    background: var(--cm-bg-soft);
    display: flex; align-items: center; justify-content: center;
}
.cm-file-icon svg { width: 18px; height: 18px; }
.cm-file-name {
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.35;
    width: 100%;
    overflow-wrap: anywhere;
}
.cm-file-ext {
    font-size: 9.5px;
    font-weight: 800;
    color: var(--cm-muted);
    letter-spacing: 0.04em;
}
.cm-file-download-icon {
    position: absolute;
    top: 7px; right: 7px;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: rgba(255,255,255,0.95);
    box-shadow: 0 2px 8px rgba(20,30,45,0.15);
    color: var(--cm-muted);
    display: flex; align-items: center; justify-content: center;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity .2s ease, transform .2s ease, color .2s ease;
}
.cm-file-download-icon svg { width: 11px; height: 11px; }
.cm-file-download:hover .cm-file-download-icon { opacity: 1; transform: translateY(0); color: var(--cm-blue); }

/* Color-coded by file type so a long list of files scans at a glance. */
.cm-ext-pdf .cm-file-icon { background: #FDECEC; color: #D93636; }
.cm-ext-doc .cm-file-icon, .cm-ext-docx .cm-file-icon { background: #E8F0FE; color: #2F6FE0; }
.cm-ext-ppt .cm-file-icon, .cm-ext-pptx .cm-file-icon { background: #FFF1E3; color: #E0812F; }
.cm-ext-xls .cm-file-icon, .cm-ext-xlsx .cm-file-icon, .cm-ext-csv .cm-file-icon { background: #E9FBEF; color: #1E9A50; }
.cm-ext-zip .cm-file-icon, .cm-ext-rar .cm-file-icon, .cm-ext-7z .cm-file-icon { background: #F1EEFD; color: #6547B8; }
.cm-ext-mp4 .cm-file-icon, .cm-ext-mov .cm-file-icon, .cm-ext-avi .cm-file-icon { background: #FDECF3; color: #D6368F; }
.cm-ext-jpg .cm-file-icon, .cm-ext-jpeg .cm-file-icon, .cm-ext-png .cm-file-icon { background: #EAF5FF; color: #2F8FE0; }

@media (max-width: 620px) {
    .cm-files-list { grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; }
    .cm-file-download { padding: 12px 6px 8px; }
}
@media (max-width: 360px) {
    .cm-files-list { grid-template-columns: repeat(3, 1fr); }
}

/* ===================== Instructor card — restyled ===================== */
.cm-instructor-card {
    position: relative;
    display: flex;
    gap: 22px;
    align-items: center;
    background: linear-gradient(160deg, #ffffff 0%, var(--cm-blue-50) 130%);
    border: 1px solid var(--cm-border);
    border-radius: 20px;
    padding: 26px;
    overflow: hidden;
    box-shadow: 0 16px 40px -20px rgba(19,95,166,0.35);
}
.cm-instructor-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 5px;
    background: var(--cm-gradient-vivid);
}
.cm-instructor-card img {
    width: 92px; height: 92px;
    object-fit: cover;
    border-radius: 50%;
    flex-shrink: 0;
    border: 4px solid #fff;
    box-shadow: 0 0 0 3px var(--cm-blue-50), 0 10px 24px -10px rgba(19,95,166,0.45);
}
.cm-instructor-card .cm-avatar-lg {
    border: 4px solid #fff;
    box-shadow: 0 0 0 3px var(--cm-blue-50), 0 10px 24px -10px rgba(19,95,166,0.45);
}
.cm-instructor-card > div { min-width: 0; }
.cm-instructor-card h3 {
    margin: 0 0 4px;
    font-size: 18px;
    font-weight: 800;
    color: var(--cm-blue-dark);
}
.cm-instructor-title {
    display: inline-block;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--cm-green-dark);
    background: var(--cm-green-50);
    padding: 3px 11px;
    border-radius: 20px;
    margin: 0 0 10px;
}
.cm-instructor-card p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--cm-muted);
    margin: 0;
    overflow-wrap: anywhere;
    text-align: justify;
}
@media (max-width: 480px) {
    .cm-instructor-card { flex-direction: column; align-items: flex-start; text-align: left; padding: 22px; }
}

/* ===================== Sidebar ===================== */
.cm-sidebar-card {
    background: #fff;
    border: 1px solid var(--cm-border);
    border-radius: 20px;
    padding: 26px;
    position: sticky;
    top: 24px;
}
@media (max-width: 900px) {
    .cm-sidebar-card { position: static; }
}
.cm-sidebar-card h3 {
    margin: 0 0 16px;
    font-size: 13px !important;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--cm-muted);
}
.cm-info-list { list-style: none; margin: 0; padding: 0; }
.cm-info-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 13px 0;
    border-bottom: 1px solid var(--cm-border);
}
.cm-info-list li:last-child { border-bottom: none; }
.cm-info-icon {
    width: 34px; height: 34px;
    border-radius: 10px;
    background: var(--cm-bg-soft);
    color: var(--cm-blue);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.cm-info-icon svg { width: 17px; height: 17px; }
.cm-info-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cm-info-label { font-size: 12px; color: var(--cm-muted); font-weight: 600; }
.cm-info-value { font-size: 14px; font-weight: 600; color: var(--cm-ink); overflow-wrap: anywhere; }

.cm-org-badge {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid var(--cm-border);
}
.cm-org-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 50%;
    flex-shrink: 0;
}
.cm-org-name {
    flex: 1;
    min-width: 0;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--cm-blue-dark);
    line-height: 1.5;
    word-break: normal;
    overflow-wrap: break-word;
}

.cm-back-link { margin-top: 44px; }
.cm-back-link-top { margin-top: 0; margin-bottom: 28px; }
.cm-back-link a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--cm-blue);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color .2s ease, gap .2s ease;
}
.cm-back-link a:hover { color: var(--cm-blue-dark); }
.cm-back-link a svg { width: 16px; height: 16px; }

/* ===================== Extra small-screen polish ===================== */
@media (max-width: 480px) {
    .cm-archive-wrap, .cm-single-wrap { padding: 32px 14px 60px; }
    .cm-cards-grid { grid-template-columns: 1fr; gap: 20px; }
    .cm-card-body { padding: 16px 16px 4px; }
    .cm-card-footer { padding: 14px 16px; flex-wrap: wrap; }
    .cm-sidebar-card { padding: 18px; }
    .cm-back-link { margin-top: 32px; }
}