/* =========================================================
   AFJC — Association des Femmes Juristes du Congo
   Palette : encre profonde, bronze/or (repris du logo), burgundy
   discret pour la gravité du propos juridique, papier ivoire
   pour la lisibilité longue-lecture (statuts, articles).
   Display : Fraunces (serif à fort contraste, caractère éditorial)
   Texte    : Libre Franklin (grotesque, très lisible)
   ========================================================= */

:root {
    --paper: #F6F1E3;
    --paper-deep: #EEE6D2;
    --ink: #1C1710;
    --ink-soft: #362E22;
    --charcoal: #201A13;
    --charcoal-deep: #14100B;
    --gold: #A87C2E;
    --gold-deep: #7C5920;
    --gold-light: #D8B571;
    --burgundy: #6E2A2A;
    --burgundy-deep: #4E1D1D;
    --line: rgba(28, 23, 16, 0.14);
    --line-light: rgba(246, 241, 227, 0.18);
    --shadow: 0 18px 40px rgba(20, 16, 11, 0.16);
    --radius: 2px;
    --content-max: 1180px;
    --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
    --font-body: "Libre Franklin", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.wrap {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 0 28px;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.12;
    margin: 0 0 0.5em;
    color: var(--ink);
    letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.4rem, 4.6vw, 3.9rem); font-weight: 600; }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { max-width: 68ch; }
.lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 58ch; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.05rem;
    color: var(--gold-deep);
    margin-bottom: 0.7em;
}
.eyebrow::before {
    content: "";
    width: 30px;
    height: 1px;
    background: var(--gold-deep);
    display: inline-block;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.98rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.btn-gold { background: var(--gold); color: var(--charcoal-deep); }
.btn-gold:hover { background: var(--gold-light); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--paper); border-color: var(--line-light); }
.btn-outline:hover { background: var(--line-light); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-outline-dark { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline-dark:hover { border-color: var(--gold); background: var(--paper-deep); }
.detail-main p > .btn + .btn { margin-left: 10px; }
.btn-dark:hover { background: var(--charcoal-deep); }

/* ---------------- Header ---------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    border-bottom: 1px solid var(--line);
}
/* Le flou est posé sur un pseudo-élément plutôt que directement sur
   .site-header : un backdrop-filter/filter/transform sur un ancêtre
   devient le conteneur de positionnement de ses descendants en
   `position: fixed`, ce qui casse le menu mobile plein écran
   (.primary-nav) en le confinant à la hauteur du header. */
.site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(246, 241, 227, 0.94);
    backdrop-filter: blur(6px);
    z-index: -1;
}
.header-row {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    padding-bottom: 14px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; background: var(--charcoal); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; letter-spacing: 0.02em; }
.brand-tag { font-size: 0.72rem; color: var(--ink-soft); max-width: 220px; }

.primary-nav ul { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; }
.primary-nav { display: flex; align-items: center; gap: 28px; }
.primary-nav a {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ink-soft);
    padding: 6px 0;
    border-bottom: 2px solid transparent;
}
.primary-nav a:hover, .primary-nav a.is-active { color: var(--ink); border-color: var(--gold); }
.nav-cta { padding: 10px 20px; font-size: 0.88rem; }

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    cursor: pointer;
}
.nav-toggle span { width: 20px; height: 2px; background: var(--ink); margin: 0 auto; }

/* ---------------- Hero ---------------- */
.hero {
    position: relative;
    background: var(--charcoal);
    color: var(--paper);
    overflow: hidden;
    padding: 100px 0 120px;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 82% 12%, rgba(168,124,46,0.28), transparent 55%),
        radial-gradient(ellipse at 8% 92%, rgba(110,42,42,0.28), transparent 50%);
    pointer-events: none;
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 60px; align-items: center; }
.hero-eyebrow {
    font-family: var(--font-display);
    font-style: italic;
    color: var(--gold-light);
    font-size: 1.1rem;
    margin-bottom: 0.6em;
}
.hero h1 { color: var(--paper); }
.hero .lede { color: rgba(246,241,227,0.82); }
.hero-actions { display: flex; gap: 16px; margin-top: 34px; flex-wrap: wrap; }
.hero-figure { display: flex; justify-content: center; }
.hero-scales { width: 100%; max-width: 340px; height: auto; }

