/* ============================================================
   pacode: base stylesheet
   ============================================================ */

:root {
  /* brand */
  --pc-red: #E63946;
  --pc-yellow: #E8B739;
  --pc-blue: #1E40AF;
  --pc-blue-strong: #1738A0;

  /* surface */
  --pc-bg: #FAFAF7;
  --pc-bg-soft: #F1F0EB;
  --pc-bg-card: #FFFFFF;
  --pc-ink: #0B0F1A;
  --pc-ink-soft: #2A3142;
  --pc-muted: #6A6F7E;
  --pc-rule: #E5E3DC;
  --pc-rule-strong: #C9C6BC;

  /* type */
  --pc-sans: "Geist", system-ui, -apple-system, sans-serif;
  --pc-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* layout */
  --pc-gutter: clamp(20px, 3vw, 48px);
  --pc-max: 1600px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--pc-bg);
  color: var(--pc-ink);
  font-family: var(--pc-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body[data-theme="dark"] {
  --pc-bg: #0B0F1A;
  --pc-bg-soft: #131826;
  --pc-bg-card: #161B2A;
  --pc-ink: #FAFAF7;
  --pc-ink-soft: #C9C6BC;
  --pc-muted: #8A8F9E;
  --pc-rule: #232A3D;
  --pc-rule-strong: #323A50;
}

a { color: inherit; text-decoration: none; }

img { display: block; max-width: 100%; }

/* ---------- top chrome ---------- */

.pc-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--pc-bg);
  border-bottom: 1px solid var(--pc-rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 var(--pc-gutter);
  height: 72px;
}
.pc-topbar__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.pc-topbar__brand a { display: flex; }
.pc-topbar__brand img { height: 48px; width: auto; }
.pc-topbar__brand .pc-topbar__ufpb {
  height: 46px;
  padding-left: 14px;
  border-left: 1px solid var(--pc-rule);
}

.pc-topbar__nav {
  display: flex;
  gap: clamp(16px, 2vw, 32px);
  font-size: 15px;
  font-weight: 500;
}
.pc-topbar__nav a {
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 180ms ease;
}
.pc-topbar__nav a:hover { border-bottom-color: var(--pc-red); }

.pc-topbar__right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pc-lang {
  font-family: var(--pc-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  border: 1px solid var(--pc-rule);
  padding: 6px 10px;
  background: transparent;
  color: var(--pc-ink);
  cursor: pointer;
  text-transform: uppercase;
  white-space: nowrap;
  display: inline-flex;
  gap: 6px;
}
.pc-lang > span { color: var(--pc-muted); }
.pc-lang > .is-on { color: var(--pc-ink); font-weight: 600; }
.pc-lang:hover { background: var(--pc-ink); color: var(--pc-bg); }
.pc-lang:hover > span { color: inherit; }

.pc-topbar__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--pc-blue);
  color: white;
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 500;
  transition: background 180ms ease;
}
.pc-topbar__cta:hover { background: var(--pc-blue-strong); }

.pc-topbar__menu {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--pc-rule);
  background: transparent;
  color: var(--pc-ink);
  font-size: 20px;
  cursor: pointer;
}

/* ---------- hero ---------- */

.pc-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  min-height: 690px;
  border-bottom: 1px solid var(--pc-rule);
  position: relative;
}
.pc-hero__left {
  padding: 56px var(--pc-gutter) 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
}
/* The title is sized from its column: the widest line ("comunidade de")
   measures about 8.1em, so 11.8cqi always fits the four lines. */
.pc-hero__titlebox { container-type: inline-size; }
.pc-hero__title {
  font-family: var(--pc-sans);
  font-weight: 800;
  font-size: clamp(34px, 11.8cqi, 104px);
  line-height: 0.95;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  margin: 0;
}
.pc-hero__title span {
  display: block;
  white-space: nowrap;
}
.pc-hero__title em {
  font-style: normal;
  color: var(--pc-blue);
}
.pc-hero__lead {
  max-width: 46ch;
  font-size: 18px;
  line-height: 1.5;
  color: var(--pc-ink-soft);
  margin: 0;
}
.pc-hero__meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin: 32px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--pc-ink);
}
.pc-hero__meta dt {
  font-family: var(--pc-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--pc-muted);
  text-transform: uppercase;
  margin: 0 0 4px;
}
.pc-hero__meta dd {
  margin: 0;
  font-weight: 600;
  font-size: 16px;
}
.pc-hero__meta a {
  border-bottom: 2px solid transparent;
  transition: border-color 180ms ease;
}
.pc-hero__meta a:hover,
.pc-hero__meta a:focus-visible { border-bottom-color: var(--pc-red); }

