/*
Theme Name: Salient Child Theme
Description: This is a custom child theme for Salient
Theme URI:   https://themeforest.net/item/salient-responsive-multipurpose-theme/4363266
Author: ThemeNectar
Author URI:  https://themeforest.net/user/themenectar
Template: salient
Version: 1.0
*/
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=EB+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=JetBrains+Mono:wght@400;500&display=swap');

:root{--abyss:#f8f6f1;--deep:#f4f2ec;--surface:#faf9f6;--raised:#fff;--card:#fff;--gold:#6B5436;--gold-bright:#DD9933;--gold-dim:#6b5210;--gold-ghost:rgba(139,105,20,.04);--gold-line:rgba(139,105,20,.12);--blue:#2a6496;--blue-dim:#1e4a70;--blue-ghost:rgba(42,100,150,.04);--violet:#6b4d8a;--violet-dim:#5a3d78;--rose:#a85a48;--green:#2d7a42;--text:#2a2a28;--bright:#1a1a18;--dim:#5a584e;--muted:#c8c4b8;--border:rgba(139,105,20,.10);--display:'EB Garamond','Georgia',serif;--prose:'Libre Baskerville','Georgia',serif;--code:'Fira Code','JetBrains Mono',monospace; --cream:#F5EFE3; --paper:#FBF7EE; --ink:#1F1A12; --soft-ink:#3A3122;}
/* On force l'application sur les éléments SVG si besoin */
svg circle, svg line, svg path, svg text {
    transition: all 0.3s ease; /* Pour garder les animations fluides */
}

h1,
.post-area .row .col h1,
.material .wpb_text_column h1,
.row .col .wpb_text_column h1 { margin-bottom: 24px; border-left: 8px solid var(--gold); padding-left: 18px; }

h2,
.post-area .row .col h2,
.material .wpb_text_column h2,
.row .col .wpb_text_column h2 { margin-bottom: 22px;  }

h3,
.post-area .row .col h3,
.material .wpb_text_column h3,
.row .col .wpb_text_column h3,
.accordion h3.toggle-title a { margin-bottom: 20px; color: #15616D; }

h4,
.post-area .row .col h4,
.material .wpb_text_column h4,
.row .col .wpb_text_column h4 { margin-bottom: 20px; }

h5,
.post-area .row .col h5,
.material .wpb_text_column h5,
.row .col .wpb_text_column h5 { margin-bottom: 1em; color: var(--gold-bright); }

h6,
.post-area .row .col h6,
.material .wpb_text_column h6,
.row .col .wpb_text_column h6 { margin-bottom: 1em; }

p,
.post-area .row .col p,
.material .wpb_text_column p,
.row .col .wpb_text_column p { padding-bottom: 1.2em; }

.material .wpb_text_column p:last-child,
.row .col .wpb_text_column p:last-child { margin-bottom: 30px; }

.material  .vc_column-inner .wpb_text_column p:last-child,
.row .col  .vc_column-inner .wpb_text_column p:last-child { margin-bottom: 0; }

.row .col .wpb_text_column h2 strong,
.row .col .post-area .type-post h2 strong,
.row .col .wpb_text_column h3 strong,
.row .col .post-area .type-post h3 strong { font-weight: 900; }

.row .col .wpb_text_column blockquote,
.row .col .post-area .type-post blockquote { margin-bottom: 1em; }
.row .col .wpb_text_column ul,
.material .wpb_text_column ul,
.row .col .post-area .type-post ul { margin-bottom: 1em; }
.row .col .wpb_text_column ul li,
.material .wpb_text_column ul li,
.row .col .post-area .type-post ul li { padding-bottom: 0.3em; }

.nectar-milestone h2 { font-weight: 900; }

.sf-menu > li ul {
  padding: 20px;
  width: 30em;
}

h1 em,
h2 em {
  color: #DD9933;
  font-style: italic;
  font-weight: 500;
}

/* Effet de grain de papier sur tout le site */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.35;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
}

/* Bordures fines spécifiques à votre style */
.bordered-element {
    border: 1px solid rgba(139, 105, 20, 0.10) !important;
}

/* Style des citations (Blockquote) */
blockquote {
    border-left: 3px solid #8b6914 !important;
    background: rgba(139, 105, 20, 0.02);
    padding: 2rem !important;
    font-style: italic;
}

#copyright {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.90rem;
  color: var(--gold-light);
  opacity: 0.7;
  margin-top: 2rem;
  padding-top: 1.5rem;
  text-align: center;
  letter-spacing: 0.05em;
}

