.subnav {
  --menu-gutter: max(var(--gutter), calc((100% - var(--shell)) / 2));
  display: grid;
  grid-template-columns:
    var(--menu-gutter)
    max-content
    var(--space-subnav)
    max-content
    var(--space-subnav)
    max-content
    minmax(var(--menu-gutter), 1fr);
  grid-template-rows: auto auto;
  align-items: start;
  width: 100%;
  margin: 0;
  padding: var(--space-l) 0 0;
}

.subnav::after {
  content: "";
  grid-column: 2 / 7;
  grid-row: 1;
  align-self: end;
  z-index: 0;
  border-bottom: 1px solid #edecec;
  pointer-events: none;
}

.subnav-item {
  display: grid;
  grid-column: 1 / -1;
  grid-row: 1 / span 2;
  grid-template-columns: subgrid;
  grid-template-rows: subgrid;
  align-self: stretch;
  min-width: 0;
  min-height: 0;
  z-index: 1;
  pointer-events: none;
}

.subnav-head {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  position: relative;
  z-index: 1;
  width: 100%;
  min-width: 0;
  margin: 0 0 -1px;
  padding: var(--space-3);
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  pointer-events: auto;
  scroll-margin-top: var(--space-4);
}

.subnav-item:first-child .subnav-head { grid-column: 2; }

.subnav-item:nth-child(2) .subnav-head { grid-column: 4; }

.subnav-item:nth-child(3) .subnav-head { grid-column: 6; }

.subnav-item:first-child .subnav-head,
.subnav-item:nth-child(2) .subnav-head,
.subnav-item:nth-child(3) .subnav-head {
  grid-row: 1;
  align-self: end;
}

.subnav-head[aria-expanded="true"] { border-bottom-color: var(--rose); }

.subnav-panel {
  grid-column: 1 / -1;
  grid-row: 2;
  min-width: 0;
  /* A borda da aba avança 1px sobre o painel. O vão visível fica em 40px. */
  padding-top: calc(var(--space-10) + 1px);
  pointer-events: auto;
}

.subnav-panel[hidden] { display: none !important; }

.subnav-main {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  min-width: 0;
}

.subnav-sticker {
  flex: none;
  width: 40.5px;
  height: 40.5px;
  object-fit: contain;
}

.subnav-toggle {
  display: none;
  flex: none;
  width: 24px;
  height: 24px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #da1b54;
  cursor: pointer;
}

.subnav-toggle::before {
  content: "";
  display: block;
  width: 24px;
  height: 24px;
  background: currentColor;
  mask: url("/images/icon-plus.svg") center / contain no-repeat;
  -webkit-mask: url("/images/icon-plus.svg") center / contain no-repeat;
}

.subnav-head[aria-expanded="true"] .subnav-toggle::before {
  mask-image: url("/images/icon-minus.svg");
  -webkit-mask-image: url("/images/icon-minus.svg");
}

.subnav-copy {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 0;
  min-width: 0;
}

.subnav-name,
.subnav-desc {
  font-family: var(--sans);
  letter-spacing: 0.12px;
  line-height: normal;
}

.subnav-name {
  color: var(--slate);
  font-size: var(--text-sm);
  font-weight: 900;
  letter-spacing: 0.16px;
}

.subnav-desc {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--slate);
}

.subnav-head[aria-expanded="true"] .subnav-name { color: var(--rose); }

.kicker {
  margin: 0;
  color: #e31e58;
  font-family: var(--sans);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.about-intro { padding-bottom: var(--space-12); }

.about-intro > .shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 466px);
  align-items: start;
  gap: var(--space-l);
}

.about-copy {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-width: 576px;
}

.about-copy h2,
.edition h2,
.editions h2,
.history h2,
.rights h2,
.edition-act h2 {
  font-family: var(--sora);
  font-size: var(--text-3xl);
  font-weight: 700;
  line-height: 1.1;
}

.about-copy h2,
.edition h2,
.editions h2,
.rights h2,
.edition-act h2 {
  color: var(--blue);
}

.about-prose,
.edition-lead,
.edition-act-copy,
.years li > p:last-child {
  font-size: var(--text-sm);
  line-height: 1.5;
}

.about-prose {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  color: var(--slate);
  font-family: var(--sans);
  font-weight: 400;
}

.about-prose strong {
  color: var(--rose);
  font-weight: 700;
}

.about-intro .date-card {
  width: 100%;
  background: #efe9e5;
  border: 0;
  color: var(--blue);
}

.about-intro .date-num { color: var(--rose); }

