.ccm-manual {
    margin: 1.5rem 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.ccm-manual h2 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.ccm-subtitle {
    margin-top: 0;
    margin-bottom: 1.25rem;
    color: #6b7280;
}

.ccm-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ccm-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    background-color: #ffffff;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: background-color 0.15s ease, box-shadow 0.15s ease, transform 0.05s ease;
}

.ccm-row:hover,
.ccm-row:focus {
    background-color: #f9fafb;
    box-shadow: 0 2px 4px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

.ccm-row-small {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    border-radius: 0.4rem;
}

.ccm-row-main {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    flex: 1;
    min-width: 0;
}

.ccm-row-title {
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ccm-row-subtitle {
    font-size: 0.9rem;
    color: #4b5563;
    line-height: 1.4;
}

.ccm-row-meta {
    margin-left: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    white-space: nowrap;
}

.ccm-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.6rem;
    border-radius: 9999px;
    background-color: #eef2ff;
    color: #4338ca;
    font-size: 0.75rem;
    font-weight: 500;
}

.ccm-icon-chevron {
    font-size: 1.25rem;
    color: #9ca3af;
}

.ccm-card {
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    background-color: #ffffff;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.ccm-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e5e7eb;
    background-color: #f9fafb;
}

.ccm-card-header-link {
    text-decoration: none;
    color: inherit;
    transition: background-color 0.15s ease;
}

.ccm-card-header-link:hover,
.ccm-card-header-link:focus {
    background-color: #eef2ff;
}

.ccm-card-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
}

.ccm-card-body {
    padding: 0.75rem 1rem 1rem 1rem;
}

.ccm-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.1rem 0.6rem;
    border-radius: 999px;
    background-color: #e0ebff;
    color: #1d4ed8;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.ccm-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.ccm-table th,
.ccm-table td {
    padding: 0.5rem 0.5rem;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: top;
}

.ccm-table th {
    text-align: left;
    background-color: #f9fafb;
    font-weight: 600;
    cursor: pointer;
    position: relative;
}

.ccm-table th.ccm-sort-asc::after,
.ccm-table th.ccm-sort-desc::after {
    content: '';
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
}

.ccm-table th.ccm-sort-asc::after {
    border-bottom: 6px solid #6b7280;
}

.ccm-table th.ccm-sort-desc::after {
    border-top: 6px solid #6b7280;
}

.ccm-muted {
    color: #6b7280;
    font-size: 0.85rem;
}

.ccm-link-primary {
    color: #1d4ed8;
    text-decoration: none;
    font-weight: 500;
}

.ccm-link-primary:hover,
.ccm-link-primary:focus {
    text-decoration: underline;
}

@media (max-width: 640px) {
    .ccm-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.25rem;
    }
    .ccm-row-meta {
        margin-left: 0;
    }
}

/* Elimină sublinierea titlurilor de articole */
.ccm-card-header-main a,
.ccm-card-header-main,
.ccm-card-header-main:link,
.ccm-card-header-main:visited {
    text-decoration: none !important;
}

/* Elimină și la hover/focus */
.ccm-card-header-main:hover,
.ccm-card-header-main:focus {
    text-decoration: none !important;
}

/* Titlul din interior */
.ccm-card-title {
    text-decoration: none !important;
}



/* Lazy-loaded annexes (Ediții block) */
.ccm-anexe-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0 0 0;
    padding: 8px 12px;
    border: 1px solid rgba(0,0,0,0.15);
    border-radius: 8px;
    background: rgba(0,0,0,0.02);
    cursor: pointer;
    font-size: 14px;
    line-height: 1.2;
}

.ccm-anexe-toggle.is-open {
    background: rgba(0,0,0,0.05);
}

.ccm-anexe-toggle.is-loading {
    opacity: 0.75;
    cursor: wait;
}

.ccm-anexe-toggle:hover {
    background: rgba(0,0,0,0.04);
}

.ccm-anexe-container {
    margin-top: 8px;
    margin-left: 24px;
    padding-left: 16px;
    border-left: 2px solid rgba(0,0,0,0.08);
}

.ccm-anexe-loading,
.ccm-anexe-error,
.ccm-anexe-empty {
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(0,0,0,0.03);
    font-size: 14px;
}

/* Alineate formatate (păstrează structură + spațiere) */
.ccm-alineat-formatted {
  margin: 8px 0;
}

/* Fiecare linie din alineat */
.ccm-alineat-formatted .ccm-line {
  white-space: pre-wrap;
  line-height: 1.5;
  margin: 2px 0;
}

/* Linie goală */
.ccm-alineat-formatted .ccm-line-empty {
  height: 10px;
}

/* Markerii de început */
.ccm-alineat-formatted .ccm-marker {
  font-weight: 700;
}

/* Indentare cumulativă */
.ccm-alineat-formatted .ccm-indent-0 { padding-left: 0; }
.ccm-alineat-formatted .ccm-indent-1 { padding-left: 16px; }
.ccm-alineat-formatted .ccm-indent-2 { padding-left: 32px; }
.ccm-alineat-formatted .ccm-indent-3 { padding-left: 48px; }
.ccm-alineat-formatted .ccm-indent-4 { padding-left: 64px; }
.ccm-alineat-formatted .ccm-indent-5 { padding-left: 80px; }
.ccm-alineat-formatted .ccm-indent-6 { padding-left: 96px; }


.ccm-row-subtitle.ccm-anexa-text {
  white-space: pre-wrap !important;
  tab-size: 4;
  -moz-tab-size: 4;
}