.hero-stats {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--line-light);
    margin-top: 70px;
    border-top: 1px solid var(--line-light);
    border-bottom: 1px solid var(--line-light);
}
.hero-stats div { background: var(--charcoal); padding: 26px 22px; }
.stat-num { font-family: var(--font-display); font-size: 2.1rem; color: var(--gold-light); display: block; }
.stat-label { font-size: 0.86rem; color: rgba(246,241,227,0.72); }

/* ---------------- Sections generic ---------------- */
section { padding: 88px 0; }
.section-alt { background: var(--paper-deep); }
.section-dark { background: var(--ink); color: var(--paper); }
.section-dark h2, .section-dark h3 { color: var(--paper); }
.section-dark p { color: rgba(246,241,227,0.78); }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* Numbered "articles" motif — legitimate here: statutes are literally numbered */
.article-list { counter-reset: article; display: grid; gap: 0; border-top: 1px solid var(--line); }
.article-item {
    counter-increment: article;
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 28px;
    padding: 30px 0;
    border-bottom: 1px solid var(--line);
}
.article-item::before {
    content: counter(article, decimal-leading-zero);
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--gold-deep);
}
.article-item h3 { margin-bottom: 0.35em; }
.article-item p { margin: 0; color: var(--ink-soft); }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card {
    background: var(--paper);
    border: 1px solid var(--line);
    padding: 32px 28px;
    border-radius: var(--radius);
}
.section-alt .card { background: var(--paper); }
.card-icon { width: 42px; height: 42px; margin-bottom: 18px; color: var(--gold-deep); }
.card h3 { margin-bottom: 0.5em; }
.card p { color: var(--ink-soft); margin: 0; font-size: 0.98rem; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }

.pull-quote {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.5rem;
    line-height: 1.4;
    color: var(--ink);
    border-left: 3px solid var(--gold);
    padding-left: 28px;
    margin: 0;
}

.tag-list { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; list-style: none; }
.tag-list li {
    border: 1px solid var(--line);
    padding: 8px 16px;
    font-size: 0.88rem;
    border-radius: 999px;
    color: var(--ink-soft);
}

.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-soft); }
.check-list li::before {
    content: "";
    flex: none;
    width: 9px; height: 9px;
    margin-top: 7px;
    background: var(--gold);
    border-radius: 1px;
    transform: rotate(45deg);
}

/* Org chart */
.org-chart { display: flex; flex-direction: column; align-items: center; gap: 0; }
.org-level { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; margin: 0 0 6px; }
.org-node {
    background: var(--paper);
    border: 1px solid var(--line);
    padding: 18px 22px;
    text-align: center;
    min-width: 190px;
    border-radius: var(--radius);
}
.org-node strong { display: block; font-family: var(--font-display); font-size: 1.02rem; }
.org-node span { font-size: 0.82rem; color: var(--ink-soft); }
.org-connector { width: 1px; height: 34px; background: var(--line); }

.bureau-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.bureau-card { border: 1px solid var(--line); padding: 22px; background: var(--paper); }
.bureau-card .num { font-family: var(--font-display); color: var(--gold-deep); font-size: 0.9rem; }
.bureau-card h4 { font-family: var(--font-body); font-weight: 700; font-size: 1rem; margin: 6px 0 8px; }
.bureau-card p { font-size: 0.92rem; color: var(--ink-soft); margin: 0; }

.founder-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.founder-card { text-align: center; }
.founder-avatar {
    width: 96px; height: 96px; margin: 0 auto 16px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--gold-light), var(--gold-deep));
    display: flex; align-items: center; justify-content: center;
    color: var(--charcoal-deep);
    font-family: var(--font-display);
    font-size: 1.6rem;
}
.founder-card h4 { margin-bottom: 2px; }
.founder-role { color: var(--gold-deep); font-size: 0.9rem; font-weight: 600; }
.founder-city { color: var(--ink-soft); font-size: 0.86rem; }

