/* READ 2026 · home post-event (v23) */

/* Hero */
.rc-hero {
  position: relative;
  display: flex;
  min-height: min(92vh, 56rem);
  color: #fff;
  background-color: var(--rh-blue);
  background-image:
    linear-gradient(180deg, rgba(8, 26, 84, .55) 0%, rgba(8, 26, 84, .05) 38%, rgba(8, 26, 84, .72) 100%),
    var(--rc-hero);
  background-position: center;
  background-size: cover;
}
.rc-hero__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 3rem;
  padding-top: calc(var(--desktop-header-height, 5rem) + clamp(1.5rem, 3vw, 3rem));
  padding-bottom: clamp(2.5rem, 5vw, 4.5rem);
}
.rc-hero__logo {
  width: min(60vw, 26rem);
  height: auto;
  filter: brightness(0) invert(1);
}
.rc-eyebrow,
.rc-label {
  margin: 0 0 1rem;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.rc-hero h1 {
  margin: 0;
  font-family: var(--title-font), var(--title-font-fallback);
  font-size: clamp(3.2rem, 9vw, 9rem);
  font-weight: 540;
  letter-spacing: -.05em;
  line-height: .88;
}
.rc-hero__lead {
  max-width: 30ch;
  margin: 1.4rem 0 0;
  font-size: clamp(1.15rem, 1.8vw, 1.6rem);
  font-weight: 560;
  line-height: 1.2;
}
.rc-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 2rem;
}
.rc-hero__credit {
  position: absolute;
  right: 0;
  bottom: 1rem;
  margin: 0;
  font-size: .72rem;
  opacity: .8;
}
.rc-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 3.25rem;
  padding: .85rem 1.3rem;
  border: 2px solid #fff;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: background .2s ease, color .2s ease;
}
.rc-btn--light { background: #fff; color: var(--rh-blue); }
.rc-btn--light:hover { background: transparent; color: #fff; }
.rc-btn--ghost { background: transparent; color: #fff; }
.rc-btn--ghost:hover { background: #fff; color: var(--rh-blue); }
.rc-btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* Xifres: un color per dia */
.rc-stats__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
}
.rc-stat {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: clamp(9rem, 16vw, 14rem);
  padding: clamp(1rem, 2vw, 2rem);
  color: #fff;
}
.rc-stat--0 { background: var(--rh-blue); }
.rc-stat--1 { background: var(--rh-red); }
.rc-stat--2 { background: var(--rh-green); }
.rc-stat--3 { background: var(--rh-violet); }
.rc-stat__n {
  font-family: var(--title-font), var(--title-font-fallback);
  font-size: clamp(2.8rem, 6.5vw, 6.5rem);
  font-weight: 560;
  letter-spacing: -.05em;
  line-height: .9;
  font-variant-numeric: tabular-nums;
}
.rc-stat__l {
  margin-top: .4rem;
  font-size: clamp(.95rem, 1.3vw, 1.2rem);
  font-weight: 650;
}

/* Crònica */
.rc-intro { padding-block: clamp(3rem, 7vw, 7rem); }
.rc-intro__grid {
  display: grid;
  grid-template-columns: minmax(7rem, 10rem) minmax(0, 1fr);
  gap: clamp(1.5rem, 3.5vw, 4rem);
}
.rc-label { color: var(--rh-blue); }
.rc-intro__text {
  max-width: 38ch;
  margin: 0;
  font-size: clamp(1.4rem, 2.6vw, 2.5rem);
  font-weight: 540;
  letter-spacing: -.02em;
  line-height: 1.15;
}

/* Dies */
.rc-days { border-top: 1px solid var(--border); }
.rc-day { scroll-margin-top: 5rem; }
.rc-day > * { min-width: 0; }
.rc-day__body { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(1rem, 2vw, 1.75rem); width: 100%; min-width: 0; }
/* Blocs del dia */
.rc-block { display: grid; grid-template-columns: minmax(0, 1fr); gap: .9rem; min-width: 0; }
.rc-block + .rc-block { margin-top: clamp(1rem, 2vw, 1.75rem); }
.rc-block__label {
  margin: 0;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--rh-day);
  color: var(--rh-day);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.rc-meta { margin: 0; font-size: .78rem; font-weight: 650; font-variant-numeric: tabular-nums; }

/* Fotos (assets/images/read-2026/fotos/<clau>.webp); sense foto queda el color del dia */
.rc-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  max-width: 100%;
  background-color: var(--rh-day);
  background-position: center;
  background-size: cover;
}
.rc-photo--pro { aspect-ratio: 4 / 3; }
.rc-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.rc-photo__ph {
  position: absolute; inset: 0; display: flex; align-items: flex-end; padding: .6rem;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,.1) 0 12px, transparent 12px 24px);
  color: #fff; font-size: .7rem; font-weight: 600;
}