/* hero gallery */
.pc-hero__photo {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-left: 1px solid var(--pc-ink);
  background: var(--pc-bg-soft);
}
.pc-hero__frame {
  position: absolute;
  inset: 0;
}
.pc-hero__frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 500ms ease;
}
.pc-hero__frame img.is-on { opacity: 1; }
.pc-hero__bar {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 1;
  display: flex;
  background: var(--pc-bg);
  border-top: 1px solid var(--pc-ink);
  border-left: 1px solid var(--pc-ink);
}
.pc-hero__caption {
  position: relative;
  min-width: 252px;
  padding: 12px 20px 14px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.pc-hero__caption b {
  display: block;
  font-family: var(--pc-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pc-muted);
  margin-bottom: 2px;
}
/* Time left until the next photo. Hidden under reduced motion. */
.pc-hero__progress {
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 2px;
  background: var(--pc-blue);
  transform: scaleX(0);
  transform-origin: left;
}
@media (prefers-reduced-motion: no-preference) {
  .pc-hero__progress { animation: pcHeroProgress 5s linear both; }
}
@keyframes pcHeroProgress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
.pc-hero__nav { display: flex; }
.pc-hero__nav button {
  width: 48px;
  border: 0;
  border-left: 1px solid var(--pc-rule);
  background: transparent;
  color: inherit;
  font-family: var(--pc-sans);
  font-size: 16px;
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease;
}
.pc-hero__nav button:hover { background: var(--pc-ink); color: var(--pc-bg); }
.pc-hero__nav button:focus-visible { outline: 2px solid var(--pc-blue); outline-offset: -4px; }

/* hero collage */
.pc-collage {
  position: absolute;
  inset: 0;
}
.pc-collage svg.pc-grid-pattern {
  position: absolute;
  top: 10%;
  left: 4%;
  width: 60%;
  height: 70%;
  opacity: 0.35;
}
.pc-collage__placeholder {
  position: absolute;
  right: 6%;
  top: 8%;
  width: 62%;
  height: 78%;
  background:
    linear-gradient(135deg, rgba(0,0,0,0.04), rgba(0,0,0,0)),
    repeating-linear-gradient(
      135deg,
      var(--pc-bg-soft) 0 14px,
      #E8E5DA 14px 28px
    );
  border: 1px solid var(--pc-rule-strong);
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 16px;
  font-family: var(--pc-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--pc-muted);
  text-transform: uppercase;
}

.pc-collage__chip {
  position: absolute;
  background: var(--pc-bg-card);
  border: 1px solid var(--pc-rule-strong);
  padding: 10px 14px;
  font-family: var(--pc-mono);
  font-size: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 0 var(--pc-ink);
}
.pc-collage__chip .dot { width: 8px; height: 8px; border-radius: 50%; }

.pc-balloon {
  position: absolute;
  pointer-events: none;
}

/* small confetti-style tile pattern bottom right */
.pc-collage__tiles {
  position: absolute;
  bottom: 6%;
  right: 4%;
  width: 220px;
  height: 84px;
  display: grid;
  grid-template-columns: repeat(11, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: 3px;
}
.pc-collage__tiles span {
  display: block;
  width: 100%;
  height: 100%;
}

/* ---------- section header ---------- */

.pc-section {
  border-bottom: 1px solid var(--pc-rule);
  padding: 80px var(--pc-gutter) 96px;
  position: relative;
}
.pc-section--soft { background: var(--pc-bg-soft); }
.pc-section--ink { background: var(--pc-ink); color: var(--pc-bg); }
.pc-section--ink .pc-eyebrow { color: var(--pc-yellow); }

.pc-eyebrow {
  font-family: var(--pc-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pc-blue);
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 28px;
}
.pc-eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
}

.pc-section__title {
  font-family: var(--pc-sans);
  font-weight: 800;
  font-size: clamp(40px, 4.8vw, 80px);
  line-height: 0.96;
  letter-spacing: -0.022em;
  text-transform: uppercase;
  margin: 0 0 28px;
  max-width: 22ch;
}

.pc-section__lead {
  max-width: 64ch;
  font-size: 18px;
  line-height: 1.5;
  color: var(--pc-ink-soft);
  margin: 0;
}

.pc-section__header {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 56px;
}
.pc-section__cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
  padding: 8px 8px 8px 20px;
  background: var(--pc-ink);
  color: var(--pc-bg);
  font-family: var(--pc-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 200ms ease;
}
/* the title already leaves 28px below it */
.pc-section__title + .pc-section__cta { margin-top: 4px; }
.pc-section__cta-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  background: var(--pc-blue);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: background 200ms ease;
}
.pc-section__cta:hover { background: var(--pc-blue); }
.pc-section__cta:hover .pc-section__cta-icon { background: var(--pc-blue-strong); }
.pc-section__cta:focus-visible { outline: 2px solid var(--pc-blue); outline-offset: 3px; }
.pc-section__header .pc-tag,
.pc-section__actions {
  justify-self: end;
  align-self: end;
}
.pc-section__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pc-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--pc-rule-strong);
  padding: 8px 12px 8px 14px;
  background: var(--pc-bg-card);
  font-family: var(--pc-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
}
.pc-tag .tag-icon {
  width: 22px;
  height: 22px;
  background: var(--pc-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 11px;
}
.pc-tag.is-link {
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
}
.pc-tag.is-link:hover,
.pc-tag.is-link:focus-visible {
  background: var(--pc-ink);
  color: var(--pc-bg);
  border-color: var(--pc-ink);
}

/* ---------- generic card ---------- */

.pc-card {
  background: var(--pc-bg-card);
  border: 1px solid var(--pc-rule);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
  position: relative;
}
.pc-card:hover {
  transform: translateY(-4px);
  border-color: var(--pc-ink);
  box-shadow: 6px 6px 0 var(--pc-ink);
}
.pc-card__media {
  aspect-ratio: 16 / 10;
  background:
    repeating-linear-gradient(135deg, var(--pc-bg-soft) 0 14px, #E8E5DA 14px 28px);
  border: 1px solid var(--pc-rule);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 12px;
}
.pc-card__media .placeholder-label {
  font-family: var(--pc-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--pc-muted);
}
.pc-card__media.has-image {
  background: var(--pc-ink);
  padding: 0;
}
.pc-card__media.has-image .placeholder-label {
  display: none;
}
.pc-card__media-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pc-card h3 {
  margin: 4px 0 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.pc-card p {
  margin: 0;
  color: var(--pc-ink-soft);
  font-size: 15px;
  line-height: 1.55;
}

.pc-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.pc-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pc-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

/* ---------- key numbers grid ---------- */

.pc-numbers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(280px, auto);
  gap: 0;
  border-top: 1px solid var(--pc-rule);
  border-left: 1px solid var(--pc-rule);
}
.pc-numbers__cell {
  border-right: 1px solid var(--pc-rule);
  border-bottom: 1px solid var(--pc-rule);
  padding: 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--pc-bg-card);
  overflow: hidden;
}
.pc-numbers__cell.is-photo {
  padding: 0;
  background:
    repeating-linear-gradient(135deg, #E8E5DA 0 14px, var(--pc-bg-soft) 14px 28px);
  align-items: flex-end;
}
.pc-numbers__cell.is-photo .placeholder-label {
  position: absolute;
  bottom: 16px;
  left: 16px;
  font-family: var(--pc-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--pc-muted);
}
.pc-numbers__cell.is-photo.has-image {
  background: var(--pc-ink);
}
.pc-numbers__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pc-numbers__label {
  font-family: var(--pc-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pc-ink);
  display: flex;
  align-items: center;
  gap: 8px;
}
.pc-numbers__label::before {
  content: "○";
  font-size: 12px;
  color: var(--pc-ink);
}
.pc-numbers__value {
  font-weight: 700;
  font-size: clamp(56px, 5vw, 92px);
  letter-spacing: -0.03em;
  line-height: 1;
  font-family: var(--pc-sans);
  color: var(--pc-blue);
}
.pc-numbers__hint {
  font-size: 13px;
  color: var(--pc-muted);
  font-family: var(--pc-mono);
  letter-spacing: 0.04em;
}

/* ---------- member card ---------- */

.pc-member {
  background: var(--pc-bg-card);
  border: 1px solid var(--pc-rule);
  transition: transform 220ms ease, box-shadow 220ms ease;
  display: flex;
  flex-direction: column;
  position: relative;
}
.pc-member:hover { transform: translateY(-4px); box-shadow: 6px 6px 0 var(--pc-ink); }
.pc-member__avatar {
  aspect-ratio: 1 / 1;
  background:
    radial-gradient(circle at 50% 35%, #D9D5C8, #E8E5DA 60%, #BFBBAE);
  border-bottom: 1px solid var(--pc-rule);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pc-member__avatar .initial {
  font-size: 64px;
  font-weight: 800;
  color: rgba(11,15,26,0.18);
  letter-spacing: -0.02em;
  font-family: var(--pc-sans);
}
.pc-member__avatar.has-image {
  background: var(--pc-ink);
}
.pc-member__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pc-member__avatar .tag {
  position: absolute;
  top: 10px;
  left: 10px;
  font-family: var(--pc-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--pc-bg-card);
  border: 1px solid var(--pc-rule);
  padding: 4px 8px;
  color: var(--pc-ink);
}
.pc-member__body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.pc-member__name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 2px;
}
/* the name links to the profile and the link covers the whole card */
.pc-member__profile::after {
  content: "";
  position: absolute;
  inset: 0;
}
.pc-member__profile:focus-visible { outline: none; }
.pc-member__profile:focus-visible::after {
  outline: 2px solid var(--pc-blue);
  outline-offset: -2px;
}
.pc-member__role {
  font-family: var(--pc-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pc-muted);
  margin: 0 0 16px;
}
/* LinkedIn (or CV) link: mono label and action square, above the card link */
.pc-member__link {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--pc-rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--pc-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.pc-member__link:focus-visible {
  outline: 2px solid var(--pc-blue);
  outline-offset: 4px;
}
.pc-member__arrow {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--pc-rule);
  font-family: var(--pc-sans);
  font-size: 14px;
  letter-spacing: 0;
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
}
.pc-member__link:hover .pc-member__arrow,
.pc-member__link:focus-visible .pc-member__arrow {
  background: var(--pc-ink);
  color: var(--pc-bg);
  border-color: var(--pc-ink);
}

/* ---------- hall of fame ---------- */

.pc-hof {
  border-top: 1px solid var(--pc-rule-strong);
}
.pc-hof__row {
  display: grid;
  grid-template-columns: 100px 1.4fr 1fr 1fr 1fr 80px;
  gap: 16px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--pc-rule);
  transition: background 200ms ease, padding 200ms ease;
}
.pc-hof__row:hover {
  background: var(--pc-bg-soft);
  padding-left: 12px;
  padding-right: 12px;
}
.pc-hof__row.is-head {
  font-family: var(--pc-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pc-muted);
  padding: 12px 0;
  border-bottom: 1px solid var(--pc-rule-strong);
}
.pc-hof__row.is-head:hover {
  background: transparent;
  padding-left: 0;
  padding-right: 0;
}
.pc-hof__year {
  font-family: var(--pc-mono);
  font-weight: 500;
  font-size: 14px;
  color: var(--pc-blue);
}
.pc-hof__name {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.pc-hof__role, .pc-hof__where, .pc-hof__highlight {
  font-size: 14px;
  color: var(--pc-ink-soft);
}
.pc-hof__cta {
  justify-self: end;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--pc-rule);
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
}
.pc-hof__row:hover .pc-hof__cta {
  background: var(--pc-ink);
  color: var(--pc-bg);
  border-color: var(--pc-ink);
}

/* ---------- news ---------- */

.pc-news {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--pc-rule);
  border-left: 1px solid var(--pc-rule);
}
.pc-news__item {
  border-right: 1px solid var(--pc-rule);
  border-bottom: 1px solid var(--pc-rule);
  background: var(--pc-bg-card);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background 220ms ease;
}
.pc-news__item:hover { background: var(--pc-bg-soft); }
.pc-news__item { position: relative; }
.pc-news__item.is-feature {
  grid-row: span 2;
  grid-column: 1;
}
.pc-news__media {
  aspect-ratio: 16 / 10;
  background:
    repeating-linear-gradient(135deg, var(--pc-bg-soft) 0 14px, #E8E5DA 14px 28px);
  border: 1px solid var(--pc-rule);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 12px;
}
.pc-news__item.is-feature .pc-news__media { aspect-ratio: 16 / 11; }
.pc-news__media .placeholder-label {
  font-family: var(--pc-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--pc-muted);
}
.pc-news__media.has-image {
  background: var(--pc-ink);
  padding: 0;
}
.pc-news__media.has-image .placeholder-label {
  display: none;
}
.pc-news__media-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pc-news__meta {
  display: flex;
  gap: 14px;
  font-family: var(--pc-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pc-muted);
}
.pc-news__meta .pc-news__cat { color: var(--pc-blue); font-weight: 600; }
.pc-news__title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0;
}
.pc-news__item.is-feature .pc-news__title { font-size: 32px; }
.pc-news__excerpt {
  font-size: 15px;
  color: var(--pc-ink-soft);
  margin: 0;
}
/* the title link covers the whole cell */
.pc-news__link::after {
  content: "";
  position: absolute;
  inset: 0;
}
.pc-news__link:focus-visible { outline: none; }
.pc-news__link:focus-visible::after {
  outline: 2px solid var(--pc-blue);
  outline-offset: -2px;
}
.pc-news__more {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--pc-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pc-muted);
}
.pc-news__arrow {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--pc-rule);
  font-family: var(--pc-sans);
  font-size: 16px;
  letter-spacing: 0;
  color: var(--pc-ink);
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
}
.pc-news__item:hover .pc-news__arrow,
.pc-news__item:focus-within .pc-news__arrow,
.pc-post__row:hover .pc-news__arrow,
.pc-post__row:focus-within .pc-news__arrow {
  background: var(--pc-ink);
  color: var(--pc-bg);
  border-color: var(--pc-ink);
}

