
/* =========================================
Accordion Library + Search
========================================= */

.standards-lib__header {
  margin-bottom: 14px;
}

.standards-lib__title {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.2;
  color: rgba(0, 0, 0, 0.88);
  text-align: center;
}

/* Search */
.standards-lib__search {
  border: 1px solid rgba(0, 0, 0, 0.10);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.05);
  padding: 14px;
}

.standards-lib__label {
  display: block;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: rgba(0, 0, 0, 0.70);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.standards-lib__searchRow {
  display: flex;
  gap: 10px;
  align-items: center;
}

.standards-lib__searchField {
  position: relative;
  flex: 1;
  min-width: 0;
}

.standards-lib__searchIcon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: rgba(0, 0, 0, 0.55);
  pointer-events: none;
}

.standards-lib__input {
  width: 100%;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.10);
  background: rgba(245, 246, 248, 0.92);
  padding: 0 12px 0 42px;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.82);
  outline: none;
}

.standards-lib__input:focus {
  border-color: rgba(0, 0, 0, 0.22);
  box-shadow: 0 0 0 4px rgba(109, 94, 252, 0.14);
}

.standards-lib__clear {
  height: 44px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.92);
  color: rgba(0, 0, 0, 0.70);
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

@media (hover: hover) {
  .standards-lib__clear:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.06);
  }
}


.standards-lib__meta {
  margin-top: 10px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: rgba(0, 0, 0, 0.62);
}

.standards-lib__count {
  font-weight: 900;
  color: rgba(0, 0, 0, 0.70);
}

/* Accordion list */
.standards-lib__list {
  margin-top: 14px;
  display: grid;
  gap: 12px;
}

/* Accordion item */
.std {
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, 0.10);
  background: rgba(255, 255, 255, 0.80);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.std__head {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto 22px;
  gap: 12px;
  align-items: center;

  padding: 14px 14px;
  border: 0;
  cursor: pointer;
  text-align: left;
}
.std__head:hover,.std__head:focus,.std__head:active, .std is-open button,.std__title, .std__head  {
	border-radius: 0px !important;
	border-top-left-radius:  0px !important;
	border-top-right-radius:  0px !important;
	border-bottom-right-radius:  0px !important;
	border-bottom-left-radius:  0px !important;
}
.std__head:focus {
  outline: 2px solid rgba(0, 0, 0, 0.22);
  outline-offset: -2px;
}

.std__title {
  font-size: 15px;
  font-weight: 950;
  color: rgba(0, 0, 0, 0.86);
  line-height: 1.2;
}

.std__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.chip {
  font-size: 12px;
  font-weight: 900;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.10);
  background: rgba(245, 246, 248, 0.95);
  color: rgba(0, 0, 0, 0.70);
}

.std__chev {
  display: grid;
  place-items: center;
  color: rgba(0, 0, 0, 0.60);
  transition: transform 160ms ease;
}

.std.is-open .std__chev {
  transform: rotate(180deg);
}

/* Panel animation (max-height) */
.std__panel {
  max-height: 0px;
  overflow: hidden;
  transition: max-height 220ms ease;
  padding: 0 14px;
}

.std.is-open .std__panel {
  padding-bottom: 14px;
}

.std__bullets {
  margin: 12px 0 0;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(0, 0, 0, 0.72);
}

.std__bullets li {
  margin: 7px 0;
}

.std__bullets code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12.5px;
  padding: 2px 6px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.06);
}

/* Callout */
#standardsSearch {
	text-indent: 20px;
}

.std__callout {
  margin-top: 12px;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.10);
  background: linear-gradient(135deg, rgba(109,94,252,0.12), rgba(6,182,212,0.10));
  padding: 12px;
}

.std__calloutTitle {
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: rgba(0, 0, 0, 0.70);
  margin-bottom: 8px;
}

.std__checks {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(0, 0, 0, 0.72);
}

.standards-lib__clear {
	font-size: 15px !important;
}

.std__checks li {
  margin: 6px 0;
}

/* Code block */
.std__code {
  margin-top: 12px;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.10);
  background: rgba(10, 12, 18, 0.92);
  overflow: hidden;
}

.std__codeHead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 900;
}

.code {
  margin: 0;
  padding: 12px;
  overflow: auto;
  color: rgba(255, 255, 255, 0.88);
  font-size: 12.5px;
  line-height: 1.6;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.copy-btn {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.86);
  padding: 6px 10px;
  border-radius: 12px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease;
}

@media (hover: hover) {
  .copy-btn:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.12);
  }
}

.copy-btn.is-copied {
  background: rgba(34, 197, 94, 0.22);
  border-color: rgba(34, 197, 94, 0.35);
}

/* Responsive */
@media (max-width: 820px) {
  .std__head {
    grid-template-columns: 1fr 22px;
  }
  .std__chips {
    display: none;
  }
}

@media (max-width: 640px) {
  .standards-lib__wrap { padding: 0 12px; }

  .standards-lib__searchRow {
    flex-direction: column;
    align-items: stretch;
  }

  .standards-lib__clear {
    width: 100%;
  }

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