/**
 * mod_recent_developments — frontend styles
 *
 * UIkit provides the grid, spacing, and responsive behaviour.
 * These rules handle typography hierarchy, the accent label, image
 * treatment, and secondary-item dividers — the things UIkit does
 * not cover directly.
 *
 * @author   Russell English, Storm Web Design Ltd
 * @version  1.0.0
 */

/* ==========================================================================
   Module wrapper
   ========================================================================== */

.mod-recent-developments {
    container-type: inline-size;
}

/* ==========================================================================
   Module heading
   ========================================================================== */

.mod-recent-developments__heading {
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid currentColor;
    opacity: 0.85;
}

/* ==========================================================================
   Section / category label
   Appears above each article title in a small uppercase accent colour.
   ========================================================================== */

.mod-recent-developments__section-label {
    display: block;
    font-size: 0.6875rem;     /* ~11px */
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #c0392b;           /* editorial red — adjust to brand colour */
    margin-bottom: 0.35rem;
    line-height: 1;
}

/* ==========================================================================
   Primary (left) column
   ========================================================================== */

.mod-recent-developments__primary {
    /* Nothing additional needed — UIkit grid handles width and gap */
}

/* Hero image */
.mod-recent-developments__image-link {
    display: block;
    margin-bottom: 1.25rem;
}

.mod-recent-developments__primary-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;       /* subtle rounded corners on the hero image */
    object-fit: cover;
}

/* Primary article title — larger, stronger weight */
.mod-recent-developments__primary-title {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 0.5rem 0 0.75rem;
}

.mod-recent-developments__primary-title a {
    color: inherit;
    text-decoration: none;
}

.mod-recent-developments__primary-title a:hover,
.mod-recent-developments__primary-title a:focus {
    text-decoration: underline;
}

/* Primary excerpt */
.mod-recent-developments__primary-text {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 1rem;
}

/* "Read more" link */
.mod-recent-developments__read-more {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #c0392b;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.15s ease;
}

.mod-recent-developments__read-more:hover,
.mod-recent-developments__read-more:focus {
    border-bottom-color: currentColor;
}

/* ==========================================================================
   Secondary (right) column
   ========================================================================== */

.mod-recent-developments__secondary {
    /* Nothing additional — UIkit grid manages the column */
}

/* Individual secondary item */
.mod-recent-developments__secondary-item {
    padding-bottom: 1.25rem;
    margin-bottom: 1.25rem;
}

/* Divider between secondary items (not before the first) */
.mod-recent-developments__secondary-item--divider {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 1.25rem;
}

/* Secondary article title — smaller than primary */
.mod-recent-developments__secondary-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 0.35rem 0 0.5rem;
}

.mod-recent-developments__secondary-title a {
    color: inherit;
    text-decoration: none;
}

.mod-recent-developments__secondary-title a:hover,
.mod-recent-developments__secondary-title a:focus {
    text-decoration: underline;
}

/* Secondary excerpt */
.mod-recent-developments__secondary-text {
    font-size: 0.875rem;
    line-height: 1.55;
    color: #666;
    margin: 0;
}

/* ==========================================================================
   Dark-mode adjustments (respects OS preference)
   ========================================================================== */

@media (prefers-color-scheme: dark) {
    .mod-recent-developments__primary-text,
    .mod-recent-developments__secondary-text {
        color: #aaa;
    }

    .mod-recent-developments__secondary-item--divider {
        border-top-color: rgba(255, 255, 255, 0.1);
    }
}

/* ==========================================================================
   Responsive: tighten heading on small screens
   ========================================================================== */

@media (max-width: 640px) {
    .mod-recent-developments__primary-title {
        font-size: 1.2rem;
    }
}
