#sg-finds {
  --sg-bg: #faf9f6;
  --sg-paper: #ffffff;
  --sg-text: #202822;
  --sg-muted: #5c675e;
  --sg-line: #dee4da;
  --sg-soft: #edf1e8;
  --sg-accent: #315441;
  --sg-action: #233c2d;
  --sg-action-text: #ffffff;
  box-sizing: border-box;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 28px;
  background: var(--sg-bg);
  color: var(--sg-text);
  font: 400 15px/1.55 Arial, sans-serif;
  overflow-wrap: break-word;
}

#sg-finds *,
#sg-finds *::before,
#sg-finds *::after {
  box-sizing: border-box;
}

#sg-finds h1 {
  margin: 0 0 14px;
  color: var(--sg-text);
  font-size: clamp(24px, 2.7vw, 30px) !important;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.35px;
}

#sg-finds h2 {
  margin: 0 0 12px;
  color: var(--sg-text);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
}

#sg-finds h3 {
  margin: 0 0 8px;
  color: var(--sg-text);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

#sg-finds p {
  margin: 0 0 12px;
}

#sg-finds a {
  color: var(--sg-accent);
  font: inherit;
  text-underline-offset: 3px;
}

#sg-finds a:hover {
  text-decoration-thickness: 2px;
}

#sg-finds a:focus-visible {
  outline: 3px solid var(--sg-accent);
  outline-offset: 4px;
}

#sg-finds .sg-intro,
#sg-finds .sg-count,
#sg-finds .sg-model,
#sg-finds .sg-meta,
#sg-finds .sg-note,
#sg-finds .sg-publication {
  color: var(--sg-muted);
}

#sg-finds .sg-intro {
  max-width: 780px;
}

#sg-finds .sg-count,
#sg-finds .sg-model,
#sg-finds .sg-meta {
  font-size: 13px;
}

#sg-finds .sg-count {
  margin: 20px 0 10px;
}

#sg-finds .sg-product-list {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

#sg-finds .sg-product-card {
  min-width: 0;
  margin: 0;
  padding: 20px;
  border: 1px solid var(--sg-line);
  border-radius: 8px;
  background: var(--sg-paper);
}

#sg-finds .sg-product-card::after {
  display: block;
  clear: both;
  content: "";
}

#sg-finds .sg-identity {
  min-width: 0;
  margin-bottom: 16px;
}

#sg-finds .sg-identity h2 {
  margin-bottom: 5px;
  font-size: 19px;
}

#sg-finds .sg-identity p {
  margin-bottom: 5px;
}

#sg-finds .sg-identity a {
  color: var(--sg-text);
}

#sg-finds .sg-card-header {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  align-items: start;
  gap: 18px;
  margin-bottom: 16px;
}

#sg-finds .sg-card-header .sg-identity {
  margin-bottom: 0;
}

#sg-finds .sg-product-preview,
#sg-finds .sg-gallery-item {
  min-width: 0;
  margin: 0;
}

#sg-finds .sg-product-preview {
  width: 100%;
  max-width: 180px;
}

#sg-finds .sg-photo-link {
  display: block;
  overflow: hidden;
  border: 1px solid var(--sg-line);
  border-radius: 6px;
  background: var(--sg-paper);
}

#sg-finds .sg-photo-link img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 180px;
  padding: 6px;
  background: var(--sg-paper);
  object-fit: contain;
}

#sg-finds .sg-product-preview figcaption,
#sg-finds .sg-gallery-item figcaption {
  margin: 7px 0 0;
  color: var(--sg-muted);
  font-size: 12px;
  line-height: 1.45;
}

#sg-finds .sg-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

#sg-finds .sg-gallery-note {
  margin-bottom: 14px;
  color: var(--sg-muted);
  font-size: 13px;
}

#sg-finds .sg-key-facts {
  margin: 0 0 16px;
  font-size: 14px;
}

#sg-finds dl.sg-key-facts,
#sg-finds .sg-key-facts dl {
  display: grid;
  grid-template-columns: minmax(120px, 0.7fr) minmax(0, 1.3fr);
  gap: 6px 16px;
  margin-top: 0;
  padding: 0;
}

#sg-finds .sg-key-facts dl {
  margin-bottom: 0;
}

#sg-finds dl.sg-key-facts > div,
#sg-finds .sg-key-facts dl > div {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: inherit;
  gap: inherit;
  min-width: 0;
}