/* ---------- blog post ---------- */

.pc-post {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
.pc-post__meta { margin: 0 0 16px; }
.pc-post__cover {
  margin: 0;
  aspect-ratio: 16 / 10;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--pc-rule);
  background: var(--pc-ink);
}
.pc-post__cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pc-post__body {
  max-width: 68ch;
  margin-top: 40px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--pc-ink-soft);
}
.pc-post__body > * { margin: 0; }
.pc-post__body > * + * { margin-top: 20px; }
.pc-post__body h2 {
  margin-top: 40px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--pc-ink);
}
.pc-post__body h2 + * { margin-top: 12px; }
.pc-post__body > :first-child { margin-top: 0; }
.pc-post__body strong,
.pc-faq strong { font-weight: 600; color: var(--pc-ink); }
.pc-post__body a,
.pc-faq a {
  color: var(--pc-blue);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 180ms ease;
}
.pc-post__body a:hover,
.pc-post__body a:focus-visible,
.pc-faq a:hover,
.pc-faq a:focus-visible { color: var(--pc-ink); }
.pc-post__body ul {
  list-style: none;
  padding: 0;
  border-top: 1px solid var(--pc-rule);
}
.pc-post__body li {
  padding: 12px 0;
  border-bottom: 1px solid var(--pc-rule);
}
.pc-post__body blockquote {
  margin-top: 32px;
  margin-bottom: 32px;
  padding: 24px;
  border: 1px solid var(--pc-rule);
  background: var(--pc-bg-card);
}
.pc-post__body blockquote p {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--pc-ink);
}
.pc-post__body blockquote footer,
.pc-post__figure figcaption {
  margin-top: 12px;
  font-family: var(--pc-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pc-muted);
}
.pc-post__figure { margin-top: 32px; margin-bottom: 32px; }
.pc-post__figure img {
  width: 100%;
  height: auto;
  border: 1px solid var(--pc-rule);
}