/* Membership categories */
.member-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.member-card { border: 1px solid var(--line); padding: 30px; background: var(--paper); position: relative; }
.member-card.is-highlight { border-color: var(--gold); }
.member-badge {
    display: inline-block; font-size: 0.76rem; font-weight: 700;
    background: var(--gold); color: var(--charcoal-deep);
    padding: 4px 10px; border-radius: 999px; margin-bottom: 14px;
}

/* CTA band */
.cta-band {
    background: var(--burgundy);
    color: var(--paper);
    padding: 70px 0;
    text-align: center;
}
.cta-band h2 { color: var(--paper); }
.cta-band p { margin: 0 auto 30px; color: rgba(246,241,227,0.85); }
.cta-band .btn-gold { color: var(--charcoal-deep); }

/* ---------------- Gallery ---------------- */
.gallery-hero {
    background: var(--charcoal);
    color: var(--paper);
    padding: 80px 0 56px;
    text-align: center;
}
.gallery-hero h1 { color: var(--paper); }
.gallery-count { color: var(--gold-light); font-weight: 600; }

.gallery-toolbar {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 26px 0 44px;
}
.gallery-filter {
    border: 1px solid var(--line);
    background: transparent;
    padding: 8px 18px;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--ink-soft);
    cursor: pointer;
    border-radius: 999px;
}
.gallery-filter.is-active, .gallery-filter:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.gallery-grid {
    columns: 4 240px;
    column-gap: 16px;
}
.gallery-item {
    break-inside: avoid;
    margin-bottom: 16px;
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--paper-deep);
    cursor: zoom-in;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.gallery-item.is-visible { opacity: 1; transform: none; }
.gallery-item img { width: 100%; height: auto; display: block; transition: transform 0.4s ease; }
.gallery-item:hover img { transform: scale(1.04); }

.gallery-empty {
    text-align: center;
    padding: 60px 20px;
    border: 1px dashed var(--line);
    color: var(--ink-soft);
}

.gallery-loadmore { display: flex; justify-content: center; margin-top: 46px; }
.gallery-sentinel { height: 1px; }

/* Lightbox */
.lightbox {
    position: fixed; inset: 0; z-index: 100;
    background: rgba(20, 16, 11, 0.94);
    display: none;
    align-items: center; justify-content: center;
    padding: 40px;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 82vh; border: 1px solid var(--line-light); }
.lightbox-close, .lightbox-prev, .lightbox-next {
    position: absolute;
    background: transparent;
    border: 1px solid var(--line-light);
    color: var(--paper);
    cursor: pointer;
    width: 46px; height: 46px;
    border-radius: 50%;
    font-size: 1.2rem;
    display: flex; align-items: center; justify-content: center;
}
.lightbox-close { top: 24px; right: 24px; }
.lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-caption { position: absolute; bottom: 26px; left: 0; right: 0; text-align: center; color: rgba(246,241,227,0.8); font-size: 0.9rem; }