/* toggle */
div[data-style="animated_circle"] .toggle { border: 1px solid #F6EED9; }

div[data-style="animated_circle"] .toggle > .toggle-title a {
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--bright);
  flex: 1;
}

/* toggle default open */
div[data-style="animated_circle"] .toggle.open > .toggle-title a { color: var(--gold); }

.formula p {
  color: var(--dim);
  font-size: .9rem;
}


.chart-box {
  width: 100%;
  max-width: 700px;
  margin: 2.5rem auto;
  border: 1px solid var(--border);
  padding: 1.5rem;
  background: rgba(15,15,34,.03);
}
.chart-box h4 {
  font-family: var(--display);
  font-size: 1rem;
  color: var(--bright);
  margin-bottom: 1rem;
  text-align: center;
}

.spectral-graph-wrapper {
    display: flex;
    justify-content: center;
    padding: 40px;
    background: transparent;
}



.cayley-graph {
    max-width: 450px;
    filter: drop-shadow(0 0 15px rgba(139, 105, 20, 0.1));
}

.node {
    fill: #faf9f6;
    stroke: var(--gold);
    stroke-width: 1.5;
    transition: all 0.3s ease;
}

.node:hover {
    fill: var(--gold);
    r: 16;
}

.graph-label {
    font-family: 'Fira Code', monospace;
    font-size: 14px;
    fill: var(--gold);
    font-weight: bold;
}