.pc-post__aside {
  position: sticky;
  top: 96px;
}
.pc-post__aside-title {
  margin: 0 0 16px;
  font-family: var(--pc-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pc-muted);
}
.pc-post__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--pc-rule-strong);
}
.pc-post__row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px;
  gap: 8px 16px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--pc-rule);
  transition: background 200ms ease, padding 200ms ease;
}
.pc-post__row:hover {
  background: var(--pc-bg-soft);
  padding-left: 12px;
  padding-right: 12px;
}
.pc-post__row .pc-news__meta { grid-column: 1; }
.pc-post__row-title {
  grid-column: 1;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.pc-post__row .pc-news__arrow {
  grid-column: 2;
  grid-row: 1 / span 2;
}

/* ---------- contact / footer ---------- */

.pc-footer {
  background: var(--pc-ink);
  color: var(--pc-bg);
  padding: 80px var(--pc-gutter) 40px;
}
.pc-footer__big {
  font-family: var(--pc-sans);
  font-weight: 800;
  font-size: clamp(48px, 7vw, 128px);
  line-height: 0.95;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  margin: 0 0 64px;
}
.pc-footer__big em { font-style: normal; color: var(--pc-yellow); }
.pc-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-top: 40px;
  border-top: 1px solid #222C42;
}
.pc-footer__col h4 {
  font-family: var(--pc-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pc-yellow);
  margin: 0 0 16px;
  font-weight: 500;
}
.pc-footer__col p, .pc-footer__col a {
  margin: 0 0 8px;
  font-size: 15px;
  color: var(--pc-bg-soft);
  display: block;
}
.pc-footer__col a:hover { color: var(--pc-yellow); }
.pc-footer__base {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid #222C42;
  font-family: var(--pc-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8A8F9E;
}
.pc-footer__social {
  display: flex;
  gap: 12px;
}
.pc-footer__social a {
  width: 32px;
  height: 32px;
  border: 1px solid #2C3650;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 200ms ease, border-color 200ms ease, color 200ms ease;
}
.pc-footer__social a:hover {
  background: var(--pc-yellow);
  color: var(--pc-ink);
  border-color: var(--pc-yellow);
}

/* ---------- estatísticas da maratona ---------- */

.pc-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.pc-card__kicker {
  font-family: var(--pc-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pc-blue);
}

.pc-numbers + .pc-numbers,
.pc-langs + .pc-numbers { margin-top: 48px; }
.pc-numbers--short { grid-auto-rows: minmax(200px, auto); }

.pc-stats__missing { color: var(--pc-muted); font-weight: 500; }

/* submissions per edition */
.pc-bars {
  margin: 0 0 56px;
  background: var(--pc-bg-card);
  border: 1px solid var(--pc-rule);
  padding: 24px;
}
.pc-bars__caption {
  font-family: var(--pc-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pc-ink);
  margin-bottom: 24px;
}
.pc-bars__plot {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
  height: 260px;
  border-bottom: 1px solid var(--pc-ink);
}
.pc-bars__col {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: stretch;
  position: relative;
  min-width: 0;
}
.pc-bars__value {
  font-family: var(--pc-mono);
  font-size: 13px;
  color: var(--pc-ink);
  text-align: center;
  margin-bottom: 8px;
}
.pc-bars__bar {
  background: var(--pc-blue);
  transition: background 180ms ease;
}
.pc-bars__col:hover .pc-bars__bar { background: var(--pc-blue-strong); }
.pc-bars__bar.is-empty {
  background:
    repeating-linear-gradient(135deg, var(--pc-bg-soft) 0 14px, #E8E5DA 14px 28px);
  border: 1px solid var(--pc-rule-strong);
  border-bottom: none;
}
.pc-bars__col:has(.is-empty) .pc-bars__value {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--pc-muted);
}
.pc-bars__label {
  position: absolute;
  bottom: -30px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--pc-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--pc-muted);
}
.pc-bars { padding-bottom: 24px; }
.pc-bars__plot { margin-bottom: 44px; }
.pc-bars__note {
  margin: 0;
  font-family: var(--pc-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--pc-muted);
}

/* edition tabs */
.pc-tabs {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-top: 1px solid var(--pc-rule);
  border-left: 1px solid var(--pc-rule);
  margin-bottom: 24px;
}
.pc-tabs__tab {
  appearance: none;
  border: none;
  border-right: 1px solid var(--pc-rule);
  border-bottom: 1px solid var(--pc-rule);
  background: var(--pc-bg-card);
  color: var(--pc-ink);
  padding: 16px 20px;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--pc-sans);
  transition: background 180ms ease, color 180ms ease;
}
.pc-tabs__tab:hover { background: var(--pc-bg-soft); }
.pc-tabs__tab.is-active { background: var(--pc-ink); color: var(--pc-bg); }
.pc-tabs__tab:focus-visible { outline: 2px solid var(--pc-blue); outline-offset: -2px; }
.pc-tabs__kicker {
  font-family: var(--pc-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pc-muted);
}
.pc-tabs__tab.is-active .pc-tabs__kicker { color: var(--pc-rule-strong); }
.pc-tabs__roman {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}

/* scoreboard */
.pc-score__summary {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  margin: 0 0 24px;
  padding: 0 0 24px;
  border-bottom: 1px solid var(--pc-ink);
}
.pc-score__summary dt {
  font-family: var(--pc-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pc-muted);
  margin: 0 0 4px;
}
.pc-score__summary dd {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--pc-blue);
}

