/* Project archive, news and project-detail refinements. */
.navbar-account .nav-action {
    background: #ffffff !important;
    color: #07154f !important;
    border: 1px solid rgba(255,255,255,.9);
    box-shadow: 0 5px 16px rgba(0,0,0,.16);
}

.navbar-account .nav-action:hover,
.navbar-account .nav-action:focus-visible {
    background: #8eeafa !important;
    color: #07154f !important;
}

.archive-hero,
.news-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2rem;
    align-items: end;
    padding: clamp(1.5rem, 4vw, 3rem);
    border: 1px solid var(--festival-border);
    border-radius: 22px;
    background: linear-gradient(135deg, #f9fcff, #eef6ff);
    box-shadow: var(--festival-shadow);
}

.archive-hero h1,
.news-hero h1 {
    margin: .2rem 0 .7rem;
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1;
    letter-spacing: -.04em;
}

.archive-actions,
.news-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    justify-content: flex-end;
}

.archive-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin: 1.5rem 0;
    padding: 1rem;
    border: 1px solid var(--festival-border);
    border-radius: 16px;
    background: #fff;
}

.archive-toolbar form { margin: 0 !important; }

.archive-toolbar select {
    min-height: 44px;
    padding: 0 .9rem;
    border: 1px solid #c8d4e3;
    border-radius: 10px;
    background: #fff;
    color: var(--festival-ink);
    font-weight: 650;
}

.project-archive-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.1rem;
}

.project-archive-card {
    overflow: hidden;
    border: 1px solid var(--festival-border);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(15,35,75,.08);
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.project-archive-card:hover,
.project-archive-card:focus-within {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(15,35,75,.13);
}

.project-archive-link {
    display: flex;
    height: 100%;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
}

.project-archive-thumb {
    display: grid;
    place-items: center;
    min-height: 170px;
    background: linear-gradient(135deg, #0b2a68, #1276a8);
    color: #fff;
    font-size: 2.5rem;
}

.project-archive-body {
    display: flex;
    min-height: 220px;
    flex: 1;
    flex-direction: column;
    padding: 1.2rem;
}

.project-archive-body h2 {
    margin: 0 0 .55rem;
    font-size: 1.2rem;
}

.project-archive-body p { color: var(--festival-muted); }
.project-archive-meta { margin-top: auto; }
.project-archive-meta-row { display:flex; justify-content:space-between; gap:.75rem; align-items:center; }
.project-archive-author { margin:.7rem 0 0; font-size:.9rem; }

.news-grid-modern {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.news-document-card,
.news-year-card {
    padding: 1.2rem;
    border: 1px solid var(--festival-border);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(15,35,75,.07);
}

.news-document-card h2,
.news-year-card h2 { margin: 0 0 .45rem; font-size:1.2rem; }
.news-document-card p,
.news-year-card p { color: var(--festival-muted); }
.news-document-actions { display:flex; flex-wrap:wrap; gap:.6rem; margin-top:1rem; }

.project-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(270px, 340px);
    gap: 1.25rem;
    align-items: start;
}

.project-detail-main,
.project-detail-sidebar > section {
    border: 1px solid var(--festival-border);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(15,35,75,.07);
}

.project-detail-main { overflow:hidden; }
.project-detail-heading { padding:1.35rem; border-bottom:1px solid var(--festival-border); background:#f8fbff; }
.project-detail-heading h1 { margin:0 0 .35rem; font-size:clamp(1.8rem,4vw,3rem); }
.project-detail-content { padding:1.35rem; }
.project-detail-sidebar { display:grid; gap:1rem; }
.project-detail-sidebar > section { padding:1.15rem; }
.project-detail-sidebar h2 { font-size:1.05rem; }

@media (max-width: 900px) {
    .archive-hero,
    .news-hero,
    .project-detail-layout {
        grid-template-columns: 1fr;
    }
    .archive-actions,
    .news-actions { justify-content:flex-start; }
    .project-archive-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

@media (max-width: 640px) {
    .project-archive-grid,
    .news-grid-modern { grid-template-columns:1fr; }
    .archive-toolbar { display:grid; }
    .archive-toolbar form,
    .archive-toolbar select { width:100%; }
}