/* ---------------- Contact ---------------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; }
.form-field { margin-bottom: 20px; }
.form-field label { display: block; font-size: 0.86rem; font-weight: 600; margin-bottom: 6px; color: var(--ink-soft); }
.form-field input, .form-field textarea, .form-field select {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid var(--line);
    background: var(--paper);
    font-family: var(--font-body);
    font-size: 0.98rem;
    border-radius: var(--radius);
}
.form-field textarea { min-height: 130px; resize: vertical; }
.contact-info-list { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 20px; }
.contact-info-list li { border-bottom: 1px solid var(--line); padding-bottom: 16px; }
.contact-info-list strong { display: block; font-family: var(--font-display); font-size: 1.05rem; margin-bottom: 3px; }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--charcoal-deep); color: rgba(246,241,227,0.82); padding: 72px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid var(--line-light); }
.footer-logo { width: 52px; height: 52px; border-radius: 50%; margin-bottom: 16px; }
.footer-baseline { font-family: var(--font-display); font-style: italic; color: var(--gold-light); margin: 0 0 10px; }
.footer-desc { font-size: 0.92rem; color: rgba(246,241,227,0.65); max-width: 34ch; }
.footer-col h3 { color: var(--paper); font-family: var(--font-body); font-size: 0.86rem; text-transform: none; letter-spacing: 0.03em; margin-bottom: 16px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 0.92rem; }
.footer-col a:hover { color: var(--gold-light); }
.footer-contact li { color: rgba(246,241,227,0.72); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 22px 0; font-size: 0.8rem; color: rgba(246,241,227,0.55); }

.whatsapp-fab {
    position: fixed; bottom: 26px; right: 26px; z-index: 50;
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--gold);
    color: var(--charcoal-deep);
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow);
}

/* ---------------- Responsive ---------------- */
@media (max-width: 980px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero-figure { order: -1; max-width: 220px; margin: 0 auto; }
    .two-col, .card-grid, .founder-grid, .bureau-grid, .member-grid, .contact-grid { grid-template-columns: 1fr; }
    .hero-stats { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .gallery-grid { columns: 2 200px; }
}

@media (max-width: 1024px) {
    .primary-nav {
        position: fixed; inset: 0;
        z-index: 45;
        background: var(--paper);
        flex-direction: column; align-items: flex-start;
        justify-content: flex-start;
        padding: 100px 28px 30px;
        transform: translateX(100%);
        transition: transform 0.25s ease;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .primary-nav.is-open { transform: translateX(0); }
    .primary-nav ul { flex-direction: column; gap: 4px; width: 100%; }
    .primary-nav a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
    .nav-cta { margin-top: 20px; }
    .nav-toggle { display: flex; position: relative; z-index: 46; }
}

@media (max-width: 760px) {
    .article-item { grid-template-columns: 1fr; gap: 6px; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; }
}

/* Empêche le fond de défiler quand le menu mobile est ouvert */
body.nav-open { overflow: hidden; }

/* =========================================================
   Menu déroulant « À propos »
   ========================================================= */
.primary-nav .has-dropdown { position: relative; display: flex; align-items: center; gap: 2px; }
.dropdown-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    background: none; border: 0; padding: 6px 4px; cursor: pointer; color: var(--ink-soft);
}
.dropdown-toggle svg { width: 11px; height: 8px; transition: transform 0.2s ease; }
.has-dropdown.is-open .dropdown-toggle svg { transform: rotate(180deg); }
.primary-nav .dropdown {
    display: none; flex-direction: column; gap: 0;
    position: absolute; top: 100%; left: -14px; min-width: 220px;
    margin: 0; padding: 8px; list-style: none;
    background: var(--paper); border: 1px solid var(--line);
    border-top: 2px solid var(--gold); box-shadow: var(--shadow); z-index: 50;
}
.has-dropdown.is-open > .dropdown { display: flex; }
.primary-nav .dropdown a { display: block; padding: 10px 14px; border-bottom: 0; white-space: nowrap; }
.primary-nav .dropdown a:hover, .primary-nav .dropdown a.is-active { background: var(--paper-deep); }
/* Desktop : l'ouverture est pilotée par le JS (survol, clic sur la flèche, clavier)
   pour éviter un menu « coincé » ouvert par :focus-within après un clic. */
@media (min-width: 1025px) {
    /* Tous les liens de premier niveau ont la même boîte -> alignement vertical identique */
    .primary-nav > ul { align-items: center; }
    .primary-nav > ul > li > a { display: block; }
    /* Zone de survol continue entre le lien et le sous-menu (pas de « trou ») */
    .primary-nav .has-dropdown::after {
        content: ""; position: absolute; left: -14px; right: 0; top: 100%; height: 10px;
    }
    .primary-nav .dropdown { top: calc(100% + 8px); }
}
@media (max-width: 1024px) {
    .primary-nav .has-dropdown { flex-wrap: wrap; }
    .primary-nav .has-dropdown > a { flex: 1; }
    .dropdown-toggle { padding: 12px 14px; border-bottom: 1px solid var(--line); }
    .primary-nav .dropdown {
        position: static; width: 100%; min-width: 0; border: 0; box-shadow: none;
        background: transparent; padding: 0 0 0 16px;
    }
}

/* =========================================================
   Rapports & activités (pages publiques)
   ========================================================= */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pub-empty { text-align: center; color: var(--ink-soft); padding: 60px 0; margin: 0 auto; }
.pub-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.pub-count { margin: 0; color: var(--ink-soft); }
.pub-sort { display: flex; gap: 8px; }
.pub-sort a { border: 1px solid var(--line); padding: 7px 16px; border-radius: 999px; font-size: 0.86rem; font-weight: 600; color: var(--ink-soft); }
.pub-sort a:hover { border-color: var(--gold); }
.pub-sort a.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.pub-meta { margin: 0 0 6px; font-size: 0.86rem; color: var(--gold-deep); font-weight: 600; }
.year-title { margin: 36px 0 18px; padding-bottom: 8px; border-bottom: 1px solid var(--line); font-size: 1.6rem; color: var(--gold-deep); }

.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 0; }
.tags li { background: var(--paper-deep); border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; font-size: 0.8rem; font-weight: 600; color: var(--ink-soft); }