.history {
  padding: var(--space-12) 0;
  background: linear-gradient(193deg, #ff5733 2.7%, #d5006d 68%);
  color: #fff;
}

.history h2 {
  max-width: 920px;
  margin-bottom: var(--space-10);
}

.years {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-7) var(--space-8);
  margin: 0;
  padding: 0;
  list-style: none;
}

.years li::before {
  content: "";
  display: block;
  width: var(--space-12);
  height: 1px;
  margin-bottom: var(--space-4);
  background: #fff;
}

.year {
  margin: 0 0 var(--space-5);
  font-family: var(--sora);
  font-size: var(--text-2xl);
  font-weight: 700;
  line-height: 1.1;
}

.years li > p:last-child {
  margin: 0;
  font-family: var(--sans);
  font-weight: 600;
}

.rights { padding: var(--space-14) 0 var(--space-8); }

.rights-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
  gap: var(--space-4) var(--space-l);
}

.rights-head .kicker { grid-column: 1 / -1; }

.rights h2,
.edition-act h2 { color: var(--blue); }

.rights blockquote,
.edition-act blockquote,
.editions blockquote {
  font-family: var(--sans);
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: 1.25;
}

.rights blockquote {
  margin: 0;
  padding: var(--space-1) 0 var(--space-1) var(--space-6);
  border-left: 4px solid #e31e58;
  color: #e31e58;
}

.rights blockquote p { margin: 0; }

.rights-copy {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-l);
  margin-top: var(--space-8);
}

.rights-copy .about-prose { font-family: var(--sans); }

.edition { padding-bottom: var(--space-5); }

.edition > .shell,
.edition-intro,
.edition-lead,
.edition-act-copy div {
  display: flex;
  flex-direction: column;
}

.edition > .shell { gap: var(--space-6); }

.edition-intro { gap: var(--space-3); }

.edition h2,
.edition-act h2 { margin: 0; }

.edition-lead {
  gap: var(--space-4);
  color: var(--slate);
  font-family: var(--sans);
  font-weight: 400;
}

.edition-lead p,
.edition-act blockquote p,
.edition-act-copy p { margin: 0; }

.edition-lead strong { color: var(--rose); font-weight: 700; }

.edition-act { padding: var(--space-5) 0 var(--space-8); }

.edition-act-head {
  display: grid;
  grid-template-columns: minmax(0, 456px) minmax(0, 548px);
  align-items: center;
  justify-content: space-between;
  column-gap: var(--space-6);
  row-gap: var(--space-3);
}

.edition-act-head .kicker { grid-column: 1 / -1; }

.edition-act h2 { max-width: 456px; }

.edition-act blockquote {
  max-width: 548px;
  margin: 0;
  padding: var(--space-1) 0 var(--space-1) var(--space-6);
  border-left: 4px solid var(--rose);
  color: var(--rose);
}

.edition-act-copy {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-18);
  margin-top: var(--space-8);
  color: var(--slate);
  font-family: var(--sans);
  font-weight: 400;
}

.edition-act-copy div { gap: var(--space-3); }

.editions { padding-bottom: var(--space-8); }

.editions-head {
  display: grid;
  grid-template-columns: minmax(0, 456px) minmax(0, 548px);
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  margin-bottom: var(--space-16);
}

.editions h2,
.editions blockquote { margin: 0; }

.editions blockquote {
  max-width: 548px;
  padding: var(--space-1) 0 var(--space-1) var(--space-6);
  border-left: 4px solid var(--rose);
  color: var(--rose);
}

.edition-list {
  display: flex;
  flex-direction: column;
  gap: 3.125rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.edition-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-6);
  padding: var(--space-5) 0;
  border-bottom: 1px solid #edecec;
}

.edition-year {
  flex: none;
  width: 105px;
  margin: 0;
  color: var(--rose);
  font-family: var(--sora);
  font-size: var(--text-2xl);
  font-weight: 700;
  line-height: 1.1;
}

.edition-copy {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 0.625rem;
  max-width: 707px;
  min-width: 0;
}

.edition-copy h3 {
  margin: 0;
  color: var(--blue);
  font-family: var(--sora);
  font-size: var(--text-xl);
  font-weight: 700;
  line-height: 1.1;
}

.edition-copy p {
  margin: 0;
  color: var(--blue);
  font-family: var(--sora);
  font-size: var(--text-sm);
  font-weight: 400;
  line-height: 1.5;
}

.edition-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  gap: 0.625rem;
  min-height: 44px;
  margin-left: auto;
  padding: 0.75rem 0.9375rem;
  border: 1px solid var(--blue);
  border-radius: 40px;
  color: var(--blue);
  font-family: var(--sans);
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 160ms ease, color 160ms ease;
}

