:root{--accent:#7456f1;}
/* MIDOG 2025 — reproduces the look of the original midog2025.deepmicroscopy.org
   (WordPress "Blocksy" theme): purple gradient page, logo header with
   uppercase menu, white content cards, sponsor sidebar, light logo footer.
   Edit in the admin under MIDOG 2025 → Edition settings → Design. */

:root {
  --accent: #7456f1;
  --palette-1: #7456f1; --palette-2: #5e3fde; --palette-3: #7d7d7d; --palette-4: #102136;
  --palette-5: #848484; --palette-6: #f3f5f7; --palette-7: #fbfbfc; --palette-8: #ffffff;
  --m25-text: #3b3b3b;
  --m25-heading: #102136;
  --m25-header: #2b0044;
  --m25-shadow: 0 12px 18px -6px rgba(34, 56, 101, .04);
}

html { background: #15101e; }
body.edition .site-footer a { color: #fff; }
body.edition {
  background: linear-gradient(177deg, #270341 43%, #9b51e0 100%);
  color: var(--m25-text);
  font-size: 16px;
  line-height: 1.65;
}
body.edition a { color: var(--accent); }
body.edition a:hover { color: var(--palette-2); }
body.edition a.wp-block-button__link, body.edition a.wp-block-button__link:hover { color: #fff; }

/* series bar blends into the header */
.series-bar { background: #1c002e; }
body.edition .series-bar a.series-brand { color: #fff; }
body.edition .edition-switch a { color: #fff; }
body.edition .edition-switch a.current { color: var(--brand); }

/* ---------- header: logo left, uppercase menu right ---------- */
.edition-header {
  background: var(--m25-header);
  border: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 max(20px, calc((100% - 1152px) / 2));
  min-height: 190px;
}
.edition-header .wrap { max-width: none; margin: 0; padding: 0; }
.edition-head-inner { padding: 0; }
.edition-logo { height: 190px; max-width: none; width: auto; }
.edition-titles { display: none; }          /* the logo already carries the title */
.edition-brand:has(img) .edition-titles { display: none; }
.edition-nav-wrap { border: 0; }
.edition-nav > ul { gap: 0; flex-wrap: nowrap; }
.edition-header .edition-nav a {
  color: #fff;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  padding: 0 12.5px;
  line-height: 190px;
  border: 0;
  white-space: nowrap;
}
.edition-header .edition-nav a:hover, .edition-header .edition-nav li.active > a { color: #896bff; border: 0; }
/* like the original: the logo is the way home, news live on the front page */
.edition-nav > ul > li:first-child, .edition-nav a[href$="/news"] { display: none; }
.edition-nav a.ext::after { content: ""; }
.edition-nav .has-sub > a::after { content: " ▾"; font-size: 10px; }
.edition-nav .sub {
  background: var(--palette-4);
  border: 0;
  border-radius: 0 0 2px 2px;
  min-width: 200px;
  padding: 0;
  top: calc(50% + 24px);
  box-shadow: 0 10px 20px rgba(41, 51, 61, .1);
}
.edition-header .edition-nav .sub a {
  line-height: 1.3;
  padding: 15px 19.5px;
  font-size: 12px;
  font-weight: 500;
  text-transform: none;
  color: #fff;
}
.edition-nav .sub li + li a { border-top: 1px solid rgba(255, 255, 255, .08); }
.edition-nav .sub a:hover { color: #896bff; }
.nav-toggle-label { color: #fff; }

/* ---------- layout: 876px content + 230px sidebar on the gradient ---------- */
.edition-layout,
.edition-layout.has-sidebar {
  max-width: 1192px;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 46px;
  padding-top: 60px;
  padding-bottom: 80px;
}
.edition-layout .card {
  background: #fff;
  border-radius: 3px;
  padding: 40px;
  box-shadow: var(--m25-shadow);
}
.edition-layout .entry-card, .edition-layout .home-intro { border-radius: 5px; padding: 30px; }
.entry-card + .entry-card, .home-intro + .entry-card { margin-top: 20px; }
.card .prose { max-width: none; }
.card .prose p, .card .prose li { color: var(--m25-text); }
.card .prose .has-text-color p, .card .prose .has-text-color li, .card .prose .has-text-color strong { color: inherit; }
.crumbs { display: none; }
.page-head { max-width: none; }
.page-title, .card h1.page-title { font-size: 30px; font-weight: 700; color: #000; margin: 0 0 30px; letter-spacing: 0; }
.post-single .post-date { margin: -18px 0 26px; }
.entry-card .entry-title { font-size: 20px; font-weight: 700; line-height: 1.3; margin: 0 0 20px; }
.entry-card .entry-title a { color: var(--m25-heading); }
.entry-card .entry-title a:hover { color: var(--accent); }
.entry-meta { font-size: 12px; font-weight: 600; color: var(--m25-text); letter-spacing: 0; margin-top: 20px; }
.entry-meta time::before { content: "Admin  /  "; white-space: pre; }
.edit-link { color: var(--accent); }
.back a, .more-news a { font-weight: 600; }
.notice { max-width: none; }

/* headings inside content: Blocksy scale */
.card .prose h1 { font-size: 40px; color: var(--m25-heading); }
.card .prose h2 { font-size: 35px; color: var(--m25-heading); }
.card .prose h3 { font-size: 30px; color: var(--m25-heading); }
.card .prose h4 { font-size: 25px; color: var(--m25-heading); }
.card .prose h5 { font-size: 20px; color: var(--m25-heading); }
.card .prose h1, .card .prose h2, .card .prose h3, .card .prose h4 { line-height: 1.5; margin: 1.4em 0 .6em; letter-spacing: 0; }
.card .prose img { border-radius: 0; }
.card .prose figcaption { color: var(--m25-text); font-size: 14px; margin-top: .8em; }
.card .prose table { font-size: 15px; }
.card .prose th, .card .prose td { border-color: #e0e5eb; }
.card .prose thead th { background: var(--palette-6); }
.prose .wp-block-button__link { background: var(--palette-1); border-radius: 3px; font-size: 15px; font-weight: 500; padding: 5px 20px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; }
.prose [class*="wp-block-button__width"] .wp-block-button__link { display: flex; }
.prose .wp-block-button__link:hover { background: var(--palette-2); filter: none; }
.prose .wp-block-column > .wp-block-image img { width: 100%; }
.prose .wp-block-column.has-background { padding: .6rem 1rem; border-radius: 7px; }

/* ---------- sidebar: white boxes with sponsor badges ---------- */
.edition-sidebar > div > div {
  background: #fff;
  padding: 23px;
  margin-bottom: 20px;
  box-shadow: var(--m25-shadow);
}
.edition-sidebar .wp-block-group, .edition-sidebar figure { margin: 0; }

/* ---------- edition footer: light band with partner logos ---------- */
.edition-footer { background: var(--palette-6); border: 0; padding: 60px 0 30px; }
.edition-footer .footer-logos { max-width: 1152px; text-align: left; }
.edition-footer .wp-block-gallery { gap: 40px 50px; align-items: center; }
.edition-footer .wp-block-gallery img { max-height: 110px; width: 100%; object-fit: contain; margin: 0; }
.edition-footer p { font-size: 15px; }
.edition-footer a { color: var(--m25-text); }

@media (max-width: 1100px) {
  .edition-header { flex-direction: column; align-items: stretch; min-height: 0; padding-top: 16px; padding-bottom: 8px; }
  .edition-logo { height: 120px; }
  .edition-nav > ul { flex-wrap: wrap; }
  .edition-nav a { line-height: 44px; }
  .edition-nav .sub { top: 100%; }
}
@media (max-width: 960px) {
  .edition-layout, .edition-layout.has-sidebar { grid-template-columns: minmax(0, 1fr); padding-top: 24px; }
  .edition-sidebar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .edition-sidebar > div { display: contents; }
  .edition-sidebar > div > div { margin: 0; padding: 12px; }
  .edition-layout .card { padding: 24px; }
}
@media (max-width: 760px) {
  .edition-logo { height: 90px; }
  .edition-nav a { line-height: 1.3; padding: 10px 4px; }
  .edition-nav li.active > a { border-left: 3px solid #896bff; padding-left: 10px; }
  .edition-nav .sub a { color: #fff; }
  .edition-footer .wp-block-gallery.columns-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
}