.klmn-card {
    background: #faf9f6;
    border: 1px solid rgba(139, 105, 20, 0.15);
    padding: 25px;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.klmn-header h3 {
    margin: 10px 0 20px 0 !important;
    font-size: 1.4rem !important;
    color: #2a2a28;
}

.badge-status {
    font-family: 'Fira Code', monospace;
    font-size: 10px;
    text-transform: uppercase;
    background: rgba(45, 122, 66, 0.1);
    color: #2d7a42;
    padding: 4px 8px;
    border-radius: 2px;
}

.klmn-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.klmn-item {
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding-bottom: 8px;
}

.klmn-item .label {
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.klmn-item .value {
    font-family: 'Fira Code', monospace;
    font-size: 14px;
    color: #2a2a28;
    font-weight: 600;
}

.status-ok { color: #2d7a42 !important; }
.status-warn { color: #a85a48 !important; }




/* --- 1. STYLE DE BASE POUR TOUTES LES CAPSULES --- */
.tax-capsule {
    display: inline-block;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px; /* Un bord légèrement arrondi pour le côté "fiche technique" */
    line-height: 1.2;
    border: 1px solid transparent;
    margin: 2px;
}

/* --- 2. COULEUR GÉNÉRALE POUR LES RÉGIMES --- */
/* Un bleu profond et institutionnel */
.capsule-regime-capsule {
    /*background-color: #8B6914;*/
    color: #E9D8A6 !important;
    border-color: #E9D8A6;
}

.status-card .capsule-regime-capsule { color: var(--gold) !important;  border-color: var(--gold); }

/* --- 3. COULEUR GÉNÉRALE POUR LES ATTRIBUTS --- */
/* Un gris neutre par défaut pour les attributs non spécifiés */
.capsule-project-attributes {
    background-color: #666666;
    color: #ffffff;
    border-color: #666666;
}

/* --- 4. COULEURS SPÉCIFIQUES (LOGIQUE DE STATUT) --- */
.project-attributes-conditionnel {
    background-color: #C0902C;
    color: #ffffff;
    border-color: #C0902C;
}

.project-attributes-demontre {
    background-color: #3A9D6F;
    color: #ffffff;
    border-color: #3A9D6F;
}

.project-attributes-falsifie {
    background-color: #CF4F57;
    color: #ffffff;
    border-color: #CF4F57;
}

.project-attributes-heuristique {
    background-color: #8A5BBF;
    color: #ffffff;
    border-color: #8A5BBF;
}

.project-attributes-mesure {
    background-color: #2C8A86;
    color: #ffffff;
    border-color: #2C8A86;
}

.project-attributes-ouvert {
    background-color: #CF7A2F;
    color: #ffffff;
    border-color: #CF7A2F;
}

.project-attributes-probatoire {
    background-color: #2F9E9E;
    color: #ffffff;
    border-color: #2F9E9E;
}

.project-attributes-transmis {
    background-color: #B0883A;
    color: #ffffff;
    border-color: #B0883A;
}




/* --- STYLE DU NOUVEAU HERO SUR SINGLE PORTFOLIO --- */
.custom-portfolio-hero {
    background-color: transparent; /* Suppression du fond sombre */
    padding: 60px 0 0px 0;
    margin-bottom: 20px;
}

.item-eyebrow {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.2rem;
}

h1.item-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.6rem, 5.5vw, 4.2rem);
    font-weight: 500;
    line-height: 1.1;
    color: var(--ink);
    margin-bottom: 1rem;
    border-left: none; /* Annule la bordure or de base */
    padding-left: 0;
    border-left: 8px solid var(--gold-bright); padding-left: 18px;
}

.item-subtitle {
    font-family: 'EB Garamond', serif;
    font-style: italic;
    font-size: 1.25rem;
    color: var(--soft-ink);
    margin-bottom: 2.5rem;
    max-width: 800px;
}

/* NOUVEAU PAVÉ STATUT */
.status-card {
    background: var(--cream);
    border: 1px solid var(--border);
    padding: 1.6rem 2rem;
    margin-bottom: 2.5rem;
    max-width: 800px;
}

.status-card .global-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.status-card .global-status {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    color: var(--ink);
    margin-bottom: 1.2rem;
}

.status-card .global-status em {
    font-style: italic;
    color: var(--gold);
}

.status-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1rem;
}
.status-tags a:hover { color: #ccc; }

.status-note {
    font-family: 'EB Garamond', serif;
    font-style: italic;
    font-size: 0.95rem;
    color: var(--soft-ink);
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px dashed var(--border);
}

.publier-le {
    font-family: 'EB Garamond', serif;
    font-style: italic;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    color: #aaa;
    display:block;
    margin-bottom: 25px;
    text-transform: none;

}

.project-hero-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-top: 10px;
}

/* Adaptation visuelle des boutons dans le nouveau Hero Clair */
.custom-portfolio-hero .project-hero-buttons .nectar-button {
font-variant: normal;
}

.custom-portfolio-hero .project-hero-buttons .nectar-button.accent-color {
    background-color: var(--ink) !important;
    color: #fff !important;
}
.custom-portfolio-hero .project-hero-buttons .nectar-button.accent-color:hover {
    background-color: var(--gold) !important;
}

.custom-portfolio-hero .project-hero-buttons .nectar-button.see-through {
    border-color: var(--ink) !important;
    color: var(--ink) !important;
}
.custom-portfolio-hero .project-hero-buttons .nectar-button.see-through:hover {
    border-color: var(--gold) !important;
    color: var(--gold) !important;
}

.project-hero-buttons .nectar-button i {
    margin-left: 8px;
    transition: transform 0.2s ease;
}
.project-hero-buttons .nectar-button:hover i {
    transform: translateY(3px); 
}

/* Fix pour l'effet de défilement doux (Smooth Scroll) natif de Salient */
#portfolio-content-anchor,
#portfolio-comments-anchor {
    scroll-behavior: smooth;
    display: block;
    position: relative;
    top: -100px; /* Évite que le menu collant (sticky header) ne cache le contenu */
    visibility: hidden;
}

.single-portfolio #header-space {
    /*display: none !important;*/
    background-color: #333333;
}