.pc-score__empty {
  min-height: 280px;
  background:
    repeating-linear-gradient(135deg, var(--pc-bg-soft) 0 14px, #E8E5DA 14px 28px);
  border: 1px solid var(--pc-rule-strong);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.pc-score__empty .placeholder-label {
  font-family: var(--pc-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--pc-muted);
}
.pc-score__empty p {
  margin: 0;
  max-width: 56ch;
  font-size: 18px;
  line-height: 1.5;
  color: var(--pc-ink-soft);
  background: var(--pc-bg-card);
  border: 1px solid var(--pc-rule);
  padding: 16px 20px;
}

.pc-score__note {
  margin: 0 0 16px;
  font-family: var(--pc-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--pc-ink-soft);
}

.pc-score__scroll {
  position: relative;
  overflow-x: auto;
  border: 1px solid var(--pc-rule);
  background: var(--pc-bg-card);
}
.pc-score__scroll:focus-visible { outline: 2px solid var(--pc-blue); outline-offset: 2px; }
.pc-score__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.pc-score__table th,
.pc-score__table td {
  border-bottom: 1px solid var(--pc-rule);
  padding: 0;
  text-align: center;
  vertical-align: middle;
}
.pc-score__table thead th {
  font-family: var(--pc-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pc-muted);
  padding: 12px 8px;
  border-bottom: 1px solid var(--pc-rule-strong);
  white-space: nowrap;
}
.pc-score__table tbody tr { transition: background 200ms ease; }
.pc-score__table tbody tr:hover { background: var(--pc-bg-soft); }
.pc-score__table tbody tr:hover .pc-score__team { background: var(--pc-bg-soft); }

.pc-score__rank {
  width: 48px;
  font-family: var(--pc-mono);
  font-weight: 500;
  color: var(--pc-muted);
}
tbody .pc-score__rank { padding: 0 8px; }
.is-podium .pc-score__rank { color: var(--pc-blue); font-weight: 600; }

.pc-score__team {
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--pc-bg-card);
  text-align: left !important;
  min-width: 220px;
  max-width: 280px;
  padding: 10px 16px 10px 8px !important;
  border-right: 1px solid var(--pc-rule);
  transition: background 200ms ease;
}
tbody .pc-score__team {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.is-podium .pc-score__team { font-size: 16px; }

.pc-score__prob { min-width: 52px; }
.pc-score__num {
  min-width: 96px;
  padding: 0 12px !important;
  font-family: var(--pc-mono);
  color: var(--pc-ink-soft);
}
.pc-score__num.is-solved {
  font-family: var(--pc-sans);
  font-size: 20px;
  font-weight: 700;
  color: var(--pc-ink);
}

.pc-score__cell {
  width: 52px;
  height: 52px;
  font-family: var(--pc-mono);
  border-left: 2px solid var(--pc-bg-card);
}
.pc-score__cell b,
.pc-score__cell small,
.pc-score__table tfoot b,
.pc-score__table tfoot small { display: block; line-height: 1.15; }
.pc-score__cell b { font-size: 14px; font-weight: 500; }
.pc-score__cell small { font-size: 10px; letter-spacing: 0.04em; opacity: 0.8; }
.pc-score__cell.is-ok { background: var(--pc-blue); color: #fff; }
.pc-score__cell.is-first { background: var(--pc-ink); color: var(--pc-bg); }
.pc-score__cell.is-wrong { background: var(--pc-bg-soft); color: var(--pc-muted); }
.pc-score__cell.is-wrong b { font-size: 12px; }

.pc-score__table tfoot th,
.pc-score__table tfoot td {
  border-bottom: none;
  border-top: 1px solid var(--pc-rule-strong);
  padding: 10px 4px;
  font-family: var(--pc-mono);
  color: var(--pc-muted);
}
.pc-score__table tfoot th {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.pc-score__table tfoot b { font-size: 14px; font-weight: 500; color: var(--pc-ink); }
.pc-score__table tfoot small { font-size: 10px; }

.pc-score__legend {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  font-family: var(--pc-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--pc-muted);
}
.pc-score__legend li { display: inline-flex; align-items: center; gap: 10px; }
.pc-score__swatch { width: 14px; height: 14px; display: inline-block; }
.pc-score__swatch.is-ok { background: var(--pc-blue); }
.pc-score__swatch.is-first { background: var(--pc-ink); }
.pc-score__swatch.is-wrong { background: var(--pc-bg-soft); border: 1px solid var(--pc-rule-strong); }

/* languages */
.pc-langs { border-top: 1px solid var(--pc-rule-strong); }
.pc-langs__row {
  display: grid;
  grid-template-columns: 160px 1fr 120px 120px;
  gap: 24px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--pc-rule);
}
.pc-langs__row.is-head {
  font-family: var(--pc-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pc-muted);
  padding: 12px 0;
  border-bottom: 1px solid var(--pc-rule-strong);
}
.pc-langs__row.is-head > :nth-child(n+3) { text-align: right; }
.pc-langs__name { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.pc-langs__track {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 24px;
}
.pc-langs__fill {
  height: 100%;
  background: var(--pc-blue);
  min-width: 2px;
}
.pc-langs__pct {
  font-family: var(--pc-mono);
  font-size: 13px;
  color: var(--pc-ink);
  white-space: nowrap;
}
.pc-langs__num {
  font-family: var(--pc-mono);
  font-size: 14px;
  color: var(--pc-ink-soft);
  text-align: right;
}
.pc-langs__unit { display: none; }

/* ---------- história ---------- */

/* chapter body: prose on the left, photos on the right, same split as the section header */
.pc-story {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: start;
}
.pc-story__text { max-width: 64ch; }
.pc-story__text p {
  margin: 0 0 20px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--pc-ink-soft);
}
.pc-story__text p:first-child { color: var(--pc-ink); }
.pc-story__facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 24px;
  align-items: end;
  margin: 40px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--pc-ink);
}
.pc-story__facts dt {
  font-family: var(--pc-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pc-muted);
  margin: 0 0 4px;
}
.pc-story__facts dd {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.pc-story__media {
  display: grid;
  gap: 24px;
}

.pc-figure { margin: 0; }
.pc-figure__frame {
  position: relative;
  overflow: hidden;
  background: var(--pc-ink);
  border: 1px solid var(--pc-rule-strong);
}
.pc-figure__frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pc-figure figcaption {
  margin-top: 10px;
  font-family: var(--pc-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pc-muted);
}

/* timeline: one block per year, big year on the left and its events on the right */
.pc-timeline,
.pc-timeline__events {
  list-style: none;
  margin: 0;
  padding: 0;
}
.pc-timeline { border-top: 1px solid var(--pc-rule-strong); }
.pc-timeline__year {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 4fr;
  gap: 24px;
  align-items: start;
  border-bottom: 1px solid var(--pc-rule-strong);
}
.pc-timeline__label {
  position: sticky;
  top: 88px;
  margin: 0;
  padding: 20px 0;
  font-size: clamp(56px, 5vw, 92px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--pc-blue);
}
.pc-timeline__event {
  display: grid;
  grid-template-columns: 120px 1.2fr 2fr 150px;
  gap: 16px;
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid var(--pc-rule);
}
.pc-timeline__event:last-child { border-bottom: none; }
.pc-timeline__date {
  font-family: var(--pc-mono);
  font-weight: 500;
  font-size: 14px;
  color: var(--pc-blue);
}
.pc-timeline__title {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.pc-timeline__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--pc-ink-soft);
}
.pc-timeline__cat {
  justify-self: end;
  text-align: right;
  font-family: var(--pc-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pc-muted);
}

/* card used as a link, with the action square pinned to the bottom */
.pc-card--link { min-height: 220px; }
.pc-card--link:focus-visible {
  outline: 2px solid var(--pc-blue);
  outline-offset: 2px;
}
.pc-card__arrow {
  margin-top: auto;
  align-self: flex-end;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--pc-rule);
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
}
.pc-card--link:hover .pc-card__arrow,
.pc-card--link:focus-visible .pc-card__arrow {
  background: var(--pc-ink);
  color: var(--pc-bg);
  border-color: var(--pc-ink);
}

