MediaWiki: Common.css: Difference between revisions

From Dreams Knowledge Platform
Jump to: navigation, search
No edit summary
Tag: Reverted
No edit summary
 
(33 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* CSS placed here will be applied to all skins */
/* CSS placed here will be applied to all skins */
  .navbar-brand img {
.navbar-brand img {
   padding-top: 10px;
   padding-top: 10px;
   height: 60px;
   height: 60px;
Line 6: Line 6:


.firstHeading {
.firstHeading {
    color: rgb(92,76,228) !important;
  color: rgba(var(--bs-link-color-rgb),var(--bs-link-opacity,1)) !important;
}
 
.external.text {
  color: rgba(var(--bs-link-color-rgb),var(--bs-link-opacity,1)) !important;
}
}


Line 34: Line 38:
.yellow { background-color: #FFD32A; }
.yellow { background-color: #FFD32A; }
.orange { background-color: #fee4cb; }
.orange { background-color: #fee4cb; }
.hue1 { background-color: #5c4ce4; }
.hue1 { background-color: #5c4ce4; }
.hue2 { background-color: #8068ff; }
.hue2 { background-color: #8068ff; }
.hue3 { background-color: #a386ff; }
.hue3 { background-color: #a386ff; }
.hue4 { background-color: #c6a4ff; }
.hue4 { background-color: #c6a4ff; }
.hue5 { background-color: #e9c4ff; }
.hue5 { background-color: #e9c4ff; }
 
 
/* ── Main Page ── */
.__NOTOC__ + * { margin-top: 0; }
 
.main-hero {
  display: flex;
  align-items: center;
  gap: 2em;
  padding: 2em 0 2.5em;
  border-bottom: 1px solid #e1e4ff;
  margin-bottom: 2em;
  flex-wrap: wrap;
}
 
.main-hero__text { flex: 1; min-width: 280px; }
 
.main-hero__tag {
  font-size: 0.75em;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5c4ce4;
  margin-bottom: 0.6em;
}
 
.main-hero__title {
  font-size: 1.7em;
  font-weight: 800;
  line-height: 1.25;
  color: #1a1a2e;
  margin: 0 0 0.6em;
  border: none;
  padding: 0;
}
 
.main-hero__lead {
  font-size: 1.05em;
  color: #444;
  line-height: 1.6;
  max-width: 580px;
  margin-bottom: 1.2em;
  text-align: justify;
}
 
.main-hero__actions {
  display: flex;
  gap: 0.8em;
  flex-wrap: wrap;
}
 
.main-hero__logo {
  flex-shrink: 0;
}
 
.main-hero__logo figure,
.main-hero__logo .thumb,
.main-hero__logo .thumbinner {
  border: none !important;
  background: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
 
.main-hero__logo .thumbcaption,
.main-hero__logo .magnify { display: none !important; }
 
.main-hero__btn a,
a.main-hero__btn {
  display: inline-block;
  background: #5c4ce4;
  color: #fff !important;
  padding: 0.5em 1.2em;
  border-radius: 5px;
  font-weight: 600;
  font-size: 0.95em;
  text-decoration: none !important;
}
 
.main-hero__btn--outline a {
  background: transparent;
  color: #5c4ce4 !important;
  border: 2px solid #5c4ce4;
}
 
.main-hero__btn a:hover { opacity: 0.85; }
 
.main-hero__actions {
  display: flex;
  gap: 0.8em;
  flex-wrap: wrap;
  align-items: stretch;
}
 
.main-hero__btn a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  box-sizing: border-box;
}
 
.main-section {
  margin-bottom: 2.5em;
}
 
.main-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2em;
  margin-top: 1em;
}
 
.main-intro__col {
  font-size: 1.02em;
  line-height: 1.65;
  color: #333;
  text-align: justify;
}
 
.main-labs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6em;
  margin-top: 1em;
  justify-content: center;
}
 
.main-lab-btn a {
  display: inline-block;
  background: #f3f1ff;
  border: 1px solid #c6a4ff;
  color: #5c4ce4 !important;
  padding: 0.4em 1em;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.95em;
  text-decoration: none !important;
}
 
.main-lab-btn a:hover {
  background: #5c4ce4;
  color: #fff !important;
  border-color: #5c4ce4;
}
 
.main-connect {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1em;
  margin-top: 1em;
}
 
.main-connect__item {
  background: #f3f1ff;
  border: 1px solid #e1e4ff;
  border-left: 4px solid #5c4ce4;
  padding: 0.8em 1em;
  font-size: 0.97em;
}
 
.main-connect__item a {
  color: #5c4ce4 !important;
  font-weight: 600;
  text-decoration: none !important;
}
 
@media (max-width: 700px) {
  .main-hero { flex-direction: column; }
  .main-intro { grid-template-columns: 1fr; }
}
 


/* DREAMers team layout */
/* DREAMers team layout */
.dreamer-section { margin: 22px 0 30px; }
.dreamer-section {  
  margin: 22px 0 30px;  
}


.dreamer-section__head {
.dreamer-section__head {
   margin: 4px 0 14px;
   margin: 4px 0 14px;
   border-left: 4px solid rgb(92,76,228); /* same purple as main heading */
   border-left: 4px solid rgb(92,76,228);
   padding-left: 10px;
   padding-left: 10px;
}
}
Line 59: Line 237:
}
}


.dreamer-section__subtitle:empty { display: none; }
.dreamer-section__subtitle:empty {  
  display: none;
}


/* Cards laid out in rows */
.dreamers-grid {
.dreamers-grid {
   display: flex;
   display: grid;
   flex-wrap: wrap;
   grid-template-columns: repeat(auto-fill, 260px);
   gap: 20px;
   gap: 20px;
   justify-content: center; /* or flex-start if you prefer left aligned */
   justify-content: center;
}
 
.dreamers-grid > p {
  display: none;
}
}


/* Individual card */
.dreamer-card {
.dreamer-card {
   width: 260px;
   width: 260px;
Line 75: Line 257:
   display: flex;
   display: flex;
   flex-direction: column;
   flex-direction: column;
  border-radius: 16px;
   background: #fff;
   background: #fff;
   border: 1px solid #e1e4ff; /* light purple border */
   border: 1px solid #e1e4ff;
   box-shadow: 0 6px 16px rgba(92,76,228,0.08);
   box-shadow: 0 6px 16px rgba(92,76,228,0.08);
}
}


/* Image on top, with a soft purple backdrop */
.dreamer-card__imgwrap {
.dreamer-card__imgwrap {
   width: 100%;
   width: 100%;
  height: 250px;     
  overflow: hidden;
  background: #f3f1ff;
}
.dreamer-card__imgwrap pre {
  margin: 0;
  padding: 0;
  border: none;
  background: none;
   overflow: hidden;
   overflow: hidden;
   background: #f3f1ff; /* light purple tint */
   white-space: normal;
  width: 100%;
  height: 100%;
}
 
.dreamer-card__imgwrap a {
  display: block;
  width: 100%;
  height: 100%;
}
}


.dreamer-card__img {
.dreamer-card__img {
   width: 100%;
   width: 100%;
   height: auto;
   height: 100%;   
  object-fit: cover; 
  object-position: center top;  
   display: block;
   display: block;
   border-radius: 0;
   border-radius: 0;
}
}


/* Text area */
.dreamer-card__body {
.dreamer-card__body {
   padding: 10px 14px 12px;
   padding: 10px 14px 12px;
Line 114: Line 313:
   margin-top: 6px;
   margin-top: 6px;
   font-size: 0.95em;
   font-size: 0.95em;
}
.dreamer-card__imgwrap figure,
.dreamer-card__imgwrap .thumb,
.dreamer-card__imgwrap .thumbinner {
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: none !important;
  display: block !important;
}
.dreamer-card__imgwrap .thumbcaption,
.dreamer-card__imgwrap .magnify {
  display: none !important;
}
}


Line 119: Line 335:




/* Publications Overview Container */
/* ── Event detail page ── */
.publications-overview {
.event-detail { margin-top: 8px; }
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}


.publications-header {
.event-detail__meta {
   display: flex;
   display: flex;
   justify-content: space-between;
   flex-wrap: wrap;
   align-items: center;
  gap: 0 32px;
   margin-bottom: 10px;
  padding: 14px 20px;
  padding-bottom: 0px;
  background: #f3f1ff;
  border-left: 4px solid #5c4ce4;
   margin-bottom: 24px;
}
.event-detail__meta-item { display: flex; gap: 8px; align-items: baseline; }
.event-detail__meta-label {
  font-weight: 700;
  color: #5c4ce4;
  text-transform: uppercase;
  font-size: 0.78em;
  letter-spacing: 0.05em;
}
.event-detail__description {
  font-size: 1.05em;
  line-height: 1.65;
   margin-bottom: 28px;
  max-width: 780px;
}
}


.publications-header h2 {
/* ── Event image gallery ── */
   margin: 0;
.event-gallery {
   color: #2c3e50;
   display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
   margin-top: 8px;
}
}
 
.event-gallery > p { display: none; }
.publication-create-btn {
.event-gallery__item {
   margin-bottom: 10px;
  overflow: hidden;
  background: #f3f1ff;
  border: 1px solid #e1e4ff;
  box-shadow: 0 4px 12px rgba(92,76,228,0.08);
   line-height: 0;
}
}


.publication-create-btn a {
.event-gallery__item a,
  background-color: #3498db;
.event-gallery__item span,
   color: white !important;
.event-gallery__item .thumb,
   padding: 10px 20px;
.event-gallery__item .thumbinner {
  border-radius: 5px;
   display: block !important;
   text-decoration: none;
   width: 100% !important;
  font-weight: bold;
   max-width: none !important;
  display: inline-block;
  transition: background-color 0.3s;
}
}
 
.event-gallery__item img {
.publication-create-btn a:hover {
  display: block !important;
   background-color: #2980b9;
  width: 100% !important;
  height: 260px;
  object-fit: cover;
   object-position: center;
}
}
.event-gallery__item .thumbcaption,
.event-gallery__item .magnify { display: none; }


.publications-intro {
/* Strip thumb borders inside event gallery */
   color: #666;
.event-gallery .thumb {
   font-size: 1.1em;
   border: none !important;
   margin-bottom: 30px;
   background: none !important;
   padding: 0 !important;
}
}


/* Category Sections */
.event-gallery .thumbinner {
.publication-category-section {
   border: none !important;
   margin-bottom: 40px;
   background: none !important;
   background: #f8f9fa;
   padding: 0 !important;
   padding: 20px;
   width: 100% !important;
   border-radius: 8px;
  border-left: 4px solid #3498db;
}
}


.publications-categorized h2 {
.event-gallery .thumbimage {
  color: #2c3e50;
   border: none !important;
   border-bottom: 2px solid #3498db;
  padding-bottom: 10px;
  margin-top: 30px;
  margin-bottom: 20px;
}
}


/* Publications List */
.event-gallery .thumbcaption,
.publications-list {
.event-gallery .magnify {
   list-style: none;
   display: none !important;
  padding: 0;
  margin: 0;
}
}


.publications-list li {
/* ── Event Card ── */
   margin-bottom: 15px;
.event-card {
   border: 1px solid #dde;
  border-radius: 8px;
  overflow: hidden;
  background: #f9f9fc;
  width: 300px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}
}


/* Publication Card Styling */
.event-card-image {
.publication-card {
   width: 100%;
   background: white;
   height: 160px;
   border: 1px solid #e0e0e0;
   overflow: hidden;
   border-radius: 6px;
   background: #eef;
   padding: 15px 20px;
   display: flex;
   display: flex;
  justify-content: space-between;
   align-items: center;
   align-items: center;
   transition: box-shadow 0.3s, transform 0.2s;
   justify-content: center;
}
}


.publication-card:hover {
/* Strip MediaWiki thumb wrapper inside event cards */
   box-shadow: 0 4px 12px rgba(0,0,0,0.1);
.event-card-image figure,
   transform: translateY(-2px);
.event-card-image figure.mw-default-size,
.event-card-image .thumb,
.event-card-image .thumbinner {
  width: 100% !important;
  height: 100% !important;
   margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: none !important;
   display: block !important;
}
}


.publication-card-content {
.event-card-image .thumbcaption,
   flex: 1;
.event-card-image .magnify {
   display: none !important;
}
}


.publication-card-title {
.event-card-image img {
   font-size: 1.1em;
   width: 100% !important;
   margin-bottom: 8px;
  height: 100% !important;
   color: #2c3e50;
  object-fit: cover !important;
   object-position: center !important;
   display: block !important;
}
}


.publication-card-title a {
.event-card-image--placeholder {
   color: #2c3e50;
   background: linear-gradient(135deg, #e8ecf8 0%, #d0d8f0 100%);
  text-decoration: none;
   position: relative;
   font-weight: 600;
}
}


.publication-card-title a:hover {
.event-card-image--placeholder::after {
   color: #3498db;
   content: "";
   text-decoration: underline;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 2.5em;
  height: 2.5em;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23334' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
   background-position: center;
}
}


.publication-card-authors {
.event-card-body {
   color: #7f8c8d;
   padding: 1em 1.2em;
   font-size: 0.9em;
  display: flex;
   margin-bottom: 4px;
   flex-direction: column;
  gap: 0.4em;
   flex: 1;
}
}


.publication-card-date {
.event-card-tag {
   color: #95a5a6;
  font-size: 0.78em;
   font-size: 0.85em;
   color: #fff;
   background: #4a5dcc;
  border-radius: 3px;
  padding: 0.15em 0.55em;
  display: inline-block;
  align-self: flex-start;
  width: fit-content;
}
}


.publication-external {
.event-card-title {
   font-size: 0.85em;
   font-weight: bold;
   color: #3498db;
   font-size: 1em;
   margin-left: 10px;
   line-height: 1.4;
}
}


.publication-external a {
.event-card-location {
   color: #3498db;
  font-size: 0.82em;
   color: #555;
}
}


.publication-card-actions {
.event-card-desc {
   margin-left: 20px;
   font-size: 0.85em;
  color: #444;
  line-height: 1.4;
}
}


.publication-card-actions a {
.event-card-readmore {
   text-decoration: none;
   font-size: 0.82em;
   font-size: 1.5em;
   font-weight: 600;
   transition: transform 0.2s;
   margin-top: 0.4em;
  display: inline-block;
}
}


.publication-card-actions a:hover {
/* ── Publication detail page ── */
   transform: scale(1.2);
.publication-detail__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0 32px;
  padding: 14px 20px;
  background: #f3f1ff;
  border-left: 4px solid #5c4ce4;
  margin-bottom: 24px;
   font-size: 0.97em;
}
}
 
.publication-detail__meta-item { display: flex; gap: 8px; align-items: baseline; }
.download-icon {
.publication-detail__meta-label {
   color: #27ae60;
  font-weight: 700;
   cursor: pointer;
   color: #5c4ce4;
   text-transform: uppercase;
  font-size: 0.78em;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
}
 
.publication-detail__description {
/* No Publications Message */
   font-size: 1.05em;
.no-publications {
   line-height: 1.65;
   color: #95a5a6;
   margin-bottom: 28px;
   font-style: italic;
   max-width: 780px;
   padding: 20px;
   text-align: center;
}
}
 
.publication-detail__section { margin-top: 24px; }
/* Form Styling */
.publication-detail__section-title {
.publication-form-fields {
   font-weight: 700;
   background: #f8f9fa;
  color: #5c4ce4;
   padding: 20px;
   text-transform: uppercase;
   border-radius: 8px;
   font-size: 0.78em;
   margin: 20px 0;
  letter-spacing: 0.05em;
   margin-bottom: 10px;
}
}
 
.publication-authors {
.publication-form-fields .formtable {
   display: flex;
   background: white;
  flex-wrap: wrap;
   width: 100%;
   gap: 8px;
}
}
 
.publication-author {
.publication-form-fields .formtable th {
   background: #f3f1ff;
   text-align: right;
  border: 1px solid #c6a4ff;
   padding: 12px;
   padding: 5px 12px;
   vertical-align: top;
   font-size: 0.92em;
   font-weight: 600;
   line-height: 1.4;
   color: #2c3e50;
   color: #1f2328;
  width: 180px;
}
}


.publication-form-fields .formtable td {
/* ── Living Lab detail page ── */
   padding: 12px;
.living-lab-detail__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0 32px;
   padding: 14px 20px;
  background: #f3f1ff;
  border-left: 4px solid #5c4ce4;
  margin-bottom: 24px;
  font-size: 0.97em;
}
}
 
.living-lab-detail__meta-item { display: flex; gap: 8px; align-items: baseline; }
.publication-form-fields input[type="text"],
.living-lab-detail__meta-label {
.publication-form-fields input[type="date"],
   font-weight: 700;
.publication-form-fields textarea,
   color: #5c4ce4;
.publication-form-fields select {
   text-transform: uppercase;
   border: 1px solid #ddd;
   font-size: 0.78em;
   border-radius: 4px;
   letter-spacing: 0.05em;
   padding: 8px;
   white-space: nowrap;
   font-size: 1em;
   width: 100%;
   max-width: 600px;
}
}
 
.living-lab-detail__section { margin-bottom: 28px; }
.publication-form-fields input[type="text"]:focus,
.living-lab-detail__section-title {
.publication-form-fields input[type="date"]:focus,
  font-weight: 700;
.publication-form-fields textarea:focus,
  color: #5c4ce4;
.publication-form-fields select:focus {
  text-transform: uppercase;
   outline: none;
  font-size: 0.78em;
   border-color: #3498db;
  letter-spacing: 0.05em;
   box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
   margin-bottom: 8px;
   border-bottom: 1px solid #e1e4ff;
   padding-bottom: 4px;
}
}
 
.living-lab-detail__text {
.publication-form-fields small {
   font-size: 1.02em;
  color: #7f8c8d;
   line-height: 1.65;
   font-size: 0.85em;
   max-width: 820px;
   display: block;
  margin-top: 5px;
}
 
/* Responsive Design */
@media (max-width: 768px) {
  .publications-header {
    flex-direction: column;
    align-items: flex-start;
   }
 
  .publication-create-btn {
    margin-top: 10px;
  }
 
  .publication-card {
    flex-direction: column;
    align-items: flex-start;
  }
 
  .publication-card-actions {
    margin-left: 0;
    margin-top: 10px;
  }
 
  .publication-form-fields .formtable th {
    display: block;
    text-align: left;
    width: 100%;
  }
 
  .publication-form-fields .formtable td {
    display: block;
    width: 100%;
  }
}
}
.living-lab-detail__map { max-width: 820px; }
.living-lab-detail__map .maps-map { width: 100% !important; }

Latest revision as of 12:46, 26 March 2026

/* CSS placed here will be applied to all skins */
.navbar-brand img {
  padding-top: 10px;
  height: 60px;
}

.firstHeading {
  color: rgba(var(--bs-link-color-rgb),var(--bs-link-opacity,1)) !important;
}

.external.text {
  color: rgba(var(--bs-link-color-rgb),var(--bs-link-opacity,1)) !important;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 20px;
}

.square {
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  font-family: Arial, sans-serif;
  font-weight: bold;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 150px;
}

.blue { background-color: #2D8CFF; }
.red { background-color: #FF4757; }
.green { background-color: #2ED573; }
.yellow { background-color: #FFD32A; }
.orange { background-color: #fee4cb; }
.hue1 { background-color: #5c4ce4; }
.hue2 { background-color: #8068ff; }
.hue3 { background-color: #a386ff; }
.hue4 { background-color: #c6a4ff; }
.hue5 { background-color: #e9c4ff; }


/* ── Main Page ── */
.__NOTOC__ + * { margin-top: 0; }

.main-hero {
  display: flex;
  align-items: center;
  gap: 2em;
  padding: 2em 0 2.5em;
  border-bottom: 1px solid #e1e4ff;
  margin-bottom: 2em;
  flex-wrap: wrap;
}

.main-hero__text { flex: 1; min-width: 280px; }

.main-hero__tag {
  font-size: 0.75em;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5c4ce4;
  margin-bottom: 0.6em;
}

.main-hero__title {
  font-size: 1.7em;
  font-weight: 800;
  line-height: 1.25;
  color: #1a1a2e;
  margin: 0 0 0.6em;
  border: none;
  padding: 0;
}

.main-hero__lead {
  font-size: 1.05em;
  color: #444;
  line-height: 1.6;
  max-width: 580px;
  margin-bottom: 1.2em;
  text-align: justify;
}

.main-hero__actions {
  display: flex;
  gap: 0.8em;
  flex-wrap: wrap;
}

.main-hero__logo {
  flex-shrink: 0;
}

.main-hero__logo figure,
.main-hero__logo .thumb,
.main-hero__logo .thumbinner {
  border: none !important;
  background: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.main-hero__logo .thumbcaption,
.main-hero__logo .magnify { display: none !important; }

.main-hero__btn a,
a.main-hero__btn {
  display: inline-block;
  background: #5c4ce4;
  color: #fff !important;
  padding: 0.5em 1.2em;
  border-radius: 5px;
  font-weight: 600;
  font-size: 0.95em;
  text-decoration: none !important;
}

.main-hero__btn--outline a {
  background: transparent;
  color: #5c4ce4 !important;
  border: 2px solid #5c4ce4;
}

.main-hero__btn a:hover { opacity: 0.85; }

.main-hero__actions {
  display: flex;
  gap: 0.8em;
  flex-wrap: wrap;
  align-items: stretch;
}

.main-hero__btn a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  box-sizing: border-box;
}

.main-section {
  margin-bottom: 2.5em;
}

.main-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2em;
  margin-top: 1em;
}

.main-intro__col {
  font-size: 1.02em;
  line-height: 1.65;
  color: #333;
  text-align: justify;
}

.main-labs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6em;
  margin-top: 1em;
  justify-content: center;
}

.main-lab-btn a {
  display: inline-block;
  background: #f3f1ff;
  border: 1px solid #c6a4ff;
  color: #5c4ce4 !important;
  padding: 0.4em 1em;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.95em;
  text-decoration: none !important;
}

.main-lab-btn a:hover {
  background: #5c4ce4;
  color: #fff !important;
  border-color: #5c4ce4;
}

.main-connect {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1em;
  margin-top: 1em;
}

.main-connect__item {
  background: #f3f1ff;
  border: 1px solid #e1e4ff;
  border-left: 4px solid #5c4ce4;
  padding: 0.8em 1em;
  font-size: 0.97em;
}

.main-connect__item a {
  color: #5c4ce4 !important;
  font-weight: 600;
  text-decoration: none !important;
}

@media (max-width: 700px) {
  .main-hero { flex-direction: column; }
  .main-intro { grid-template-columns: 1fr; }
}


/* DREAMers team layout */
.dreamer-section { 
  margin: 22px 0 30px; 
}

.dreamer-section__head {
  margin: 4px 0 14px;
  border-left: 4px solid rgb(92,76,228);
  padding-left: 10px;
}

.dreamer-section__title {
  font-size: 1.25em;
  font-weight: 700;
}

.dreamer-section__subtitle {
  color: #54595d;
  margin-top: 0;
}

.dreamer-section__subtitle:empty { 
  display: none;
}

.dreamers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, 260px);
  gap: 20px;
  justify-content: center;
}

.dreamers-grid > p {
  display: none;
}

.dreamer-card {
  width: 260px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e1e4ff;
  box-shadow: 0 6px 16px rgba(92,76,228,0.08);
}

.dreamer-card__imgwrap {
  width: 100%;
  height: 250px;       
  overflow: hidden;
  background: #f3f1ff;
}

.dreamer-card__imgwrap pre {
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  overflow: hidden;
  white-space: normal;
  width: 100%;
  height: 100%;
}

.dreamer-card__imgwrap a {
  display: block;
  width: 100%;
  height: 100%;
}

.dreamer-card__img {
  width: 100%;
  height: 100%;    
  object-fit: cover;   
  object-position: center top; 
  display: block;
  border-radius: 0;
}

.dreamer-card__body {
  padding: 10px 14px 12px;
}

.dreamer-card__name {
  line-height: 1.2;
  color: #1f2328;
}

.dreamer-card__role {
  color: #54595d;
  margin-top: 2px;
}

.dreamer-card__meta {
  color: #72777d;
  margin-top: 6px;
  font-size: 0.95em;
}

.dreamer-card__imgwrap figure,
.dreamer-card__imgwrap .thumb,
.dreamer-card__imgwrap .thumbinner {
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: none !important;
  display: block !important;
}

.dreamer-card__imgwrap .thumbcaption,
.dreamer-card__imgwrap .magnify {
  display: none !important;
}

.dreamer-card__meta:empty { display: none; }


/* ── Event detail page ── */
.event-detail { margin-top: 8px; }

.event-detail__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0 32px;
  padding: 14px 20px;
  padding-bottom: 0px;
  background: #f3f1ff;
  border-left: 4px solid #5c4ce4;
  margin-bottom: 24px;
}
.event-detail__meta-item { display: flex; gap: 8px; align-items: baseline; }
.event-detail__meta-label {
  font-weight: 700;
  color: #5c4ce4;
  text-transform: uppercase;
  font-size: 0.78em;
  letter-spacing: 0.05em;
}
.event-detail__description {
  font-size: 1.05em;
  line-height: 1.65;
  margin-bottom: 28px;
  max-width: 780px;
}

/* ── Event image gallery ── */
.event-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  margin-top: 8px;
}
.event-gallery > p { display: none; }
.event-gallery__item {
  overflow: hidden;
  background: #f3f1ff;
  border: 1px solid #e1e4ff;
  box-shadow: 0 4px 12px rgba(92,76,228,0.08);
  line-height: 0;
}

.event-gallery__item a,
.event-gallery__item span,
.event-gallery__item .thumb,
.event-gallery__item .thumbinner {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
}
.event-gallery__item img {
  display: block !important;
  width: 100% !important;
  height: 260px;
  object-fit: cover;
  object-position: center;
}
.event-gallery__item .thumbcaption,
.event-gallery__item .magnify { display: none; }

/* Strip thumb borders inside event gallery */
.event-gallery .thumb {
  border: none !important;
  background: none !important;
  padding: 0 !important;
}

.event-gallery .thumbinner {
  border: none !important;
  background: none !important;
  padding: 0 !important;
  width: 100% !important;
}

.event-gallery .thumbimage {
  border: none !important;
}

.event-gallery .thumbcaption,
.event-gallery .magnify {
  display: none !important;
}

/* ── Event Card ── */
.event-card {
  border: 1px solid #dde;
  border-radius: 8px;
  overflow: hidden;
  background: #f9f9fc;
  width: 300px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.event-card-image {
  width: 100%;
  height: 160px;
  overflow: hidden;
  background: #eef;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Strip MediaWiki thumb wrapper inside event cards */
.event-card-image figure,
.event-card-image figure.mw-default-size,
.event-card-image .thumb,
.event-card-image .thumbinner {
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: none !important;
  display: block !important;
}

.event-card-image .thumbcaption,
.event-card-image .magnify {
  display: none !important;
}

.event-card-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
}

.event-card-image--placeholder {
  background: linear-gradient(135deg, #e8ecf8 0%, #d0d8f0 100%);
  position: relative;
}

.event-card-image--placeholder::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 2.5em;
  height: 2.5em;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23334' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.event-card-body {
  padding: 1em 1.2em;
  display: flex;
  flex-direction: column;
  gap: 0.4em;
  flex: 1;
}

.event-card-tag {
  font-size: 0.78em;
  color: #fff;
  background: #4a5dcc;
  border-radius: 3px;
  padding: 0.15em 0.55em;
  display: inline-block;
  align-self: flex-start;
  width: fit-content;
}

.event-card-title {
  font-weight: bold;
  font-size: 1em;
  line-height: 1.4;
}

.event-card-location {
  font-size: 0.82em;
  color: #555;
}

.event-card-desc {
  font-size: 0.85em;
  color: #444;
  line-height: 1.4;
}

.event-card-readmore {
  font-size: 0.82em;
  font-weight: 600;
  margin-top: 0.4em;
}

/* ── Publication detail page ── */
.publication-detail__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0 32px;
  padding: 14px 20px;
  background: #f3f1ff;
  border-left: 4px solid #5c4ce4;
  margin-bottom: 24px;
  font-size: 0.97em;
}
.publication-detail__meta-item { display: flex; gap: 8px; align-items: baseline; }
.publication-detail__meta-label {
  font-weight: 700;
  color: #5c4ce4;
  text-transform: uppercase;
  font-size: 0.78em;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.publication-detail__description {
  font-size: 1.05em;
  line-height: 1.65;
  margin-bottom: 28px;
  max-width: 780px;
}
.publication-detail__section { margin-top: 24px; }
.publication-detail__section-title {
  font-weight: 700;
  color: #5c4ce4;
  text-transform: uppercase;
  font-size: 0.78em;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}
.publication-authors {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.publication-author {
  background: #f3f1ff;
  border: 1px solid #c6a4ff;
  padding: 5px 12px;
  font-size: 0.92em;
  line-height: 1.4;
  color: #1f2328;
}

/* ── Living Lab detail page ── */
.living-lab-detail__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0 32px;
  padding: 14px 20px;
  background: #f3f1ff;
  border-left: 4px solid #5c4ce4;
  margin-bottom: 24px;
  font-size: 0.97em;
}
.living-lab-detail__meta-item { display: flex; gap: 8px; align-items: baseline; }
.living-lab-detail__meta-label {
  font-weight: 700;
  color: #5c4ce4;
  text-transform: uppercase;
  font-size: 0.78em;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.living-lab-detail__section { margin-bottom: 28px; }
.living-lab-detail__section-title {
  font-weight: 700;
  color: #5c4ce4;
  text-transform: uppercase;
  font-size: 0.78em;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  border-bottom: 1px solid #e1e4ff;
  padding-bottom: 4px;
}
.living-lab-detail__text {
  font-size: 1.02em;
  line-height: 1.65;
  max-width: 820px;
}
.living-lab-detail__map { max-width: 820px; }
.living-lab-detail__map .maps-map { width: 100% !important; }