#sg-finds .sg-key-facts dt,
#sg-finds .sg-key-facts dd {
  min-width: 0;
  margin: 0;
}

#sg-finds .sg-key-facts dt {
  color: var(--sg-muted);
}

#sg-finds .sg-key-facts dd {
  color: var(--sg-text);
  font-weight: 500;
}

#sg-finds .sg-section {
  clear: both;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--sg-line);
}

#sg-finds .sg-section > :last-child {
  margin-bottom: 0;
}

#sg-finds ul,
#sg-finds ol {
  margin: 0 0 16px;
  padding-left: 22px;
}

#sg-finds li {
  padding-left: 3px;
}

#sg-finds li + li {
  margin-top: 7px;
}

#sg-finds ul.sg-product-list,
#sg-finds ol.sg-product-list {
  margin: 0;
  padding: 0;
}

#sg-finds .sg-product-list > li {
  margin: 0;
}

#sg-finds .sg-product-list > li:not(.sg-product-card) {
  padding: 0;
}

#sg-finds .sg-spec-table {
  width: 100%;
  max-width: 100%;
  margin: 0;
  border-collapse: collapse;
  border-spacing: 0;
  background: var(--sg-paper);
  color: var(--sg-text);
  font-size: 14px;
  table-layout: fixed;
}

#sg-finds .sg-spec-table caption {
  padding: 0 0 10px;
  color: var(--sg-text);
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  caption-side: top;
}

#sg-finds .sg-spec-table th,
#sg-finds .sg-spec-table td {
  padding: 11px 14px;
  border: 1px solid var(--sg-line);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

#sg-finds .sg-spec-table th {
  font-weight: 600;
}

#sg-finds .sg-spec-table th[scope="row"] {
  width: 40%;
  background: var(--sg-soft);
  font-weight: 500;
}

#sg-finds .sg-spec-table thead th {
  background: var(--sg-soft);
}

#sg-finds .sg-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  clear: both;
  margin-top: 18px;
}

#sg-finds .sg-primary,
#sg-finds .sg-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  max-width: 100%;
  padding: 11px 15px;
  border: 1px solid var(--sg-line);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
}

#sg-finds .sg-primary {
  border-color: var(--sg-action);
  background: var(--sg-action);
  color: var(--sg-action-text);
}

#sg-finds .sg-primary:hover {
  border-color: var(--sg-accent);
  background: var(--sg-accent);
  color: var(--sg-action-text);
  text-decoration: none;
}

#sg-finds .sg-secondary {
  background: var(--sg-paper);
  color: var(--sg-text);
}

#sg-finds .sg-secondary:hover {
  background: var(--sg-soft);
  color: var(--sg-text);
  text-decoration: none;
}

#sg-finds .sg-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  margin: 0 0 12px;
  font-size: 13px;
}

#sg-finds .sg-note {
  margin: 10px 0 0;
  font-size: 13px;
}

#sg-finds .sg-publication {
  margin-top: 18px;
  font-size: 13px;
}

#sg-finds .sg-publication p {
  margin-bottom: 6px;
}

#sg-finds .sg-source a,
#sg-finds .sg-section-source a {
  overflow-wrap: anywhere;
}

@media (max-width: 900px) {
  #sg-finds .sg-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 650px) {
  #sg-finds {
    padding: 22px 16px;
  }

  #sg-finds .sg-product-card {
    padding: 16px;
  }

  #sg-finds .sg-card-header {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  #sg-finds .sg-spec-table th,
  #sg-finds .sg-spec-table td {
    padding: 10px;
  }
}

@media (max-width: 400px) {
  #sg-finds .sg-gallery-grid {
    gap: 12px;
  }

  #sg-finds .sg-gallery-item .sg-photo-link img {
    height: 140px;
  }

  #sg-finds dl.sg-key-facts,
  #sg-finds .sg-key-facts dl {
    grid-template-columns: minmax(96px, 0.8fr) minmax(0, 1.2fr);
    column-gap: 10px;
  }

  #sg-finds .sg-primary,
  #sg-finds .sg-secondary {
    width: 100%;
  }

  #sg-finds .sg-spec-table {
    font-size: 13px;
  }

  #sg-finds .sg-spec-table th,
  #sg-finds .sg-spec-table td {
    padding: 9px 8px;
  }
}
