/**
 * Small badges
 */
.opensciencebadges-sm {
  display: flex;
  flex-direction: column;
  gap: 1.5em;
}

.opensciencebadges-sm .opensciencebadge {
  display: grid;
  grid-template-columns: 2em 1fr;
  gap: 0.75em;
}

.opensciencebadges-sm .opensciencebadge img {
  width: 100%;
  height: auto;
}

.opensciencebadges-sm .opensciencebadge p {
  margin-top: 0;
}

/**
 * Large badges
 */

.opensciencebadges-lg {
  display: flex;
  flex-direction: column;
  gap: 1.5em;
}

.opensciencebadges-lg-badges {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  max-width: 100%;
}

.opensciencebadges-lg-badges img {
  max-width: 8em;
  min-width: 0;
}

.opensciencebadges-lg-descs .opensciencebadge-desc {
  margin-top: 0;
}

/**
 * When the badges appear in the article details section
 * (the sidebar in the default theme)
 */
.opensciencebadges-article-details .opensciencebadges {
  margin-top: 0.75em;
}


/**
 * JICC Statement Panels
 * Does NOT affect existing badge styles
 */

.osb-statements-wrap {
  margin: 2em 0 1em 0;
}

.osb-statements-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.osb-statement {
  padding: 1.2em 1.4em;
  margin-bottom: 1em;
  border-left: 6px solid;
  border-radius: 6px;
  background: #f9fafc;
  line-height: 1.7;
  
}

.osb-statement strong {
  font-weight: 600;
  margin-right: 0.4em;
}

/* Panel colors */

.osb-coi {
  border-color: #c62828;
  background: #fde8e8;
}

.osb-funding {
  border-color: #00695c;
  background: #dff4f1;
}

.osb-data {
  border-color: #0277bd;
  background: #e1f3ff;
}

.osb-ethics {
  border-color: #512da8;
  background: #eee7ff;
}

.osb-contrib {
  border-color: #1565c0;
  background: #e3f0ff;
}

.osb-ai {
  border-color: #37474f;
  background: #eef1f3;
}

.osb-disclaimer {
  border-color: #ef6c00;
  background: #fff1df;
}

.osb-ack {
  border-color: #6a1b9a;
  background: #f3e5f5;
}

.osb-retracted {
  border-color: #b71c1c;
  background: #ffebee;
  font-weight: 600;
}

.osb-other {
  border-color: #455a64;
  background: #eceff1;
}



.osb-statement {
    padding: 14px 18px;
    margin-bottom: 16px;
    border-radius: 6px;
    background: #f5f5f5;
    border-left: 5px solid #999;
}

/* Acknowledgement */
.osb-acknowledgement {
    background: #f3f6fb;
    border-left-color: #3b6ea5;
}

/* Conflict of Interest */
.osb-conflictOfInterest {
    background: #fdeeee;
    border-left-color: #d9534f;
}

/* Author Contributions */
.osb-authorContributions {
    background: #f0f7f4;
    border-left-color: #2e8b57;
}

/* Funding */
.osb-funding {
    background: #eef6ff;
    border-left-color: #1e88e5;
}

/* Data Availability */
.osb-dataAvailability {
    background: #fff8e6;
    border-left-color: #f0ad4e;
}

/* Ethical Consideration */
.osb-ethicalConsideration {
    background: #f7f0ff;
    border-left-color: #6f42c1;
}

/* Disclaimer */
.osb-disclaimer {
    background: #f8f9fa;
    border-left-color: #6c757d;
}

/* AI Declaration */
.osb-aiDeclaration {
    background: #eaf7ff;
    border-left-color: #17a2b8;
}

/* Retraction Notice */
.osb-retractionNotice {
    background: #ffeaea;
    border-left-color: #c82333;
}

/* Other */
.osb-other {
    background: #f2f2f2;
    border-left-color: #888;
}