/* Natura Peptides: COA Library card grid (fix-list, Greg Oct 30 2026). Output by inc/coa-library-grid.php.
   From Ivy's preview CSS (brand/site/coa-library-grid-2026-10-29), minus the preview-only parts (table hide,
   'Previous/Current batch' marker, mockup example box). Focus rings: forest green on the cream page, gold on the cards. */
.natura-coa-lib.natura-clg { overflow: visible; }
.ncg-bar[hidden] { display: none !important; }
.ncg-card__pills:empty { display: none; }
.ncg-card--pending .natura-pill { margin: 0; }
.ncg-card__name a:focus-visible, .ncg-copy:focus-visible { outline: 3px solid #D4AF37 !important; outline-offset: 3px; }
.ncg-pill:focus-visible { outline: 3px solid #F1D98A !important; outline-offset: 3px; }
.ncg-card__name a { text-decoration: underline !important; text-decoration-color: rgba(232,204,117,.5) !important; text-underline-offset: 4px; text-decoration-thickness: 1px; }
/* ---------- Filter bar (on the cream page) ---------- */
.ncg-bar {
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.2fr) auto; gap: 14px 18px; align-items: end;
  margin: 26px 0 8px; padding: 18px 20px; border: 1px solid rgba(27,58,52,.18); border-radius: 16px; background: #FFFFFF;
}
.ncg-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ncg-field label {
  font: 700 11px/1.2 Montserrat, system-ui, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #1B3A34;
}
.ncg-field select, .ncg-field input {
  width: 100%; height: 44px; padding: 0 14px; border: 1px solid #1B3A34 !important; border-radius: 10px !important; background-color: #F7F4EC !important;
  font: 500 14px/1.2 Montserrat, system-ui, sans-serif; color: #1D2624; box-sizing: border-box;
}
.ncg-field select { appearance: none; padding-right: 40px !important; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231B3A34' stroke-width='1.8'/%3E%3C/svg%3E");
  background-repeat: no-repeat !important; background-position: right 14px center !important; }
.ncg-field input::placeholder { color: #5D6A66; opacity: 1; }
.ncg-field select:focus-visible, .ncg-field input:focus-visible, .ncg-field select:focus, .ncg-field input:focus { outline: 3px solid #1B3A34 !important; outline-offset: 2px; box-shadow: none !important; } /* forest green on cream (gold was too faint, fix-list) */
.ncg-count { margin: 0 0 12px; font: 600 13px/1.3 Montserrat, system-ui, sans-serif; color: #5D6A66; white-space: nowrap; }
.ncg-count b { color: #1B3A34; }
.ncg-empty { margin: 18px 0; padding: 16px 18px; border-radius: 12px; background: #FFFFFF; border: 1px solid rgba(27,58,52,.18);
  font: 500 14px/1.5 Montserrat, system-ui, sans-serif; color: #1D2624; }
.ncg-empty[hidden] { display: none; }

/* ---------- Group headings ---------- */
.ncg-group { margin: 34px 0 0; }
.ncg-group[hidden] { display: none; }
.ncg-group__h {
  display: flex; align-items: baseline; gap: 10px; margin: 0 0 14px !important; padding-bottom: 10px;
  border-bottom: 1px solid rgba(169,134,42,.45);
  font: 600 26px/1.15 "Cormorant Garamond", Georgia, serif !important; color: #1B3A34 !important; letter-spacing: .01em;
}
.ncg-group__h span { font: 600 13px/1 Montserrat, system-ui, sans-serif; color: #5D6A66; letter-spacing: .04em; }

/* ---------- Card grid ---------- */
.ncg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; list-style: none; margin: 0; padding: 0; }
.ncg-card {
  position: relative; display: flex; flex-direction: column; min-width: 0;
  background: #1B3A34; border: 1px solid rgba(212,175,55,.30); border-radius: 18px; overflow: hidden;
  box-shadow: 0 10px 26px rgba(15,31,28,.16); color: #E9E4D6;
}
.ncg-card[hidden] { display: none; }
.ncg-card__media {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 10px; height: 172px; padding: 14px 16px 0;
  background: radial-gradient(120% 90% at 30% 100%, #234A41 0%, #13302A 62%);
  border-bottom: 1px solid rgba(212,175,55,.22);
}
.ncg-card__vial { justify-self: center; display: block; height: 158px; width: auto; filter: drop-shadow(0 10px 12px rgba(0,0,0,.45)); }
/* COA page 1, shown exactly as the lab issued it: no logo, watermark or overlay on the paper. */
.ncg-card__paper {
  align-self: center; justify-self: center; display: block; width: 92px; padding: 4px; margin-bottom: 14px;
  background: #F6F1E8; border-radius: 5px; box-shadow: 0 8px 18px rgba(0,0,0,.4), 0 0 0 1px rgba(212,175,55,.5);
  text-decoration: none; transition: transform .2s ease;
}
.ncg-card__paper img { display: block; width: 100%; height: auto; border-radius: 2px; }
.ncg-card__paper:hover { transform: translateY(-2px); }
.ncg-card__paper:focus-visible { outline: 2px solid #D4AF37; outline-offset: 3px; }

.ncg-card__body { display: flex; flex-direction: column; gap: 10px; flex: 1 1 auto; padding: 16px 18px 18px; }
.ncg-card__name { margin: 0 !important; font: 600 23px/1.12 "Cormorant Garamond", Georgia, serif !important; letter-spacing: .01em; }
.ncg-card__name a { color: #E8CC75 !important; text-decoration: none; border-radius: 3px; }
.ncg-card__name a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.ncg-card__name a:focus-visible { outline: 2px solid #D4AF37; outline-offset: 3px; }
.ncg-card__size { display: inline-block; margin-left: 6px; padding: 3px 8px; border: 1px solid rgba(212,175,55,.45); border-radius: 999px;
  font: 600 10.5px/1.2 Montserrat, system-ui, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: #E9E4D6; vertical-align: 3px; }
.ncg-card__batch { margin: -4px 0 0 !important; font: 500 12.5px/1.4 Montserrat, system-ui, sans-serif; color: #B9C2BC; }

.ncg-card__purity { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.ncg-card__pv { font: 600 38px/1 "Cormorant Garamond", Georgia, serif; color: #F1D98A; letter-spacing: .01em; }
.ncg-card__pk { font: 700 10.5px/1.2 Montserrat, system-ui, sans-serif; letter-spacing: .16em; text-transform: uppercase; color: #E8CC75; }
.ncg-card__pq { flex-basis: 100%; font: 500 12px/1.3 Montserrat, system-ui, sans-serif; color: #B9C2BC; }

.ncg-card__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; margin: 0 !important; padding: 10px 0 0; border-top: 1px solid rgba(212,175,55,.18); }
.ncg-card__facts > div { min-width: 0; }
.ncg-card__facts > div.is-wide { grid-column: 1 / -1; }
.ncg-card__facts dt { margin: 0 0 2px; font: 600 10px/1.4 Montserrat, system-ui, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: #B9C2BC; }
.ncg-card__facts dd { margin: 0; min-width: 0; font: 600 13px/1.4 Montserrat, system-ui, sans-serif; color: #F6F1E8; overflow-wrap: anywhere; }
.ncg-card__facts dd.is-none { font-weight: 500; font-size: 12px; color: #B9C2BC; }
.ncg-card__facts dd.ncg-nowrap { display: flex; align-items: center; gap: 2px; overflow-wrap: normal; }
.ncg-card__facts code { min-width: 0; overflow-wrap: anywhere; padding: 1px 6px; border-radius: 5px; background: #0F1F1C; font: 600 12px/1.5 ui-monospace, Menlo, monospace; color: #F1D98A; }
.ncg-copy { margin-left: 4px; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; vertical-align: -6px;
  border: 0; border-radius: 6px; background: transparent; color: #D4AF37; cursor: pointer; padding: 0; }
.ncg-copy svg { width: 15px; height: 15px; }
.ncg-copy:hover { background: rgba(212,175,55,.14); }
.ncg-copy:focus-visible { outline: 2px solid #D4AF37; outline-offset: 2px; }
.ncg-card__note { margin: 0 !important; font: 500 12px/1.45 Montserrat, system-ui, sans-serif; color: #B9C2BC; }

.ncg-card__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: auto; padding-top: 6px; }
.ncg-card__pills { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.ncg-card__pills .ncg-pill { flex: 0 0 auto; width: 100%; box-sizing: border-box; }
.ncg-pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 0 12px;
  border-radius: 999px; border: 1.5px solid #D4AF37; text-decoration: none !important; white-space: nowrap;
  font: 700 11.5px/1 Montserrat, system-ui, sans-serif; letter-spacing: .12em; text-transform: uppercase;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.ncg-pill svg { width: 14px; height: 14px; flex: 0 0 14px; }
.ncg-pill--solid { background: #D4AF37; color: #0F1F1C !important; }
.ncg-pill--solid:hover { background: #E8CC75; border-color: #E8CC75; }
.ncg-pill--line { background: transparent; color: #D4AF37 !important; }
.ncg-pill--line:hover { background: rgba(212,175,55,.12); color: #E8CC75 !important; border-color: #E8CC75; }
.ncg-pill:focus-visible { outline: 2px solid #F1D98A; outline-offset: 3px; }
/* COALBTN: same width as the View COA / Verify row, shorter height (Greg Nov 10) */
.ncg-card__coal--btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  box-sizing: border-box; min-height: 32px; height: 32px; padding: 0 10px;
  width: 100%; max-width: 100%;
  border-radius: 999px; border: 1.5px solid #D4AF37; background: transparent;
  color: #D4AF37 !important; text-decoration: none !important;
  font: 700 11px/1 Montserrat, system-ui, sans-serif; letter-spacing: .1em; text-transform: uppercase;
  white-space: nowrap; transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.ncg-card__coal--btn img { width: 14px; height: 14px; flex: 0 0 14px; }
.ncg-card__coal--btn:hover { background: rgba(212,175,55,.1); color: #E8CC75 !important; border-color: #E8CC75; }
.ncg-card__coal--btn:focus-visible { outline: 3px solid #F1D98A !important; outline-offset: 3px; }
@media (max-width: 689px) {
  .ncg-card__coal--btn { min-height: 32px; height: 32px; width: 100%; padding: 0 10px; font-size: 11px; }
}

/* ---------- Phone ---------- */
@media (max-width: 689px) {
  .ncg-bar { grid-template-columns: 1fr; padding: 14px; gap: 12px; margin-top: 18px; }
  .ncg-count { margin: 0; }
  .ncg-group__h { font-size: 23px !important; }
  .ncg-grid { grid-template-columns: 1fr; gap: 14px; }
  .ncg-card { display: grid; grid-template-columns: 104px minmax(0,1fr); }
  .ncg-card__media { grid-template-columns: 1fr; grid-template-rows: auto auto; align-items: start; align-content: start; gap: 12px; height: auto;
    padding: 14px 8px; border-bottom: 0; border-right: 1px solid rgba(212,175,55,.22);
    background: radial-gradient(140% 70% at 50% 10%, #234A41 0%, #13302A 70%); }
  .ncg-card__vial { height: 128px; }
  .ncg-card__paper { width: 72px; margin: 0; }
  .ncg-card__body { padding: 14px 14px 16px; gap: 8px; }
  .ncg-card__name { font-size: 21px !important; }
  .ncg-card__pv { font-size: 32px; }
  .ncg-card__pills { flex-direction: column; }
  .ncg-pill { min-height: 44px; padding: 0 14px; width: 100%; box-sizing: border-box; }
  .ncg-card__facts { grid-template-columns: minmax(0,1.25fr) minmax(0,1fr); gap: 6px 10px; }
  .ncg-card__facts dd { font-size: 12.5px; }
}
@media (prefers-reduced-motion: reduce) { .ncg-card__paper, .ncg-pill { transition: none; } }
/* cream-page links/buttons in the library (brand chip, "See every batch…"): forest-green ring, gold is too faint on cream */
.natura-clg .natura-coa-lib__brand a:focus-visible, .natura-clg .natura-coa-lib__all a:focus-visible { outline: 3px solid #1B3A34 !important; outline-offset: 3px; }
/* long pill labels ("Lab lookup", PL "Wyszukiwarka laboratorium") wrap inside a full-width stacked pill (Greg Nov 10: same layout on every card) */
.ncg-card__pills { flex-wrap: nowrap; }
.ncg-card__pills .ncg-pill { flex: 0 0 auto; width: 100%; }
.ncg-pill { white-space: normal; text-align: center; line-height: 1.25; padding: 8px 14px; max-width: 100%; width: 100%; box-sizing: border-box; }
