/* ============================================================
   SOLO — Partners
   Section 1: consortium overview + interactive Europe map
   Section 2: partner grid
   ============================================================ */

/* ---------- Section 1: consortium ---------- */
.consortium {
  position: relative;
  padding: 34px 0 76px;
  background: linear-gradient(180deg, var(--bg) 0%, var(--tone-paper) 100%);
  overflow: hidden;
}
/* Breadcrumb — mirrors the .subhero .crumbs rules in site.css, since this
   section is .consortium rather than .subhero. */
.consortium .crumbs {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
}
.consortium .crumbs a { color: var(--accent); text-decoration: none; }
.consortium .crumbs a:hover { text-decoration: underline; }

.consortium-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.18fr);
  gap: 48px;
  align-items: center;
  margin-top: 30px;
}
.c-text h1 {
  margin: 0 0 22px;
  font-size: clamp(40px, 5vw, 66px);
  line-height: 1.03;
  letter-spacing: -0.03em;
  color: var(--fg);
}
.c-text p {
  margin: 0;
  max-width: 58ch;
  font-size: var(--body-size); font-weight: 400;
  line-height: var(--body-lh);
  color: var(--body-color);
  text-wrap: pretty;
}

/* ---------- Interactive map ---------- */
/* Map sits directly on the page background — no frame. Its edges are
   feathered so the vector blends into the section tone. */
.map-stage {
  position: relative;
  margin: -6% -4% -6% 0;
}
.map-canvas { display: block; font-size: 0; line-height: 0; }
.map-canvas svg {
  display: block;
  width: 100%;
  height: auto;
  -webkit-mask-image: radial-gradient(115% 108% at 50% 46%, #000 62%, rgba(0,0,0,.55) 82%, transparent 100%);
          mask-image: radial-gradient(115% 108% at 50% 46%, #000 62%, rgba(0,0,0,.55) 82%, transparent 100%);
}

.land {
  fill: #DED0B9;
  stroke: #C3AF92;
  stroke-width: 0.6;
  transition: fill .18s var(--t);
}
.land:not(.is-partner):hover { fill: #D3C2A7; }
.land.is-partner {
  fill: var(--ochre);
  stroke: #8C5325;
  stroke-width: 0.7;
  cursor: pointer;
}
.land.is-partner:hover,
.land.is-partner.is-active { fill: var(--accent); stroke: var(--accent-ink); }
/* No focus box around map paths on click; keyboard focus reuses the hover highlight. */
.land:focus, .land:focus-visible { outline: none; }
.land.is-partner:focus-visible { fill: var(--accent); stroke: var(--accent-ink); stroke-width: 1.4; }

.map-tip {
  position: absolute; left: 0; top: 0; z-index: 5;
  max-width: 264px;
  padding: 11px 14px;
  background: var(--fg);
  color: #F6EFE5;
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .16s var(--t), transform .16s var(--t);
}
.map-tip.show { opacity: 1; transform: translateY(0); }
.map-tip .t-country {
  font-size: 13px; font-weight: 700; letter-spacing: -0.01em;
  margin-bottom: 5px;
}
.map-tip .t-members {
  margin: 0;
  font-size: 11.5px; line-height: 1.55;
  color: rgba(246,239,229,.76);
}

.map-failed-note { display: none; }
.map-stage.map-failed .map-failed-note {
  display: block;
  padding: 64px 24px;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}

/* ---------- Section 2: partner grid ---------- */
.partners-section { padding: 84px 0 120px; background: var(--bg); }
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.partner-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: #FFFFFF;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--t), box-shadow .25s var(--t);
}
.partner-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.partner-card.is-flash { box-shadow: 0 0 0 3px var(--accent), var(--shadow); }

/* Logo row: logo left, country flag pinned to the top-right corner. */
.pc-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}
.pc-logo {
  display: flex; align-items: center;
  height: 72px;
  min-width: 0;
}
.pc-logo img {
  max-height: 100%; max-width: 172px;
  width: auto; height: auto;
  object-fit: contain;
}
.pc-body { flex: 1 1 auto; }
.pc-flag {
  width: 27px; height: auto; flex: none;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(31,18,8,.16);
}
.partner-card h3 {
  margin: 0 0 11px;
  font-size: 19px; line-height: 1.3; letter-spacing: -0.015em;
  color: var(--fg);
  text-wrap: pretty;
}
.partner-card p {
  margin: 0 0 22px;
  font-size: 14.5px; line-height: 1.65;
  color: var(--muted);
  text-wrap: pretty;
}

.pc-link {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: auto;
  padding-top: 17px;
  border-top: 1px solid var(--border-soft);
  font-size: 13.5px; font-weight: 650;
  color: var(--accent);
  text-decoration: none;
  transition: color .18s var(--t);
}
.pc-link svg { width: 14px; height: 14px; transition: transform .2s var(--t); }
.pc-link:hover { color: var(--accent-2); }
.pc-link:hover svg { transform: translate(2px, -2px); }
.pc-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .consortium-grid { grid-template-columns: 1fr; gap: 40px; }
  .c-text p { max-width: none; }
  .map-stage { max-width: 620px; margin: 0 auto; }
}
@media (max-width: 720px) {
  .consortium { padding: 26px 0 60px; }
  .partners-section { padding: 64px 0 90px; }
  .partners-grid { grid-template-columns: 1fr; }
  .partner-card { padding: 20px; }
  .map-tip { max-width: 220px; }
}

/* ---------- CMS integration ---------- */
/* Consortium intro and partner descriptions come from the CMS as several <p>. */
.c-text p + p { margin-top: 1em; }
.pc-body > :last-child { margin-bottom: 22px; }
.pc-body p + p { margin-top: -10px; }
.pc-body a { color: var(--accent); }
