/* ============================================================
   SOUS-SITES DES FLEURS DU MONDE — styles partagés
   Complète css/styles.css (copie de la feuille du site principal,
   à ne jamais modifier). Tout est additif, préfixé « ss- » ou
   « fdm- », sauf quelques neutralisations ciblées du gabarit.
   ============================================================ */

/* ---------- Chrome unifié : bandeau à deux étages ---------- */

header.ss-entete {
    padding: 0;
    text-align: left;
    z-index: 1500;
}

/* Étage 1 — la bande Les Fleurs du Monde (toujours vert antique).
   Au chargement : le grand bandeau du site principal (titre centré,
   nav des 4 sections dessous). Au défilement de main : il se rétracte
   en bande fine (classe ss-reduit posée sur le header par js/site.js).
   Le morphing repose sur le positionnement absolu des deux éléments —
   toutes les propriétés animées sont interpolables. */
.fdm-bande {
    position: relative;
    height: 106px;
    background: var(--vert_antique);
}

.fdm-marque {
    position: absolute;
    top: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: #f8f9fa;
    text-decoration: none;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: normal;   /* comme le h1 du site principal */
    white-space: nowrap;
}

.fdm-marque:hover { text-decoration: underline; text-underline-offset: 15%; }

/* La fleur ❀ n'apparaît que dans la bande rétractée */
.fdm-marque .fdm-fleur { display: none; }

/* Barre d'outils de l'arbre, insérée par js/site.js en tête de la
   sidebar : tout déplier (⊞), tout replier (⊟), replier la barre (⇤).
   Sticky : elle reste visible au défilement du menu. Sidebar repliée,
   seule la flèche (inversée en ⇥) subsiste, centrée dans la bande. */
.ss-outils-arbre {
    position: sticky;
    top: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.35rem;
    padding: 0.3rem 0.45rem 0.4rem;
    margin-bottom: 0.9rem;   /* écart franc avec les têtes de sections */
    background: #e9ecef;
    z-index: 10;
}

.ss-outils-arbre button {
    display: block;
    width: 24px;
    height: 24px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    color: #8a8a8a;
    font-size: 1.05rem;
    line-height: 24px;
    text-align: center;
}