/* Matí professional */
.rc-pros { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.75rem); }
.rc-pro { display: grid; grid-template-columns: minmax(0, 1fr); gap: .45rem; align-content: start; min-width: 0; }
.rc-pro .rc-photo { margin-bottom: .35rem; }
.rc-pro h4 {
  margin: 0;
  font-family: var(--title-font), var(--title-font-fallback);
  font-size: clamp(1.15rem, 1.5vw, 1.4rem);
  font-weight: 560;
  letter-spacing: -.02em;
  line-height: 1.05;
  text-wrap: balance;
}
.rc-pro p:last-child { margin: 0; font-size: .95rem; line-height: 1.4; }

/* Conferències: foto + panell de color */
.rc-talks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.75rem); }
.rc-talks--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rc-talks--1 { grid-template-columns: minmax(0, 1fr); }
.rc-talks--1 .rc-talk { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); grid-template-rows: auto; }
.rc-talks--1 .rc-photo { aspect-ratio: auto; min-height: 20rem; }
.rc-talk { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; background: var(--rh-day); color: #fff; min-width: 0; }
.rc-talk__body { display: grid; gap: .5rem; align-content: start; padding: clamp(1rem, 1.6vw, 1.5rem); }
.rc-talk h4 {
  margin: 0;
  color: #fff;
  font-family: var(--title-font), var(--title-font-fallback);
  font-size: clamp(1.5rem, 2.2vw, 2.3rem);
  font-weight: 560;
  letter-spacing: -.035em;
  line-height: .95;
  text-wrap: balance;
}
.rc-talk__deck { margin: 0; font-weight: 650; }
.rc-talk__text { margin: 0; font-size: 1rem; line-height: 1.35; }
.rc-talk__names { margin: .35rem 0 0; padding-top: .6rem; border-top: 1px solid rgba(255,255,255,.35); font-size: .8rem; font-weight: 600; line-height: 1.3; }

/* Galeria (Gallery Card de Ghost dins de la pàgina galeria-2026-DD) */
.rc-gallery .kg-gallery-card { margin: 0; }
.rc-gallery .kg-gallery-container {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: clamp(6.5rem, 9.5vw, 10rem);
  gap: .35rem;
}
.rc-gallery .kg-gallery-row { display: contents; }
.rc-gallery .kg-gallery-image {
  position: relative;
  grid-column: span 3;
  overflow: hidden;
  background: var(--rh-day);
  cursor: zoom-in;
  flex: none !important;
}
/* 1 gran (6x2) + 4 petites al costat + files de 4: quadra amb 5 o 9 fotos (màxim de la Gallery Card) */
.rc-gallery .kg-gallery-image:first-child { grid-column: span 6; grid-row: span 2; }
/* si queden 2 o 3 fotos a l'última fila, s'eixamplen */
.rc-gallery .kg-gallery-image:nth-child(n+6):nth-last-child(-n+2):nth-child(4n+2),
.rc-gallery .kg-gallery-image:nth-child(n+6):nth-last-child(-n+2):nth-child(4n+2) ~ .kg-gallery-image { grid-column: span 6; }
.rc-gallery .kg-gallery-image:nth-child(n+6):nth-last-child(-n+3):nth-child(4n+2),
.rc-gallery .kg-gallery-image:nth-child(n+6):nth-last-child(-n+3):nth-child(4n+2) ~ .kg-gallery-image { grid-column: span 4; }
.rc-gallery .kg-gallery-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.rc-gallery .kg-gallery-image:hover img { transform: scale(1.03); }
.rc-gallery figcaption { margin-top: .5rem; font-size: .8rem; }
.rc-gallery > *:not(.kg-gallery-card) { display: none; }

/* Placeholders (només preview) */
.rc-ph {
  display: flex; flex-direction: column; justify-content: space-between;
  height: 100%; padding: .7rem; color: #fff;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,.08) 0 12px, transparent 12px 24px), var(--rh-day);
  font-size: .7rem; font-weight: 600;
}
.rc-ph b { font-family: var(--title-font), var(--title-font-fallback); font-size: 2rem; font-weight: 500; line-height: 1; }

/* Tancament */
.rc-close { margin-top: clamp(3rem, 6vw, 6rem); background: var(--rh-blue); color: #fff; }
.rc-close__inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem 4rem;
  align-items: end;
  padding-block: clamp(3.5rem, 8vw, 8rem);
}
.rc-close h2 {
  margin: 0;
  color: #fff;
  font-family: var(--title-font), var(--title-font-fallback);
  font-size: clamp(2.8rem, 7vw, 7rem);
  font-weight: 540;
  letter-spacing: -.05em;
  line-height: .9;
}
.rc-close__date {
  margin: 1.2rem 0 0 !important;
  font-family: var(--title-font), var(--title-font-fallback);
  font-size: clamp(1.4rem, 2.6vw, 2.4rem) !important;
  font-weight: 560;
  letter-spacing: -.02em;
  line-height: 1.05;
}
.rc-close p { max-width: 36ch; margin: 0; font-size: clamp(1.05rem, 1.4vw, 1.3rem); line-height: 1.35; }

/* Lightbox */
.rc-lightbox {
  width: 100vw; max-width: 100vw; height: 100vh; max-height: 100vh;
  margin: 0; padding: 0; border: 0;
  background: rgba(6, 12, 32, .96); color: #fff;
}
.rc-lightbox[open] { display: grid; grid-template-columns: 4rem 1fr 4rem; align-items: center; }
.rc-lightbox figure { grid-column: 2; margin: 0; text-align: center; }
.rc-lightbox img { max-width: 100%; max-height: 86vh; object-fit: contain; }
.rc-lightbox figcaption { margin-top: .6rem; font-size: .85rem; opacity: .8; }
.rc-lightbox button {
  border: 0; background: none; color: #fff; font-size: 2rem; cursor: pointer;
  width: 3.5rem; height: 3.5rem;
}
.rc-lightbox button:focus-visible { outline: 2px solid #fff; }
.rc-lightbox__close { position: absolute; top: 1rem; right: 1rem; }

/* Responsive */
@media (max-width: 74.99rem) {
  .rc-talks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rc-stats__list { grid-template-columns: repeat(2, 1fr); }
  .rc-intro__grid, .rc-close__inner { grid-template-columns: 1fr; }
}
@media (max-width: 47.99rem) {
  .rc-hero { min-height: 88svh; background-image: linear-gradient(180deg, rgba(8, 26, 84, .55) 0%, rgba(8, 26, 84, .05) 38%, rgba(8, 26, 84, .72) 100%), var(--rc-hero-sm, var(--rc-hero)); }
  .rc-hero__inner { padding-top: calc(var(--mobile-header-height, 4rem) + 1.5rem); }
  .rc-btn { width: 100%; justify-content: center; }
  /* galeria: tira horitzontal amb scroll-snap */
  .rc-gallery .kg-gallery-container {
    display: flex; gap: .35rem; overflow-x: auto; scroll-snap-type: x mandatory;
    margin-inline: -1rem; padding-inline: 1rem;
  }
  .rc-gallery .kg-gallery-image,
  .rc-gallery .kg-gallery-image:first-child { flex: 0 0 82% !important; height: 15rem; scroll-snap-align: start; }
  .rc-pros, .rc-talks, .rc-talks--4 { grid-template-columns: 1fr; }
  .rc-talks--1 .rc-talk { grid-template-columns: minmax(0, 1fr); }
  .rc-talks--1 .rc-photo { min-height: 0; aspect-ratio: 3 / 2; }
  .rc-lightbox[open] { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto; }
  .rc-lightbox figure { grid-column: 1 / -1; grid-row: 1; }
  .rc-lightbox__nav--prev { grid-row: 2; justify-self: start; }
  .rc-lightbox__nav--next { grid-row: 2; justify-self: end; }
}
@media (prefers-reduced-motion: reduce) {
  .rc-gallery .kg-gallery-image img, .rc-btn { transition: none; }
}