.edition-link:hover,
.edition-link:focus-visible {
  background: var(--blue);
  color: #fff;
}

.edition-link img {
  flex: none;
  transition: filter 160ms ease;
}

.edition-link:hover img,
.edition-link:focus-visible img {
  filter: brightness(0) invert(1);
}

@media (min-width: 580px) {
  .years { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .years {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    column-gap: var(--space-s);
    row-gap: 0;
  }

  .years li::before { display: none; }

  .years li + li {
    border-left: 1px solid #fff;
    padding-left: var(--space-xs);
  }
}

@media (max-width: 1023px) {
  .subnav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-6);
    width: 100%;
    padding-top: var(--space-6);
  }

  .subnav::after { content: none; }

  .subnav-item,
  .subnav-item:first-child,
  .subnav-item:nth-child(2),
  .subnav-item:nth-child(3) {
    display: flex;
    flex-direction: column;
    align-self: stretch;
    grid-column: auto;
    grid-row: auto;
    width: 100%;
    min-height: 0;
    z-index: auto;
    pointer-events: auto;
  }

  .subnav-head,
  .subnav-item:first-child .subnav-head,
  .subnav-item:nth-child(2) .subnav-head,
  .subnav-item:nth-child(3) .subnav-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    grid-column: auto;
    grid-row: auto;
    align-self: stretch;
    width: min(var(--shell), calc(100% - var(--gutter) * 2));
    min-height: 0;
    margin: 0 auto;
    padding: var(--space-3);
    border-bottom: 1px solid #edecec;
    gap: var(--space-2);
  }

  .subnav-item .subnav-head[aria-expanded="true"] {
    border-bottom: 2px solid var(--rose);
  }

  .subnav-main {
    flex: 0 1 auto;
    align-items: center;
    justify-content: flex-start;
    gap: var(--space-5);
    width: auto;
    max-width: none;
  }

  .subnav-sticker {
    width: 40.5px;
    height: 40.5px;
  }

  .subnav-copy {
    flex: 1 1 auto;
    min-width: 0;
    white-space: normal;
  }

  .subnav-toggle {
    display: inline-flex;
    align-items: flex-start;
    justify-content: flex-end;
    position: relative;
    width: 24px;
    height: 24px;
    margin-top: 0;
  }

  .subnav-toggle::after {
    content: "";
    position: absolute;
    top: -10px;
    right: 0;
    bottom: -10px;
    left: -20px;
  }

  .subnav-panel {
    width: 100%;
    padding-top: var(--space-10);
  }

  .about-intro .kicker { display: none; }

  .about-intro > .shell {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  .about-copy { max-width: none; }

  .subnav-panel > section:first-child:not(.editions) h2 {
    line-height: 1.1;
    color: var(--blue);
  }

  .about-intro .about-prose strong {
    color: var(--blue);
    font-weight: 700;
  }

  .about-intro .date-card {
    width: min(100%, 480px);
    gap: var(--space-6);
    padding: var(--space-8);
    border-radius: 20px;
    background: #efe9e5;
  }

  .about-intro .date-top {
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    padding-right: 0;
  }

  .about-intro .date-num {
    flex: none;
    color: var(--blue);
  }

  .about-intro .date-day {
    font-size: var(--text-5xl);
    font-weight: 700;
    line-height: 1.1;
    color: var(--blue);
  }

  .about-intro .date-month {
    font-size: var(--text-md);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: 0.04em;
    color: var(--blue);
  }

  .about-intro .date-wtd {
    flex: 0 1 auto;
    width: min(124px, 46%);
    max-width: 46%;
    min-width: 0;
    height: auto;
  }

  .about-intro .date-note h3 {
    font-size: var(--text-lg);
    font-weight: 700;
    line-height: 1.1;
    color: var(--blue);
  }

  .about-intro .date-note p {
    color: var(--slate);
    font-size: var(--text-sm);
  }

  .rights-head,
  .rights-copy,
  .edition-act-head,
  .edition-act-copy,
  .editions-head { grid-template-columns: 1fr; }

  .rights-copy { gap: var(--space-3); }

  .edition-list { gap: var(--space-6); }

  .edition-list li {
    flex-direction: column;
    align-items: stretch;
  }

  .edition-year,
  .edition-copy { width: auto; max-width: none; }

  .edition-link {
    align-self: flex-start;
    margin-left: 0;
  }

  .edition-act h2 { max-width: none; }

  .edition-act-copy {
    gap: var(--space-6);
    margin-top: var(--space-8);
  }
}
