/* ==========================================================================
   Editorial layer · Crónica social, documentary figures and clean team cards
   Loaded after the compiled Tailwind bundle so these rules can refine it.
   ========================================================================== */

.chronicle-hero {
  margin: 0;
}
.chronicle-hero img {
  display: block;
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(148, 191, 220, 0.14);
  filter: saturate(0.82) contrast(1.02);
}
.chronicle-hero figcaption,
.article-figure figcaption {
  margin-top: 0.65rem;
  font-size: 11px;
  line-height: 1.6;
  color: #8fa2b7;
}
.chronicle-hero figcaption {
  max-width: 70ch;
}

.chronicle-aside {
  padding-bottom: 1rem;
}

.section-nav {
  display: flex;
  flex-direction: column;
  gap: 1px;
  border-left: 1px solid rgba(148, 191, 220, 0.16);
}
.section-nav a {
  display: block;
  padding: 0.4rem 0 0.4rem 0.9rem;
  margin-left: -1px;
  border-left: 2px solid transparent;
  font-size: 11px;
  line-height: 1.45;
  color: #93a7bc;
  transition: color 160ms ease, border-color 160ms ease;
}
.section-nav a:hover,
.section-nav a:focus-visible {
  color: #e6edf7;
  border-left-color: rgba(125, 211, 252, 0.55);
}

.article-body {
  font-size: 16px;
  line-height: 1.78;
  color: #b7c6d6;
}
.article-body > section + section {
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(148, 191, 220, 0.1);
}
.article-body p {
  margin-bottom: 1.15rem;
}
.article-body p:last-child {
  margin-bottom: 0;
}
.article-body h2 {
  margin-bottom: 1.25rem;
  font-family: Inter, sans-serif;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: #e6edf7;
}
.article-num {
  display: block;
  margin-bottom: 0.5rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: #7dd3fc;
}
.article-body h3 {
  margin-bottom: 0.4rem;
  font-family: Inter, sans-serif;
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1.4;
  color: #e6edf7;
}
.article-body strong {
  color: #e6edf7;
  font-weight: 600;
}
.article-body em {
  color: #d7e2ee;
}
.article-body a {
  color: #7dd3fc;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(125, 211, 252, 0.4);
}
.article-body .lead {
  font-size: 18px;
  line-height: 1.72;
  color: #cfdae6;
}
.dropcap::first-letter {
  float: left;
  margin: 0.08em 0.6rem 0 0;
  font-family: Inter, sans-serif;
  font-size: 4.1rem;
  font-weight: 700;
  line-height: 0.78;
  color: #7dd3fc;
}

.data-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 2rem 0 1rem;
  overflow: hidden;
  border: 1px solid rgba(148, 191, 220, 0.14);
  border-radius: 14px;
  background: rgba(148, 191, 220, 0.12);
}
.data-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.1rem;
  background: #0b101c;
}
.data-value {
  font-family: Inter, sans-serif;
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #7dd3fc;
}
.data-label {
  font-size: 11.5px;
  line-height: 1.45;
  color: #b7c6d6;
}
.data-source {
  margin-top: auto;
  font-size: 9.5px;
  letter-spacing: 0.03em;
  color: #7e91a6;
}

.article-figure {
  margin: 2rem 0;
}
.article-figure img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(148, 191, 220, 0.14);
  filter: saturate(0.8) contrast(1.02);
}

.pullquote {
  margin: 2.25rem 0;
  padding: 4px 0 4px 1.25rem;
  border-left: 2px solid rgba(201, 164, 242, 0.65);
}
.pullquote p {
  margin: 0;
  font-family: Inter, sans-serif;
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  font-weight: 550;
  line-height: 1.45;
  letter-spacing: -0.015em;
  color: #e6edf7;
}

.article-note {
  margin: 1.25rem 0 0;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(148, 191, 220, 0.1);
  font-size: 11px;
  line-height: 1.6;
  color: #8296ab;
}

