/* mediawiki modifications */
[title="ni"] {
  border: 2px solid red;
}

div#catlinks {
  display: none;
}

div#ibr-contribute {
  display: none;
}

/* ---------------------------------------------------------------------------
   Container — positioning anchor for the details popup
--------------------------------------------------------------------------- */

#euprojects {
  position: relative;
}

.graph {
  margin-bottom: 15px;
  max-width: 100%;
}

/* ---------------------------------------------------------------------------
   Status & role classes — sets background-color only.
   Used by both the legend swatches and the circles/timeline bars.
   Unlike category-* classes, these aren't defined in global CSS.
--------------------------------------------------------------------------- */

.status-Public  { background: #C57161; }
.status-Private { background: #D59987; }

.role-lead    { background: #E7805C; }
.role-partner { background: #E7AE5C; }

/* ---------------------------------------------------------------------------
   Circles view
--------------------------------------------------------------------------- */

.circle {
  cursor: pointer;
  box-sizing: border-box;
}

.circle.same-producer {
  box-shadow: 0 0 0 1px #000;
}

.circle.selected {
  box-shadow: 0 0 0 1px #000;
  background:black;
}

.kultura-year-label {
  color: white;
  background-color: #AB2530;
  display: block;
  font-size:1.125rem;
  line-height: 1;
  padding: 3px 6px;
  text-align: center;
  box-sizing: border-box;
}

/* ---------------------------------------------------------------------------
   Detail panel
--------------------------------------------------------------------------- */

/* ---------------------------------------------------------------------------
   Detail panel — positioned as a popup whose top-left sits at the bottom-left
   of the relevant circle (hovered, or pinned/selected when nothing is
   hovered). Positioning (top/left) is set inline by showDetails()/hideDetails();
   this only handles appearance and default hidden state.
--------------------------------------------------------------------------- */


#chart-legend.legend {
  th {
    width:100%;
  }
  width:100%;
}

#euprojects-popup.kultura-details {
  display: none;
  position: absolute;
  z-index: 10;
  overflow: hidden;
  width: 32rem;
  max-width: 100vw;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  padding: 8px 12px;
  dl {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 0.5rem;
    margin: 0;
  }

  dt {
    font-size: 0.875rem;
    text-transform:uppercase;
    color: var(--dark-blue);
    grid-column: 1;
  }

  dd {
    font-size: 1.125rem;
    grid-column: 2;
    margin: 0;
  }

  ul {
    list-style: none;
    margin:0;
    padding:0;
    li {
      margin:0;
    }
  }

  ul.participants {
    align-items:center;
    font-size:1rem;
    vertical-align:baseline;
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 0.5rem;
    margin: 1rem 0;
}

  
  ul.participants li {
    font-size:1.125rem;
    line-height:1.375rem;
    display: contents;
    span.role {
      font-size:0.75rem;
      text-transform:uppercase;
    }

    .partner-name a {
      font-size:1rem;
      text-align:right;
    }
  }

  li.partner.current .partner-name a {
    font-weight: 700;

  }
  

  

  h2 {
    margin-top: 0 !important;
    font-size: 16px !important;
  }

  a {
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

#euprojects-popup.visible {
  display: block;
}

/* ---------------------------------------------------------------------------
   Misc
--------------------------------------------------------------------------- */

.tagline {
  margin-bottom: 10px;
  font-size:1.125rem;

}

.kultura-switch{
  margin-right:0.5rem;
  margin-bottom:0.5rem;
}
 
.kultura-switch a {
  font-size:1rem;
  color: var(--link-blue);
  border: 2px solid var(--link-blue);
  &:not(:last-child) {
    border-right: none;
  }
  padding: 4px 8px;
  text-decoration: none;
  text-transform: uppercase;
  font-size:0.875rem;
  font-weight:bold;
  padding: 0.25rem 0.5rem;
}

.kultura-header {
  margin-bottom:0.5rem;
}

.kultura-switch a.active {
  background: var(--link-blue);
  color: #fff;
}

/* ---------------------------------------------------------------------------
   Timeline view
--------------------------------------------------------------------------- */

.tl-ruler {
  display: grid;
  margin-bottom: 4px;
}

.tl-ruler-tick {
  font-size: 0.875rem;
  color: #666;
  border-left: 1px solid #ddd;
  padding-left: 3px;
  line-height: 24px;
  white-space: nowrap;
  overflow: hidden;
}

.tl-track {
  display: grid;
  gap: 1px;
  width: 100%;
  border-left: 1px solid #ddd;
}

.tl-bar {}

@media (max-width: 480px) {
  .tl-ruler-tick:nth-child(even) {
    visibility: hidden;
  }
}

.tl-empty {
  color: #666;
  font-style: italic;
  padding: 20px 0;
}

:root {
  --gap-row: 1rem;
  --gap-column: 2rem;
  --column-total: 12;
  --column-count: 12;
  --column-width: calc((100% - var(--gap-column) * (var(--column-count) - 1)) / var(--column-total));

}