/* ---------- premiações ---------- */

/* a section here stacks several blocks, each one with a small caption */
.pc-awards__block + .pc-awards__block,
.pc-bars + .pc-awards__block { margin-top: 56px; }
.pc-awards__block { scroll-margin-top: 96px; }
.pc-awards__caption {
  font-family: var(--pc-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pc-ink);
  margin: 0 0 16px;
}
.pc-awards__short { display: none; }
.pc-awards__tag {
  display: inline-block;
  font-family: var(--pc-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.4;
  color: var(--pc-muted);
  background: var(--pc-bg-card);
  border: 1px solid var(--pc-rule-strong);
  padding: 2px 6px;
  white-space: nowrap;
}
.pc-awards__tag.is-strong { color: var(--pc-blue); border-color: var(--pc-blue); }

/* year tabs: same tab as the editions, sized to fit every year in one row */
.pc-tabs--years { grid-template-columns: repeat(var(--pc-tabs-n, 7), 1fr); }
.pc-tabs--years .pc-tabs__tab { padding: 14px 8px; align-items: center; }
.pc-tabs__year {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.pc-bars--years { margin-bottom: 0; }

/* teams of one year: a card with one row per team */
.pc-teams {
  background: var(--pc-bg-card);
  border: 1px solid var(--pc-rule);
}
.pc-teams__row {
  display: grid;
  grid-template-columns: var(--pc-teams-cols);
  gap: 8px 16px;
  align-items: baseline;
  padding: 18px 24px;
  border-bottom: 1px solid var(--pc-rule);
  transition: background 200ms ease;
}
.pc-teams__row:last-child { border-bottom: none; }
.pc-teams__row:hover { background: var(--pc-bg-soft); }
.pc-teams__row.is-head {
  font-family: var(--pc-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pc-muted);
  padding: 12px 24px;
  border-bottom: 1px solid var(--pc-rule-strong);
}
.pc-teams__row.is-head:hover { background: transparent; }
.pc-teams__group {
  font-family: var(--pc-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pc-ink);
  background: var(--pc-bg-soft);
  padding: 10px 24px;
  border-bottom: 1px solid var(--pc-rule);
}
.pc-teams__rank {
  font-family: var(--pc-mono);
  font-weight: 500;
  font-size: 14px;
  color: var(--pc-blue);
}
.pc-teams__rank .pc-stats__missing { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }
.pc-teams__unit { display: none; }
.pc-teams__team {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}
.pc-teams__name {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.pc-teams__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pc-teams__note { font-size: 13px; line-height: 1.45; color: var(--pc-ink-soft); }
.pc-teams__cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--pc-ink-soft);
}
.pc-teams__cell b { font-size: 15px; font-weight: 600; color: var(--pc-ink); }
.pc-teams__cell small {
  font-family: var(--pc-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--pc-muted);
}

/* medal table: one row per year */
.pc-medals { border-top: 1px solid var(--pc-rule-strong); }
.pc-medals__row {
  display: grid;
  grid-template-columns: 100px repeat(5, 1fr) 80px;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--pc-rule);
  transition: background 200ms ease, padding 200ms ease;
}
.pc-medals__row:hover {
  background: var(--pc-bg-soft);
  padding-left: 12px;
  padding-right: 12px;
}
.pc-medals__row.is-head {
  font-family: var(--pc-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pc-muted);
  padding: 12px 0;
  border-bottom: 1px solid var(--pc-rule-strong);
}
.pc-medals__row.is-sum {
  border-top: 1px solid var(--pc-ink);
  border-bottom: none;
  margin-top: -1px;
  min-height: 69px;
}
.pc-medals__row.is-head:hover,
.pc-medals__row.is-sum:hover {
  background: transparent;
  padding-left: 0;
  padding-right: 0;
}
.pc-medals__row > :last-child { justify-self: end; }
.pc-medals__row:hover .pc-hof__cta {
  background: var(--pc-ink);
  color: var(--pc-bg);
  border-color: var(--pc-ink);
}
.pc-medals__year {
  font-family: var(--pc-mono);
  font-weight: 500;
  font-size: 14px;
  color: var(--pc-blue);
}
.pc-medals__row.is-sum .pc-medals__year {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pc-ink);
}
.pc-medals__num {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.pc-medals__num.is-zero { color: var(--pc-muted); font-weight: 400; }
.pc-medals__row.is-sum .pc-medals__num { font-weight: 700; color: var(--pc-blue); }

/* awardees of one year: one glued cell per category */
.pc-podium {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  border-top: 1px solid var(--pc-rule);
  border-left: 1px solid var(--pc-rule);
}
.pc-podium__cell {
  border-right: 1px solid var(--pc-rule);
  border-bottom: 1px solid var(--pc-rule);
  background: var(--pc-bg-card);
  padding: 24px;
  min-width: 0;
}
.pc-podium__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 20px;
}
.pc-podium__head h4 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0;
}
.pc-podium__head span {
  font-family: var(--pc-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pc-muted);
  white-space: nowrap;
}
.pc-podium__group { padding: 16px 0; border-top: 1px solid var(--pc-rule); }
.pc-podium__group:last-child { padding-bottom: 0; }
.pc-podium__medal {
  display: flex;
  gap: 8px;
  font-family: var(--pc-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pc-blue);
  margin: 0 0 10px;
}
.pc-podium__medal span { color: var(--pc-muted); }
.pc-podium__names {
  list-style: none;
  margin: 0;
  padding: 0;
  column-width: 260px;
  column-gap: 24px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.35;
}
.pc-podium__names li { break-inside: avoid; padding: 3px 0; }
.pc-podium__names .pc-awards__tag { margin-left: 8px; vertical-align: 2px; }

/* ---------- scroll-reveal ---------- */

/* ---------- membros ---------- */

