.standards_page .general_content {
  min-width: 0;
}

.standards_summary {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(230px, .55fr);
  gap: clamp(28px, 4vw, 56px);
  overflow: hidden;
}

.standards_summary::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--primary);
  content: "";
}

.standards_summary_copy {
  padding-left: 8px;
}

.standards_summary h1 {
  max-width: 700px;
  margin: 0 0 18px;
  color: var(--black);
  font-size: clamp(27px, 2.8vw, 40px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.035em;
}

.standards_summary_copy > p:last-child,
.standards_summary_copy > .general_rich_content {
  max-width: 760px;
  margin: 0;
  color: var(--secondary);
  font-size: 16px;
  line-height: 1.65;
}

.standards_summary_stats {
  display: grid;
  align-content: center;
  margin: 0;
  border-top: 1px solid var(--border);
}

.standards_summary_stats > div {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.standards_summary_stats dt {
  color: var(--primary);
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.04em;
}

.standards_summary_stats dd {
  margin: 0;
  color: var(--secondary);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.standards_catalog {
  min-width: 0;
  overflow: hidden;
}

.standards_catalog_header {
  align-items: flex-start;
}

.standards_tools {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(0, 1.5fr);
  align-items: end;
  gap: 18px;
  margin-bottom: 17px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--gray);
}

.standards_search {
  min-width: 0;
}

.standards_search > label {
  display: block;
  margin-bottom: 7px;
  color: var(--secondary);
  font-size: 12px;
  font-weight: 700;
}

.standards_search_control {
  position: relative;
  min-width: 0;
}

.standards_search_control input {
  box-sizing: border-box;
  width: 100%;
  min-height: 46px;
  padding: 11px 82px 11px 14px;
  color: var(--black);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  background: var(--white);
  font-size: 14px;
  line-height: 1.3;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.standards_search_control input::placeholder {
  color: var(--muted);
}

.standards_search_control input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .13);
}

.standards_search_control button {
  position: absolute;
  top: 50%;
  right: 7px;
  min-height: 32px;
  padding: 6px 8px;
  color: var(--primary);
  border: 0;
  border-radius:var(--radius-xs);
  background: var(--primary-soft);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transform: translateY(-50%);
}

.standards_filters {
  align-self: end;
  margin: 0;
}

.standards_filters .documents_filter {
  max-width: 100%;
  text-align: left;
}

.standards_grid {
  display: grid;
  width: 100%;
  min-width: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.documents_library .standard_card {
  min-height: 430px;
  gap: 17px;
}

.standard_card_topline {
  display: flex;
  width: 100%;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.standard_type {
  max-width: 76%;
  color: var(--primary-dark);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.standard_card_heading {
  width: 100%;
}

.standard_code {
  display: block;
  margin-bottom: 8px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .08em;
}

.standard_card_heading h3 {
  margin: 0;
  color: var(--black);
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
}

.standard_description {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--secondary);
  font-size: 14px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.standard_meta {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.standard_meta > div {
  min-width: 0;
  padding: 13px 10px 13px 0;
}

.standard_meta > div + div {
  padding-left: 10px;
  border-left: 1px solid var(--border);
}

.standard_meta dt {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.standard_meta dd {
  margin: 0;
  color: var(--black);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.standard_program_link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
}

.standard_program_link img {
  width: 13px;
  height: 13px;
  transition: transform .18s ease;
}

.standard_program_link:hover img {
  transform: translateX(3px);
}

.standard_actions {
  flex-wrap: wrap;
}

.standard_source {
  color: var(--secondary);
  background: var(--white);
}

.standard_source:hover {
  color: var(--primary);
  border-color: var(--primary-light);
}

@media (max-width: 900px) {
  .standards_summary,
  .standards_tools {
    grid-template-columns: 1fr;
  }

  .standards_summary_stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .standards_summary_stats > div {
    grid-template-columns: 58px minmax(0, 1fr);
    padding: 16px;
    border: 1px solid var(--border);
  }

  .standards_summary_stats > div + div {
    border-left: 0;
  }
}

@media (max-width: 760px) {
  .standards_grid {
    grid-template-columns: 1fr;
  }

  .documents_library .standard_card {
    min-height: 0;
  }
}

@media (max-width: 520px) {
  .standards_summary_stats {
    grid-template-columns: 1fr;
  }

  .standards_summary_stats > div + div {
    border-top: 0;
    border-left: 1px solid var(--border);
  }

  .standards_tools {
    margin-inline: -4px;
    padding: 14px;
  }

  .standards_filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 6px;
  }

  .standards_filters .documents_filter {
    flex: 0 0 auto;
    max-width: min(290px, 82vw);
  }

  .standard_card_topline {
    align-items: flex-start;
    flex-direction: column;
  }

  .standard_type {
    max-width: 100%;
  }

  .standard_meta {
    grid-template-columns: 1fr;
  }

  .standard_meta > div,
  .standard_meta > div + div {
    padding: 10px 0;
    border-left: 0;
    border-bottom: 1px solid var(--border);
  }

  .standard_meta > div:last-child {
    border-bottom: 0;
  }
}

.standards_grid { display: flex; flex-wrap: wrap; }
.standards_grid > .standard_card { flex: 1 1 350px; min-width: 0; min-height: 0; }
