:root {
    --co-primary: #6f42c1;
    --co-primary-dark: #5a32a3;
    --co-ink: #1f1b2e;
    --co-muted: #6b7280;
    --co-line: #e8e4f3;
    --co-bg: #f6f4fb;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif; color: var(--co-ink); background: var(--co-bg); line-height: 1.55; }

.co-header { background: #fff; border-bottom: 1px solid var(--co-line); position: sticky; top: 0; z-index: 10; }
.co-header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.co-brand { display: flex; align-items: center; gap: .7rem; min-width: 0; }
.co-avatar { width: 38px; height: 38px; border-radius: 11px; background: var(--co-primary); color: #fff; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.co-brand-name { font-weight: 700; font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.co-lang { display: flex; gap: 4px; background: var(--co-bg); border-radius: 10px; padding: 3px; }
.co-lang a { padding: 4px 11px; border-radius: 8px; font-size: .78rem; font-weight: 700; color: var(--co-muted); text-decoration: none; }
.co-lang a.is-active { background: var(--co-primary); color: #fff; }

.co-hero { background: linear-gradient(135deg, #4f1fa0 0%, #7c3aed 60%, #8b5cf6 100%); color: #fff; padding: 3.5rem 0 4.5rem; }
.co-eyebrow { display: inline-flex; align-items: center; gap: .4rem; background: rgba(255,255,255,.16); border-radius: 999px; padding: .3rem .9rem; font-size: .8rem; font-weight: 600; }
.co-title { font-family: 'Playfair Display', Georgia, serif; font-weight: 700; font-size: clamp(2rem, 5vw, 3.2rem); margin: 1rem 0 .5rem; }
.co-lead { font-size: 1.05rem; opacity: .9; max-width: 560px; }
.co-stats { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.co-stat { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.2); border-radius: 14px; padding: .7rem 1.2rem; min-width: 120px; }
.co-stat strong { display: block; font-size: 1.6rem; line-height: 1.1; }
.co-stat span { font-size: .78rem; opacity: .85; }

.co-main { margin-top: -2.2rem; padding-bottom: 3rem; position: relative; }
.co-toolbar { display: flex; flex-wrap: wrap; gap: .75rem; background: #fff; border: 1px solid var(--co-line); border-radius: 16px; padding: .85rem; box-shadow: 0 10px 30px rgba(79,31,160,.08); }
.co-search { position: relative; flex: 1 1 240px; }
.co-search i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--co-muted); }
.co-search input, .co-select { width: 100%; height: 44px; border: 1px solid var(--co-line); border-radius: 11px; padding: 0 14px 0 40px; font-size: .92rem; background: #fff; color: var(--co-ink); }
.co-select { width: auto; min-width: 180px; padding-left: 14px; }
.co-search input:focus, .co-select:focus { outline: 2px solid rgba(111,66,193,.35); border-color: var(--co-primary); }
.co-modes { display: flex; background: var(--co-bg); border-radius: 11px; padding: 3px; }
.co-modes button { border: 0; background: transparent; padding: 0 16px; height: 38px; border-radius: 9px; font-weight: 600; font-size: .85rem; color: var(--co-muted); cursor: pointer; }
.co-modes button.is-active { background: var(--co-primary); color: #fff; }
.co-count { margin: 1.1rem .2rem .6rem; font-size: .85rem; color: var(--co-muted); font-weight: 600; }

.co-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.1rem; }
.co-card { background: #fff; border: 1px solid var(--co-line); border-radius: 18px; padding: 1.3rem; display: flex; flex-direction: column; transition: transform .15s ease, box-shadow .15s ease; }
.co-card[hidden] { display: none; }
.co-card:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(79,31,160,.12); }
.co-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: .9rem; }
.co-card-icon { width: 42px; height: 42px; border-radius: 12px; background: #efe9fb; color: var(--co-primary); display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.co-chip { font-size: .72rem; font-weight: 700; padding: .25rem .7rem; border-radius: 999px; }
.co-chip--green { background: #dcf5e7; color: #146c43; }
.co-chip--blue { background: #dbeafe; color: #1e40af; }
.co-card-title { font-size: 1.12rem; font-weight: 700; margin: 0 0 .5rem; }
.co-card-meta { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .82rem; color: var(--co-muted); }
.co-card-excerpt { font-size: .88rem; color: #4b5563; margin: .8rem 0 0; }
.co-card-cta { margin-top: auto; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; height: 44px; border-radius: 11px; background: var(--co-primary); color: #fff; font-weight: 700; font-size: .88rem; text-decoration: none; transition: background .15s ease; }
.co-card-cta:hover { background: var(--co-primary-dark); color: #fff; }
.co-card-meta + .co-card-cta, .co-card-excerpt + .co-card-cta { margin-top: 1.1rem; }

.co-empty { text-align: center; background: #fff; border: 1px dashed #d6cdef; border-radius: 18px; padding: 3rem 1.5rem; }
.co-empty i { font-size: 2.2rem; color: var(--co-primary); }
.co-empty h2 { font-size: 1.15rem; margin: .8rem 0 .3rem; }
.co-empty p { color: var(--co-muted); margin: 0; }
.co-empty[hidden] { display: none; }
.co-empty--filter { margin-top: 1rem; }

.co-footer { text-align: center; color: var(--co-muted); font-size: .82rem; padding: 1.6rem 0 2.2rem; }
.co-footer strong { color: var(--co-primary); }

@media (max-width: 575px) {
    .co-modes { width: 100%; }
    .co-modes button { flex: 1; }
    .co-select { width: 100%; }
}

.co-footer a {
    color: inherit;
    text-decoration: none;
}

.co-footer a:hover {
    text-decoration: underline;
}