.voice-grid {
  display: grid;
  gap: 1rem;
  margin: 2rem 0 1rem;
}
@media (min-width: 640px) {
  .voice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.voice-card {
  padding: 1.25rem;
  border: 1px solid rgba(148, 191, 220, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
}
.voice-card blockquote {
  margin-top: 0.6rem;
  font-family: Inter, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
  color: #e6edf7;
}
.voice-card figcaption {
  margin-top: 0.85rem;
  font-size: 9.5px;
  letter-spacing: 0.03em;
  line-height: 1.5;
  color: #8296ab;
}

.article-callout {
  margin: 2rem 0;
  padding: 1.1rem 1.25rem;
  border: 1px solid rgba(201, 164, 242, 0.22);
  border-radius: 12px;
  background: rgba(201, 164, 242, 0.055);
}

.proposal-list {
  display: grid;
  gap: 1px;
  margin: 2rem 0;
  padding: 0;
  list-style: none;
  overflow: hidden;
  border: 1px solid rgba(148, 191, 220, 0.12);
  border-radius: 14px;
  background: rgba(148, 191, 220, 0.1);
}
.proposal-list li {
  display: flex;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  background: #0b101c;
}
.proposal-list p {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: #a9bacb;
}
.proposal-num {
  flex: none;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  line-height: 1.9;
  color: #c9a4f2;
}

.source-box {
  margin-top: 1.75rem;
  padding: 1.25rem 1.35rem;
  border: 1px solid rgba(148, 191, 220, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
}
.source-box h3 {
  margin-bottom: 0.7rem;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7dd3fc;
}
.source-box ul {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.source-box li {
  font-size: 11.5px;
  line-height: 1.55;
  color: #a9bacb;
}
.source-box li::before {
  content: "—";
  margin-right: 0.5rem;
  color: #7dd3fc;
}

/* QR block: deliberately light, calm and scannable at the very end. */
.qr-block {
  margin-top: 5rem;
  padding: 4rem 1.25rem 5rem;
  background:
    radial-gradient(600px 320px at 50% 0%, rgba(125, 211, 252, 0.10), transparent 70%),
    #060a12;
  border-top: 1px solid rgba(148, 191, 220, 0.12);
}
.qr-card {
  max-width: 620px;
  margin: 0 auto;
  padding: 2.75rem 2rem 2.5rem;
  border-radius: 24px;
  background: #ffffff;
  color: #0b1220;
  text-align: center;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.qr-card .eyebrow {
  color: #2563a8;
  letter-spacing: 0.16em;
}
.qr-card h2 {
  color: #0b1220;
}
.qr-image-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1.75rem auto 1.5rem;
  padding: 1.25rem;
  border: 1px solid #e3e9f2;
  border-radius: 18px;
  background: #ffffff;
}
.qr-image {
  display: block;
  width: min(100%, 340px);
  height: auto;
  image-rendering: crisp-edges;
}
.qr-instruction {
  max-width: 30rem;
  margin: 0 auto;
  font-family: Inter, sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.55;
  color: #1c2a3f;
}
.qr-hint {
  margin-top: 0.7rem;
  font-size: 11px;
  line-height: 1.55;
  color: #64748b;
}

/* Clean, uniform team cards: no gray boxes or secondary role labels. */
.team-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 9.5rem;
  padding: 1.6rem 1.5rem;
  border: 1px solid rgba(148, 191, 220, 0.12);
  border-radius: 16px;
  background: linear-gradient(155deg, rgba(25, 35, 58, 0.5), rgba(13, 19, 34, 0.42));
  transition: border-color 220ms ease, transform 220ms ease, background 220ms ease;
}
.team-card:hover {
  transform: translateY(-2px);
  border-color: rgba(125, 211, 252, 0.3);
  background: linear-gradient(155deg, rgba(30, 42, 68, 0.62), rgba(13, 19, 34, 0.5));
}
.team-card__name {
  font-family: Inter, sans-serif;
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.015em;
  color: #e6edf7;
}
.team-card__role {
  margin-top: 0.4rem;
  font-size: 12px;
  line-height: 1.5;
  color: #a3b5c7;
}

/* Keep long-form pages comfortable on small screens. */
@media (max-width: 639px) {
  .article-body {
    font-size: 15.5px;
    line-height: 1.75;
  }
  .article-body .lead {
    font-size: 16.5px;
  }
  .data-strip {
    grid-template-columns: 1fr;
  }
  .article-body > section + section {
    margin-top: 2.75rem;
    padding-top: 2rem;
  }
  .qr-block {
    padding: 3rem 1rem 4rem;
  }
  .qr-card {
    padding: 2rem 1.15rem 2rem;
    border-radius: 20px;
  }
}

@media print {
  .site-header,
  footer,
  .scroll-progress,
  #back-to-top,
  #toast-region,
  .chronicle-aside,
  .no-print {
    display: none !important;
  }
  .qr-block {
    background: #fff !important;
    padding: 2rem 0 0 !important;
    border-top: 1px solid #ccc !important;
  }
  .qr-card {
    box-shadow: none !important;
    border: 1px solid #ccc;
  }
  body {
    background: #fff !important;
    color: #111 !important;
  }
  main {
    padding-top: 0 !important;
  }
  .view:not(.is-active) {
    display: none !important;
  }
  .article-body,
  .article-body p,
  .article-body li,
  .article-body h2,
  .article-body h3,
  .article-body strong,
  .article-body em {
    color: #111 !important;
  }
  .article-body {
    max-width: 100%;
  }
  .glass,
  .glass-strong {
    background: #fff !important;
    border-color: #ccc !important;
    box-shadow: none !important;
  }
  .chronicle-hero img,
  .article-figure img {
    filter: none;
    break-inside: avoid;
  }
  .pullquote,
  .voice-card,
  .source-box,
  .article-callout {
    border-color: #bbb !important;
    background: #fff !important;
  }
  a {
    text-decoration: none !important;
  }
}
