/* ============================================================
   COMPONENTS: CARDS
   Card components with header, body, and footer
   ============================================================ */

.ds-card {
    background-color: var(--ds-surface-primary);
    border: 1px solid var(--ds-border-color);
    border-radius: 0.5rem;
    box-shadow: var(--ds-shadow-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.ds-card-header {
    padding: var(--ds-padding-card-header);
    background-color: var(--ds-color-primary);
    color: var(--ds-text-inverse);
    border-bottom: 1px solid var(--ds-border-color);
    font-weight: var(--ds-font-weight-semibold);
    font-size: var(--ds-font-size-lg);
}

/* Ensure links in card headers inherit header text color */
.ds-card-header a,
.ds-card-header a:link,
.ds-card-header a:visited {
    color: inherit !important;
}

.ds-card-header a:hover,
.ds-card-header a:focus {
    color: inherit !important;
    opacity: 0.9;
}

.ds-card-body {
    padding: var(--ds-padding-card);
    flex: 1 1 auto;
}

.ds-card-footer {
    padding: var(--ds-space-3) var(--ds-space-4);
    background-color: var(--ds-surface-secondary);
    border-top: 1px solid var(--ds-border-color);
}

/* Nested cards (cards within cards, e.g., referees within applicants) */
.ds-card-nested {
    box-shadow: none;
    border: 1px solid var(--ds-border-color);
}

.ds-card-nested .ds-card-header {
    font-size: var(--ds-font-size-base);
    padding: var(--ds-space-3);
}

.ds-card-nested .ds-card-body {
    padding: var(--ds-space-3);
}

/* Card header color variants */
.ds-card-header-diocese {
    background-color: var(--ds-color-primary);
    color: var(--ds-text-inverse);
}

.ds-card-header-green {
    background-color: var(--ds-color-success);
    color: var(--ds-text-inverse);
}

.ds-card-header-orange {
    background-color: var(--ds-color-warning);
    color: var(--ds-text-inverse);
}

.ds-card-header-grey {
    background-color: var(--ds-surface-secondary);
    color: var(--ds-text-primary);
    border-bottom: 2px solid var(--ds-border-color);
}

.ds-card-header-clear {
    background-color: var(--ds-surface-primary);
    color: var(--ds-text-primary);
    border-bottom: 2px solid var(--ds-border-color);
}

/* ========================================
   DAC AGENDA PAPER LAYOUT
   ======================================== */

.ds-dac-agenda-paper {
    max-width: 920px;
    margin: 0 auto;
    background: var(--ds-surface-primary);
    border: 1px solid var(--ds-border-color);
    border-radius: 0.375rem;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.08);
    padding: 2rem;
    font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
    line-height: 1.6;
}

.ds-dac-agenda-intro {
    text-align: center;
}

.ds-dac-agenda-paper p,
.ds-dac-agenda-paper dd {
    text-align: justify;
    text-justify: inter-word;
}

.ds-dac-agenda-intro p {
    text-align: center;
}

