/* Explain: Styles for the "What's New" section, update cards, and family update form. */
/* ---------- What's New / site updates ---------- */

.updates-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1.25rem;
}

@media (min-width: 640px) {
    .updates-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .updates-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.update-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.5rem 1.4rem;
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    background: linear-gradient(180deg, var(--surface-2), var(--surface-color));
    overflow-wrap: anywhere;
    transition: border-color 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
}

.update-card:hover {
    border-color: var(--gold-line);
    transform: translateY(-4px);
    box-shadow: 0 14px 34px rgba(201, 162, 39, 0.16);
}

.update-date {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    align-self: flex-start;
    margin: 0;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    border: 1px solid var(--gold-line);
    background: rgba(201, 162, 39, 0.1);
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.update-card-title {
    margin-top: 1rem;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text-color);
}

.update-card-text {
    margin-top: 0.6rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

.update-card-link {
    margin-top: auto;
    padding-top: 1rem;
}

/* ---------- Single update page ---------- */

.update-detail {
    max-width: 46rem;
}

.update-detail-date {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
    padding: 0.4rem 0.95rem;
    border-radius: 9999px;
    border: 1px solid var(--gold-line);
    background: rgba(201, 162, 39, 0.1);
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.update-detail-lead {
    margin-top: 1.75rem;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--text-color);
    overflow-wrap: anywhere;
}

.update-detail-body {
    margin-top: 1.5rem;
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.update-detail-body p {
    margin-top: 1rem;
}

.update-detail-body p:first-child {
    margin-top: 0;
}

@media (prefers-reduced-motion: reduce) {
    .update-card {
        transition: none;
        transform: none;
    }
}

/* ---------- Family update form ---------- */
.family-update-form {
    max-width: 42rem;
    margin-inline: auto;
    margin-top: 2.5rem;
    padding: 1.75rem 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 1.25rem;
    background: linear-gradient(180deg, var(--surface-2), var(--surface-color));
}

.family-update-form .btn-gold {
    width: 100%;
}