body.material .comments-section .comment-wrap { background-color: #E7E6E2; padding: 5%; }

.titre-commentaire { font-weight: bold; font-size: 1.4em; line-height: 1.8em; }


/* Styles de base pour les badges de commentaires */
.badge-comment {
    color: #ffffff !important;
}

/* Bleu pour les questions */
.badge-comment-question {
    background-color: #3498db;
}

/* Vert/Émeraude pour les observations */
.badge-comment-observation {
    background-color: #2ecc71;
}

/* Violet/Mauve pour les propositions de relief */
.badge-comment-proposition_relief {
    background-color: #9b59b6;
}

/* Force la traduction du badge auteur de Salient */
.comment-list .bypostauthor .comment-author cite.fn::after {
    content: "Auteur" !important;
}



.archive h1 { /*font-family: 'Cormorant Garamond', serif;*/ color: #1F1A12; border-left:none; padding-left:auto; }

        .custom-salient-grid-wrap {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 15px;
            padding: 4% 0;
        }
        @media (max-width: 991px) {
            .custom-salient-grid-wrap { grid-template-columns: repeat(2, 1fr); }
        }
        @media (max-width: 767px) {
            .custom-salient-grid-wrap { grid-template-columns: 1fr; }
        }

        .custom-salient-card {
            position: relative;
            display: flex;
            flex-direction: column;
            justify-content: center; /* Centrage vertical du contenu (Corners) */
            height: 30vh;
            min-height: 350px;
            border-radius: 25px;
            overflow: hidden;
            text-decoration: none !important;
            background-color: rgba(0, 0, 0, 0.15); /* Fond assombri si pas d'image */
        }

        .custom-salient-card-bg {
            position: absolute;
            top: 0; left: 0; right: 0; bottom: 0;
            background-size: cover;
            background-position: center;
            transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
            z-index: 1;
        }

        /* Effet de zoom au survol */
        .custom-salient-card:hover .custom-salient-card-bg {
            transform: scale(1.08);
        }

        /* Overlay sombre paramétré (0.1 -> 0.2 au survol) */
        .custom-salient-card-overlay {
            position: absolute;
            top: 0; left: 0; right: 0; bottom: 0;
            background-color: #000000;
            opacity: 0.1;
            transition: opacity 0.4s ease;
            z-index: 2;
        }

        .custom-salient-card:hover .custom-salient-card-overlay {
            opacity: 0.2;
        }

        /* Contenu textuel et cartouches */
        .custom-salient-card-content {
            position: relative;
            z-index: 3;
            padding: 35px;
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        .custom-salient-card-title {
            color: #FFFFFF !important;
            font-family: 'JetBrains Mono', monospace;
            font-size: clamp(1.44rem, 2.5vw, 34px);
            font-weight: 500;
            margin: 0;
            line-height: 1.2;
        }

        .custom-salient-card-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }



.cu-publication-item {
    --line: #e4dcca;
    --muted: #6f685b;
    --faint: #968d7d;
    --D: #3a9d6f; --M: #2c8a86; --C: #c0902c; --O: #cf7a2f; --H: #8a5bbf; --F: #cf4f57; --T: #b0883a; --P: #2f9e9e; --Q: #8b93a0;
    --serif: 'Spectral', Georgia, 'Times New Roman', serif;
    --mono: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;

    font-family: var(--serif);
    color: #211f19;
    font-size: 1.05rem;
    line-height: 1.66;
    width: 100%; /* S'étend sur toute la largeur de la colonne WPBakery */
}

.cu-publication-item * {
    box-sizing: border-box;
}

.cu-publication-item .c-sub {
    font-size: 1.1rem;
    color: var(--muted);
    margin-bottom: 1.5rem;
}

/* Style du point de liste avec le Tag */
.cu-publication-item .blocs {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 1.5rem 0 !important;
}

.cu-publication-item .blocs li {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    margin-bottom: 0.8rem !important;
    color: var(--muted);
}

.cu-publication-item .tag {
    font-family: var(--mono);
    font-weight: 700;
    font-size: 0.7rem;
    color: #fff;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    flex-shrink: 0;
}

/* Couleurs des tags */
.cu-publication-item .tag[data-s="D"] { background: var(--D); }
.cu-publication-item .tag[data-s="M"] { background: var(--M); }
.cu-publication-item .tag[data-s="C"] { background: var(--C); }
.cu-publication-item .tag[data-s="O"] { background: var(--O); }
.cu-publication-item .tag[data-s="H"] { background: var(--H); }
.cu-publication-item .tag[data-s="F"] { background: var(--F); }
.cu-publication-item .tag[data-s="T"] { background: var(--T); }
.cu-publication-item .tag[data-s="P"] { background: var(--P); }
.cu-publication-item .tag[data-s="Q"] { background: none; border: 1px solid var(--Q); color: var(--Q); }

/* Grille des encarts "Montre / Ne prouve pas" */
.cu-publication-item .prove {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Deux colonnes égales en largeur */
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    width: 100%;
}

/* Passage sur une seule colonne sur mobile */
@media(max-width: 768px) {
    .cu-publication-item .prove {
        grid-template-columns: 1fr;
    }
}

.cu-publication-item .pv {
    border-radius: 8px;
    padding: 1.2rem 1.4rem;
    font-weight: 300;
}

.cu-publication-item .pv.show {
    background: rgba(58,157,111,.08);
    border: 1px solid rgba(58,157,111,.25);
}

.cu-publication-item .pv.no {
    background: rgba(207,79,87,.07);
    border: 1px solid rgba(207,79,87,.22);
}

.cu-publication-item .pv h5 {
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin: 0 0 0.8rem 0;
    font-weight: 700;
}

.cu-publication-item .pv.show h5 { color: var(--D); }
.cu-publication-item .pv.no h5 { color: var(--F); }

.cu-publication-item .pv p {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Ligne Régime */
.cu-publication-item .meta {
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--faint);
    border-top: 1px solid var(--line);
    padding-top: 1rem;
    margin-top: 1rem;
}

.cu-publication-item .meta b {
    color: var(--muted);
    font-weight: 500;
}



/* ==========================================================================
   TABLEAU DE BORD COURET-UNIFICATION (DASHBOARD)
   ========================================================================== */
.cu-dashboard {
  --ink: #211f19; --muted: #6f685b; --faint: #968d7d; --line: #e4dcca; --line2: #d4c9b2;
  --gold: #b0883a; --teal-ink: #16403a; --card: #fbf8f1; --card2: #f6f1e6;
  --D: #3a9d6f; --M: #2c8a86; --C: #c0902c; --O: #cf7a2f; --H: #8a5bbf; --F: #cf4f57; --T: #b0883a; --P: #2f9e9e; --Q: #8b93a0;
  --serif: 'Spectral', 'Cormorant Garamond', Georgia, serif;
  --mono: 'JetBrains Mono', monospace;
}

/* 1. KPIs (4 Compteurs) */
.cu-dashboard .ctrs { display: flex; gap: 1rem; flex-wrap: wrap; margin: 1.6rem 0; }
.cu-dashboard .ctr { flex: 1 1 130px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 1.1rem 1.2rem; }
.cu-dashboard .ctr .big { font-family: var(--serif); font-weight: 300; font-size: 2.4rem; line-height: 1; color: var(--gold); }
.cu-dashboard .ctr .lbl { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); margin-top: 0.3rem; }

/* 2. Barre de Maturité */
.cu-dashboard .matbar { display: flex; height: 46px; border-radius: 9px; overflow: hidden; border: 1px solid var(--line); margin: 0.6rem 0 0.8rem; }
.cu-dashboard .matbar .seg { display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 0.72rem; font-weight: 700; color: #fff; min-width: 2px; transition: flex 0.5s ease; }
.cu-dashboard .matlegend { display: flex; gap: 1.4rem; flex-wrap: wrap; font-size: 0.85rem; color: var(--muted); }
.cu-dashboard .matlegend span b { color: var(--ink); font-weight: 600; }
.cu-dashboard .dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; vertical-align: 0.02em; margin-right: 0.35rem; }

/* 3. Grille des Présences (Statuts) */
.cu-dashboard .presgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 0.6rem; margin: 1rem 0; }
.cu-dashboard .pcard { background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--line2); border-radius: 10px; padding: 0.8rem 0.7rem; text-align: center; }
.cu-dashboard .pcard .cnt { font-family: var(--serif); font-weight: 400; font-size: 1.7rem; line-height: 1; }
.cu-dashboard .pcard .code { font-family: var(--mono); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.06em; margin-top: 0.25rem; }
.cu-dashboard .pcard .nm { font-size: 0.7rem; color: var(--faint); margin-top: 0.1rem; }