.ss-outils-arbre button:hover { color: #4a4a4a; }

.ss-chercher::before { content: "\2315"; }  /* ⌕ */
.ss-deplier::before { content: "\229e"; }   /* ⊞ */
.ss-replier::before { content: "\229f"; }   /* ⊟ */
.ss-repli::before   { content: "\21e4"; }   /* ⇤ */

/* Champ de filtrage (⌕) : pleine largeur sous la rangée de boutons */
.ss-outils-arbre input {
    flex: 1 1 100%;
    display: none;
    min-width: 0;
    margin-top: 0.3rem;
    font-family: inherit;
    font-size: 0.9rem;
    color: #4a4a4a;
    background: #fdfdfb;
    border: 1px solid #c9c4b6;
    border-radius: 5px;
    padding: 0.25rem 0.5rem;
}
.ss-outils-arbre.ss-cherche input { display: block; }
body.ss-nav-fermee .ss-outils-arbre input { display: none; }

/* Filtrage : seules les entrées contenant la chaîne (li.ss-hit), leur
   chemin d'ancêtres (li.ss-hit-chemin) et la descendance d'une entrée
   trouvée restent visibles. */
.ss-filtre .menu li { display: none; }
.ss-filtre .menu li.ss-hit,
.ss-filtre .menu li.ss-hit-chemin,
.ss-filtre .menu li.ss-hit li { display: block; }
.ss-filtre .menu ul.submenu { display: none; }
.ss-filtre .menu li.ss-hit > ul.submenu,
.ss-filtre .menu li.ss-hit ul.submenu,
.ss-filtre .menu li.ss-hit-chemin > ul.submenu { display: block; }

body.ss-nav-fermee .ss-outils-arbre {
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
}
body.ss-nav-fermee .ss-chercher,
body.ss-nav-fermee .ss-deplier,
body.ss-nav-fermee .ss-replier { display: none; }
body.ss-nav-fermee .ss-repli::before { content: "\21e5"; }   /* ⇥ */

/* Repli : la largeur s'interpole ; le menu garde sa largeur d'origine
   (pas de recomposition pendant la glissade) et s'efface. */
/* Transitions du chrome : activées seulement après le premier rendu
   (body.ss-pret, posé par js/site.js en double requestAnimationFrame).
   Les états retenus — chrome compact de session, sidebar repliée — se
   peignent ainsi directement, sans animation de rattrapage au
   chargement de chaque page. */
body.ss-pret .fdm-bande { transition: height 0.25s ease; }
body.ss-pret .fdm-marque {
    transition: font-size 0.25s ease, top 0.25s ease, left 0.25s ease,
                transform 0.25s ease, letter-spacing 0.25s ease;
}
body.ss-pret .fdm-nav { transition: bottom 0.25s ease, left 0.25s ease, transform 0.25s ease; }
body.ss-pret .fdm-nav ul { transition: gap 0.25s ease; }
body.ss-pret .fdm-nav ul li a { transition: font-size 0.25s ease; }
body.ss-pret .ss-bande2 { transition: padding 0.25s ease; }
body.ss-pret .ss-bande2 h1 { transition: font-size 0.25s ease; }
body.ss-pret .ss-bande2 .devise {
    transition: max-height 0.25s ease, opacity 0.2s ease;
}
body.ss-pret .sidebar { transition: width 0.25s ease; }
body.ss-pret .sidebar > .menu {
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

@media (min-width: 769px) {
    body.ss-nav-fermee .sidebar {
        width: 26px;
        overflow: hidden;
    }
    body.ss-nav-fermee .sidebar > .menu {
        width: 16vw;
        opacity: 0;
        visibility: hidden;
    }
}

.fdm-nav {
    position: absolute;
    bottom: 0.7rem;
    left: 50%;
    transform: translateX(-50%);
    width: max-content;   /* l'absolu à left:50% ne dispose que d'une
                             demi-largeur : sans ceci les liens se replient */
}

/* Liens de nav : tailles/couleurs/survol de styles.css (nav ul li a),
   seul l'écartement est piloté ici (gap interpolable, contrairement
   au width: 14vw des li du site principal). */
.fdm-nav ul {
    display: flex;
    gap: 6vw;
    margin: 0;
    padding: 0;
}

.fdm-nav ul li {
    width: auto;              /* neutralise nav ul li { width: 14vw } */
    margin: 0;
}

/* État rétracté de l'étage 1 : la bande fine d'origine */
header.ss-reduit .fdm-bande { height: 36px; }

header.ss-reduit .fdm-marque {
    top: 50%;
    left: 0.9rem;
    transform: translateY(-50%);
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.06em;
}

header.ss-reduit .fdm-marque .fdm-fleur { display: inline; }

/* Bande fine : la nav quitte le centre pour s'aligner sur le bord droit
   de la sidebar déployée (16vw + retrait de 1.2rem), à l'aplomb du titre
   de la bande 2. Position fixe : l'étage 1 est indépendant de la sidebar,
   son repli ne déplace pas la nav. */
header.ss-reduit .fdm-nav {
    left: calc(16vw + 1.2rem);
    bottom: 50%;
    transform: translate(0, 50%);
}

header.ss-reduit .fdm-nav ul { gap: 1.6rem; }

header.ss-reduit .fdm-nav ul li a { font-size: 0.85rem; }

/* Étage 2 — la bande du sous-site (fond : couleur d'accent injectée).
   Elle n'est PAS générique : elle vit dans la colonne de droite
   (.ss-colonne), à droite de la sidebar, sous la bande 1 pleine largeur. */
.ss-colonne {
    grid-area: main;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;   /* sans quoi la rangée de grille gonfle à la hauteur
                        du contenu et main ne défile plus (cf. sidebar) */
}

.ss-colonne main {
    flex: 1 1 auto;
    min-height: 0;
}

.ss-bande2 {
    position: relative;
    color: #f8f9fa;
    background: var(--ss-accent, var(--vert_antique));
    padding: 0.45rem 5rem 0.45rem 1.2rem;
}

.ss-bande2 h1 {
    font-size: 1.55rem;
    text-align: left;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* hors du <header>, les règles header h1 a de styles.css ne portent plus */
.ss-bande2 h1 a {
    color: #f8f9fa;
    text-decoration: none;
}

.ss-bande2 h1 a:hover {
    text-decoration: underline;
    text-decoration-thickness: 1%;
    text-underline-offset: 15%;
}

.ss-bande2 .devise {
    margin: 0;
    font-style: italic;
    font-size: 0.9rem;
    color: #d8c9a3;
    letter-spacing: 0.04em;
    max-height: 1.5em;
    opacity: 1;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* État rétracté (au défilement de main, via js/site.js) */
.ss-bande2.ss-reduit { padding-top: 0.18rem; padding-bottom: 0.18rem; }
.ss-bande2.ss-reduit h1 { font-size: 1.1rem; }
.ss-bande2.ss-reduit .devise { max-height: 0; opacity: 0; }

/* Bande 2 avec ses liens de sections (sous-site monté dans le site
   principal : même disposition que la bande de l'Atlas Balzac). */
.ss-bande2.ss-bande2-liens {
    display: flex;
    align-items: center;
    gap: 0.2rem 1.5rem;
    flex-wrap: wrap;
}

.ss-bande2-liens h1 { flex: 0 0 auto; }

.ss-bande2-nav {
    display: flex;
    gap: 1.05rem;
    flex-wrap: wrap;
}

.ss-bande2-nav a {
    color: #f8f9fa;
    font-size: 0.98rem;
    opacity: 0.92;
    text-decoration: none;
}

.ss-bande2-nav a:hover,
.ss-bande2-nav a.on {
    opacity: 1;
    text-decoration: underline;
    text-underline-offset: 15%;
}

.ss-bande2.ss-reduit .ss-bande2-nav a { font-size: 0.85rem; }

@media (max-width: 768px) {
    .ss-bande2-nav { gap: 0.6rem; }
    .ss-bande2-nav a { font-size: 0.82rem; }
}

/* Bascule de langue : recentrée dans l'étage 2 */
.ss-bande2 #lang-chg {
    top: 50%;
    transform: translateY(-50%);
    bottom: auto;
    right: 12px;
}

.ss-bande2 #lang-icon { width: 26px; }

/* Sommaire de page (« Sur cette page ») — pages longues seulement */
.ss-sommaire {
    position: absolute;
    right: 56px;
    top: 50%;
    transform: translateY(-50%);
}

.ss-sommaire > summary {
    list-style: none;
    cursor: pointer;
    color: #f8f9fa;
    font-size: 0.85rem;
    opacity: 0.85;
    white-space: nowrap;
}

.ss-sommaire > summary::-webkit-details-marker { display: none; }
.ss-sommaire > summary::after { content: " ▾"; font-size: 0.75em; }
.ss-sommaire[open] > summary::after { content: " ▴"; font-size: 0.75em; }
.ss-sommaire > summary:hover { opacity: 1; }

.ss-sommaire ul {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    min-width: 240px;
    max-width: 340px;
    max-height: 60vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 6px;
    padding: 0.6rem 1rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    list-style: none;
    z-index: 2100;
    text-align: left;
    margin: 0;
}

.ss-sommaire ul li { margin: 0.4rem 0; }

.ss-sommaire ul li a {
    color: #4a4a4a;
    font-size: 0.95rem;
    text-decoration: none;
}

.ss-sommaire ul li a:hover { text-decoration: underline; }

/* ---------- L'arbre Fleurs du Monde (sidebar unique) ---------- */

/* Le div d'accrochage (gabarit et coquilles JS) doit être transparent
   pour la grille : sinon il étire la rangée à la hauteur de l'arbre et
   l'overflow-y de .sidebar (styles.css) ne se déclenche jamais. */
#sidebar-container { display: contents; }

.ss-arbre .menu { padding: 0.9rem 0.8rem; }
.ss-arbre .menu li { margin-bottom: 0.5rem; }
.ss-arbre .menu li a { font-size: 1rem; }
.ss-arbre .submenu li { margin: 0.35rem 0; }
.ss-arbre .submenu li a { font-size: 0.95rem; }
.ss-arbre .submenu .submenu li a { font-size: 0.9rem; }

.submenu.ss-ouvert { display: block; }

/* Branche entière « à venir » : quand toutes les pages d'un menu sont des
   coquilles vides (liens gris), son libellé se grise aussi (posé par le
   générateur du menu ; purement visuel, le dépliage reste actif). */
.ss-arbre a.ss-gris-branche,
.ss-arbre a.ss-gris-branche:hover { color: #b8b8b8; }   /* même gris que .coming-soon */

/* Feuille de site : le libellé navigue, la flèche déplie */
.ss-arbre li.ss-feuille { position: relative; }
.ss-arbre li.ss-feuille > a { padding-right: 1.4rem; }
.ss-arbre li.ss-feuille > .ss-bascule {
    position: absolute;
    top: 0.15em;
    right: 0.2rem;
    cursor: pointer;
    padding: 0.1rem 0.3rem;
}

/* Liens vers le site principal en ligne / feuilles non bâties */
.ss-arbre a.ss-en-ligne { color: #8a8a8a; }
.ss-arbre a.ss-en-ligne:hover { color: hsl(210, 51%, 36%); }
.ss-arbre a.ss-gris,
.ss-arbre a.ss-gris:hover {
    color: #b8b8b8;
    cursor: default;
    pointer-events: none;
    text-decoration: none;
}

.fdm-nav a.ss-en-ligne { color: #f8f9fa; }

/* ---------- Mobile ---------- */

@media (max-width: 768px) {
    .fdm-nav { display: none; }
    .fdm-bande { height: 58px; }
    .fdm-marque {
        top: 50%;
        transform: translate(-50%, -50%);
        font-size: 1.4rem;
    }
    header.ss-reduit .fdm-bande { height: 36px; }
    header.ss-reduit .fdm-marque {
        left: 50%;
        transform: translate(-50%, -50%);
        font-size: 1rem;
        font-weight: 400;
    }
    .hamburger { top: 50%; left: 10px; transform: translateY(-50%); }
    .ss-repli { display: none; }   /* sur mobile : tiroir via hamburger */

    .ss-bande2 { padding: 0.2rem 4.2rem 0.2rem 0.9rem; }
    .ss-bande2 h1 { font-size: 1.1rem; }
    .ss-bande2 .devise { max-height: 0; opacity: 0; }

    .ss-bande2 #lang-icon { width: 22px; }
    .ss-sommaire { right: 46px; }

    .sidebar.drawer-open { overflow-y: auto; padding-bottom: 2rem; }
}

/* Note d'attribution dans le corps d'une page (même allure que
   #site-credits, réservé au pied de page de copyright). */
.credits-note {
    font-size: 0.8rem;
    line-height: 1.3rem;
    margin-top: 3rem;
    text-align: center;
}

/* ---------- Encadré « Repères » ---------- */

.ss-reperes {
    border: 1px solid #d8d2c4;
    border-left: 5px solid var(--ss-accent, var(--vert_antique));
    border-radius: 8px;
    background: #f4f3ee;
    padding: 1rem 1.3rem;
    margin: 1.4rem 0;
    font-size: 0.95rem;
}

.ss-reperes h3 {
    margin: 0 0 0.6rem;
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ss-accent, var(--vert_antique));
}

.ss-reperes dl {
    margin: 0;
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 0.25rem 1rem;
}

.ss-reperes dt {
    font-weight: 600;
    color: #5a5a5a;
}

.ss-reperes dd {
    margin: 0;
}

/* ---------- Tableaux ---------- */

table.ss-table {
    border-collapse: collapse;
    margin: 1.2rem 0;
    font-size: 0.82rem;
    width: 100%;
}

table.ss-table caption {
    caption-side: top;
    text-align: left;
    font-style: italic;
    color: #6a6a6a;
    margin-bottom: 0.4rem;
}

table.ss-table th {
    text-align: left;
    border-bottom: 2px solid var(--ss-accent, var(--vert_antique));
    padding: 0.35rem 0.6rem;
    font-variant: small-caps;
    letter-spacing: 0.03em;
}

table.ss-table td {
    border-bottom: 1px solid #e2e0d8;
    padding: 0.28rem 0.55rem;
    vertical-align: top;
    white-space: nowrap;
}

/* Les fiches dépliées et longues notes gardent le retour à la ligne */
table.ss-table tr.ss-fiche td { white-space: normal; }

table.ss-table tr:hover td {
    background: #f2f1ea;
}

/* Grand tableau : à envelopper dans ce conteneur pour défiler sans casser la page */
.ss-defilant {
    overflow-x: auto;
}

/* ---------- Chronologie ---------- */

ul.ss-chrono {
    list-style: none;
    padding-left: 0;
    margin: 1.2rem 0;
    border-left: 3px solid var(--ss-accent, var(--vert_antique));
}

ul.ss-chrono li {
    position: relative;
    padding: 0.15rem 0 0.15rem 1.4rem;
    margin: 0.45rem 0;
}

ul.ss-chrono li::before {
    content: "";
    position: absolute;
    left: -7px;
    top: 0.55em;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #f9f9f9;
    border: 3px solid var(--ss-accent, var(--vert_antique));
}

ul.ss-chrono .ss-date {
    font-variant: small-caps;
    font-weight: 600;
    color: var(--ss-accent, var(--vert_antique));
    margin-right: 0.5rem;
}

/* ---------- Citation en exergue ---------- */

blockquote.ss-exergue {
    margin: 1.6rem 2rem;
    padding-left: 1.2rem;
    border-left: 3px solid #c9b98a;
    font-style: italic;
    font-size: 1.1rem;
    color: #5a5a5a;
}

blockquote.ss-exergue footer {
    margin-top: 0.4rem;
    font-style: normal;
    font-size: 0.9rem;
    text-align: right;
    color: #8a8a8a;
}

/* ---------- Cartes (grilles de renvois) ---------- */

.ss-cartes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.9rem;
    margin: 1.4rem 0;
}

a.ss-carte {
    display: block;
    border: 1px solid #ddd8cc;
    border-radius: 8px;
    background: #fdfdfb;
    padding: 0.85rem 1rem;
    text-decoration: none;
    color: #4a4a4a;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

a.ss-carte:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

a.ss-carte .ss-carte-titre {
    display: block;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--ss-accent, var(--vert_antique));
    margin-bottom: 0.25rem;
}

a.ss-carte .ss-carte-detail {
    display: block;
    font-size: 0.9rem;
    line-height: 1.35;
    color: #6a6a6a;
}

/* ---------- Notes, bibliographies ---------- */

.ss-biblio {
    font-size: 0.95rem;
}

.ss-biblio li {
    margin-bottom: 0.4rem;
}

.ss-note {
    font-size: 0.85rem;
    color: #8a8a8a;
    font-style: italic;
}

/* ---------- Bases de données (moteur js/base.js) ---------- */

.ss-outils {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
    margin: 1.2rem 0 0.8rem;
    padding: 0.7rem 0.9rem;
    background: #efede6;
    border: 1px solid #ddd8cc;
    border-radius: 8px;
}

.ss-outils input[type="search"],
.ss-outils select {
    font-family: inherit;
    font-size: 0.95rem;
    color: #4a4a4a;
    background: #fdfdfb;
    border: 1px solid #c9c4b6;
    border-radius: 5px;
    padding: 0.35rem 0.6rem;
    max-width: 16rem;
}

.ss-facette {
    position: relative;
}

.ss-facette summary {
    list-style: none;
    cursor: pointer;
    font-size: 0.95rem;
    color: #4a4a4a;
    background: #fdfdfb;
    border: 1px solid #c9c4b6;
    border-radius: 5px;
    padding: 0.35rem 0.6rem;
    white-space: nowrap;
}

.ss-facette summary::after {
    content: " ▾";
    font-size: 0.8em;
    color: #8a8a8a;
}

.ss-facette[open] summary {
    border-color: var(--ss-accent, var(--vert_antique));
}

.ss-facette-liste {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    z-index: 30;
    min-width: 12rem;
    max-height: 17rem;
    overflow-y: auto;
    padding: 0.5rem 0.7rem;
    background: #fdfdfb;
    border: 1px solid #c9c4b6;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}

.ss-facette-liste label {
    display: block;
    font-size: 0.92rem;
    color: #4a4a4a;
    padding: 0.12rem 0;
    cursor: pointer;
    white-space: nowrap;
}

.ss-facette-liste button {
    font-family: inherit;
    font-size: 0.85rem;
    color: #8a8a8a;
    background: none;
    border: none;
    padding: 0 0 0.3rem;
    cursor: pointer;
}

.ss-facette-liste button:hover,
.ss-facette-liste label:hover {
    color: var(--ss-accent, var(--vert_antique));
}

.ss-facette-n {
    color: #8a8a8a;
    font-size: 0.85em;
}

/* ---------- Facette « plage » : curseur à deux poignées ---------- */

.ss-facette-liste.ss-plage {
    min-width: 16rem;
}

.ss-plage-lib {
    text-align: center;
    font-weight: 600;
    color: #4a4a4a;
    padding: 0.1rem 0 0.6rem;
}

.ss-plage-piste {
    position: relative;
    height: 1.6rem;
    margin: 0 0.45rem;
}

.ss-plage-fond,
.ss-plage-barre {
    position: absolute;
    top: 0.7rem;
    height: 4px;
    border-radius: 2px;
}

.ss-plage-fond { left: 0; right: 0; background: #dcd8cc; }
.ss-plage-barre { background: var(--ss-accent, var(--vert_antique)); }

.ss-plage-piste input[type="range"] {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 1.6rem;
    margin: 0;
    background: none;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
}

.ss-plage-piste input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    pointer-events: auto;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #fdfdfb;
    border: 2px solid var(--ss-accent, var(--vert_antique));
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
    cursor: pointer;
}

.ss-plage-piste input[type="range"]::-moz-range-thumb {
    pointer-events: auto;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #fdfdfb;
    border: 2px solid var(--ss-accent, var(--vert_antique));
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
    cursor: pointer;
}

.ss-plage-piste input[type="range"]::-moz-range-track { background: none; }

.ss-plage-bornes {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #8a8a8a;
    padding-bottom: 0.3rem;
}

/* ---------- Facette « arbre » : trois niveaux repliables ---------- */

.ss-facette-liste.ss-arbre-menu {
    min-width: 24rem;
    max-width: 32rem;
    max-height: 26rem;
}

.ss-arbre-menu input[type="search"] {
    width: 100%;
    font: inherit;
    font-size: 0.9rem;
    padding: 0.25rem 0.45rem;
    border: 1px solid #c9c4b6;
    border-radius: 4px;
    background: #fff;
}

.ss-arbre-boutons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 0.4rem 0;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid #e6e2d6;
}

.ss-facette-liste .ss-arbre-boutons button { padding: 0; }

ul.ss-arbre {
    list-style: none;
    margin: 0;
    padding: 0;
}

ul.ss-arbre ul.ss-arbre {
    margin: 0 0 0 0.5rem;
    padding-left: 0.5rem;
    border-left: 1px solid #e6e2d6;
}

.ss-noeud > label {
    display: inline;
    white-space: normal;
}

.ss-facette-liste .ss-noeud-bascule {
    display: inline-block;
    width: 1.1rem;
    padding: 0;
    text-align: left;
    color: #8a8a8a;
}

.ss-noeud[data-niveau="1"] > label { font-weight: 600; }
.ss-noeud[data-niveau="3"] > label { color: #6a6a6a; }

.ss-compte {
    margin-left: auto;
    font-variant: small-caps;
    letter-spacing: 0.04em;
    color: var(--ss-accent, var(--vert_antique));
}

/* ---------- Filtres actifs, fenêtre ---------- */

.ss-actifs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    margin: -0.4rem 0 0.8rem;
    padding: 0 0.2rem;
}

.ss-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    line-height: 1.5;
    color: #4a4a4a;
    background: #fdfdfb;
    border: 1px solid var(--ss-accent, var(--vert_antique));
    border-radius: 999px;
    padding: 0.1rem 0.3rem 0.1rem 0.65rem;
}

.ss-chip button {
    font-family: inherit;
    font-size: 1rem;
    line-height: 1;
    color: #8a8a8a;
    background: none;
    border: none;
    padding: 0 0.15rem;
    cursor: pointer;
}

.ss-chip button:hover { color: var(--ss-accent, var(--vert_antique)); }

.ss-vider {
    font-family: inherit;
    font-size: 0.85rem;
    color: #8a8a8a;
    background: none;
    border: none;
    text-decoration: underline;
    cursor: pointer;
}

.ss-vider:hover { color: var(--ss-accent, var(--vert_antique)); }

.ss-plus {
    text-align: center;
    margin: 0.2rem 0 1.2rem;
}

.ss-plus button {
    font-family: inherit;
    font-size: 0.9rem;
    font-variant: small-caps;
    letter-spacing: 0.05em;
    color: var(--ss-accent, var(--vert_antique));
    background: #fdfdfb;
    border: 1px solid #c9c4b6;
    border-radius: 5px;
    padding: 0.4rem 1.4rem;
    cursor: pointer;
}

.ss-plus button:hover {
    background: var(--ss-accent, var(--vert_antique));
    border-color: var(--ss-accent, var(--vert_antique));
    color: #fdfdfb;
}

.ss-statistiques {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem 2.5rem;
    margin: 0.8rem 0 0.4rem;
}

.ss-stat-bloc {
    flex: 1 1 260px;
    max-width: 420px;
}

.ss-stat-bloc h4 {
    margin: 0.4rem 0;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #8a8a8a;
}

.ss-barre {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    margin: 0.15rem 0;
}

.ss-barre-nom {
    flex: 0 0 11em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: right;
    color: #5a5a5a;
}

.ss-barre-jauge {
    flex: 1 1 auto;
    height: 0.75em;
    background: #e7e4da;
    border-radius: 3px;
    overflow: hidden;
}

.ss-barre-jauge span {
    display: block;
    height: 100%;
    background: var(--ss-accent, var(--vert_antique));
    opacity: 0.75;
}

.ss-barre-n {
    flex: 0 0 2.5em;
    font-variant: small-caps;
    color: #8a8a8a;
}

.ss-base tr.ss-ligne { cursor: pointer; }

.ss-base tr.ss-groupe th {
    background: #efede6;
    border-bottom: 1px solid #cfc9ba;
    font-size: 1.02rem;
    padding: 0.5rem 0.6rem;
}

.ss-groupe-n { font-weight: normal; color: #9a9a9a; }

.ss-base tr.ss-fiche td {
    background: #f6f5ef;
    border-left: 4px solid var(--ss-accent, var(--vert_antique));
    font-size: 0.92rem;
}

.ss-base tr.ss-fiche dl {
    margin: 0.3rem 0;
    display: grid;
    /* fit-content : la colonne des intitulés se serre sur son contenu mais
       ne dépasse jamais 9rem — sans quoi un intitulé long écrase la colonne
       de contenu, qui est la seule qui compte. */
    grid-template-columns: fit-content(9rem) 1fr;
    gap: 0.2rem 1rem;
}

.ss-base tr.ss-fiche dt { font-weight: 600; color: #6a6a6a; }
.ss-base tr.ss-fiche dd { margin: 0; }

/* ---------- Accordéon des tomes (page-hub des chapitres) ---------- */

.ss-tomes .ss-outils { margin-bottom: 0.8rem; }

.ss-tomes .ss-outils button {
    font-family: inherit;
    font-size: 0.9rem;
    color: #4a4a4a;
    background: #fdfdfb;
    border: 1px solid #c9c4b6;
    border-radius: 5px;
    padding: 0.35rem 0.7rem;
    cursor: pointer;
}

.ss-tomes .ss-outils button:hover {
    border-color: var(--ss-accent, var(--vert_antique));
    color: var(--ss-accent, var(--vert_antique));
}

.ss-tome {
    border-bottom: 1px solid #e6e2d6;
}

.ss-tome-tete {
    display: flex;
    align-items: baseline;
    gap: 0.7rem;
    width: 100%;
    font-family: inherit;
    font-size: 1rem;
    text-align: left;
    color: #4a4a4a;
    background: none;
    border: none;
    padding: 0.6rem 0.2rem;
    cursor: pointer;
}

.ss-tome-tete:hover { background: #f2f1ea; }

.ss-tome-fleche { color: #8a8a8a; width: 1rem; flex: 0 0 1rem; }

.ss-tome-nom {
    font-variant: small-caps;
    letter-spacing: 0.04em;
    font-size: 1.1rem;
    color: var(--ss-accent, var(--vert_antique));
    flex: 0 0 6.5rem;
}

.ss-tome-annees { flex: 0 0 7rem; color: #6a6a6a; }

.ss-tome-meta { color: #8a8a8a; font-size: 0.9rem; }

.ss-tome-ouvert .ss-tome-tete { background: #f6f5ef; }

ul.ss-chapitres {
    list-style: none;
    margin: 0 0 0.8rem;
    padding: 0 0 0 1.7rem;
    border-left: 3px solid var(--ss-accent, var(--vert_antique));
}

.ss-chapitre { padding: 0.55rem 0; border-top: 1px solid #efece2; }
.ss-chapitre:first-child { border-top: none; }

.ss-chapitre-titre {
    font-weight: 600;
    margin-right: 0.6rem;
}

.ss-chapitre-meta { color: #8a8a8a; font-size: 0.88rem; }

.ss-chapitre-resume {
    margin: 0.25rem 0 0;
    font-size: 0.95rem;
    line-height: 1.5;
    max-width: 62em;
}

.ss-chapitre-resume mark {
    background: #f3e6a8;
    color: inherit;
    padding: 0 0.1em;
}

/* ---------- Dignités, présence : colonnes riches des grandes bases ---------- */

.ss-dignites {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    max-width: 26rem;
    white-space: normal;
}

.ss-dignite {
    font-size: 0.78rem;
    line-height: 1.4;
    border: 1px solid currentColor;
    border-radius: 3px;
    padding: 0 0.35rem;
    opacity: 0.92;
}

.ss-dignite[data-cat="souverain"]      { color: #8a6a10; }
.ss-dignite[data-cat="noblesse"]       { color: #7b1e2b; }
.ss-dignite[data-cat="ecclésiastique"] { color: #4a3b6b; }
.ss-dignite[data-cat="militaire"]      { color: #3d5a45; }
.ss-dignite[data-cat="diplomatie"]     { color: #1f4e5f; }
.ss-dignite[data-cat="robe"]           { color: #5a4632; }
.ss-dignite[data-cat="administration"] { color: #46566b; }
.ss-dignite[data-cat="cour & maison"]  { color: #8a5a2b; }
.ss-dignite[data-cat="finance"]        { color: #2f6b4f; }
.ss-dignite[data-cat="lettres & arts"] { color: #6b3f5b; }

/* Présence : une colonnette par volume, hauteur proportionnelle */
.ss-presence {
    display: inline-flex;
    align-items: flex-end;
    gap: 1px;
    height: 1.5em;
}

.ss-presence i {
    display: block;
    width: 4px;
    min-height: 1px;
    background: #ddd9cd;
}

.ss-presence i[data-n]:not([data-n="0"]) {
    background: var(--ss-accent, var(--vert_antique));
    opacity: 0.8;
}

.ss-rang {
    color: #a5a096;
    font-variant: small-caps;
    font-size: 0.9em;
}

/* Renvois de la fiche : grappes par tome */
.ss-renvois {
    display: block;
    white-space: normal;
    max-height: 14rem;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.ss-renvois b {
    display: inline-block;
    min-width: 3.2em;
    color: #6a6a6a;
    font-variant: small-caps;
    font-weight: 600;
}

.ss-renvois span + b { margin-top: 0.2rem; }

.ss-chereul {
    display: block;
    max-height: 16rem;
    overflow-y: auto;
    padding-right: 0.5rem;
    text-align: justify;
    hyphens: auto;
}

/* ---------- Palmarès (page de statistiques) ---------- */

.ss-tops {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.6rem 2.4rem;
    margin: 1.4rem 0 2rem;
}

.ss-top h3 {
    margin: 0 0 0.15rem;
    font-size: 0.95rem;
    font-variant: small-caps;
    letter-spacing: 0.05em;
    color: var(--ss-accent, var(--vert_antique));
    border-bottom: 1px solid #ddd8cc;
    padding-bottom: 0.2rem;
}

.ss-top p.ss-legende {
    margin: 0.3rem 0 0.5rem;
    font-size: 0.85rem;
    font-style: italic;
    color: #8a8a8a;
}

.ss-top .ss-barre-nom { flex: 0 0 11.5em; }
.ss-top .ss-barre-n { flex: 0 0 4.2em; white-space: nowrap; }

/* Jauges teintées par catégorie de dignité (mêmes couleurs que .ss-dignite) */
.ss-barre.ss-cat .ss-barre-jauge span { background: currentColor; opacity: 0.85; }
.ss-cat[data-cat="souverain"]      { color: #8a6a10; }
.ss-cat[data-cat="noblesse"]       { color: #7b1e2b; }
.ss-cat[data-cat="ecclésiastique"] { color: #4a3b6b; }
.ss-cat[data-cat="militaire"]      { color: #3d5a45; }
.ss-cat[data-cat="diplomatie"]     { color: #1f4e5f; }
.ss-cat[data-cat="robe"]           { color: #5a4632; }
.ss-cat[data-cat="administration"] { color: #46566b; }
.ss-cat[data-cat="cour & maison"]  { color: #8a5a2b; }
.ss-cat[data-cat="finance"]        { color: #2f6b4f; }
.ss-cat[data-cat="lettres & arts"] { color: #6b3f5b; }

/* ---------- Thèmes (litterature-saintsimon) ---------- */

/* Huit familles, huit teintes : reprises par les jauges, les pastilles de la
   colonne « Famille » et le liséré des blocs. */
.ss-fam[data-fam="vie"]      { color: #7b1e2b; }
.ss-fam[data-fam="rang"]     { color: #8a6a10; }
.ss-fam[data-fam="faveur"]   { color: #8a5a2b; }
.ss-fam[data-fam="etat"]     { color: #46566b; }
.ss-fam[data-fam="guerre"]   { color: #3d5a45; }
.ss-fam[data-fam="etranger"] { color: #1f4e5f; }
.ss-fam[data-fam="eglise"]   { color: #4a3b6b; }
.ss-fam[data-fam="monde"]    { color: #6b3f5b; }

.ss-barre.ss-fam .ss-barre-jauge span { background: currentColor; opacity: 0.85; }

.ss-familles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.9rem 2rem;
    margin: 1.2rem 0 1.8rem;
}

.ss-famille {
    border-left: 3px solid currentColor;
    padding: 0.1rem 0 0.1rem 0.7rem;
}

.ss-famille h3 {
    margin: 0 0 0.1rem;
    font-size: 0.9rem;
    font-variant: small-caps;
    letter-spacing: 0.04em;
}

.ss-famille p {
    margin: 0 0 0.35rem;
    font-size: 0.8rem;
    color: #7a7a7a;
}

.ss-famille .ss-barre { font-size: 0.8rem; }
.ss-famille .ss-barre-nom { flex: 0 0 12em; }
.ss-famille .ss-barre-n { flex: 0 0 3.2em; }

/* Pastille de famille dans la table */
.ss-pastille {
    font-size: 0.78rem;
    white-space: nowrap;
}

.ss-pastille::before {
    content: "";
    display: inline-block;
    width: 0.55em;
    height: 0.55em;
    border-radius: 50%;
    background: currentColor;
    margin-right: 0.4em;
    vertical-align: 0.02em;
}

/* Fiche d'un thème : champ lexical, voisins, exemples */
.ss-lexique {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.5rem;
    margin: 0;
}

.ss-lexique li {
    list-style: none;
    border: 1px solid #ddd8cc;
    border-radius: 3px;
    padding: 0.05rem 0.4rem;
    font-size: 0.8rem;
    background: #fbfaf6;
}

.ss-lexique li b { font-weight: 600; }
.ss-lexique li span { color: #8a8a8a; }
.ss-lexique li.ss-vide { opacity: 0.5; }

.ss-exemples { margin: 0; padding-left: 1.1rem; font-size: 0.82rem; }
.ss-exemples li { margin: 0.1rem 0; }
.ss-exemples cite { font-style: normal; }
.ss-exemples a { color: #8a8a8a; font-size: 0.78rem; }

/* Tableau des années : cinq colonnes tenant dans la page, sans défilement */
table.ss-annees { table-layout: fixed; font-size: 0.78rem; }
table.ss-annees th, table.ss-annees td { padding: 0.25rem 0.45rem; }
table.ss-annees td { white-space: normal; overflow-wrap: anywhere; text-align: left; }
table.ss-annees th:first-child,
table.ss-annees td:first-child { width: 4.2em; white-space: nowrap; }

/* ---------- Divers ---------- */

.ss-deux-colonnes {
    columns: 2;
    column-gap: 2.5rem;
}

@media (max-width: 800px) {
    .ss-deux-colonnes {
        columns: 1;
    }
    .ss-reperes dl {
        grid-template-columns: 1fr;
    }
}

/* ---------- vue poème (présentation du site des Sonnets) ---------- */
.poem-wrap { display: flex; flex-wrap: wrap; gap: 2rem; align-items: flex-start; }
.poem-text {
    font-family: 'Sedan','Didot','Garamond','Georgia', serif;
    font-size: 1.15rem;
    line-height: 1.8;
    flex: 1 1 420px;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    padding: 1.6rem 2rem;
    border-radius: 3px;
}
.poem-text .stanza { margin-bottom: 1.3rem; }
.poem-line { display: flex; align-items: baseline; }
.poem-line .vers { flex: 1; }
.rhyme-tag {
    font-size: 0.72rem;
    font-family: 'Georgia', serif;
    width: 1.5em;
    text-align: center;
    border-radius: 8px;
    margin-left: 0.9em;
    color: #fff;
    flex: 0 0 auto;
}
.poem-meta { flex: 1 1 260px; max-width: 340px; font-size: 0.92rem; }
.poem-meta .metabox {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 3px;
    padding: 0.8rem 1rem;
    margin-bottom: 1rem;
}
.poem-meta h5 { margin: 0 0 0.5rem 0; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: #999; }
.poem-meta table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.poem-meta td { padding: 0.15rem 0.3rem 0.15rem 0; vertical-align: top; }
.poem-meta .ipa, .poem-meta td.ipa { font-family: 'Georgia', serif; color: var(--bleu_pleiade); white-space: nowrap; }
.rh-A { background-color: #6b4f9e; }
.rh-B { background-color: #2f7d5d; }
.rh-C { background-color: #a8574e; }
.rh-D { background-color: #3a6ea5; }
.rh-E { background-color: #b0813c; }
.rh-F { background-color: #7d7d3a; }
.rh-G { background-color: #9e4f83; }
.rh-H { background-color: #4f9e9a; }
.rh-X { background-color: #9a9a9a; }
.rhyme-word { border-bottom: 1px dotted #bbb; }
.poem-badge, .fdm-badge {
    display: inline-block;
    font-size: 0.78rem;
    line-height: 1;
    padding: 0.25em 0.6em;
    border-radius: 9px;
    margin: 0 0.3em 0.3em 0;
    background-color: #ececec;
    color: #555;
    white-space: nowrap;
}
.fdm-badge.theme { background-color: #e4ede8; color: var(--vert_antique); }
a.fdm-badge { text-decoration: none; }
a.fdm-badge:hover { filter: brightness(0.93); }
@media (max-width: 720px) { .poem-meta { max-width: none; } }

/* ---------- Monographies de peintres (contenu .ss-mono) ----------
   Pages générées par _outillage/construire_monographie.py : essai illustré
   et catalogue commenté des volumes Florence_art, intégrés au chrome du
   site. Portée .ss-mono ; visionneuse #lb (_assets/monographie/lightbox.html). */

/* figures de l'essai */
.ss-mono figure.fig { margin: 1.8em 0; display: flex; flex-direction: column; align-items: center; }
.ss-mono figure.fig img { max-width: 100%; max-height: 620px; object-fit: contain; border-radius: 4px; background: rgba(0,0,0,0.05); display: block; }
.ss-mono figcaption { font-size: 0.82rem; line-height: 1.45; margin-top: 8px; color: #8a8a8a; text-align: center; max-width: 680px; }
.ss-mono figcaption .sub { display: block; font-style: italic; opacity: 0.85; }
.ss-mono .figrow { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; margin: 1.8em 0; }
.ss-mono .figrow figure.fig { margin: 0; }
.ss-mono .figrow figure.fig img { max-height: 300px; width: 100%; object-fit: contain; }
.ss-mono button.shot { padding: 0; border: 0; background: none; cursor: zoom-in; display: block; width: 100%; border-radius: 4px; font: inherit; }
.ss-mono button.shot:focus-visible { outline: 2px solid var(--ss-accent); outline-offset: 3px; }
.ss-mono blockquote { margin: 1.4em 0; padding: 0.2em 0 0.2em 1.2em; border-left: 3px solid var(--ss-accent); color: #6d6d6d; font-style: italic; }
.ss-mono hr { border: 0; border-top: 1px solid #ddd; margin: 3em 0; }

/* en-tête et navigation du catalogue */
.ss-mono .mono-sous { color: #6d6d6d; }
.ss-mono .mono-stats, .ss-mono .mono-note { font-size: 0.85rem; color: #8a8a8a; }
.ss-mono .mono-note { border-top: 1px solid #ddd; padding-top: 1em; margin-top: 2.5em; }
.ss-mono nav.parts { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; margin: 1.4em 0; font-size: 0.85rem; }
.ss-mono nav.parts .parts-h { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em; color: #8a8a8a; margin-right: 4px; }
.ss-mono nav.parts a { text-decoration: none; border: 1px solid #ccc; border-radius: 4px; padding: 2px 9px; color: #6d6d6d; white-space: nowrap; }
.ss-mono nav.parts a.on, .ss-mono nav.parts a:hover { color: var(--ss-accent); border-color: var(--ss-accent); }
.ss-mono .indexgrid { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 2.5em; }
.ss-mono .indexgrid a { display: block; line-height: 0; }
.ss-mono .indexgrid a img { width: 44px; height: 44px; object-fit: cover; border-radius: 3px; display: block; opacity: 0.9; }
.ss-mono .indexgrid a:hover img { opacity: 1; outline: 2px solid var(--ss-accent); }
.ss-mono h2 .cont { font-weight: 400; opacity: 0.75; }
.ss-mono section.cat .intro { font-style: italic; color: #6d6d6d; margin-bottom: 2em; }

/* fiches d'œuvres */
.ss-mono article.work { display: grid; grid-template-columns: minmax(200px, 300px) 1fr; gap: 26px; padding: 28px 0; border-top: 1px solid #ddd; align-items: start; }
.ss-mono article.work .work-img { position: sticky; top: 10px; display: flex; flex-direction: column; gap: 10px; }
.ss-mono article.work .work-img img { width: 100%; max-height: 420px; object-fit: contain; background: rgba(0,0,0,0.05); border-radius: 4px; display: block; }
.ss-mono article.work h3 { margin: 0 0 0.35em; font-size: 1.25rem; }
.ss-mono .wdate { display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; color: var(--ss-accent); margin-right: 8px; vertical-align: middle; text-transform: uppercase; }
.ss-mono .wmeta { font-size: 0.9rem; color: #6d6d6d; margin: 0 0 0.3em; }
.ss-mono .wlinks { font-size: 0.76rem; color: #6d6d6d; margin: 0 0 1em; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.ss-mono .wlinks a { text-decoration: none; border: 1px solid #ccc; border-radius: 4px; padding: 1px 7px; color: #6d6d6d; }
.ss-mono .wlinks a:hover { color: var(--ss-accent); border-color: var(--ss-accent); }
.ss-mono .tier { font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 2px 8px; border-radius: 4px; background: #ececec; }
.ss-mono .t-canon { background: var(--ss-accent); color: #fff; }
.ss-mono .t-major { background: #7a8ea6; color: #fff; }
.ss-mono .comm h3, .ss-mono .comm h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ss-accent); margin: 1.6em 0 0.5em; font-style: normal; font-weight: 700; }
.ss-mono .comm blockquote { font-size: 0.95rem; }
.ss-mono .kvnote { font-size: 0.88rem; color: #6d6d6d; font-style: italic; }
.ss-mono .pending { color: #8a8a8a; }

/* les pages de catalogue s'élargissent (fiches image + texte) —
   .standard borne aussi par ses marges 12 %/28 % : on les resserre */
.standard:has(.ss-mono-catalogue) { max-width: 1080px; margin-left: 5%; margin-right: 5%; }
@media (max-width: 820px) {
    .ss-mono article.work { grid-template-columns: 1fr; }
    .ss-mono article.work .work-img { position: static; }
}

/* visionneuse (clic-zoom, ←/→/Échap) */
#lb { position: fixed; inset: 0; z-index: 99; display: none; background: rgba(12, 9, 6, 0.95); align-items: center; justify-content: center; flex-direction: column; gap: 14px; padding: 28px 28px 20px; cursor: zoom-out; }
#lb.open { display: flex; }
#lb img { max-width: min(1600px, 94vw); max-height: 80vh; object-fit: contain; border-radius: 4px; box-shadow: 0 18px 60px rgba(0, 0, 0, 0.6); background: rgba(0, 0, 0, 0.2); }
#lb figcaption { display: block; color: #f2ece2; text-align: center; max-width: min(900px, 90vw); font-size: 0.95rem; line-height: 1.5; cursor: auto; margin-top: 0; }
#lb .lb-t { font-weight: 700; display: block; }
#lb .lb-s { color: #bdb2a2; font-style: italic; display: block; margin-top: 2px; }
#lb .lb-q { color: #e0c49e; font-size: 0.8rem; letter-spacing: 0.05em; text-decoration: none; display: inline-block; margin-top: 6px; }
#lb .lb-x { position: absolute; top: 14px; right: 20px; font-size: 2rem; line-height: 1; color: #f2ece2; background: none; border: 0; cursor: pointer; opacity: 0.75; padding: 6px 10px; }
#lb .lb-x:hover { opacity: 1; }
#lb .lb-nav { position: absolute; top: 50%; transform: translateY(-50%); font-size: 2.4rem; line-height: 1; color: #f2ece2; background: none; border: 0; cursor: pointer; opacity: 0.55; padding: 16px; }
#lb .lb-nav:hover { opacity: 1; }
#lb .lb-prev { left: 8px; }
#lb .lb-next { right: 8px; }
#lb .lb-count { color: #8d8377; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; }
@media (max-width: 640px) { #lb .lb-nav { font-size: 1.8rem; padding: 8px; } #lb img { max-height: 66vh; } }
