/*
 Theme Name: Camber Child
 Template: Divi
*/

/* ─── Camber Design Tokens ────────────────────────── */
:root {
    --camber-blue:   #004c97;
    --camber-yellow: #f2c94c;
    --camber-grey:   #f5f7fa;
}

/* ─── Grid wrapper for the archive ─────────────────── */
.citation-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    margin: 2rem auto;
    max-width: 1500px !important;
    padding: 0 2rem;
}

/* ─── Individual citation “card” ───────────────────── */
.citation-card {
    display: flex !important;
    flex-direction: column !important;
    background: #fff;
    border: 1px solid var(--camber-grey, #f5f7fa);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 6px rgba(0,0,0,.08);
    transition: transform .2s, box-shadow .2s;
    min-height: 350px !important;
}

.citation-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,.12);
}

.citation-card footer {
    margin-top: auto;
    padding-top: 1rem;
    display: flex;
    gap: 1rem;
}

.citation-title {
    font-size: 1.3rem;
    line-height: 1.4;
    margin: 0 0 .25rem;
}
.citation-pub {
    display: block;
    font-weight: 600;
    color: var(--camber-blue);
    margin-bottom: .5rem;
}
.citation-card time {
    display: block;
    font-size: .875rem;
    color: #777;
    margin-bottom: .75rem;
}

/* ─── Buttons ────────────── */
.button {
    display: inline-block;
    margin: .75rem .5rem .25rem 0;
    padding: .5rem 1rem;
    border: 2px solid var(--camber-blue);
    border-radius: 4px;
    font-size: .875rem;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s, color .2s;
}
.button:hover,
.button:focus {
    background: var(--camber-blue);
    color: #fff;
}
.button--alt {
    border-color: var(--camber-yellow);
    color: var(--camber-yellow);
}
.button--alt:hover,
.button--alt:focus {
    background: var(--camber-yellow);
    color: #000;
}

/* ─── Responsive tweaks ────────────── */
@media (max-width:480px) {
    .citation-title { font-size: 1rem; }
}
@media (max-width:600px) {
    .citation-grid { padding: 0 0.5rem; }
}