/* 4. Tableau Récapitulatif et Filtres */
.cu-dashboard .filt { display: flex; gap: 0.4rem; flex-wrap: wrap; align-items: center; margin: 1.4rem 0 0.4rem; }
.cu-dashboard .flab { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); margin-right: 0.3rem; }
.cu-dashboard .chip { font-family: var(--mono); font-size: 0.72rem; color: var(--muted); background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 0.32rem 0.7rem; cursor: pointer; transition: all 0.18s; user-select: none; }
.cu-dashboard .chip:hover { border-color: var(--line2); color: var(--ink); }
.cu-dashboard .chip.on { color: #fff; font-weight: 700; }
.cu-dashboard .chip.on[data-s=D] { background: var(--D); border-color: var(--D); }
.cu-dashboard .chip.on[data-s=M] { background: var(--M); border-color: var(--M); }
.cu-dashboard .chip.on[data-s=C] { background: var(--C); border-color: var(--C); }
.cu-dashboard .chip.on[data-s=O] { background: var(--O); border-color: var(--O); }
.cu-dashboard .chip.on[data-s=H] { background: var(--H); border-color: var(--H); }
.cu-dashboard .chip.on[data-s=F] { background: var(--F); border-color: var(--F); }
.cu-dashboard .chip.on[data-s=T] { background: var(--T); border-color: var(--T); }
.cu-dashboard .chip.on[data-s=P] { background: var(--P); border-color: var(--P); }
.cu-dashboard .chip.on[data-s=Q] { background: var(--Q); border-color: var(--Q); }
.cu-dashboard .reset { font-family: var(--mono); font-size: 0.68rem; color: var(--faint); background: none; border: none; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.cu-dashboard .ccount { font-family: var(--mono); font-size: 0.7rem; color: var(--faint); margin: 0.3rem 0 1rem; display: block; }

.cu-dashboard table.rcap { width: 100%; border-collapse: collapse; margin-top: 0.4rem; }
.cu-dashboard table.rcap th { text-align: left; font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); font-weight: 700; padding: 0.5rem 0.6rem; border-bottom: 2px solid var(--line2); }
.cu-dashboard table.rcap td { padding: 0.55rem 0.6rem; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 0.92rem; }
.cu-dashboard table.rcap tr.itemrow:hover { background: var(--card2); }
.cu-dashboard .domrow td { background: var(--card2); font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); font-weight: 700; padding: 0.6rem; border-bottom: 1px solid var(--line); }
.cu-dashboard .domrow .dt { color: var(--faint); font-weight: 400; text-transform: none; letter-spacing: 0.02em; }
.cu-dashboard td .b { font-family: var(--mono); font-size: 0.58rem; font-weight: 700; width: 1.2rem; height: 1.2rem; display: inline-flex; align-items: center; justify-content: center; border-radius: 4px; color: #fff; margin-right: 0.2rem; }
.cu-dashboard td .b[data-s=D] { background: var(--D); } .cu-dashboard td .b[data-s=M] { background: var(--M); } .cu-dashboard td .b[data-s=C] { background: var(--C); } .cu-dashboard td .b[data-s=O] { background: var(--O); } .cu-dashboard td .b[data-s=H] { background: var(--H); } .cu-dashboard td .b[data-s=F] { background: var(--F); } .cu-dashboard td .b[data-s=T] { background: var(--T); } .cu-dashboard td .b[data-s=P] { background: var(--P); } .cu-dashboard td .b[data-s=Q] { background: none; border: 1px solid var(--Q); color: var(--Q); }
.cu-dashboard .it-t { font-weight: 400; color: var(--ink); font-family: var(--serif); font-size: 1.05rem; }
.cu-dashboard .it-t a { text-decoration: none; color: inherit; transition: color 0.2s; }
.cu-dashboard .it-t a:hover { color: var(--gold); }
.cu-dashboard .it-rg { font-family: var(--mono); font-size: 0.66rem; color: var(--faint); text-transform: capitalize; }