/* ═══════════════════════════════════════════
   css/index.css — algo-freedom society
   Stili specifici della homepage (index.php)
   ═══════════════════════════════════════════ */

    .home-hero{
      position:relative;
      min-height:560px;
      background:
        linear-gradient(90deg,rgba(15,35,58,.88),rgba(15,35,58,.48) 55%,rgba(15,35,58,.20)),
        linear-gradient(135deg,#051426 0%,#0a2845 35%,#1a3a5c 65%,#2d5a7b 100%);
      overflow:hidden;
      display:flex;
      align-items:center;
    }
    .home-hero canvas{
      position:absolute;
      inset:0;
      width:100%; height:100%;
      pointer-events:none;
      opacity:.55;
    }
    .home-hero::after{
      content:"";
      position:absolute;
      inset:0;
      background:
        radial-gradient(900px 420px at 12% 18%,rgba(255,255,255,.09),transparent 60%),
        radial-gradient(700px 360px at 72% 28%,rgba(105,168,232,.13),transparent 62%);
      pointer-events:none;
      mix-blend-mode:screen;
    }
    .home-hero-inner{
      position:relative;
      z-index:2;
      padding:96px 0 88px;
      color:#fff;
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:40px;
    }
    .hero-text{
      flex:1 1 0;
      min-width:0;
    }
    .hero-badge{
      display:inline-flex;
      align-items:center;
      gap:10px;
      background:rgba(105,168,232,.18);
      border:1px solid rgba(105,168,232,.32);
      border-radius:999px;
      padding:6px 16px;
      font-size:12.5px;
      font-weight:700;
      letter-spacing:.6px;
      text-transform:uppercase;
      color:rgba(105,168,232,.95);
      margin-bottom:22px;
      animation:fadeSlide .7s ease both;
    }
    .hero-badge .dot{
      width:7px; height:7px;
      border-radius:50%;
      background:var(--accent);
      animation:pulse 2s ease infinite;
    }
    @keyframes pulse{
      0%,100%{opacity:1;transform:scale(1);}
      50%{opacity:.5;transform:scale(1.3);}
    }
    @keyframes fadeSlide{
      from{opacity:0;transform:translateY(20px);}
      to{opacity:1;transform:translateY(0);}
    }
    .home-hero-title{
      margin:0 0 18px;
      font-size:62px;
      line-height:1.04;
      letter-spacing:-0.6px;
      text-shadow:0 14px 38px rgba(0,0,0,.3);
      font-weight:800;
      animation:fadeSlide .8s .1s ease both;
    }
    .home-hero-title .thin{ font-weight:100; opacity:.92; }
    .home-hero-sub{
      margin:0 0 30px;
      font-size:17px;
      color:rgba(255,255,255,.82);
      line-height:1.65;
      max-width:600px;
      animation:fadeSlide .8s .2s ease both;
    }
    .hero-actions{
      display:flex;
      gap:14px;
      flex-wrap:wrap;
      animation:fadeSlide .8s .3s ease both;
    }

    .hero-subline{
      margin: 10px 0 22px;
      display:flex;
      align-items:center;
      gap:14px;
      color: rgba(255,255,255,.90);
      font-weight:700;
      letter-spacing:.4px;
      text-transform: lowercase;
    }
    .hero-subline .line{
      height:2px;
      width:68px;
      background: rgba(255,255,255,.35);
      border-radius:999px;
    }
    .hero-subline .hub{
      font-size: 28px;
      color: rgba(105,168,232,.95);
      text-shadow: 0 10px 30px rgba(0,0,0,.25);
    } 

    /* ─── Stats strip ─────────────────────────────── */
    .stats-strip{
      background:linear-gradient(90deg,#1a3a5c,#0f2235);
      border-bottom:1px solid rgba(255,255,255,.08);
    }
    .stats-inner{
      display:grid;
      grid-template-columns:repeat(4,1fr);
    }
    .stat-item{
      padding:22px 24px;
      border-right:1px solid rgba(255,255,255,.07);
      text-align:center;
    }
    .stat-item:last-child{ border-right:none; }
    .stat-num{
      font-size:36px;
      font-weight:900;
      letter-spacing:-1px;
      color:var(--accent);
      line-height:1;
    }
    .stat-label{
      font-size:12px;
      font-weight:600;
      color:rgba(255,255,255,.58);
      text-transform:uppercase;
      letter-spacing:.6px;
      margin-top:5px;
    }

    /* ─── Section commons ──────────────────────────── */
    .section-title{
      margin:0 0 6px;
      font-size:28px;
      font-weight:900;
      color:var(--text);
      display:flex;
      align-items:center;
      gap:14px;
    }
    .title-divider{
      flex:1;
      height:2px;
      background:linear-gradient(90deg,var(--accent-2),transparent);
      border-radius:999px;
    }
    .section-sub{
      margin:0 0 28px;
      color:var(--muted);
      font-size:15px;
      font-weight:500;
    }

    /* ─── Pillars (aree di ricerca) ─────────────────── */
    .pillars-section{ padding:52px 0 44px; }
    .pillars-grid{
      display:grid;
      grid-template-columns:repeat(4,1fr);
      gap:20px;
    }
    .pillar-card{
      background:var(--card);
      border:1px solid var(--border);
      border-radius:var(--radius);
      box-shadow:var(--shadow);
      padding:24px 20px 20px;
      position:relative;
      overflow:hidden;
      display:flex;
      flex-direction:column;
      transition:transform .14s ease,box-shadow .14s ease;
    }
    .pillar-card:hover{
      transform:translateY(-3px);
      box-shadow:var(--shadow-lg);
    }
    .pillar-card::before{
      content:"";
      position:absolute;
      top:0; left:0; right:0;
      height:4px;
    }
    .pillar-card:nth-child(1)::before{ background:linear-gradient(90deg,#3f79b7,#69a8e8); }
    .pillar-card:nth-child(2)::before{ background:linear-gradient(90deg,#2a6496,#4a9acb); }
    .pillar-card:nth-child(3)::before{ background:linear-gradient(90deg,#1f3550,#3f79b7); }
    .pillar-card:nth-child(4)::before{ background:linear-gradient(90deg,#2b4f72,#69a8e8); }
    .pillar-num{
      font-size:44px;
      font-weight:900;
      line-height:1;
      color:rgba(15,23,42,.06);
      position:absolute;
      top:10px; right:14px;
      letter-spacing:-2px;
    }
    .pillar-ico{
      width:44px; height:44px;
      border-radius:11px;
      display:grid;
      place-items:center;
      background:linear-gradient(135deg,var(--nav-1),var(--nav-3));
      margin-bottom:14px;
      flex:0 0 auto;
    }
    .pillar-ico svg{ width:22px; height:22px; fill:none; stroke:#fff; stroke-width:1.9; }
    .pillar-title{
      font-size:14px;
      font-weight:800;
      color:#1b2a44;
      line-height:1.3;
      margin:0 0 8px;
    }
    .pillar-desc{
      font-size:12.5px;
      color:var(--muted);
      line-height:1.55;
      margin:0 0 16px;
      flex:1;
    }
    .pillar-link{
      font-size:12.5px;
      font-weight:700;
      color:var(--accent-2);
      display:inline-flex;
      align-items:center;
      gap:4px;
      transition:gap .12s ease;
      margin-top:auto;
    }
    .pillar-link:hover{ gap:8px; }
    .pillar-link svg{ width:12px; height:12px; fill:none; stroke:currentColor; stroke-width:2.5; }

    /* ─── Pubblicazioni recenti ─────────────────────── */
    .publications-section{
      padding:46px 0 50px;
      background:#f4f7fb;
      border-top:1px solid rgba(15,23,42,.07);
      border-bottom:1px solid rgba(15,23,42,.07);
    }
    .pub-grid{
      display:grid;
      grid-template-columns:repeat(3,1fr);
      gap:20px;
    }
    .pub-card{
      background:var(--card);
      border:1px solid var(--border);
      border-radius:var(--radius);
      box-shadow:var(--shadow);
      overflow:hidden;
      display:flex;
      flex-direction:column;
      transition:transform .14s ease,box-shadow .14s ease;
    }
    .pub-card:hover{ transform:translateY(-3px); box-shadow:var(--shadow-lg); }
    .pub-card-top{
      padding:22px 22px 16px;
      background:
        radial-gradient(400px 180px at 15% 15%,rgba(105,168,232,.10),transparent 60%),
        linear-gradient(180deg,#fff,rgba(245,248,253,.95));
      border-bottom:1px solid rgba(15,23,42,.07);
      flex:1;
    }
    .pub-type{
      display:inline-block;
      padding:3px 10px;
      border-radius:999px;
      font-size:11px;
      font-weight:700;
      text-transform:uppercase;
      letter-spacing:.5px;
      margin-bottom:10px;
    }
    .pub-type.paper{ background:rgba(63,121,183,.12); color:#2a6496; }
    .pub-type.report{ background:rgba(43,79,114,.12); color:#1f3550; }
    .pub-type.brief{ background:rgba(105,168,232,.14); color:#3f79b7; }
    .pub-card-top h4{
      margin:0 0 8px;
      font-size:15px;
      font-weight:800;
      color:#1b2a44;
      line-height:1.35;
    }
    .pub-card-top p{
      margin:0;
      font-size:13px;
      color:var(--muted);
      line-height:1.55;
    }
    .pub-card-bottom{
      padding:12px 22px;
      background:linear-gradient(90deg,#2b4f72,#1f3550);
      display:flex;
      justify-content:space-between;
      align-items:center;
    }
    .pub-meta{ font-size:12px; color:rgba(255,255,255,.65); font-weight:600; }
    .pub-arrow{
      font-size:20px;
      color:var(--accent);
      font-weight:700;
      line-height:1;
      transition:transform .12s ease;
    }
    .pub-arrow:hover{ transform:translateX(3px); }
    .center-actions{ text-align:center; margin-top:28px; }

    /* ─── News & Events ────────────────────────────── */
    .news-section{ padding:52px 0 48px; }
    .news-grid{
      display:grid;
      grid-template-columns:1fr 320px;
      gap:28px;
    }
    .news-event-list{
      display:flex;
      flex-direction:column;
      gap:14px;
    }
    .news-item{
      background:var(--card);
      border:1px solid var(--border);
      border-radius:var(--radius);
      box-shadow:var(--shadow);
      padding:16px 20px;
      display:flex;
      gap:16px;
      align-items:flex-start;
      transition:transform .13s ease, box-shadow .13s ease;
      text-decoration:none;
      color:inherit;
      cursor:pointer;
    }
    .news-item:hover{ transform:translateX(3px); box-shadow:var(--shadow-lg); }
    .news-item--past{ opacity:.8; }
    .news-item--past:hover{ opacity:1; }
    .news-date--past{ background:linear-gradient(135deg,#64748b,#94a3b8) !important; }
    .news-date{
      flex:0 0 auto;
      background:linear-gradient(135deg,var(--nav-1),var(--nav-3));
      color:#fff;
      border-radius:9px;
      width:48px; height:52px;
      display:flex;
      flex-direction:column;
      align-items:center;
      justify-content:center;
    }
    .news-date .day{ font-size:20px; font-weight:900; line-height:1; }
    .news-date .mon{
      font-size:10px;
      font-weight:700;
      text-transform:uppercase;
      letter-spacing:.4px;
      opacity:.82;
    }
    .news-content{ flex:1; }
    .news-label{
      display:inline-block;
      font-size:10.5px;
      font-weight:700;
      text-transform:uppercase;
      letter-spacing:.5px;
      color:var(--accent-2);
      margin-bottom:3px;
    }
    .news-content h4{
      margin:0 0 3px;
      font-size:14px;
      font-weight:800;
      color:#1b2a44;
      line-height:1.3;
    }
    .news-content p{
      margin:0;
      font-size:12.5px;
      color:var(--muted);
      line-height:1.5;
    }
    .quick-links-card{
      background:linear-gradient(160deg,#1a3a5c,#0f2235);
      border-radius:var(--radius);
      padding:28px 24px;
      color:#fff;
    }
    .quick-links-card h3{
      margin:0 0 6px;
      font-size:17px;
      font-weight:900;
    }
    .quick-links-card > p{
      margin:0 0 20px;
      font-size:13px;
      color:rgba(255,255,255,.58);
      line-height:1.5;
    }
    .ql-list{
      list-style:none;
      margin:0; padding:0;
      display:flex;
      flex-direction:column;
      gap:9px;
    }
    .ql-list li a{
      display:flex;
      align-items:center;
      gap:10px;
      padding:11px 14px;
      background:rgba(255,255,255,.07);
      border:1px solid rgba(255,255,255,.09);
      border-radius:9px;
      font-size:13.5px;
      font-weight:600;
      color:rgba(255,255,255,.88);
      transition:background .13s ease;
    }
    .ql-list li a:hover{ background:rgba(255,255,255,.15); }
    .ql-list li a svg{
      width:15px; height:15px;
      fill:none; stroke:var(--accent);
      stroke-width:2;
      flex:0 0 auto;
    }

    /* ─── CTA band ─────────────────────────────────── */
    .cta-band{
      padding:52px 0;
      background:linear-gradient(135deg,#1a3a5c 0%,#0f2235 60%,#1a3a5c 100%);
      position:relative;
      overflow:hidden;
      text-align: left;
    }
    .cta-band::before{
      content:"";
      position:absolute;
      inset:0;
      background:
        radial-gradient(700px 350px at 20% 50%,rgba(105,168,232,.14),transparent 60%),
        radial-gradient(500px 300px at 80% 50%,rgba(63,121,183,.11),transparent 60%);
      pointer-events:none;
    }
    .cta-band h3 { margin: 0 0 10px; font-size: 28px; font-weight: 900; letter-spacing: -.2px; }
    .cta-band p {
      margin: 0 auto 26px;
      color: rgba(255,255,255,.85);
      font-weight: 600;
      font-size: 15px;
      line-height: 1.6;
      max-width: none;
    }

    .cta-inner{
      position:relative;
      z-index:2;
      display:grid;
      grid-template-columns:1fr auto;
      gap:32px;
      align-items:center;
    }
    .cta-left h3{
      margin:0 0 8px;
      font-size:26px;
      font-weight:900;
      color:#fff;
    }
    .cta-left p{
      margin:0;
      font-size:15px;
      color:rgba(255,255,255,.68);
      line-height:1.55;
    }
    .cta-actions{
      display:flex;
      gap:12px;
      flex-wrap:wrap;
      justify-content:flex-end;
    }
    .btn-ghost{
      padding:11px 22px;
      border:1px solid rgba(255,255,255,.30);
      background:rgba(255,255,255,.07);
      color:rgba(255,255,255,.92);
      border-radius:8px;
      font-weight:700;
      font-size:14px;
      cursor:pointer;
      transition:background .13s ease,border-color .13s ease;
    }
    .btn-ghost:hover{
      background:rgba(255,255,255,.14);
      border-color:rgba(255,255,255,.50);
    }

    /* ─── Footer ───────────────────────────────────── */
    footer{
      background:
        linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,0)),
        linear-gradient(90deg,var(--nav-1),var(--nav-2));
      color:#fff;
      border-top:1px solid rgba(255,255,255,.10);
    }
    .footer-inner{
      padding:34px 0 18px;
      display:grid;
      grid-template-columns:1.3fr 1fr 1fr 1fr;
      gap:26px;
    }
    .footer-title{ margin:0 0 10px; font-weight:900; letter-spacing:.2px; }
    .footer-text{
      margin:0;
      color:rgba(255,255,255,.84);
      line-height:1.55;
      font-weight:600;
      font-size:13.5px;
    }
    .footer-links{
      list-style:none;
      padding:0; margin:0;
      display:grid;
      gap:10px;
    }
    .footer-links a{ color:rgba(255,255,255,.86); font-weight:700; font-size:13.5px; }
    .footer-links a:hover{ color:#fff; text-decoration:underline; text-underline-offset:3px; }
    .footer-bottom{
      border-top:1px solid rgba(255,255,255,.10);
      padding:14px 0 18px;
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:14px;
      color:rgba(255,255,255,.78);
      font-weight:600;
      font-size:12.5px;
    }

    /* ─── Responsive ───────────────────────────────── */
    @media(max-width:1000px){
      .pillars-grid{ grid-template-columns:1fr 1fr; }
      .pub-grid{ grid-template-columns:1fr 1fr; }
      .news-grid{ grid-template-columns:1fr; }
      .footer-inner{ grid-template-columns:1fr 1fr; }
      .stats-inner{ grid-template-columns:repeat(2,1fr); }
      .home-hero-title{ font-size:46px; }
    }
    /* ─── Hamburger button ───────────────────────────── */
    .hamburger{
      display:none;
      flex-direction:column;
      justify-content:center;
      align-items:center;
      gap:5px;
      width:42px; height:42px;
      background:none;
      border:1px solid rgba(255,255,255,.22);
      border-radius:8px;
      cursor:pointer;
      padding:0;
      flex-shrink:0;
    }
    .hamburger span{
      display:block;
      width:22px; height:2px;
      background:#fff;
      border-radius:999px;
      transition:transform .25s ease, opacity .25s ease;
    }
    .hamburger.open span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
    .hamburger.open span:nth-child(2){ opacity:0; }
    .hamburger.open span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

    /* ─── Side drawer ────────────────────────────────── */
    .nav-overlay{
      display:none;
      position:fixed;
      inset:0;
      background:rgba(0,0,0,.55);
      z-index:99;
      opacity:0;
      transition:opacity .25s ease;
    }
    .nav-overlay.visible{ opacity:1; }

    .side-drawer{
      position:fixed;
      top:0; right:0;
      width:min(320px, 85vw);
      height:100%;
      background:linear-gradient(160deg,#0f2235,#1a3a5c);
      z-index:100;
      transform:translateX(100%);
      transition:transform .28s cubic-bezier(.4,0,.2,1);
      display:flex;
      flex-direction:column;
      padding:0;
      box-shadow:-6px 0 30px rgba(0,0,0,.35);
    }
    .side-drawer.open{ transform:translateX(0); }

    .drawer-header{
      display:flex;
      align-items:center;
      justify-content:space-between;
      padding:20px 22px;
      border-bottom:1px solid rgba(255,255,255,.10);
    }
    .drawer-brand{
      font-size:15px;
      font-weight:700;
      color:#fff;
      letter-spacing:.2px;
    }
    .drawer-close{
      background:none;
      border:none;
      cursor:pointer;
      color:rgba(255,255,255,.7);
      font-size:24px;
      line-height:1;
      padding:4px 8px;
    }
    .drawer-close:hover{ color:#fff; }

    .drawer-menu{
      list-style:none;
      margin:0; padding:18px 0;
      flex:1;
      overflow-y:auto;
    }
    .drawer-menu li a{
      display:flex;
      align-items:center;
      gap:12px;
      padding:15px 24px;
      color:rgba(255,255,255,.88);
      font-weight:600;
      font-size:16px;
      border-left:3px solid transparent;
      transition:background .15s ease, border-color .15s ease, color .15s ease;
    }
    .drawer-menu li a:hover,
    .drawer-menu li a.active{
      background:rgba(105,168,232,.12);
      border-left-color:var(--accent);
      color:#fff;
    }
    .drawer-footer{
      padding:20px 22px;
      border-top:1px solid rgba(255,255,255,.10);
    }
    .drawer-footer .btn-join{
      width:100%;
      text-align:center;
      display:block;
    }

    @media(max-width:1111px){
      .hamburger{ display:flex; }
      .nav{ height:auto; padding:14px 0; }
      nav[aria-label="Primary"]{ display:none; }
      .nav-cta{ display:none; }
    }
    @media(max-width:640px){
      .pillars-grid{ grid-template-columns:1fr; }
      .pub-grid{ grid-template-columns:1fr; }
      .home-hero-title{ font-size:36px; }
      .cta-inner{ grid-template-columns:1fr; }
      .cta-actions{ justify-content:flex-start; }
      .footer-inner{ grid-template-columns:1fr; }
      .stats-inner{ grid-template-columns:1fr 1fr; }
      /* Hero centrato su mobile */
      .home-hero-inner{ padding:72px 0 64px; }
      .home-hero-inner > *{ text-align:center; }
      .hero-text > *{ text-align:center; }
      .hero-badge{ margin-left:auto; margin-right:auto; }
      .home-hero-sub{ margin-left:auto; margin-right:auto; max-width:100%; }
      .hero-actions{ justify-content:center; }
      .hero-subline{ justify-content:center; }
      .hero-subline .line{ flex:1; max-width:50px; }
    }

    /* ─── Runner animation ─────────────────────────── */
    .runner-wrap{
      flex:0 0 auto;
      display:flex;
      align-items:center;
      justify-content:center;
      pointer-events:none;
      z-index:3;
    }
    .runner-wrap svg{
      opacity:.88;
      filter:drop-shadow(0 0 28px rgba(255,255,255,.18));
    }

    @media(max-width:920px){ .runner-wrap{ display:none; } }

  /* ── DEIM Feed Card ──────────────────────────────────────────── */
  /* Il wrapper di colonna destra (#feedDeim) viene reso flex-column così
     la card figlia può ereditare l'altezza impostata via JS quando la
     colonna News (#feedNews) è più alta. */
  #feedDeim {
    display: flex;
    flex-direction: column;
    min-height: 346px;
  }

  .deim-feed-card {
    /* Forza un contesto cromatico autonomo, indipendente dal tema */
    --df-bg:        rgba(255,255,255,0.06);
    --df-border:    rgba(255,255,255,0.10);
    --df-text:      rgba(255,255,255,0.88);
    --df-muted:     rgba(255,255,255,0.45);
    --df-accent:    #63b3ed;
    --df-fade-from: transparent;
    --df-fade-to:   rgba(15, 25, 50, 0.97); /* uguale allo sfondo card */
    min-height: 346px;
    height: 100%;
    display: flex;
    flex-direction: column;
  }

  .deim-feed-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
  }

  .deim-feed-card h3 {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--df-accent);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: .06em;
  }

  .deim-feed-all {
    font-size: 0.68rem;
    color: var(--df-accent);
    text-decoration: none;
    opacity: 0.6;
    transition: opacity .2s;
    white-space: nowrap;
  }
  .deim-feed-all:hover { opacity: 1; }

  .deim-feed-sub {
    font-size: 0.70rem;
    color: var(--df-muted);
    margin: 0 0 12px;
    line-height: 1.45;
  }

  /* ── Viewport scroll ── */
  /* flex-basis:0 (non auto): il wrapper non deve mai dimensionarsi sul
     contenuto della lista — altrimenti, quando il feed è popolato, la
     card crescerebbe spingendo #feedDeim oltre l'altezza sincronizzata.
     min-height:190px è il floor quando la card è al minimo (346px).
     overflow:hidden ritaglia la lista che scorre. */
  .deim-scroll-wrap {
    flex: 1 1 0;
    min-height: 190px;
    overflow: hidden;
    position: relative;
  }
  .deim-scroll-wrap::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 52px;
    background: linear-gradient(var(--df-fade-from), var(--df-fade-to));
    pointer-events: none;
    z-index: 1;
  }

  /* ── Stati loading / errore ── */
  .deim-state {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 4px;
    font-size: 0.73rem;
    color: var(--df-muted);
  }
  .deim-state--error {
    color: #fc8181;
  }

  .deim-spinner {
    display: inline-block;
    width: 14px; height: 14px;
    border: 2px solid rgba(255,255,255,0.15);
    border-top-color: var(--df-accent);
    border-radius: 50%;
    animation: deimSpin .7s linear infinite;
    flex-shrink: 0;
  }
  @keyframes deimSpin {
    to { transform: rotate(360deg); }
  }

  /* ── Lista notizie ── */
  .deim-scroll-list {
    list-style: none;
    margin: 0; padding: 0;
    /* animazione aggiunta via JS dopo il caricamento */
  }
  .deim-scroll-list.is-animating {
    animation: deimScroll 30s linear infinite;
  }
  .deim-scroll-wrap:hover .deim-scroll-list.is-animating {
    animation-play-state: paused;
  }
  @keyframes deimScroll {
    0%   { transform: translateY(0); }
    100% { transform: translateY(-50%); }
  }

  .deim-scroll-item {
    border-bottom: 1px solid var(--df-border);
    padding: 8px 2px;
  }
  .deim-scroll-item:last-child { border-bottom: none; }

  .deim-scroll-item a {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-decoration: none;
    color: var(--df-text);
    transition: color .15s;
  }
  .deim-scroll-item a:hover .deim-item-title {
    color: var(--df-accent);
  }

  .deim-item-date {
    font-size: 0.62rem;
    color: var(--df-muted);
    font-variant-numeric: tabular-nums;
  }
  .deim-item-title {
    font-size: 0.76rem;
    line-height: 1.35;
    color: var(--df-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* ── Footer ── */
  .deim-feed-footer {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 8px;
    font-size: 0.61rem;
    color: var(--df-muted);
  }
  .deim-live-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #68d391;
    animation: livePulse 2s ease-in-out infinite;
    flex-shrink: 0;
  }
  @keyframes livePulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: .25; }
  }
  /* ─────────────────────────────────────────────────────────────── */


  