/* COA Library — peptidemaxxing /coa */

.clib {
  --ink2: #2d3134;
  --muted: #6a7173;
  --line: #e1e6e3;
  --teal: #0e9c88;
  --teal-d: #0a7e6e;
  --teal-t: #e8f6f1;
  --sans: "DM Sans", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  background: #fff;
  color: var(--ink2);
  font-family: var(--sans);
  padding: 8px 0 64px;
}

.clib__wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 18px;
  box-sizing: border-box;
}

.clib__hero {
  text-align: center;
  padding: 28px 0 22px;
}

.clib__mark {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0 auto 14px;
  border: 1.5px solid var(--teal);
  color: var(--teal-d);
  background: var(--teal-t);
}

.clib__mark svg {
  width: 22px;
  height: 22px;
}

.clib__hero h1 {
  margin: 0;
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--ink2);
}

.clib__hero p {
  margin: 12px auto 0;
  max-width: 42rem;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.clib__search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(100%, 520px);
  margin: 22px auto 0;
  padding: 12px 14px;
  border: 1.5px solid var(--ink2);
  background: #fff;
  box-shadow: 3px 3px 0 var(--ink2);
}

.clib__search svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke: var(--muted);
  fill: none;
  stroke-width: 2;
}

.clib__search input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink2);
  min-width: 0;
}

.clib__search input::placeholder {
  color: #9aa3a6;
}

.clib__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 8px;
}

@media (min-width: 640px) {
  .clib__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .clib__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }
}

.clib__card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 2px solid var(--ink2);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.clib__card:hover {
  box-shadow: 4px 4px 0 #0e9c88;
}

.clib__card[hidden] {
  display: none !important;
}

.clib__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: #f4f7f5;
}

.clib__thumb {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 800;
  font-size: 12px;
  color: var(--teal-d);
}

.clib__thumb img {
  height: 80%;
  width: auto;
  max-width: 90%;
  object-fit: contain;
}

.clib__id {
  min-width: 0;
  flex: 1;
}

.clib__id a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.clib__id a:hover h2 {
  text-decoration: underline;
}

.clib__id h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--ink2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.clib__lot {
  display: inline-block;
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-d);
}

.clib__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
  flex: 1;
}

.clib__section-k {
  margin-bottom: 2px;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.clib__reports {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.clib__row {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 6px 8px;
  border: 1.5px solid var(--ink2);
  background: #fff;
  box-shadow: 2px 2px 0 var(--ink2);
  text-align: left;
  cursor: pointer;
  color: inherit;
  transition: background-color 0.12s ease, transform 0.08s ease, box-shadow 0.08s ease;
}

.clib__row:hover {
  background: #f6fbf9;
}

.clib__row:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 var(--ink2);
}

.clib__ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--teal);
  background: var(--teal-t);
}

.clib__ico svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: var(--teal-d);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.clib__txt {
  min-width: 0;
}

.clib__txt b {
  display: block;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--ink2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.clib__txt small {
  display: block;
  margin-top: 2px;
  font-size: 10.5px;
  line-height: 1.25;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.clib__view {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: var(--teal);
  border: 1px solid var(--ink2);
  padding: 5px 8px;
  white-space: nowrap;
}

.clib__empty {
  text-align: center;
  color: var(--muted);
  margin: 2rem 0 0;
}
