/**
 * CMC Silesia — pages.css
 * Style dla wszystkich podstron wewnętrznych.
 */

/* ── Sekcja treści ── */
.page-content-section { padding: 64px 0 80px; }
/* .page-content-wrap width pochodzi z .container (1280px max) */

.entry-content { width: 100%; }
.entry-content h2 { font-size: clamp(22px,2.5vw,32px); color: #0E3A52; margin: 40px 0 16px; }
.entry-content h3 { font-size: clamp(18px,2vw,24px); color: #0E3A52; margin: 28px 0 12px; }
.entry-content p  { color: #3D5162; line-height: 1.75; margin-bottom: 20px; }
.entry-content ul, .entry-content ol { padding-left: 24px; margin: 12px 0 20px; }
.entry-content li { color: #3D5162; line-height: 1.7; margin-bottom: 8px; }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content strong { color: #0E3A52; }
.entry-content a { color: #127A60; text-decoration: underline; }
.entry-content a:hover { color: #0A5A47; }
.entry-content .about-highlight { background: #E6F5F0; border: 1px solid #C8EDE5; border-radius: 12px; padding: 20px 24px; margin: 24px 0; }
.entry-content .about-highlight p { color: #0E3A52; margin: 0; }

/* ── O projekcie ── */
.page-about-grid { display: grid; grid-template-columns: 1fr; gap: 48px; }
@media (min-width: 1024px) { .page-about-grid { grid-template-columns: 380px 1fr; align-items: start; } }
.page-about-sidebar { position: sticky; top: 100px; }
.data-card { background: #F8FAFB; border: 1px solid #DDE5EC; border-radius: 12px; padding: 28px; }
.data-card__title { font-family: 'Outfit',sans-serif; font-weight: 700; font-size: 16px; color: #0E3A52; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid #127A60; }
.data-list { display: flex; flex-direction: column; }
.data-list__row { display: flex; flex-direction: column; gap: 4px; padding: 12px 0; border-bottom: 1px solid #DDE5EC; font-size: 14px; }
.data-list__row:last-child { border-bottom: none; }
.data-list__row dt { color: #8899AA; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.data-list__row dd { font-family: 'Outfit',sans-serif; font-weight: 600; color: #0E3A52; }
.page-about-content p { color: #3D5162; line-height: 1.75; margin-bottom: 20px; }
.page-about-content h2 { font-size: clamp(22px,2.5vw,32px); color: #0E3A52; margin: 40px 0 16px; }

/* ── Konsorcjum (pełna strona) ── */
.consortium-full-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 768px) { .consortium-full-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1280px) { .consortium-full-grid { grid-template-columns: repeat(5,1fr); } }
.consortium-full-card { display: flex; flex-direction: column; align-items: center; text-align: center; border: 1px solid #C8EDE5; border-radius: 12px; padding: 28px 20px; background: #fff; text-decoration: none; transition: box-shadow .2s, transform .2s; }
.consortium-full-card:hover { box-shadow: 0 10px 30px -15px rgba(18,122,96,.25); transform: translateY(-2px); }
.consortium-full-card--lead { box-shadow: 0 0 0 2px rgba(18,122,96,.40); }
@media (min-width: 1280px) { .consortium-full-card { flex-direction: column; } }
.consortium-full-info { text-align: center; }
/* Karty zawsze w kolumnie — flex-direction:row usunięty (psuje równe wys.) */
.consortium-name { font-size: 15px; font-weight: 600; color: #0E3A52; margin: 8px 0; line-height: 1.375; }
.consortium-desc { font-size: 13px; color: #8899AA; line-height: 1.6; margin: 0; }

/* ── Rezultaty ── */
.results-placeholder { text-align: center; padding: 64px 24px; }
.results-placeholder__icon { width: 80px; height: 80px; background: #E6F5F0; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 24px; }
.results-placeholder__title { font-family: 'Outfit',sans-serif; font-size: 28px; color: #0E3A52; margin-bottom: 16px; }
.results-placeholder__text { color: #3D5162; max-width: 60ch; margin: 0 auto 32px; line-height: 1.7; }
.results-placeholder__cta { color: #3D5162; margin-top: 32px; }
.results-placeholder__cta a { color: #127A60; }
.results-categories { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; max-width: 480px; margin: 0 auto; text-align: left; }
@media (min-width: 640px) { .results-categories { grid-template-columns: repeat(3,1fr); } }
.results-category-item { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: #F8FAFB; border: 1px solid #DDE5EC; border-radius: 10px; font-size: 13px; font-weight: 500; color: #3D5162; }

/* ── Dla badaczy ── */
.researchers-toc { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 48px; padding-bottom: 24px; border-bottom: 1px solid #DDE5EC; }
.researchers-toc__link { padding: 8px 16px; background: #F0F4F7; border: 1px solid #DDE5EC; border-radius: 99px; font-size: 14px; font-weight: 500; color: #0E3A52; text-decoration: none; transition: background .2s, color .2s; }
.researchers-toc__link:hover { background: #127A60; color: #fff; border-color: #127A60; }
.researchers-section { display: flex; gap: 28px; padding: 48px 0; border-bottom: 1px solid #DDE5EC; align-items: flex-start; }
.researchers-section:last-of-type { border-bottom: none; }
.researchers-section__icon { width: 56px; height: 56px; background: linear-gradient(135deg,#127A60,#3FC9A8); border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.researchers-section__icon svg { stroke: #fff; }
.researchers-section__title { font-family: 'Outfit',sans-serif; font-size: clamp(20px,2.5vw,28px); color: #0E3A52; margin-bottom: 16px; }
.researchers-cta { text-align: center; padding: 64px 24px; background: #E6F5F0; border-radius: 16px; margin-top: 48px; }
.researchers-cta h2 { font-size: 28px; color: #0E3A52; margin-bottom: 12px; }
.researchers-cta p { color: #3D5162; max-width: 55ch; margin: 0 auto 24px; line-height: 1.7; }

/* ── Kontakt ── */
.contact-grid { max-width: 900px; }
.contact-cards { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 32px; }
@media (min-width: 640px) { .contact-cards { grid-template-columns: repeat(2,1fr); } }
.contact-card { display: flex; gap: 20px; align-items: flex-start; padding: 24px; background: #F8FAFB; border: 1px solid #DDE5EC; border-radius: 12px; }
.contact-card__icon { width: 48px; height: 48px; background: linear-gradient(135deg,#127A60,#3FC9A8); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-card__icon svg { stroke: #fff; }
.contact-card__body h3 { font-family: 'Outfit',sans-serif; font-weight: 600; font-size: 16px; color: #0E3A52; margin-bottom: 8px; }
.contact-card__body p, .contact-card__body address { font-size: 14px; color: #3D5162; line-height: 1.6; }
.contact-card__body small { font-size: 12px; color: #8899AA; }
.contact-link { color: #127A60; text-decoration: none; font-weight: 500; }
.contact-link:hover { text-decoration: underline; }
.contact-social { display: flex; gap: 8px; margin-top: 8px; }
.contact-social-btn { padding: 6px 16px; background: #0E3A52; color: #fff; border-radius: 6px; font-size: 13px; font-weight: 600; text-decoration: none; transition: background .2s; }
.contact-social-btn:hover { background: #127A60; }
.contact-project-info { margin-top: 40px; padding: 20px 24px; background: #E6F5F0; border-radius: 10px; font-size: 14px; color: #3D5162; line-height: 1.6; }
.contact-project-info strong { color: #0E3A52; }

/* ── Single post ── */
.single-article { padding-bottom: 80px; }
.single-thumbnail { margin: 40px 0; }
.single-thumbnail__img { width: 100%; max-height: 480px; object-fit: cover; border-radius: 12px; }
.single-layout { display: grid; grid-template-columns: 1fr; }
.single-content-wrap { max-width: 75ch; }
.single-meta { margin-top: 12px; }
.single-nav { display: flex; justify-content: space-between; gap: 16px; margin: 48px 0 32px; padding-top: 32px; border-top: 1px solid #DDE5EC; }
.single-nav a { font-size: 14px; font-weight: 600; color: #127A60; text-decoration: none; max-width: 45%; }
.single-nav a:hover { text-decoration: underline; }
.single-back { margin-top: 16px; }
.single-back-link { font-size: 14px; color: #127A60; text-decoration: none; font-weight: 500; }
.single-back-link:hover { text-decoration: underline; }
.single-tags a { display: inline-block; padding: 4px 12px; background: #E6F5F0; border-radius: 99px; font-size: 12px; color: #127A60; margin: 4px; text-decoration: none; }

/* ── Archive grid ── */
.archive-section { padding: 64px 0 80px; background: #fff; }
.archive-grid { display: grid; grid-template-columns: 1fr; gap: 24px; margin-top: 8px; }
@media (min-width: 640px)  { .archive-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1024px) { .archive-grid { grid-template-columns: repeat(3,1fr); } }

/* ── Deklaracja dostępności ── */
.accessibility-declaration { max-width: 75ch; }
.accessibility-declaration h2 { font-size: 22px; color: #0E3A52; margin: 32px 0 12px; padding-bottom: 8px; border-bottom: 2px solid #E6F5F0; }
.accessibility-declaration kbd { background: #F0F4F7; padding: 2px 6px; border-radius: 4px; font-size: 13px; border: 1px solid #DDE5EC; }

/* ── Button ── */
.btn-page-primary { display: inline-flex; align-items: center; justify-content: center; padding: 12px 24px; font-family: 'Outfit',sans-serif; font-size: 14px; font-weight: 600; color: #0E3A52; background: linear-gradient(135deg,#127A60,#3FC9A8); border-radius: 8px; text-decoration: none; transition: opacity .2s, transform .15s; }
.btn-page-primary:hover { opacity: .9; transform: translateY(-1px); color: #0E3A52; }

/* ── Placeholder logotypu w karcie konsorcjum ── */
.consortium-logo-area {
  width: 100%; min-height: 60px; display: flex; align-items: center;
  justify-content: center; border: 1.5px dashed #C8EDE5; border-radius: 8px;
  background: #F8FAFB; margin-bottom: 16px; padding: 8px;
  transition: border-color .2s;
}
.consortium-logo-area img { max-height: 50px; width: auto; display: block; }
.consortium-logo-area__placeholder {
  font-size: 11px; color: #8899AA; text-align: center; line-height: 1.4;
}
.consortium-logo-area__placeholder span { display: block; font-size: 18px; margin-bottom: 2px; }
.consortium-full-card:hover .consortium-logo-area { border-color: #127A60; }

/* ── Strona w trakcie aktualizacji ── */
.page-in-progress {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 16px; padding: 64px 24px;
  text-align: center; color: #5A6B7A;
  background: #F8FAFB; border: 1px dashed #C8EDE5;
  border-radius: 16px; margin: 40px 0;
}
.page-in-progress p { font-size: 18px; color: #3D5162; margin: 0; font-family: 'Outfit', sans-serif; font-weight: 500; }

/* ════════════════════════════════════════════════════════════
   ZESPÓŁ
   ════════════════════════════════════════════════════════════ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 28px;
  margin-top: 16px;
}

.team-card {
  background: #fff;
  border: 1px solid #C8EDE5;
  border-radius: 16px;
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
  display: flex;
  flex-direction: column;
}
.team-card:hover {
  box-shadow: 0 10px 30px -15px rgba(18,122,96,.25);
  transform: translateY(-3px);
}

/* Zdjęcie */
.team-card__photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #F0F4F7;
}
.team-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Placeholder zdjęcia */
.team-card__photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #E6F5F0, #C2E8DC);
  color: #127A60;
}
.team-card__photo-placeholder svg { width: 64px; height: 64px; opacity: .5; }

/* Treść karty */
.team-card__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.team-card__name {
  font-family: 'Outfit', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: #0E3A52;
  margin: 0;
  line-height: 1.3;
}
.team-card__role {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #127A60;
  margin: 0;
}
.team-card__bio {
  font-size: 14px;
  color: #3D5162;
  line-height: 1.6;
  margin: 4px 0 0;
  flex: 1;
}
.team-card__email {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #127A60;
  text-decoration: none;
  margin-top: 8px;
  transition: color .15s;
}
.team-card__email:hover { color: #0A5A47; text-decoration: underline; }
.team-card__email svg { width: 14px; height: 14px; flex-shrink: 0; }
