.normas-library {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  gap: clamp(18px, 3vw, 38px);
  align-items: start;
}
body:not(.oab2-portal) .normas-library { margin-block: 10px clamp(44px, 6vw, 76px); }
.normas-source-replaced { display: none !important; }
.normas-source {
  min-width: 0;
  padding: clamp(16px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  background: #fff;
}
.normas-source h2 {
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font: 600 clamp(21px, 2.5vw, 27px)/1.2 var(--font-site);
}
.normas-category + .normas-category { border-top: 1px solid var(--line); }
.normas-category summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 12px;
  align-items: center;
  gap: 8px 12px;
  min-height: 54px;
  padding: 9px 6px;
  color: var(--navy);
  font: 600 16px/1.3 var(--font-site);
  cursor: pointer;
  list-style: none;
}
.normas-category summary::-webkit-details-marker { display: none; }
.normas-category summary::after {
  grid-column: -2 / -1;
  width: 7px;
  height: 7px;
  margin: -4px 0 0 2px;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  content: "";
  transform: rotate(45deg);
}
.normas-category[open] summary::after { transform: rotate(225deg); margin-top: 3px; }
.normas-category summary small { color: var(--muted); font-size: 12px; font-weight: 400; white-space: nowrap; }
.normas-category summary:is(:hover, :focus-visible), .normas-category[open] summary { color: var(--red); }
.normas-documents {
  min-width: 0;
  margin: 0 0 10px;
  padding: 12px clamp(12px, 2vw, 18px);
  border-radius: 7px;
  background: var(--paper);
  color: var(--ink);
  font: 400 15px/1.5 var(--font-site);
  overflow-wrap: anywhere;
}
.normas-documents :is(p, h6, div:has(> a[href], > strong > a[href])) { margin: 0 0 8px; font: inherit; }
.normas-documents :is(p, div):empty { display: none; }
.normas-documents :is(p, h6, div):last-child { margin-bottom: 0; }
.normas-documents a { color: var(--navy); font-weight: 600; text-decoration: underline; text-underline-offset: .16em; }
.normas-documents a:is(:hover, :focus-visible) { color: var(--link-hover); text-decoration: none; }
.normas-documents hr { height: 0; margin: 12px 0; border: 0; border-top: 1px solid var(--line); }

@media (max-width: 760px) {
  .normas-library { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 390px) {
  .normas-category summary { grid-template-columns: minmax(0, 1fr) 12px; gap: 3px 8px; }
  .normas-category summary small { grid-column: 1; grid-row: 2; }
  .normas-category summary::after { grid-row: 1 / span 2; }
}