/* one profile per person: framed photo, who they are, and their results */
.pc-profiles {
  display: grid;
  gap: 24px;
}
.pc-profile {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr) minmax(0, 1.5fr);
  background: var(--pc-bg-card);
  border: 1px solid var(--pc-rule);
  /* topbar plus the 28px the card still has to travel when it reveals */
  scroll-margin-top: 124px;
}
.pc-profile.is-target { border-color: var(--pc-ink); }
.pc-profile__photo { padding: 24px; }
.pc-profile__photo .pc-member__avatar { border: 1px solid var(--pc-rule); }
.pc-profile__id {
  padding: 24px 24px 24px 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}
.pc-profile__id .pc-member__role { margin-bottom: 8px; }
.pc-profile__name {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.1;
  margin: 0 0 16px;
  overflow-wrap: anywhere;
}
.pc-profile__tags {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.pc-profile__tags .pc-awards__tag { white-space: normal; }
.pc-profile__bio {
  margin: 0 0 20px;
  max-width: 48ch;
  font-size: 15px;
  line-height: 1.55;
  color: var(--pc-ink-soft);
}
.pc-profile__id .pc-member__link { align-self: stretch; }
.pc-profile__results {
  border-left: 1px solid var(--pc-rule);
  min-width: 0;
}
.pc-profile__caption {
  font-family: var(--pc-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pc-muted);
  margin: 0;
  padding: 24px 24px 12px;
  border-bottom: 1px solid var(--pc-rule-strong);
}
.pc-profile__rows {
  list-style: none;
  margin: 0;
  padding: 0;
}
.pc-profile__row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 4px 16px;
  align-items: baseline;
  padding: 14px 24px;
  border-bottom: 1px solid var(--pc-rule);
  transition: background 200ms ease;
}
.pc-profile__row:last-child { border-bottom: none; }
.pc-profile__row:hover { background: var(--pc-bg-soft); }
.pc-profile__year {
  font-family: var(--pc-mono);
  font-weight: 500;
  font-size: 14px;
  color: var(--pc-blue);
}
.pc-profile__what {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.pc-profile__what b {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}
.pc-profile__what small {
  font-family: var(--pc-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  line-height: 1.45;
  color: var(--pc-muted);
  overflow-wrap: anywhere;
}
.pc-profile__result {
  font-size: 15px;
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.pc-profile__empty {
  margin: 0;
  padding: 16px 24px 24px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--pc-muted);
}

/* ---------- participar ---------- */

/* enrollment cell: the hollow dot of the label fills in while enrollment is open */
.pc-numbers__cell.is-open .pc-numbers__label,
.pc-numbers__cell.is-open .pc-numbers__label::before { color: var(--pc-blue); }
.pc-numbers__cell.is-open .pc-numbers__label::before { content: "●"; }

/* steps: link cards inside an ordered list */
.pc-steps {
  list-style: none;
  margin: 0;
  padding: 0;
}
.pc-steps > li { display: grid; }
/* bottom row of a link card: mono label on the left, action square on the right */
.pc-card__foot {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--pc-rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--pc-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.pc-card__foot .pc-card__arrow {
  margin-top: 0;
  flex-shrink: 0;
  font-family: var(--pc-sans);
  font-size: 16px;
  letter-spacing: 0;
}

/* FAQ: question in Title, answer in reading size, one rule per item */
.pc-faq { border-top: 1px solid var(--pc-rule-strong); }
.pc-faq__item {
  padding: 28px 0;
  border-bottom: 1px solid var(--pc-rule);
}
.pc-faq__item h3 {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.pc-faq__item p {
  margin: 0;
  max-width: 64ch;
  font-size: 17px;
  line-height: 1.6;
  color: var(--pc-ink-soft);
}
.pc-figure + .pc-post__aside-title { margin-top: 40px; }
.pc-post__row-title { overflow-wrap: anywhere; }

.pc-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 800ms cubic-bezier(.2,.6,.2,1), transform 800ms cubic-bezier(.2,.6,.2,1);
}
.pc-reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---------- responsive ---------- */

@media (max-width: 1100px) {
  .pc-topbar__nav { display: none; }
  .pc-topbar__menu { display: inline-flex; align-items: center; justify-content: center; }
  .pc-topbar.is-menu-open .pc-topbar__nav {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--pc-bg);
    border-bottom: 1px solid var(--pc-rule);
  }
  .pc-topbar.is-menu-open .pc-topbar__nav a {
    padding: 16px var(--pc-gutter);
    border-bottom: 1px solid var(--pc-rule);
  }
  .pc-hero { grid-template-columns: 1fr; min-height: 0; }
  .pc-hero__photo { aspect-ratio: 16 / 10; border-left: 0; border-top: 1px solid var(--pc-ink); }
  .pc-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .pc-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .pc-numbers { grid-template-columns: repeat(2, 1fr); }
  .pc-news { grid-template-columns: 1fr 1fr; }
  .pc-news__item.is-feature { grid-row: auto; grid-column: auto; }
  .pc-post { grid-template-columns: 1fr; }
  .pc-post__aside { position: static; }
  .pc-post__aside .pc-figure { max-width: 640px; }
  .pc-hof__row { grid-template-columns: 110px 1.4fr 1fr 60px; gap: 12px; }
  .pc-hof__where, .pc-hof__highlight,
  .pc-hof__row.is-head > :nth-child(4),
  .pc-hof__row.is-head > :nth-child(5) { display: none; }
  .pc-footer__grid { grid-template-columns: 1fr 1fr; }
  .pc-tabs { grid-template-columns: repeat(4, 1fr); }
  .pc-tabs--years { grid-template-columns: repeat(8, 1fr); }
  .pc-teams__row { grid-template-columns: 120px minmax(0, 1fr); }
  .pc-teams__row.is-head { display: none; }
  .pc-teams__row > * { grid-column: 2; }
  .pc-teams__row > .pc-teams__rank { grid-column: 1; grid-row: 1; }
  .pc-teams__cell { flex-direction: row; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
  .pc-teams__unit { display: inline; }
  .pc-score__summary { grid-template-columns: repeat(3, 1fr); }
  .pc-langs__row { grid-template-columns: 120px 1fr 96px 96px; gap: 16px; }
  .pc-profile { grid-template-columns: 200px minmax(0, 1fr); }
  .pc-profile__results { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--pc-rule); }
  .pc-profile__caption { padding-top: 16px; }
  .pc-story { grid-template-columns: 1fr; gap: 40px; }
  .pc-story__media { grid-template-columns: repeat(2, 1fr); align-items: start; }
  .pc-timeline__year { grid-template-columns: 120px 1fr; }
  .pc-timeline__label { font-size: 44px; padding: 22px 0; }
  .pc-timeline__event {
    grid-template-columns: 110px 1fr;
    grid-template-areas:
      "date title"
      "cat text";
    gap: 6px 16px;
  }
  .pc-timeline__date { grid-area: date; }
  .pc-timeline__title { grid-area: title; }
  .pc-timeline__text { grid-area: text; }
  .pc-timeline__cat { grid-area: cat; justify-self: start; text-align: left; }
}

@media (max-width: 680px) {
  .pc-topbar { gap: 12px; }
  .pc-topbar__right { gap: 8px; }
  .pc-topbar__cta { padding: 10px 12px; }
  .pc-topbar__brand { gap: 8px; }
  .pc-topbar__brand img { height: 36px; }
  .pc-topbar__brand .pc-topbar__ufpb { height: 34px; padding-left: 0; border-left: 0; }
  .pc-grid-4, .pc-grid-3, .pc-grid-2 { grid-template-columns: 1fr; }
  .pc-numbers { grid-template-columns: 1fr; }
  .pc-news { grid-template-columns: 1fr; }
  .pc-hero__left { padding: 40px var(--pc-gutter); }
  .pc-hero__lead { font-size: 16px; }
  .pc-hero__photo { aspect-ratio: auto; display: flex; flex-direction: column; }
  .pc-hero__frame { position: relative; inset: auto; aspect-ratio: 16 / 10; }
  .pc-hero__bar { position: static; border-left: 0; }
  .pc-hero__caption { flex: 1; min-width: 0; padding-left: var(--pc-gutter); white-space: normal; }
  .pc-section { padding: 56px var(--pc-gutter) 64px; }
  .pc-section__header { grid-template-columns: 1fr; gap: 16px; }
  .pc-section__header .pc-tag,
  .pc-section__actions { justify-self: start; }
  .pc-hof__row.is-head { display: none; }
  .pc-hof__row {
    grid-template-columns: auto 1fr 36px;
    grid-template-areas:
      "year year cta"
      "name name name"
      "role where where"
      "highlight highlight highlight";
    gap: 8px 16px;
    padding: 20px 0;
  }
  .pc-hof__row:hover { padding-left: 0; padding-right: 0; }
  .pc-hof__year { grid-area: year; }
  .pc-hof__name { grid-area: name; font-size: 18px; }
  .pc-hof__role { grid-area: role; }
  .pc-hof__where { grid-area: where; display: block; }
  .pc-hof__highlight { grid-area: highlight; display: block; }
  .pc-hof__cta { grid-area: cta; }
  .pc-hof--stack .pc-hof__row {
    grid-template-areas:
      "year year cta"
      "name name name"
      "role role role"
      "where where where"
      "highlight highlight highlight";
  }
  .pc-post__body { margin-top: 32px; font-size: 16px; }
  .pc-faq__item { padding: 24px 0; }
  .pc-faq__item h3 { font-size: 20px; }
  .pc-faq__item p { font-size: 16px; }
  .pc-post__row:hover { padding-left: 0; padding-right: 0; }
  .pc-footer__grid { grid-template-columns: 1fr; }
  .pc-footer__base { flex-direction: column; gap: 16px; align-items: flex-start; }
  .pc-bars { padding: 20px 16px; }
  .pc-bars__plot { gap: 6px; height: 200px; }
  .pc-bars__value { font-size: 11px; }
  .pc-tabs__tab { padding: 12px; }
  .pc-tabs__roman { font-size: 24px; }
  .pc-tabs--years { grid-template-columns: repeat(5, 1fr); }
  .pc-tabs__year { font-size: 18px; }
  .pc-awards__long { display: none; }
  .pc-awards__short { display: inline; }
  .pc-bars--years .pc-bars__plot { gap: 4px; }
  .pc-bars--years .pc-bars__label { font-size: 10px; letter-spacing: 0; }
  .pc-teams__row { grid-template-columns: minmax(0, 1fr); padding: 18px 16px; }
  .pc-teams__row > *,
  .pc-teams__row > .pc-teams__rank { grid-column: 1; grid-row: auto; }
  .pc-teams__group { padding: 10px 16px; }
  .pc-teams__name { font-size: 18px; }
  .pc-medals__row { grid-template-columns: 48px repeat(4, 1fr) 36px; gap: 8px; }
  .pc-medals__row:hover { padding-left: 0; padding-right: 0; }
  .pc-medals__row.is-head { font-size: 10px; letter-spacing: 0.04em; }
  .pc-medals__row .is-total { display: none; }
  .pc-medals__num { font-size: 18px; }
  .pc-podium__cell { padding: 20px 16px; }
  .pc-podium__head { flex-direction: column; gap: 6px; }
  .pc-score__summary { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .pc-score__summary dd { font-size: 22px; }
  .pc-score__team { min-width: 150px; }
  tbody .pc-score__team { font-size: 14px; }
  .pc-langs__row.is-head { display: none; }
  .pc-langs__row {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "name name"
      "track track"
      "subs acc";
    gap: 8px 16px;
  }
  .pc-langs__name { grid-area: name; font-size: 18px; }
  .pc-langs__track { grid-area: track; }
  .pc-langs__num:nth-child(3) { grid-area: subs; text-align: left; }
  .pc-langs__num:nth-child(4) { grid-area: acc; }
  .pc-langs__unit { display: inline; }
  .pc-profile { grid-template-columns: 120px minmax(0, 1fr); }
  .pc-profile__photo { padding: 16px; }
  .pc-profile__id { padding: 16px 16px 16px 0; }
  .pc-profile__name { font-size: 22px; margin-bottom: 12px; }
  .pc-profile__caption { padding: 14px 16px 10px; }
  .pc-profile__row { grid-template-columns: 44px minmax(0, 1fr); padding: 14px 16px; }
  .pc-profile__result { grid-column: 2; text-align: left; }
  .pc-profile__empty { padding: 14px 16px 20px; }
  .pc-story__text p { font-size: 17px; }
  .pc-story__facts { grid-template-columns: repeat(2, 1fr); gap: 20px 16px; margin-top: 32px; }
  .pc-story__media { grid-template-columns: 1fr; }
  .pc-timeline__year { grid-template-columns: 1fr; gap: 0; }
  .pc-timeline__label { position: static; font-size: 40px; padding: 20px 0 4px; }
  .pc-timeline__event {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "date cat"
      "title title"
      "text text";
    gap: 8px 16px;
    padding: 18px 0;
  }
  .pc-timeline__cat { justify-self: end; text-align: right; }
  .pc-timeline__title { font-size: 18px; }
  .pc-card--link { min-height: 0; }
}

@media (max-width: 400px) {
  .pc-topbar__brand { gap: 6px; }
  .pc-topbar__brand img,
  .pc-topbar__brand .pc-topbar__ufpb { height: 28px; }
  .pc-topbar__cta { padding: 10px 8px; gap: 6px; }
}