.report-grid, .activity-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-bottom: 8px; }
.report-card {
    display: flex; flex-direction: column;
    background: #fffdf7; border: 1px solid var(--line);
    box-shadow: 0 6px 18px rgba(20, 16, 11, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.report-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.report-thumb-link { display: block; overflow: hidden; }
.report-thumb { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: var(--paper-deep); transition: transform 0.4s ease; }
.report-card:hover .report-thumb { transform: scale(1.04); }
.report-body { display: flex; flex-direction: column; flex: 1; padding: 22px; }
.report-body h3 { font-size: 1.25rem; margin-bottom: 0.4em; }
.report-body h3 a:hover { color: var(--gold-deep); }
.report-body > p:not(.pub-meta) { color: var(--ink-soft); font-size: 0.98rem; margin: 0 0 16px; }
.report-body .btn { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; align-self: flex-start; }

.activity-card { display: flex; flex-direction: column; background: #fffdf7; border: 1px solid var(--line); box-shadow: 0 6px 18px rgba(20, 16, 11, 0.06); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.activity-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.activity-thumb { display: block; overflow: hidden; }
.activity-thumb img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; background: var(--paper-deep); transition: transform 0.4s ease; }
.activity-card:hover .activity-thumb img { transform: scale(1.04); }
.activity-body { display: flex; flex-direction: column; flex: 1; padding: 22px; }
.activity-body h3 { font-size: 1.25rem; margin-bottom: 0.4em; }
.activity-body h3 a:hover { color: var(--gold-deep); }
.activity-body p:not(.pub-meta) { color: var(--ink-soft); font-size: 0.98rem; margin: 0 0 18px; }
.more-link { margin-top: auto; font-weight: 700; color: var(--gold-deep); border-bottom: 2px solid transparent; align-self: flex-start; }
.more-link:hover { border-color: var(--gold); }

.pager { display: flex; justify-content: center; gap: 8px; margin-top: 44px; flex-wrap: wrap; }
.pager-link { min-width: 42px; height: 42px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); font-weight: 600; }
a.pager-link:hover { border-color: var(--gold); }
.pager-link.is-current { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.detail-layout { display: grid; grid-template-columns: 1fr 320px; gap: 48px; align-items: start; }
.detail-cover { width: 100%; height: auto; margin-bottom: 26px; background: var(--paper-deep); box-shadow: var(--shadow); }
.detail-main .prose p { max-width: 70ch; }
.detail-main h2 { margin-top: 42px; }
.detail-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.detail-photos a { display: block; aspect-ratio: 1 / 1; overflow: hidden; background: var(--paper-deep); }
.detail-photos img { width: 100%; height: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: opacity 0.2s, transform 0.4s ease; }
.detail-photos a:hover img { opacity: 0.9; transform: scale(1.03); }
.detail-aside { display: flex; flex-direction: column; gap: 22px; position: sticky; top: 100px; }
.detail-aside .btn { align-self: flex-start; }
.detail-aside .card p { font-size: 0.96rem; }
.detail-aside .tags { margin-bottom: 0; }

@media (max-width: 980px) {
    .detail-layout { grid-template-columns: 1fr; gap: 32px; }
    .detail-aside { position: static; }
}
@media (max-width: 899px) {
    .report-grid, .activity-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
    .report-grid, .activity-grid { grid-template-columns: 1fr; }
    .detail-photos { gap: 8px; }
}
