.sgm-widget {
  --sgm-widget-text: #1f1a17;
  --sgm-widget-heading: #1f1a17;
  --sgm-widget-muted: #6f625a;
  --sgm-widget-accent: #b68770;
  --sgm-widget-bg: transparent;
  --sgm-widget-surface: #f6f1eb;
  --sgm-widget-surface-alt: #fbf8f4;
  --sgm-widget-border: #e6ddd4;
  --sgm-widget-button-bg: #2d2723;
  --sgm-widget-button-text: #ffffff;
  --sgm-widget-button-hover-bg: #1f1a17;
  --sgm-widget-button-hover-text: #ffffff;
  --sgm-widget-input-bg: #ffffff;
  --sgm-widget-input-text: #1f1a17;
  --sgm-widget-input-placeholder: #b7aba1;
  --sgm-widget-radius: 24px;
  --sgm-widget-chip-bg: #fbf8f4;
  --sgm-widget-chip-text: #1f1a17;
  --sgm-widget-chip-border: #e6ddd4;
  --sgm-widget-chip-hover-bg: #f1ece5;
  --sgm-widget-chip-hover-text: #1f1a17;
  --sgm-widget-chip-hover-border: #e6ddd4;
  --sgm-widget-suggestion-title: #1f1a17;
  --sgm-widget-suggestion-meta: #5c514b;
  --sgm-widget-suggestion-hover-title: #1f1a17;
  --sgm-widget-suggestion-hover-meta: #5c514b;
  --sgm-widget-suggestion-hover-bg: #f6f1eb;
  color: #1f1a17;
  background: var(--sgm-widget-bg);
}

.sgm-section-heading {
  margin-bottom: 24px;
}

.sgm-section-heading__eyebrow,
.sgm-card__eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  color: #b68770;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.sgm-section-heading__eyebrow--categories {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.sgm-section-heading__eyebrow-link {
  color: #b68770;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: opacity 0.15s ease, text-decoration 0.15s ease, color 0.15s ease;
}

.sgm-section-heading__eyebrow-link.is-primary {
  color: #b68770;
}

.sgm-section-heading__eyebrow-link:hover,
.sgm-section-heading__eyebrow-link:focus-visible {
  text-decoration: underline;
  opacity: 0.85;
  outline: none;
}

.sgm-section-heading__eyebrow-sep {
  display: inline-block;
  color: #d7cabf;
  font-weight: 700;
  line-height: 1;
  margin: 0 2px;
  user-select: none;
}

.sgm-section-heading__title,
.sgm-card__title {
  margin: 0;
}

.sgm-widget.sgm-search-hero,
.sgm-search-hero {
  position: relative;
  overflow: visible !important;
  padding: 0;
  background: transparent;
  border-radius: 0;
}

.sgm-search-hero__form {
  overflow: visible !important;
  display: grid;
  gap: 16px;
}

.sgm-search-hero__bar {
  position: relative;
  overflow: visible !important;
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 12px 14px 12px 18px;
  background: #f1ede8;
  border-radius: 999px;
}

.sgm-search-hero__field {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
}

.sgm-search-hero__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-right: 12px;
  color: #3f3833;
  flex-shrink: 0;
}

.sgm-search-hero__icon svg {
  display: block;
  width: 24px;
  height: 24px;
}

.sgm-search-hero__input {
  width: 100%;
  min-height: 62px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #3b342f;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.1;
  box-shadow: none;
}

.sgm-search-hero input.sgm-search-hero__input,
.sgm-search-hero input.sgm-search-hero__input:hover,
.sgm-search-hero input.sgm-search-hero__input:focus,
.sgm-search-hero input.sgm-search-hero__input:active {
  appearance: none;
  -webkit-appearance: none;
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

.sgm-search-hero__input::placeholder {
  color: #b7aba1;
}

.sgm-search-hero__input:focus {
  outline: none;
  box-shadow: none;
}

.sgm-search-hero__suggestions {
  position: absolute;
  top: calc(100% + 16px);
  left: -18px;
  right: -14px;
  z-index: 999;
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #e6ddd4;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(31, 26, 23, 0.12);
}

.sgm-search-hero__suggestions[hidden],
.sgm-search-hero__suggestions:empty {
  display: none !important;
}

.sgm-search-hero__suggestion-section {
  display: grid;
  gap: 8px;
}

.sgm-search-hero__suggestion-heading {
  color: #7d6f65;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sgm-search-hero__suggestion-list {
  display: grid;
  gap: 8px;
}

.sgm-search-hero__suggestion {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid #efe8e1;
  border-radius: 16px;
  background: #fbf8f4;
  color: #1f1a17;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.sgm-search-hero__suggestion.is-recipe {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.sgm-search-hero__suggestion:hover,
.sgm-search-hero__suggestion:focus-visible {
  background: #f6f1eb;
  border-color: #e6ddd4;
  outline: none;
}

.sgm-search-hero__suggestion:active {
  transform: translateY(1px);
}

.sgm-search-hero__suggestion-content {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.sgm-search-hero__suggestion-thumb {
  width: 64px;
  height: 64px;
  overflow: hidden;
  border-radius: 14px;
  background: #f1e9e1;
  border: 1px solid #efe2d7;
}

.sgm-search-hero__suggestion-thumb-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sgm-search-hero__suggestion-title {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
}

.sgm-search-hero__suggestion-meta {
  color: #5c514b;
  font-size: 13px;
  line-height: 1.4;
}

.sgm-search-hero__suggestion-footer {
  color: #7d6f65;
  font-size: 12px;
  line-height: 1.5;
  padding: 2px 4px 0;
}

.sgm-search-hero__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 146px;
  min-height: 50px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: #2d2723;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.sgm-search-hero__chips-wrap {
  display: grid;
  gap: 10px;
}

.sgm-search-hero__chips-heading {
  color: #9a8578;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.sgm-search-hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 0;
  transform-origin: top left;
  transition:
    opacity 0.36s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    max-height 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    margin-top 0.32s ease,
    filter 0.3s ease;
  max-height: 120px;
  overflow: hidden;
  will-change: opacity, transform;
}

.sgm-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 16px;
  border-radius: 999px;
  background: #ebe6df;
  color: #5b524b;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition:
    background-color 0.15s ease,
    color 0.15s ease,
    opacity 0.28s ease,
    transform 0.36s cubic-bezier(0.22, 1, 0.36, 1);
}

.sgm-search-hero.is-search-engaged .sgm-search-hero__chips {
  opacity: 0;
  transform: translateY(-26px) scale(0.96);
  max-height: 0;
  margin-top: -8px;
  filter: blur(4px);
  pointer-events: none;
}

.sgm-search-hero.is-search-engaged .sgm-chip {
  opacity: 0;
  transform: translateY(-18px) scale(0.94);
}

.sgm-search-hero__chips .sgm-chip:nth-child(2) {
  transition-delay: 0.02s;
}

.sgm-search-hero__chips .sgm-chip:nth-child(3) {
  transition-delay: 0.04s;
}

.sgm-search-hero__chips .sgm-chip:nth-child(4) {
  transition-delay: 0.06s;
}

.sgm-search-hero__chips .sgm-chip:nth-child(5) {
  transition-delay: 0.08s;
}

.sgm-search-hero__chips .sgm-chip:nth-child(6) {
  transition-delay: 0.1s;
}

.sgm-search-hero__chips .sgm-chip:nth-child(7) {
  transition-delay: 0.12s;
}

.sgm-search-hero__chips .sgm-chip:nth-child(8) {
  transition-delay: 0.14s;
}

.sgm-search-hero__chips .sgm-chip:nth-child(9) {
  transition-delay: 0.16s;
}

.sgm-search-hero__chips .sgm-chip:nth-child(10) {
  transition-delay: 0.18s;
}

@media (prefers-reduced-motion: reduce) {
  .sgm-search-hero__chips,
  .sgm-chip {
    transition: none;
  }
}

.sgm-chip:hover,
.sgm-chip:focus-visible {
  background: #dfd8d0;
  color: #1f1a17;
  outline: none;
}

/* ================================================================
   📱 IPHONE / MOBIL SØGFIX (max-width: 767px)
   - Forslagene kommer OVER søgeboksen i stedet for UNDER
   - Fjerner iOS accessory bar (pil op/ned + flu-ben/dismiss knap)
     så meget som muligt via input styling
   - position: FIKSERET til bundet af synlig vindue (visualViewport)
   ============================================================== */
@media (max-width: 767px) {
  /* Input feltet: iPhone specifikke tricks mod accessory bar (pil op/ned + dismiss) */
  .sgm-search-hero__input {
    -webkit-appearance: none !important;
    appearance: none !important;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: text;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    border: none !important;
  }

  /* Når søg er i gang = mobil modal-mode: lås baggrund for scroll MEN
     BRUG IKKE position:fixed! Det ødelægger form submit flow når layoutet hopper.
     Brug bare overflow:hidden + html lås, så siden ikke kan rulles mens søg er åben. */
  html:has(body.sgm-search-open),
  body.sgm-search-open {
    overflow: hidden !important;
    overscroll-behavior: contain !important;
  }
  body.sgm-search-open {
    touch-action: pan-y !important;
  }

  /* CHIPS skjules når søg er aktiv (standard men sikret her) */
  .sgm-search-hero.is-search-focused .sgm-search-hero__chips-wrap {
    display: none !important;
  }

  /* 📱 Mobil suggestions: POSITIONERING STYRES UDENDE af JAVASCRIPT inline-style!
     (fordi vi flytter suggestions DIV'en direkte ind i document.body
      for at undgå "containing block"-problemer med forældre-der-har-transform).
     Her står KUN defaults (baggrund, skygger, border-radius, animation). */
  .sgm-search-hero__suggestions {
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    border-radius: 20px !important;
    box-shadow:
      0 28px 70px rgba(31, 26, 23, 0.18),
      0 -2px 12px rgba(31, 26, 23, 0.06) !important;
    background: #fffaf6 !important;
    animation: sgm-search-popover 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  }

  @keyframes sgm-search-popover {
    from { opacity: 0; transform: translateY(8px) scale(0.985); }
    to   { opacity: 1; transform: translateY(0)    scale(1); }
  }

  /* Sørg for at bar er fixed til bundet hvis søg er åbent */
  .sgm-search-hero.is-search-focused .sgm-search-hero__bar {
    position: sticky;
    position: -webkit-sticky;
    top: 0;
    z-index: 999998;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  }

  /* Større/tændere knap for ældre fingre */
  .sgm-search-hero__button {
    min-height: 52px !important;
    min-width: 130px !important;
  }

  .sgm-search-hero__suggestion {
    min-height: 52px;
    padding: 14px 16px;
  }
  .sgm-search-hero__suggestion-thumb {
    width: 54px !important;
    height: 54px !important;
  }
  .sgm-search-hero__suggestion-title {
    font-size: 17px !important;
    line-height: 1.2;
  }
  .sgm-search-hero__suggestion-meta {
    font-size: 13px !important;
  }
}

/* --- Lille mobil ekstra (≤420px) --- */
@media (max-width: 420px) {
  .sgm-search-hero__bar {
    padding: 10px 12px 10px 14px !important;
    gap: 10px !important;
  }
  .sgm-search-hero__input {
    font-size: 20px !important;
    min-height: 52px !important;
  }
  .sgm-search-hero__button {
    min-height: 48px !important;
    padding: 0 18px !important;
    font-size: 13px !important;
    min-width: 110px !important;
  }
}

/* ================================================================
   🏆 NUCLEÆR SØG-FORSLAG STANDALONE OVERRIDE
   (parent UAFHÆNGIG — virker uanset om suggestions er i
    form, .sgm-widget ELLER direkte i <body>)
    Alle links + tekster: ingen blå farve, ingen underline.
    ============================================================== */
.sgm-suggestions-body-root,
.sgm-search-hero__suggestions,
.sgm-search-hero__suggestion,
.sgm-search-hero__suggestion-section,
.sgm-search-hero__suggestion-heading,
.sgm-search-hero__suggestion-list,
.sgm-search-hero__suggestion-content,
.sgm-search-hero__suggestion-footer {
  -webkit-tap-highlight-color: transparent;
}
.sgm-search-hero__suggestion,
.sgm-search-hero__suggestion:visited,
.sgm-search-hero__suggestion:any-link,
.sgm-suggestions-body-root a.sgm-search-hero__suggestion,
.sgm-widget a.sgm-search-hero__suggestion,
.sgm-search-hero a.sgm-search-hero__suggestion {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  gap: 12px !important;
  padding: 14px 16px !important;
  border-radius: 18px !important;
  background: #fff8f0 !important;
  width: 100% !important;
  text-align: left !important;
  text-decoration: none !important;
  color: inherit !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
  transition: background 0.16s ease-out !important;
}
.sgm-search-hero__suggestion:hover,
.sgm-search-hero__suggestion:active,
.sgm-search-hero__suggestion:focus-visible {
  background: #faeee0 !important;
  text-decoration: none !important;
  color: inherit !important;
}
.sgm-search-hero__suggestion-thumb {
  width: 64px !important;
  height: 64px !important;
  min-width: 64px !important;
  min-height: 64px !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  background: #f0e7dc !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  margin: 0 !important;
}
.sgm-search-hero__suggestion-thumb-image,
.sgm-search-hero__suggestion-thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 16px !important;
}
.sgm-search-hero__suggestion-content {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: flex-start !important;
  gap: 4px !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
}
.sgm-search-hero__suggestion-title,
.sgm-search-hero__suggestion-title:any-link,
.sgm-suggestions-body-root .sgm-search-hero__suggestion-title,
.sgm-search-hero__suggestion a.sgm-search-hero__suggestion-title {
  display: block !important;
  font-family: "Playfair Display", Georgia, serif !important;
  font-weight: 700 !important;
  font-size: 19px !important;
  line-height: 1.18 !important;
  color: #1f1a17 !important;
  text-align: left !important;
  text-decoration: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  word-break: break-word !important;
}
.sgm-search-hero__suggestion-meta,
.sgm-suggestions-body-root .sgm-search-hero__suggestion-meta {
  display: block !important;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-weight: 500 !important;
  font-size: 13px !important;
  line-height: 1.25 !important;
  letter-spacing: 0.01em !important;
  color: #6b594c !important;
  text-align: left !important;
  text-decoration: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  text-transform: none !important;
}
.sgm-search-hero__suggestion-section {
  padding: 14px 16px 8px 16px !important;
  display: block !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
.sgm-search-hero__suggestion-heading,
.sgm-suggestions-body-root .sgm-search-hero__suggestion-heading {
  display: block !important;
  font-family: "Inter", -apple-system, sans-serif !important;
  font-weight: 700 !important;
  font-size: 11px !important;
  line-height: 1.2 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  color: #867265 !important;
  text-align: left !important;
  padding: 0 0 8px 0 !important;
  margin: 0 0 6px 0 !important;
  border-bottom: 1px solid #efe6dc !important;
  background: transparent !important;
  text-decoration: none !important;
}
.sgm-search-hero__suggestion-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  padding: 2px 0 6px 0 !important;
  margin: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
  background: transparent !important;
}
.sgm-search-hero__suggestion-footer {
  display: block !important;
  padding: 10px 16px 16px 16px !important;
  margin: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
  font-family: "Inter", sans-serif !important;
  font-weight: 500 !important;
  font-size: 12.5px !important;
  line-height: 1.4 !important;
  color: #756458 !important;
  text-align: left !important;
  background: transparent !important;
  text-decoration: none !important;
  border-top: 1px solid #efe6dc !important;
  margin-top: 4px !important;
}
/* Mobil specifik forstørrelse af forslag (sektionen er allerede wrapper i .sgm-widget): */
@media (max-width: 767px) {
  .sgm-search-hero__suggestion,
  .sgm-suggestions-body-root .sgm-search-hero__suggestion {
    min-height: 52px !important;
    padding: 14px 16px !important;
    border-radius: 18px !important;
  }
  .sgm-search-hero__suggestion-thumb {
    width: 56px !important;
    height: 56px !important;
    min-width: 56px !important;
    min-height: 56px !important;
  }
  .sgm-search-hero__suggestion-title {
    font-size: 18px !important;
  }
  .sgm-search-hero__suggestion-meta {
    font-size: 13px !important;
  }
  .sgm-suggestions-body-root {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
  }
}

.sgm-category-grid,
.sgm-card-grid {
  display: grid;
  gap: 24px;
}

.sgm-empty-state {
  padding: 32px;
  border: 1px solid #e6ddd4;
  border-radius: 24px;
  background: #f6f1eb;
  color: #5c514b;
}

.sgm-category-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sgm-popular-categories .sgm-category-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.sgm-popular-categories__heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
}

.sgm-popular-categories__heading-copy {
  min-width: 0;
}

.sgm-popular-categories__cta {
  min-width: 0;
  flex-shrink: 0;
}

.sgm-popular-categories .sgm-category-card__title {
  padding-top: 12px;
  font-size: 18px;
}

.sgm-popular-categories .sgm-category-card__meta {
  padding-top: 6px;
  padding-bottom: 14px;
  font-size: 10px;
}

.sgm-popular-categories .sgm-category-card__link {
  display: flex;
  height: 100%;
}

.sgm-popular-categories .sgm-category-card {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.sgm-popular-categories .sgm-category-card__image {
  flex: 0 0 auto;
}

.sgm-popular-categories .sgm-category-card__title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.sgm-popular-categories .sgm-category-card__meta {
  margin-top: auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sgm-yarn-archive__filters {
  margin-bottom: 24px;
}

.sgm-yarn-archive__filter-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) repeat(3, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: end;
}

.sgm-yarn-archive__filter-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  justify-self: end;
  white-space: nowrap;
}

.sgm-yarn-archive__filter-actions .sgm-search-hero__button {
  min-width: 132px;
}

.sgm-yarn-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.sgm-yarn-card {
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  overflow: hidden;
  background: var(--sgm-widget-surface);
  border: 1px solid var(--sgm-widget-border);
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease;
  height: 100%;
}

.sgm-yarn-card:hover,
.sgm-yarn-card:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.sgm-yarn-card__media {
  background: var(--sgm-widget-surface-alt);
}

.sgm-yarn-card__media img,
.sgm-yarn-card__placeholder {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.sgm-yarn-card__body {
  padding: 14px 16px 16px;
  display: grid;
  gap: 6px;
}

.sgm-yarn-card__eyebrow {
  color: var(--sgm-widget-accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sgm-yarn-card__title {
  color: var(--sgm-widget-heading);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
}

.sgm-yarn-single {
  max-width: 1400px;
  margin: 0 auto;
}

.sgm-yarn-single__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 20px;
  align-items: start;
  justify-content: start;
}

.sgm-yarn-single__media {
  border: 1px solid var(--sgm-widget-border);
  border-radius: 28px;
  overflow: hidden;
  background: var(--sgm-widget-surface-alt);
  width: 100%;
  max-width: 880px;
  justify-self: start;
}

.sgm-yarn-single__image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  box-sizing: border-box;
  padding: 22px;
  object-fit: contain;
}

.sgm-yarn-single__image--placeholder {
  background: linear-gradient(135deg, #ead8ca 0%, #f8f3ed 100%);
}

.sgm-yarn-single__content {
  min-width: 0;
}

.sgm-yarn-single__eyebrow {
  color: var(--sgm-widget-accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sgm-yarn-single__title {
  margin: 10px 0 0;
  font-size: clamp(22px, 2.4vw, 34px);
  line-height: 1.05;
}

.sgm-yarn-single__description {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--sgm-widget-border);
  background: var(--sgm-widget-surface-alt);
  color: var(--sgm-widget-text);
  font-size: 14px;
  line-height: 1.6;
}

.sgm-yarn-single__description p {
  margin: 0;
}

.sgm-yarn-single__details {
  margin-top: 16px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--sgm-widget-border);
  background: var(--sgm-widget-surface);
}

.sgm-yarn-single__details-title {
  margin-bottom: 10px;
  color: var(--sgm-widget-heading);
  font-size: 14px;
  font-weight: 900;
}

.sgm-yarn-single__details-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 16px;
  margin: 0;
}

.sgm-yarn-single__details-grid dt {
  margin: 0;
  color: var(--sgm-widget-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sgm-yarn-single__details-grid dd {
  margin: 0;
  color: var(--sgm-widget-heading);
  font-size: 13px;
  font-weight: 800;
  text-align: right;
}

.sgm-yarn-single__body,
.sgm-yarn-single__recipes,
.sgm-yarn-single__matches {
  margin-top: 32px;
}

.sgm-yarn-single__body {
  max-width: 920px;
  padding: 24px 28px;
  border: 1px solid var(--sgm-widget-border);
  border-radius: 24px;
  background: var(--sgm-widget-surface-alt);
  color: var(--sgm-widget-text);
  line-height: 1.75;
}

.sgm-yarn-single__body > *:first-child {
  margin-top: 0;
}

.sgm-yarn-single__body > *:last-child {
  margin-bottom: 0;
}

.sgm-yarn-single__section-title {
  margin: 0 0 16px;
  font-size: 24px;
  line-height: 1.15;
}

.sgm-yarn-single__matches-title {
  margin-bottom: 14px;
}

.sgm-yarn-single__match-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-snap-type: x mandatory;
}

.sgm-yarn-match-card {
  flex: 0 0 220px;
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--sgm-widget-border);
  background: var(--sgm-widget-surface);
  text-decoration: none;
  color: inherit;
  scroll-snap-align: start;
  transition: transform 0.18s ease;
}

.sgm-yarn-match-card:hover,
.sgm-yarn-match-card:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.sgm-yarn-match-card__media img,
.sgm-yarn-match-card__placeholder {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--sgm-widget-surface-alt);
}

.sgm-yarn-match-card__body {
  padding: 12px 14px 14px;
  display: grid;
  gap: 6px;
}

.sgm-yarn-match-card__eyebrow {
  color: var(--sgm-widget-accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sgm-yarn-match-card__title {
  color: var(--sgm-widget-heading);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
}

.sgm-card-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sgm-category-card,
.sgm-card {
  overflow: hidden;
  background: #f6f1eb;
  border-radius: 24px;
  transition: transform 0.18s ease;
}

.sgm-category-card__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.sgm-category-card__link:focus-visible {
  outline: none;
}

.sgm-category-card__link:focus-visible .sgm-category-card,
.sgm-category-card__link:hover .sgm-category-card {
  transform: translateY(-2px);
  transition: transform 0.18s ease;
}

.sgm-category-card__image,
.sgm-card__placeholder {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: linear-gradient(135deg, #ead8ca 0%, #f8f3ed 100%);
}

.sgm-category-card__title,
.sgm-category-card__meta {
  margin: 0;
  padding: 0 18px;
}

.sgm-category-card__title {
  padding-top: 16px;
  font-size: 24px;
}

.sgm-category-card__meta {
  padding-top: 8px;
  padding-bottom: 18px;
  color: #7d6f65;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
}

.sgm-card__media img,
.sgm-card__media .sgm-card__placeholder {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.sgm-card__body {
  padding: 18px;
}

.sgm-card__title a {
  color: inherit;
  text-decoration: none;
}

.sgm-card__excerpt {
  margin-top: 12px;
  color: #5c514b;
}

.sgm-card__footer {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(180, 154, 137, 0.22);
  justify-items: start;
}

.sgm-card__meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sgm-card__meta-pill,
.sgm-card__rating-pill {
  text-decoration: none;
  color: inherit;
}

.sgm-card__meta-pill {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: fit-content;
  max-width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(180, 154, 137, 0.28);
  border-radius: 16px;
  background: #faf6f1;
}

.sgm-card__meta-label {
  color: #b48769;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sgm-card__meta-value {
  color: #2f2622;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.sgm-card__meta-pill--inline {
  flex-direction: row;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
}

.sgm-card__meta-pill--inline .sgm-card__meta-label {
  white-space: nowrap;
}

.sgm-card__rating-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  max-width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(180, 154, 137, 0.28);
  border-radius: 18px;
  background: #fffaf5;
}

.sgm-card__rating-pill--inline {
  flex-wrap: wrap;
}

.sgm-card__rating-stars {
  display: flex;
  gap: 6px;
}

.sgm-card__rating-star {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(180, 154, 137, 0.55);
  border-radius: 999px;
  color: #d2b09b;
  font-size: 13px;
  line-height: 1;
}

.sgm-card__rating-star.is-active {
  border-color: #c89273;
  background: rgba(200, 146, 115, 0.12);
  color: #c89273;
}

.sgm-card__rating-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sgm-card__rating-pill--inline .sgm-card__rating-copy {
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.sgm-card__rating-title {
  color: #b48769;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sgm-card__rating-text {
  color: #5c514b;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.sgm-card__meta-pill:hover,
.sgm-card__meta-pill:focus-visible,
.sgm-card__rating-pill:hover,
.sgm-card__rating-pill:focus-visible {
  border-color: rgba(180, 120, 83, 0.45);
  background: #fff;
  transform: translateY(-1px);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.sgm-archive-layout {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.sgm-archive-page {
  padding: 24px 24px 72px;
}

.sgm-archive-page__inner {
  max-width: 1400px;
  margin: 0 auto;
}

.sgm-archive-page__hero {
  margin-bottom: 28px;
}

.sgm-archive-page__title {
  margin: 0;
  font-size: clamp(34px, 4.6vw, 64px);
  line-height: 0.98;
}

.sgm-archive-page__description {
  max-width: 760px;
  margin-top: 14px;
  color: #5c514b;
  font-size: 18px;
  line-height: 1.7;
}

.sgm-archive-page__description p {
  margin: 0;
}

.sgm-archive-page__description p + p {
  margin-top: 14px;
}

.sgm-designer-archive__hero {
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  margin-bottom: 34px;
}

.sgm-designer-archive__media {
  display: block;
}

.sgm-designer-archive__image {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 32px;
  object-fit: cover;
  object-position: center;
}

.sgm-designer-archive__content {
  display: grid;
  gap: 16px;
}

.sgm-designer-archive__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.sgm-designer-archive__button {
  min-width: 240px;
}

.sgm-archive-sidebar {
  position: sticky;
  top: 24px;
  max-height: calc(100vh - 48px);
}

.sgm-filter-panel {
  padding: 16px;
  border-radius: 18px;
  background: #f6f1eb;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.sgm-filter-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.sgm-filter-panel__title {
  margin: 0;
  font-size: 18px;
  line-height: 1.1;
}

.sgm-filter-panel__toggle {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid #e6ddd4;
  border-radius: 999px;
  background: transparent;
  color: #7d6f65;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 10px;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  flex-shrink: 0;
  line-height: 1;
}

.sgm-filter-panel__toggle:hover,
.sgm-filter-panel__toggle:focus-visible {
  background: #ebe6df;
  border-color: #d9cdc2;
  color: #1f1a17;
  outline: none;
}

.sgm-widget.sgm-store-map .sgm-filter-panel__toggle,
.sgm-widget.sgm-event-map .sgm-filter-panel__toggle {
  background: transparent !important;
  border-color: #e6ddd4 !important;
  color: #1f1a17 !important;
  opacity: 1 !important;
}

.sgm-widget.sgm-store-map .sgm-filter-panel__toggle:hover,
.sgm-widget.sgm-store-map .sgm-filter-panel__toggle:focus-visible,
.sgm-widget.sgm-event-map .sgm-filter-panel__toggle:hover,
.sgm-widget.sgm-event-map .sgm-filter-panel__toggle:focus-visible {
  background: #1f1a17 !important;
  border-color: #1f1a17 !important;
  color: #ffffff !important;
  opacity: 1 !important;
}

.sgm-store-map .sgm-filter-panel__body,
.sgm-event-map .sgm-filter-panel__body {
  margin-top: 12px;
}

.sgm-store-map.is-filters-collapsed .sgm-filter-panel__body,
.sgm-event-map.is-filters-collapsed .sgm-filter-panel__body {
  display: none;
}

.sgm-filter-form {
  display: grid;
  gap: 18px;
}

.sgm-filter-group {
  display: grid;
  gap: 6px;
}

.sgm-filter-label {
  color: #7d6f65;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sgm-filter-input,
.sgm-filter-select {
  width: 100%;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid #e6ddd4;
  border-radius: 10px;
  background: #fff;
  color: #1f1a17;
  font-size: 14px;
}

.sgm-filter-submit {
  width: 100%;
  min-width: 0;
  margin-top: 8px;
}

.sgm-recipe-archive .sgm-filter-submit.sgm-search-hero__button {
  appearance: none;
  -webkit-appearance: none;
  min-height: 54px;
  padding: 0 24px;
  border: 0 !important;
  border-radius: 999px;
  background: #2d2723;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: none !important;
}

.sgm-recipe-archive .sgm-filter-submit.sgm-search-hero__button:hover,
.sgm-recipe-archive .sgm-filter-submit.sgm-search-hero__button:active,
.sgm-recipe-archive .sgm-filter-submit.sgm-search-hero__button:focus-visible {
  border: 0 !important;
  background: #1f1a17;
  color: #fff;
  outline: none;
  box-shadow: none !important;
}

.sgm-archive-results {
  position: relative;
}

.sgm-store-map__layout {
  display: grid;
  grid-template-columns: minmax(360px, var(--sgm-store-sidebar-width, 40%)) 28px minmax(0, 1fr);
  gap: 0;
  align-items: start;
}

.sgm-store-map__sidebar {
  position: sticky;
  top: var(--sgm-store-sticky-top, 96px);
  display: grid;
  gap: 12px;
  padding-right: 14px;
}

.sgm-store-map__resizer {
  position: sticky;
  top: var(--sgm-store-sticky-top, 96px);
  height: calc(var(--sgm-store-map-height, 720px));
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: col-resize;
  user-select: none;
  touch-action: none;
}

.sgm-store-map__resizer-grip {
  width: 6px;
  height: 84px;
  border-radius: 999px;
  background: #e6ddd4;
  box-shadow: inset 0 0 0 1px rgba(31, 26, 23, 0.06);
  opacity: 0.9;
  transition: background-color 0.15s ease, opacity 0.15s ease;
}

.sgm-store-map__resizer:hover .sgm-store-map__resizer-grip,
.sgm-store-map__resizer:focus-visible .sgm-store-map__resizer-grip,
.sgm-store-map.is-resizing .sgm-store-map__resizer-grip,
.sgm-event-map.is-resizing .sgm-store-map__resizer-grip {
  background: #d9cdc2;
  opacity: 1;
}

.sgm-store-map__resizer:focus-visible {
  outline: none;
}

.sgm-store-map__map {
  border-radius: 28px;
  overflow: hidden;
  background: #f6f1eb;
  height: var(--sgm-store-map-height, 720px);
  min-height: var(--sgm-store-map-height, 720px);
  margin-left: 14px;
}

.sgm-store-map__canvas {
  width: 100%;
  height: 100%;
  min-height: 0;
}

.sgm-store-map .leaflet-container,
.sgm-event-map .leaflet-container {
  background: #d9e7ee;
}

.sgm-store-map .leaflet-container img,
.sgm-event-map .leaflet-container img,
.sgm-store-map .leaflet-tile,
.sgm-event-map .leaflet-tile {
  max-width: none !important;
}

.sgm-store-map .leaflet-tile,
.sgm-event-map .leaflet-tile {
  outline: 1px solid transparent;
}

.sgm-store-map__tag-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sgm-store-map__filters {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 10px 12px;
  align-items: end;
}

.sgm-store-map__filters .sgm-filter-group {
  gap: 6px;
}

.sgm-store-map__filters > .sgm-filter-group:first-child {
  grid-column: 1 / -1;
}

.sgm-store-map__tag {
  display: flex;
  gap: 8px;
  align-items: center;
  width: auto;
  min-height: 30px;
  padding: 4px 10px;
  border: 1px solid #e6ddd4;
  border-radius: 999px;
  background: #fff;
  color: #1f1a17;
  font-size: 13px;
  line-height: 1.2;
}

.sgm-store-map__tag input {
  margin: 0;
}

.sgm-store-map__results {
  display: grid;
  gap: 14px;
}

.sgm-store-map__results .sgm-archive-results__meta {
  justify-content: space-between;
  align-items: center;
}

.sgm-store-map__selected {
  display: none;
  padding: 16px;
  border: 1px solid #e6ddd4;
  border-radius: 20px;
  background: #fbf8f4;
}

.sgm-store-map__selected.is-active {
  display: grid;
  gap: 12px;
}

.sgm-store-map__selected-title {
  font-weight: 900;
  font-size: 16px;
  line-height: 1.2;
}

.sgm-store-map__meta-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: nowrap;
}

.sgm-store-map__directions-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid #e6ddd4;
  border-radius: 999px;
  background: transparent;
  color: #1f1a17;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.sgm-store-map__directions-inline.is-hidden {
  display: none;
}

.sgm-store-map__directions-inline:hover,
.sgm-store-map__directions-inline:focus-visible {
  background: #1f1a17;
  border-color: #1f1a17;
  color: #ffffff;
  outline: none;
}

.sgm-store-map__clear-selection {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid #e6ddd4;
  border-radius: 999px;
  background: transparent !important;
  border-color: #e6ddd4 !important;
  color: #1f1a17 !important;
  opacity: 1 !important;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 12px;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.sgm-store-map__clear-selection.is-hidden {
  display: none;
}

.sgm-store-map__clear-selection:hover,
.sgm-store-map__clear-selection:focus-visible {
  background: #1f1a17 !important;
  border-color: #1f1a17 !important;
  color: #ffffff !important;
  opacity: 1 !important;
  outline: none;
}

.sgm-store-map__list {
  display: grid;
  gap: 8px;
}

.sgm-store-map__region-browser {
  margin-top: 22px;
}

.sgm-store-region {
  display: grid;
  gap: 14px;
}

.sgm-store-region + .sgm-store-region {
  margin-top: 22px;
}

.sgm-store-region__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.sgm-store-region__title {
  margin: 0;
  font-size: 18px;
  line-height: 1.15;
}

.sgm-store-region__count {
  color: #7d6f65;
  font-size: 12px;
  font-weight: 700;
}

.sgm-store-region__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.sgm-store-region__item {
  appearance: none;
  -webkit-appearance: none;
  display: block;
  width: 100%;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--sgm-widget-border);
  background: var(--sgm-widget-surface);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.sgm-store-region__item:hover,
.sgm-store-region__item:focus-visible {
  background: var(--sgm-widget-surface-alt);
  border-color: var(--sgm-widget-border);
  outline: none;
}

.sgm-store-region__item:active {
  transform: translateY(1px);
}

.sgm-store-region__item.is-active {
  border-color: rgba(180, 120, 83, 0.45);
  background: var(--sgm-widget-surface-alt);
}

.sgm-store-region__item-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.sgm-store-region__item-eyebrow {
  color: var(--sgm-widget-accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sgm-store-region__item-title {
  color: var(--sgm-widget-heading);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.2;
}

.sgm-store-region__item-meta {
  color: var(--sgm-widget-muted);
  font-size: 12px;
  line-height: 1.4;
}

.sgm-store-map__item {
  appearance: none;
  -webkit-appearance: none;
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: 1px solid #e6ddd4;
  border-radius: 14px;
  background: #fbf8f4 !important;
  color: #1f1a17 !important;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

@media (max-width: 1024px) {
  .sgm-store-region__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .sgm-store-region__list {
    grid-template-columns: 1fr;
  }
}

.sgm-store-map__item-body {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.sgm-store-map__item-image {
  width: 44px;
  height: 44px;
  border-radius: 999px !important;
  background: #f6f1eb;
  border: 1px solid #e6ddd4;
  display: block;
  overflow: hidden;
  flex-shrink: 0;
}

.sgm-store-map__item-image-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sgm-store-map__item-content {
  min-width: 0;
}

.sgm-store-map__item.is-active {
  background: #f6f1eb !important;
  border-color: #e6ddd4;
  color: #1f1a17 !important;
}

.sgm-store-map__item.is-active .sgm-store-map__item-eyebrow {
  color: #b68770;
}

.sgm-store-map__item.is-active .sgm-store-map__item-meta {
  color: #5c514b;
}

.sgm-store-map__item:hover,
.sgm-store-map__item:focus-visible {
  background: #f6f1eb !important;
  border-color: #e6ddd4;
  color: #1f1a17 !important;
  outline: none;
}

.sgm-store-map__item:active {
  transform: translateY(1px);
}

.sgm-store-map__item-eyebrow {
  margin-bottom: 4px;
  color: #b68770;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sgm-store-map__item:hover .sgm-store-map__item-eyebrow,
.sgm-store-map__item:focus-visible .sgm-store-map__item-eyebrow {
  color: #b68770;
}

.sgm-store-map__item-title {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.15;
}

.sgm-store-map__item-meta {
  margin-top: 4px;
  color: #5c514b;
  font-size: 13px;
  line-height: 1.3;
}

.sgm-store-map__item:hover .sgm-store-map__item-meta,
.sgm-store-map__item:focus-visible .sgm-store-map__item-meta {
  color: #5c514b;
}

.sgm-store-map__button {
  width: auto;
  min-width: 0;
  margin-top: 0;
  justify-self: start;
}

.sgm-store-map .sgm-search-hero__button,
.sgm-event-map .sgm-search-hero__button {
  background: #f6f1eb;
  color: #1f1a17;
  border: 1px solid #e6ddd4;
  min-height: 36px;
  padding: 0 14px;
  font-size: 11px;
  letter-spacing: 0.04em;
}

.sgm-store-map .sgm-search-hero__button:hover,
.sgm-store-map .sgm-search-hero__button:focus-visible,
.sgm-event-map .sgm-search-hero__button:hover,
.sgm-event-map .sgm-search-hero__button:focus-visible {
  background: #ebe6df;
  color: #1f1a17;
  border-color: #d9cdc2;
}

.sgm-store-map .sgm-filter-panel__toggle:hover,
.sgm-store-map .sgm-filter-panel__toggle:focus-visible,
.sgm-event-map .sgm-filter-panel__toggle:hover,
.sgm-event-map .sgm-filter-panel__toggle:focus-visible {
  background: #1f1a17;
  border-color: #1f1a17;
  color: #ffffff;
  outline: none;
}

.sgm-store-map.is-loading .sgm-store-map__list,
.sgm-event-map.is-loading .sgm-store-map__list {
  opacity: 0.55;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.sgm-archive-results__meta {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 18px;
}

.sgm-archive-results__count {
  color: #7d6f65;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sgm-recipe-archive.is-loading .sgm-archive-results__grid {
  opacity: 0.55;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.sgm-archive-results__loadmore {
  display: flex;
  justify-content: center;
  padding: 22px 12px 8px;
}

.sgm-archive-results__loadmore-text {
  color: #7d6f65;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.sgm-search-hero__button.is-secondary {
  background: transparent;
  color: #1f1a17;
  border: 1px solid rgba(180, 154, 137, 0.35);
}

.sgm-search-hero__button.is-secondary:hover,
.sgm-search-hero__button.is-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.78);
}

.sgm-forum-categories__grid,
.sgm-forum-topic-list__items {
  display: grid;
  gap: 18px;
}

.sgm-forum-categories__grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.sgm-forum-category-card,
.sgm-forum-topic-card,
.sgm-forum-topic-single__card,
.sgm-forum-comments,
.sgm-forum-reply,
.sgm-forum-compose {
  background: #f6f1eb;
  border: 1px solid rgba(180, 154, 137, 0.18);
  border-radius: 24px;
}

.sgm-forum-category-card,
.sgm-forum-topic-card {
  display: block;
  padding: 22px;
  color: #1f1a17;
  text-decoration: none;
}

.sgm-forum-category-card {
  display: grid;
  gap: 14px;
}

.sgm-forum-category-card__header {
  display: block;
  color: inherit;
  text-decoration: none;
}

.sgm-forum-category-card__count,
.sgm-forum-topic-card__eyebrow,
.sgm-forum-topic-single__eyebrow {
  display: inline-flex;
  color: #b08a74;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.sgm-forum-category-card__title,
.sgm-forum-topic-card__title,
.sgm-forum-topic-single__title,
.sgm-forum-comments__title,
.sgm-forum-reply__title {
  margin: 10px 0 0;
  font-size: 28px;
  line-height: 1.15;
}

.sgm-forum-category-card__description,
.sgm-forum-topic-card__excerpt {
  margin: 10px 0 0;
  color: #5c514b;
}

.sgm-forum-category-card__children {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sgm-forum-category-card__child {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(180, 154, 137, 0.18);
  background: rgba(255, 255, 255, 0.72);
  color: #4e433d;
  text-decoration: none;
}

.sgm-forum-category-card__child-name {
  font-size: 13px;
  font-weight: 700;
}

.sgm-forum-category-card__child-count {
  color: #8c7365;
  font-size: 12px;
  font-weight: 700;
}

.sgm-forum-toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 0 0 18px;
}

.sgm-forum-toolbar .sgm-filter-input {
  flex: 1;
}

.sgm-forum-toolbar__meta,
.sgm-forum-topic-card__meta,
.sgm-forum-topic-card__footer,
.sgm-forum-topic-single__meta,
.sgm-forum-comments__header,
.sgm-forum-form__actions,
.sgm-forum-auth-gate__actions {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.sgm-forum-toolbar__meta {
  margin-bottom: 18px;
}

.sgm-forum-toolbar__count,
.sgm-forum-toolbar__category,
.sgm-forum-topic-card__stats,
.sgm-forum-topic-card__date,
.sgm-forum-comments__count,
.sgm-forum-topic-single__stats,
.sgm-forum-topic-single__author-name,
.sgm-forum-comment__date {
  color: #7d6f65;
  font-size: 13px;
}

.sgm-forum-topic-card__title a,
.sgm-forum-topic-card__link,
.sgm-forum-topic-single__eyebrow {
  color: inherit;
  text-decoration: none;
}

.sgm-forum-topic-card__link {
  font-weight: 700;
}

.sgm-forum-topic-card__categories,
.sgm-forum-topic-single__categories {
  margin-top: 2px;
}

.sgm-forum-compose,
.sgm-forum-topic-single__card,
.sgm-forum-comments,
.sgm-forum-reply {
  padding: 28px;
}

.sgm-forum-topic-single {
  display: grid;
  gap: 20px;
}

.sgm-forum-topic-single__card {
  display: grid;
  gap: 22px;
}

.sgm-forum-topic-single__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.sgm-forum-topic-single__author {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.sgm-forum-topic-single__avatar {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
}

.sgm-forum-topic-single__avatar-image,
.sgm-forum-topic-single__avatar-placeholder {
  display: block;
  width: 64px;
  height: 64px;
  border-radius: 50%;
}

.sgm-forum-topic-single__avatar-image {
  object-fit: cover;
}

.sgm-forum-topic-single__avatar-placeholder {
  background: rgba(180, 154, 137, 0.22);
}

.sgm-forum-topic-single__author-copy {
  display: grid;
  gap: 8px;
}

.sgm-forum-topic-single__stats {
  padding-top: 6px;
}

.sgm-forum-topic-single__header-actions {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.sgm-forum-topic-single__manage {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.sgm-forum-topic-single__title {
  margin: 0;
}

.sgm-forum-topic-single__content {
  color: #4f4540;
  font-size: 17px;
  line-height: 1.8;
}

.sgm-forum-topic-single__content > *:first-child {
  margin-top: 0;
}

.sgm-forum-topic-single__content > *:last-child {
  margin-bottom: 0;
}

.sgm-forum-media {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.sgm-forum-media--compact {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.sgm-forum-media--comment {
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
}

.sgm-forum-media__link {
  display: block;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(180, 154, 137, 0.16);
  background: rgba(255, 255, 255, 0.72);
}

.sgm-forum-media__image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.sgm-forum-form {
  display: grid;
  gap: 22px;
}

.sgm-forum-form__row {
  display: grid;
  gap: 8px;
}

.sgm-forum-form__hint {
  margin: 0;
  color: #7d6f65;
  font-size: 13px;
  line-height: 1.5;
}

.sgm-forum-form__textarea {
  min-height: 140px;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(180, 154, 137, 0.22);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  color: #1f1a17;
  resize: vertical;
}

.sgm-forum-form__file-input {
  padding: 12px 14px;
  line-height: 1.4;
}

.sgm-forum-form__files {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sgm-forum-form__file {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(180, 154, 137, 0.14);
  color: #4f4540;
  font-size: 12px;
  font-weight: 700;
}

.sgm-forum-category-picker {
  column-count: 2;
  column-gap: 16px;
}

.sgm-forum-category-group {
  display: inline-grid;
  width: 100%;
  gap: 0;
  padding: 0;
  margin: 0 0 16px;
  border: 1px solid rgba(180, 154, 137, 0.16);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.44);
  overflow: hidden;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
}

.sgm-forum-category-group__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 16px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.sgm-forum-category-group__header {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.sgm-forum-category-group__title {
  margin: 0;
  color: #1f1a17;
  font-size: 18px;
  line-height: 1.25;
}

.sgm-forum-category-group__description {
  margin: 0;
  color: #7d6f65;
  font-size: 13px;
  line-height: 1.5;
}

.sgm-forum-category-group__icon {
  position: relative;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
}

.sgm-forum-category-group__icon::before,
.sgm-forum-category-group__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 2px;
  border-radius: 999px;
  background: #8c7365;
  transform: translate(-50%, -50%);
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.sgm-forum-category-group__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.sgm-forum-category-group.is-open .sgm-forum-category-group__icon::after {
  opacity: 0;
}

.sgm-forum-category-group__panel {
  padding: 0 16px 16px;
}

@media (max-width: 767px) {
  .sgm-forum-category-picker {
    column-count: 1;
  }
}

.sgm-forum-category-group__items {
  display: grid;
  gap: 10px;
}

.sgm-forum-category-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(180, 154, 137, 0.2);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.64);
  transition: border-color 0.18s ease, background-color 0.18s ease, opacity 0.18s ease;
}

.sgm-forum-category-option.is-parent {
  border-color: rgba(176, 138, 116, 0.26);
  background: rgba(176, 138, 116, 0.08);
}

.sgm-forum-category-option.is-child {
  padding-left: 18px;
}

.sgm-forum-category-option.is-inactive {
  opacity: 0.72;
}

.sgm-forum-category-option__choice,
.sgm-forum-category-option__primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.sgm-forum-category-option__name {
  font-weight: 700;
  color: #1f1a17;
}

.sgm-forum-category-option__checkbox,
.sgm-forum-category-option__radio {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin: 0;
  border: 2px solid rgba(180, 154, 137, 0.55);
  border-radius: 50%;
  background: transparent;
  box-shadow: inset 0 0 0 4px transparent;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
  cursor: pointer;
}

.sgm-forum-category-option__checkbox:checked,
.sgm-forum-category-option__radio:checked {
  border-color: #b08a74;
  box-shadow: inset 0 0 0 4px #b08a74;
}

.sgm-forum-category-option__checkbox:disabled,
.sgm-forum-category-option__radio:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.sgm-forum-category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sgm-forum-category-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(180, 154, 137, 0.14);
  color: #5c514b;
  font-size: 12px;
  font-weight: 700;
}

.sgm-forum-category-chip.is-primary {
  background: rgba(176, 138, 116, 0.18);
  color: #8d624c;
}

.sgm-forum-form__feedback {
  font-size: 13px;
  color: #7d6f65;
}

.sgm-forum-form__feedback.is-error {
  color: #9b2c2c;
}

.sgm-forum-form__feedback.is-success {
  color: #2f6f3f;
}

.sgm-forum-form--edit {
  padding-top: 12px;
  border-top: 1px solid rgba(180, 154, 137, 0.16);
}

.sgm-forum-edit-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
}

.sgm-forum-edit-image {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(180, 154, 137, 0.16);
}

.sgm-forum-edit-image__preview {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  object-fit: cover;
}

.sgm-forum-edit-image__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #5c514b;
  font-size: 13px;
}

.sgm-search-hero__button.is-danger {
  background: #8f3a3a;
  color: #fff;
}

.sgm-search-hero__button.is-danger:hover,
.sgm-search-hero__button.is-danger:focus-visible {
  background: #7e3030;
  color: #fff;
}

.sgm-forum-auth-gate {
  display: grid;
  gap: 16px;
  padding: 24px;
}

.sgm-forum-comments__list {
  display: grid;
  gap: 20px;
  margin-top: 24px;
}

.sgm-forum-comment {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.58);
}

.sgm-forum-comment__avatar-image {
  width: 56px;
  height: 56px;
  border-radius: 50%;
}

.sgm-forum-comment__body {
  display: grid;
  gap: 8px;
}

.sgm-forum-comment__meta {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.sgm-forum-comment__content p {
  margin: 0;
}

.sgm-forum-reply__title {
  margin-bottom: 18px;
}

.sgm-single-recipe__hero {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.05fr);
  gap: 36px;
  align-items: stretch;
  margin-bottom: 0;
}

/* ====== SINGLE RECIPE GALLERI INLINE (under main image på venstre kolonne) ====== */
.sgm-single-recipe__hero .sgm-single-recipe__media {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
}
.sgm-single-recipe__hero .sgm-single-recipe__hero-thumbnails--inline {
  grid-column: 1 / 2;
  grid-row: 2 / 3;
  width: 100%;
  display: block;
}
.sgm-single-recipe__hero .sgm-single-recipe__intro {
  grid-column: 2 / 3;
  grid-row: 1 / 3;   /* højre kolonne fylder både række 1 og 2 (media + galleri højde) */
}

.sgm-single-recipe__intro {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding-top: 22px;
}

.sgm-single-recipe__title {
  margin: 0;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 0.94;
  letter-spacing: -0.04em;
  max-width: 720px;
}

.sgm-single-recipe__excerpt {
  max-width: 620px;
  margin-top: 16px;
  color: #5c514b;
  font-size: 19px;
  line-height: 1.72;
}

.sgm-single-recipe__hero-intro {
  max-width: 820px;
  margin-top: 28px;
  color: #4f4540;
  font-size: clamp(20px, 1.7vw, 22px);
  line-height: 1.82;
  letter-spacing: -0.01em;
}

.sgm-single-recipe__hero-intro > *:first-child {
  margin-top: 0;
}

.sgm-single-recipe__hero-intro > *:last-child {
  margin-bottom: 0;
}

.sgm-single-recipe__hero-intro p {
  margin: 0;
}

.sgm-single-recipe__hero-intro p + p {
  margin-top: 18px;
}

.sgm-single-recipe__summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.sgm-single-recipe__summary-item {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: #f3ede7;
  color: #5c514b;
  font-size: 12px;
  font-weight: 600;
}

.sgm-single-recipe__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

/* 💑 Engagement: Lavet af + Vurderinger (Kompakt fælles boks under knapperne!) */
.sgm-single-recipe__engagement {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px 24px;
  align-items: stretch;
  margin-top: 22px;
  padding: 22px 24px;
  border-radius: 24px;
  background: #fdf4f8;
  border: 1px solid #ffdae9;
}

.sgm-single-recipe__engagement-col {
  display: grid;
  align-content: start;
  min-width: 0;
}

.sgm-single-recipe__engagement-col + .sgm-single-recipe__engagement-col {
  border-left: 1px solid #ffdae9;
  padding-left: 24px;
}

/* ====== KNAP I BOKSEN: "Jeg/Du har lavet denne" FULD BREDDE i bunden af engagement ====== */
.sgm-single-recipe__engagement-actions {
  grid-column: 1 / -1;  /* fylder BEGGE kolonner */
  width: 100%;
  padding-top: 4px;
}
.sgm-single-recipe__engagement-actions .sgm-single-recipe__secondary-action {
  width: 100% !important;       /* knap fuld bredde i boksen */
  min-height: 48px !important;
  justify-content: center !important;
  font-size: 13px !important;
  letter-spacing: 0.08em !important;
  margin: 0;
}

/* --- Indeni __engagement: Overrid original makers (ingen margin-top, ingen gap auto!) --- */
.sgm-single-recipe__engagement .sgm-single-recipe__makers {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
}
.sgm-single-recipe__engagement .sgm-single-recipe__makers-label {
  color: #00401a;
  font-size: 11px;
  opacity: 0.78;
}
.sgm-single-recipe__engagement .sgm-single-recipe__makers-preview,
.sgm-single-recipe__engagement .sgm-single-recipe__makers-all {
  gap: 8px;
}
.sgm-single-recipe__engagement .sgm-single-recipe__maker-avatar {
  width: 36px;
  height: 36px;
  min-width: 36px;
}
.sgm-single-recipe__engagement .sgm-single-recipe__makers-more-toggle {
  color: #00401a;
  font-size: 13px;
  opacity: 0.85;
}
.sgm-single-recipe__engagement .sgm-single-recipe__makers-more-toggle:hover,
.sgm-single-recipe__engagement .sgm-single-recipe__makers-more-toggle:focus-visible {
  color: #996515;
  opacity: 1;
}

/* --- Indeni __engagement: Overrid rating-row til mere kompakt --- */
.sgm-single-recipe__engagement .sgm-single-recipe__rating-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px 20px;
  align-items: start;
  margin: 0;
  padding: 0;
}
.sgm-single-recipe__engagement .sgm-single-recipe__rating,
.sgm-single-recipe__engagement .sgm-single-recipe__rating-summary {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
}
.sgm-single-recipe__engagement .sgm-single-recipe__rating-label,
.sgm-single-recipe__engagement .sgm-single-recipe__rating-summary-title {
  color: #00401a;
  font-size: 11px;
  letter-spacing: 0.12em;
  opacity: 0.78;
  margin-bottom: 0;
}
/* Mere kompakte stjerner */
.sgm-single-recipe__engagement .sgm-single-recipe__rating-stars {
  gap: 4px;
}
.sgm-single-recipe__engagement .sgm-single-recipe__rating-star,
.sgm-single-recipe__engagement .sgm-single-recipe__rating-summary-star {
  width: 30px;
  height: 30px;
  font-size: 18px;
  line-height: 30px;
}
.sgm-single-recipe__engagement .sgm-single-recipe__rating-note,
.sgm-single-recipe__engagement .sgm-single-recipe__rating-summary-text {
  color: #00401a;
  font-size: 13px;
  line-height: 1.4;
  opacity: 0.88;
  margin: 0;
  padding: 0;
}

/* Responsivt: under 720px → 1 kolonne i alt */
@media (max-width: 720px) {
  .sgm-single-recipe__engagement {
    grid-template-columns: 1fr;
    padding: 18px 18px;
    gap: 16px;
  }
  .sgm-single-recipe__engagement-col + .sgm-single-recipe__engagement-col {
    border-left: none;
    border-top: 1px solid #ffdae9;
    padding-left: 0;
    padding-top: 16px;
  }
  .sgm-single-recipe__engagement-actions {
    padding-top: 8px;
    border-top: 1px solid #ffdae9;
    margin-top: 4px;
  }
  .sgm-single-recipe__engagement .sgm-single-recipe__rating-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

.sgm-single-recipe__primary-action,
.sgm-single-recipe__secondary-action {
  min-width: 180px !important;
  min-height: 40px !important;
  padding: 8px 18px !important;
  font-size: 12.5px !important;
  letter-spacing: 0.05em !important;
}

.sgm-single-recipe__author {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 28px;
  min-height: 96px;
  padding: 18px 22px 18px 18px;
  border: 1px solid #ece4dd;
  border-radius: 24px;
  background: var(--sgm-widget-surface-alt);
}

.sgm-single-recipe__author-avatars {
  display: flex;
  align-items: center;
  padding-left: 2px;
}

.sgm-single-recipe__author-avatar {
  display: block;
  width: 52px;
  height: 52px;
  min-width: 52px;
  aspect-ratio: 1 / 1;
  border-radius: 999px;
  overflow: hidden;
  clip-path: circle(50%);
  object-fit: cover;
  object-position: center;
  flex-shrink: 0;
  border: 1px solid var(--sgm-widget-border);
  background: var(--sgm-widget-surface);
}

.sgm-single-recipe__author-avatar--secondary {
  margin-left: -14px;
}

.sgm-single-recipe__author-copy {
  display: grid;
  gap: 4px;
  align-content: center;
  justify-items: start;
  min-height: 52px;
  padding-left: 4px;
}

.sgm-single-recipe__author-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
}

.sgm-single-recipe__author-label {
  color: #9a8578;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.sgm-single-recipe__author-inline-label {
  color: #9a8578;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.sgm-single-recipe__author-name {
  font-size: 16px;
  line-height: 1.2;
}

.sgm-single-recipe__author-secondary-name {
  color: var(--sgm-widget-muted);
  font-size: 14px;
  line-height: 1.3;
  text-decoration: none;
}

a.sgm-single-recipe__author-secondary-name:hover,
a.sgm-single-recipe__author-secondary-name:focus-visible {
  color: var(--sgm-widget-accent);
  text-decoration: underline;
}

.sgm-single-recipe__author-meta-link {
  color: #7c6d63;
  font-size: 13px;
  line-height: 1.4;
  text-decoration: none;
}

a.sgm-single-recipe__author-meta-link:hover,
a.sgm-single-recipe__author-meta-link:focus-visible {
  color: var(--sgm-widget-accent);
  text-decoration: underline;
}

.sgm-single-recipe__makers {
  display: grid;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
}

.sgm-single-recipe__makers-label {
  color: #9a8578;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.sgm-single-recipe__makers-preview,
.sgm-single-recipe__makers-all {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sgm-single-recipe__maker-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid #eadfd6;
  background: var(--sgm-widget-surface-alt);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.sgm-single-recipe__maker-avatar:hover,
.sgm-single-recipe__maker-avatar:focus-visible {
  border-color: #d9cabc;
  outline: none;
  transform: translateY(-1px);
}

.sgm-single-recipe__maker-avatar img,
.sgm-single-recipe__maker-avatar-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sgm-single-recipe__makers-more {
  display: grid;
  gap: 12px;
}

.sgm-single-recipe__makers-more-toggle {
  color: var(--sgm-widget-heading);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.sgm-single-recipe__makers-more-toggle::-webkit-details-marker {
  display: none;
}

.sgm-single-recipe__makers-more-toggle:hover,
.sgm-single-recipe__makers-more-toggle:focus-visible {
  color: #8f6f5d;
  outline: none;
}

.sgm-single-recipe__rating-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 28px;
  margin-top: 0;
}

.sgm-single-recipe__rating {
  display: grid;
  gap: 8px;
  margin-top: 0;
}

.sgm-single-recipe__rating-label {
  color: #9a8578;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.sgm-single-recipe__rating-stars {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sgm-single-recipe__rating-star {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--sgm-widget-border);
  border-radius: 999px;
  background: var(--sgm-widget-surface-alt);
  color: #c9b8ab;
  cursor: pointer;
  transition: transform 0.18s ease, color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.sgm-single-recipe__rating-star:hover,
.sgm-single-recipe__rating-star:focus-visible {
  color: #b68770;
  border-color: #d8c7ba;
  outline: none;
}

.sgm-single-recipe__rating-star.is-active {
  background: #fff7ef;
  color: #b68770;
  border-color: #d8c7ba;
}

.sgm-single-recipe__rating-star span {
  font-size: 18px;
  line-height: 1;
}

.sgm-single-recipe__rating-note {
  color: var(--sgm-widget-muted);
  font-size: 13px;
  line-height: 1.4;
}

.sgm-single-recipe__rating-summary {
  display: grid;
  gap: 6px;
  margin-top: 0;
  align-content: start;
}

.sgm-single-recipe__rating-summary-title {
  color: #9a8578;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.sgm-single-recipe__rating-summary-stars {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sgm-single-recipe__rating-summary-star {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--sgm-widget-border);
  border-radius: 999px;
  background: var(--sgm-widget-surface-alt);
  color: #c9b8ab;
  font-size: 18px;
  line-height: 1;
}

.sgm-single-recipe__rating-summary-star.is-active {
  background: #fff7ef;
  color: #b68770;
  border-color: #d8c7ba;
}

.sgm-single-recipe__rating-summary-star.is-half {
  color: #c9b8ab;
  border-color: #d8c7ba;
  background: var(--sgm-widget-surface-alt);
}

.sgm-single-recipe__rating-summary-star.is-half::before {
  content: "\2605";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b68770;
  clip-path: inset(0 50% 0 0);
}

.sgm-single-recipe__rating-summary-text {
  color: var(--sgm-widget-text);
  font-size: 14px;
  line-height: 1.45;
}

.sgm-single-recipe__media img,
.sgm-single-recipe__media .sgm-card__placeholder {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 4.9;
  border-radius: 32px;
  object-fit: cover;
}

.sgm-single-recipe__hero-thumbnails {
  width: 100%;
}

.sgm-single-recipe__hero-bottom {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.05fr);
  gap: 36px;
  align-items: start;
  margin: 14px 0 26px;
}

.sgm-single-recipe__hero-bottom-side {
  display: flex;
  width: 100%;
  justify-content: flex-end;
}

.sgm-single-recipe__thumbnails {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sgm-single-recipe__thumbnail {
  width: 96px;
  height: 96px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 18px;
  background: transparent;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.sgm-single-recipe__thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sgm-single-recipe__thumbnail.is-active {
  border-color: #7f6a5b;
}

.sgm-single-recipe__thumbnail:hover,
.sgm-single-recipe__thumbnail:focus-visible {
  border-color: #b68770;
  outline: none;
}

.sgm-single-recipe__facts {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  margin: 0 0 52px;
  padding: 28px 24px;
  border-radius: 28px;
  background: #f4eee8;
}

.sgm-single-recipe__fact {
  display: grid;
  gap: 8px;
  justify-items: center;
  text-align: center;
}

.sgm-single-recipe__fact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 999px;
  background: #fff;
  box-shadow: inset 0 0 0 1px #eadfd6;
  color: #b68770;
}

.sgm-single-recipe__fact-icon svg {
  display: block;
  width: 26px;
  height: 26px;
}

.sgm-single-recipe__fact-label {
  color: #9a8578;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sgm-single-recipe__fact-value {
  color: #2b2420;
  font-size: 15px;
  line-height: 1.45;
}

.sgm-single-recipe__main {
  display: grid;
  gap: 42px;
}

.sgm-single-recipe__section + .sgm-single-recipe__section {
  margin-top: 0;
}

.sgm-single-recipe__section-title {
  margin: 0 0 18px;
  font-size: 40px;
  line-height: 1.02;
}

.sgm-single-recipe__section-title--script {
  font-family: "Furlong I", Furlong, Georgia, "Times New Roman", serif !important;
  font-style: normal !important;
  font-weight: 700 !important;
}

.sgm-single-recipe__designer-box {
  display: block;
  margin-top: 24px;
}
.sgm-single-recipe__designer-box-inner {
  padding: 30px 32px;
  border-radius: 28px;
  background: #faf5f0;
  border: 1px solid #e9ddd2;
}
.sgm-single-recipe__designer-title {
  margin: 0 0 16px;
  font-family: "Furlong I", Furlong, Georgia, "Times New Roman", serif;
  font-style: normal;
  font-weight: 700;
  font-size: 30px;
  line-height: 1.08;
  color: #1f1a17;
}
.sgm-single-recipe__designer-content {
  color: #4a3f38;
  font-size: 15px;
  line-height: 1.75;
}
.sgm-single-recipe__designer-content > *:first-child {
  margin-top: 0;
}
.sgm-single-recipe__designer-content > *:last-child {
  margin-bottom: 0;
}
.sgm-single-recipe__designer-content p {
  margin: 0 0 12px;
}
.sgm-single-recipe__designer-content a:link,
.sgm-single-recipe__designer-content a:visited {
  color: var(--sgm-widget-accent, #b68770);
  text-decoration: none;
  border-bottom: 1px solid rgba(182, 135, 112, 0.4);
}
.sgm-single-recipe__designer-content a:hover,
.sgm-single-recipe__designer-content a:active,
.sgm-single-recipe__designer-content a:focus {
  color: #1f1a17;
  border-bottom-color: #1f1a17;
}

.sgm-single-recipe__details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.sgm-detail-card {
  min-height: 132px;
  padding: 22px 24px;
  border-radius: 24px;
  background: #f8f2ec;
}

.sgm-detail-card__label {
  display: block;
  margin-bottom: 8px;
  color: #7d6f65;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sgm-detail-card__value {
  font-size: 22px;
  line-height: 1.3;
}

.sgm-single-recipe__resource-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.sgm-single-recipe__resource-card {
  padding: 28px 30px;
  border-radius: 28px;
  background: #fbf6f1;
  border: 1px solid #efe5dc;
}

.sgm-single-recipe__resource-title {
  margin: 0 0 18px;
  font-size: 30px;
  line-height: 1.08;
}

.sgm-single-recipe__resource-rows {
  display: grid;
}

.sgm-single-recipe__resource-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  padding: 14px 0;
  border-top: 1px solid #eee3d8;
}

.sgm-single-recipe__resource-row:first-child {
  padding-top: 0;
  border-top: 0;
}

.sgm-single-recipe__resource-main {
  display: grid;
  gap: 4px;
}

.sgm-single-recipe__resource-name {
  color: #2b2420;
  font-size: 16px;
  line-height: 1.35;
}

.sgm-single-recipe__resource-note {
  color: #7c6d63;
  font-size: 14px;
  line-height: 1.55;
}

.sgm-single-recipe__resource-value {
  color: #6c5d54;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  text-align: right;
}

.sgm-single-recipe__content {
  max-width: 860px;
  color: #2b2420;
  line-height: 1.8;
}

.sgm-single-recipe__content :where(h1, h2, h3, h4, h5, h6),
.sgm-single-recipe__content :where(.sgm-method-heading) {
  font-family: "Furlong I", Furlong, Georgia, "Times New Roman", serif !important;
  font-style: normal !important;
  font-weight: 700 !important;
}

.sgm-single-recipe__content > *:first-child {
  margin-top: 0;
}

.sgm-single-recipe__list {
  margin: 0;
  padding-left: 22px;
  color: #2b2420;
  line-height: 1.85;
}

.sgm-single-recipe__list li + li {
  margin-top: 8px;
}

.sgm-single-recipe__item-meta {
  display: inline-block;
  margin-left: 8px;
  color: #7d6f65;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sgm-single-recipe__item-subtext {
  margin-top: 6px;
  color: #5c514b;
  line-height: 1.7;
}

.sgm-single-recipe__list--ordered {
  padding-left: 26px;
}

.sgm-single-recipe__list--ordered li::marker {
  color: #b68770;
  font-weight: 700;
}

.sgm-single-recipe__step-title {
  display: block;
  margin-bottom: 6px;
}

.sgm-single-recipe__step-text {
  color: #5c514b;
  line-height: 1.75;
}

.sgm-size-table {
  overflow: hidden;
  border: 1px solid #eee3d8;
  border-radius: 30px;
  background: #fbf6f1;
}

.sgm-size-table__row {
  display: grid;
  grid-template-columns: minmax(90px, 140px) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
}

.sgm-size-table__row + .sgm-size-table__row {
  border-top: 1px solid #eee3d8;
}

.sgm-size-table__cell {
  padding: 18px 20px;
  color: #2b2420;
  line-height: 1.5;
}

.sgm-size-table__cell + .sgm-size-table__cell {
  border-left: 1px solid #eee3d8;
}

.sgm-size-table__row--head .sgm-size-table__cell {
  color: #7d6f65;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: #f5eee7;
}

.sgm-size-table__note {
  padding: 14px 20px 18px;
  border-top: 1px dashed #e6ddd4;
  color: #5c514b;
  line-height: 1.7;
}

.sgm-widget {
  color: var(--sgm-widget-text);
}

.sgm-widget .sgm-section-heading__title,
.sgm-widget .sgm-card__title,
.sgm-widget .sgm-card__title a,
.sgm-widget .sgm-filter-panel__title,
.sgm-widget .sgm-store-map__item-title,
.sgm-widget .sgm-single-recipe__resource-title,
.sgm-widget .sgm-single-recipe__author-name,
.sgm-widget .sgm-detail-card__value,
.sgm-widget .sgm-single-recipe__fact-value {
  color: var(--sgm-widget-heading);
}

.sgm-widget .sgm-single-recipe__title,
.sgm-widget .sgm-single-recipe__section-title {
  color: #1f1a17;
}

.sgm-widget .sgm-search-hero__suggestion-title {
  color: var(--sgm-widget-suggestion-title);
}

.sgm-widget .sgm-section-heading__eyebrow,
.sgm-widget .sgm-card__eyebrow,
.sgm-widget .sgm-filter-label,
.sgm-widget .sgm-store-map__item-eyebrow,
.sgm-widget .sgm-single-recipe__author-label,
.sgm-widget .sgm-single-recipe__fact-label,
.sgm-widget .sgm-detail-card__label,
.sgm-widget .sgm-search-hero__suggestion-heading,
.sgm-widget .sgm-single-recipe__item-meta,
.sgm-widget .sgm-section-heading__eyebrow-link:link,
.sgm-widget .sgm-section-heading__eyebrow-link:visited {
  color: var(--sgm-widget-accent);
}

.sgm-widget .sgm-section-heading__eyebrow-link:hover,
.sgm-widget .sgm-section-heading__eyebrow-link:focus-visible {
  color: var(--sgm-widget-accent);
  text-decoration: underline;
}

.sgm-widget .sgm-section-heading__eyebrow-sep {
  color: var(--sgm-widget-border);
  opacity: 0.75;
}

.sgm-widget .sgm-card__excerpt,
.sgm-widget .sgm-card__meta,
.sgm-widget .sgm-card__meta-item,
.sgm-widget .sgm-store-map__item-meta,
.sgm-widget .sgm-archive-results__count,
.sgm-widget .sgm-empty-state,
.sgm-widget .sgm-single-recipe__excerpt,
.sgm-widget .sgm-single-recipe__summary-item,
.sgm-widget .sgm-single-recipe__resource-note,
.sgm-widget .sgm-single-recipe__resource-value,
.sgm-widget .sgm-single-recipe__item-subtext,
.sgm-widget .sgm-single-recipe__step-text,
.sgm-widget .sgm-size-table__note,
.sgm-widget .sgm-size-table__row--head .sgm-size-table__cell {
  color: var(--sgm-widget-muted);
}

.sgm-widget .sgm-search-hero__suggestion-meta {
  color: var(--sgm-widget-suggestion-meta);
}

.sgm-widget .sgm-search-hero__bar,
.sgm-widget .sgm-search-hero__suggestions,
.sgm-widget .sgm-search-hero__suggestion,
.sgm-widget .sgm-chip,
.sgm-widget .sgm-card,
.sgm-widget .sgm-category-card,
.sgm-widget .sgm-filter-panel,
.sgm-widget .sgm-store-map__item,
.sgm-widget .sgm-store-map__selected,
.sgm-widget .sgm-single-recipe__resource-card,
.sgm-widget .sgm-single-recipe__fact,
.sgm-widget .sgm-detail-card,
.sgm-widget .sgm-single-recipe__author,
.sgm-widget .sgm-size-table,
.sgm-widget .sgm-size-table__row--head .sgm-size-table__cell {
  background: var(--sgm-widget-surface);
  border-color: var(--sgm-widget-border);
}

.sgm-widget .sgm-card,
.sgm-widget .sgm-category-card,
.sgm-widget .sgm-filter-panel,
.sgm-widget .sgm-store-map__item,
.sgm-widget .sgm-store-map__selected,
.sgm-widget .sgm-single-recipe__resource-card,
.sgm-widget .sgm-single-recipe__fact,
.sgm-widget .sgm-detail-card,
.sgm-widget .sgm-size-table {
  border-radius: var(--sgm-widget-radius);
}

.sgm-widget .sgm-filter-input,
.sgm-widget .sgm-filter-select {
  background: var(--sgm-widget-input-bg);
  color: var(--sgm-widget-input-text);
  border-color: var(--sgm-widget-border);
}

.sgm-widget .sgm-filter-input::placeholder,
.sgm-widget .sgm-search-hero__input::placeholder {
  color: var(--sgm-widget-input-placeholder);
}

.sgm-widget .sgm-search-hero__input {
  color: var(--sgm-widget-input-text);
}

.sgm-widget .sgm-search-hero__button {
  background: var(--sgm-widget-button-bg);
  color: var(--sgm-widget-button-text);
}

.sgm-widget a.sgm-search-hero__button:link,
.sgm-widget a.sgm-search-hero__button:visited {
  color: var(--sgm-widget-button-text);
  text-decoration: none;
}

.sgm-widget .sgm-search-hero__button:hover,
.sgm-widget .sgm-search-hero__button:focus-visible,
.sgm-widget .sgm-search-hero__button:active {
  background: var(--sgm-widget-button-hover-bg);
  color: var(--sgm-widget-button-hover-text);
}

.sgm-widget a.sgm-search-hero__button:hover,
.sgm-widget a.sgm-search-hero__button:focus-visible,
.sgm-widget a.sgm-search-hero__button:active {
  text-decoration: none;
}

.sgm-widget .sgm-filter-panel__toggle,
.sgm-widget .sgm-chip {
  background: var(--sgm-widget-chip-bg);
  color: var(--sgm-widget-chip-text);
  border-color: var(--sgm-widget-chip-border);
}

.sgm-widget .sgm-filter-panel__toggle:hover,
.sgm-widget .sgm-filter-panel__toggle:focus-visible,
.sgm-widget .sgm-chip:hover,
.sgm-widget .sgm-chip:focus-visible {
  background: var(--sgm-widget-chip-hover-bg);
  color: var(--sgm-widget-chip-hover-text);
  border-color: var(--sgm-widget-chip-hover-border);
}

.sgm-widget .sgm-store-map__item.is-active {
  background: var(--sgm-widget-surface-alt);
  border-color: var(--sgm-widget-border);
}

.sgm-widget .sgm-store-map__item:hover,
.sgm-widget .sgm-store-map__item:focus-visible {
  background: var(--sgm-widget-surface-alt);
  border-color: var(--sgm-widget-border);
}

.sgm-widget .sgm-search-hero__suggestion:hover,
.sgm-widget .sgm-search-hero__suggestion:focus-visible {
  background: var(--sgm-widget-suggestion-hover-bg);
  border-color: var(--sgm-widget-chip-border);
}

.sgm-widget .sgm-search-hero__suggestion:hover .sgm-search-hero__suggestion-title,
.sgm-widget .sgm-search-hero__suggestion:focus-visible .sgm-search-hero__suggestion-title {
  color: var(--sgm-widget-suggestion-hover-title);
}

.sgm-widget .sgm-search-hero__suggestion:hover .sgm-search-hero__suggestion-meta,
.sgm-widget .sgm-search-hero__suggestion:focus-visible .sgm-search-hero__suggestion-meta {
  color: var(--sgm-widget-suggestion-hover-meta);
}

.sgm-widget .sgm-single-recipe__list,
.sgm-widget .sgm-single-recipe__content,
.sgm-widget .sgm-size-table__cell {
  color: var(--sgm-widget-text);
}

.sgm-widget .sgm-single-recipe__list--ordered li::marker {
  color: var(--sgm-widget-accent);
}

/* ================================================================================
   🧶 SINGLE OPSKRIFT (KUN DENNE) - OVERSKRIFTER / BRØDTEKST / KNAPPER / BOKSE
   Standard farver specifikt for opskrift-siden. Ændrer IKKE andre widgets!
   ================================================================================ */

/* --- 1. Overskrifter (H1, H2, H3 i opskrift) + Brødtekst: #00401a --- */
.sgm-widget.sgm-single-recipe .sgm-single-recipe__title,
.sgm-widget.sgm-single-recipe .sgm-single-recipe__section-title,
.sgm-widget.sgm-single-recipe .sgm-single-recipe__designer-title,
.sgm-widget.sgm-single-recipe .sgm-single-recipe__resource-title,
.sgm-widget.sgm-single-recipe .sgm-detail-card__value,
.sgm-widget.sgm-single-recipe .sgm-single-recipe__fact-value,
.sgm-widget.sgm-single-recipe .sgm-single-recipe__content,
.sgm-widget.sgm-single-recipe .sgm-single-recipe__content p,
.sgm-widget.sgm-single-recipe .sgm-single-recipe__content li,
.sgm-widget.sgm-single-recipe .sgm-single-recipe__step-text,
.sgm-widget.sgm-single-recipe .sgm-single-recipe__item-subtext,
.sgm-widget.sgm-single-recipe .sgm-single-recipe__excerpt,
.sgm-widget.sgm-single-recipe .sgm-single-recipe__hero-intro,
.sgm-widget.sgm-single-recipe .sgm-single-recipe__designer-content,
.sgm-widget.sgm-single-recipe .sgm-single-recipe__designer-content p,
.sgm-widget.sgm-single-recipe .sgm-single-recipe__designer-content li,
.sgm-widget.sgm-single-recipe .sgm-single-recipe__resource-note,
.sgm-widget.sgm-single-recipe .sgm-single-recipe__resource-value,
.sgm-widget.sgm-single-recipe .sgm-single-recipe__list,
.sgm-widget.sgm-single-recipe .sgm-single-recipe__list li,
.sgm-widget.sgm-single-recipe .sgm-size-table__cell,
.sgm-widget.sgm-single-recipe .sgm-size-table__note,
.sgm-widget.sgm-single-recipe .sgm-single-recipe__author-name,
.sgm-widget.sgm-single-recipe .sgm-single-recipe__author-secondary-name {
  color: #00401a !important;
}

/* Fact / Detail kort labels (Pinde, Strikkefasthed, Garn osv.) → FULD opacity 1.0!
   Samme farveintensitet som values (nedenunder) — ingen blending med baggrund! */
.sgm-widget.sgm-single-recipe .sgm-single-recipe__fact-label,
.sgm-widget.sgm-single-recipe .sgm-detail-card__label {
  color: #00401a !important;
  opacity: 1 !important;
}

/* Muted/brun hjælpe-tekst i andre bokse (faktisk 'sekundær' info): behold 0.8 opacity */
.sgm-widget.sgm-single-recipe .sgm-single-recipe__author-label,
.sgm-widget.sgm-single-recipe .sgm-single-recipe__makers-label,
.sgm-widget.sgm-single-recipe .sgm-single-recipe__rating-label,
.sgm-widget.sgm-single-recipe .sgm-single-recipe__summary-item {
  color: #00401a !important;
  opacity: 0.8;
}

/* Kategorier over hovedtitel (link tekst): #00401a */
.sgm-widget.sgm-single-recipe .sgm-section-heading__eyebrow-link:link,
.sgm-widget.sgm-single-recipe .sgm-section-heading__eyebrow-link:visited,
.sgm-widget.sgm-single-recipe .sgm-section-heading__eyebrow-link:hover,
.sgm-widget.sgm-single-recipe .sgm-single-recipe__author-meta-link:link,
.sgm-widget.sgm-single-recipe .sgm-single-recipe__author-meta-link:visited {
  color: #00401a !important;
}

/* Links inde i brødtekst og designer bokse: #00401a m. lyserød underline */
.sgm-widget.sgm-single-recipe .sgm-single-recipe__designer-content a:link,
.sgm-widget.sgm-single-recipe .sgm-single-recipe__designer-content a:visited,
.sgm-widget.sgm-single-recipe .sgm-single-recipe__content a:link,
.sgm-widget.sgm-single-recipe .sgm-single-recipe__content a:visited {
  color: #00401a !important;
  border-bottom-color: #ffdae9 !important;
}
.sgm-widget.sgm-single-recipe .sgm-single-recipe__designer-content a:hover,
.sgm-widget.sgm-single-recipe .sgm-single-recipe__designer-content a:active,
.sgm-widget.sgm-single-recipe .sgm-single-recipe__content a:hover,
.sgm-widget.sgm-single-recipe .sgm-single-recipe__content a:active {
  color: #00401a !important;
  border-bottom-color: #996515 !important;
}

/* --- 2. KNAPPER (kun i Single Recipe Widget actions): ---
   Baggrund: #996515 (mørkeguld/brun)
   Tekst + kant: #ffdae9 (lyserød)
*/
.sgm-widget.sgm-single-recipe .sgm-single-recipe__actions .sgm-search-hero__button,
.sgm-widget.sgm-single-recipe .sgm-single-recipe__primary-action,
.sgm-widget.sgm-single-recipe .sgm-single-recipe__secondary-action {
  background-color: #996515 !important;
  color: #ffdae9 !important;
  border: 2px solid #ffdae9 !important;
  box-shadow: none !important;
}
.sgm-widget.sgm-single-recipe .sgm-single-recipe__actions a.sgm-search-hero__button:link,
.sgm-widget.sgm-single-recipe .sgm-single-recipe__actions a.sgm-search-hero__button:visited {
  color: #ffdae9 !important;
}
.sgm-widget.sgm-single-recipe .sgm-single-recipe__actions .sgm-search-hero__button:hover,
.sgm-widget.sgm-single-recipe .sgm-single-recipe__actions .sgm-search-hero__button:focus-visible,
.sgm-widget.sgm-single-recipe .sgm-single-recipe__actions .sgm-search-hero__button:active {
  background-color: #b37a1b !important;
  color: #ffdae9 !important;
  border-color: #ffdae9 !important;
}

/* --- 3. BOKSE (Kun i Single Recipe opskrift): ---
   Baggrund: #fdf4f8 (lys rosa-beige)
   Kant: #ffdae9 (lys pink)
*/
.sgm-widget.sgm-single-recipe .sgm-detail-card,
.sgm-widget.sgm-single-recipe .sgm-single-recipe__fact,
.sgm-widget.sgm-single-recipe .sgm-single-recipe__resource-card,
.sgm-widget.sgm-single-recipe .sgm-single-recipe__author,
.sgm-widget.sgm-single-recipe .sgm-size-table,
.sgm-widget.sgm-single-recipe .sgm-single-recipe__designer-box-inner,
.sgm-widget.sgm-single-recipe .sgm-single-recipe__summary-item,
.sgm-widget.sgm-single-recipe .sgm-size-table__row--head .sgm-size-table__cell {
  background-color: #fdf4f8 !important;
  border-color: #ffdae9 !important;
}

/* Size table: alle rækker divider linjer */
.sgm-widget.sgm-single-recipe .sgm-size-table__row + .sgm-size-table__row,
.sgm-widget.sgm-single-recipe .sgm-single-recipe__resource-row {
  border-top-color: #ffdae9 !important;
}

/* ================================================================================
   SLUT: Single Opskrift Specifikke Farver
   ================================================================================ */

@media (max-width: 1024px) {
  .sgm-category-grid,
  .sgm-card-grid--three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sgm-archive-layout {
    grid-template-columns: 1fr;
  }

  .sgm-archive-sidebar {
    position: static;
    max-height: none;
  }

  .sgm-designer-archive__hero {
    grid-template-columns: 1fr;
  }

  .sgm-designer-archive__media {
    max-width: 320px;
  }

  .sgm-store-map__layout {
    grid-template-columns: 1fr;
  }

  .sgm-store-map__sidebar {
    position: static;
    padding-right: 0;
  }

  .sgm-store-map__resizer {
    display: none;
  }

  .sgm-store-map__map {
    margin-left: 0;
  }

  .sgm-store-map__filters {
    grid-template-columns: 1fr;
  }

  .sgm-store-map__filters > .sgm-filter-group:first-child {
    grid-column: auto;
  }

  .sgm-store-map__button {
    width: 100%;
    justify-self: stretch;
  }


  .sgm-single-recipe__hero,
  .sgm-single-recipe__resource-grid {
    grid-template-columns: 1fr;
  }

  /* 🟢 NULSTIL grid column/row for galleri INLINE på ≤1024px (HTML rækkefølge: media → galleri → intro!) */
  .sgm-single-recipe__hero .sgm-single-recipe__media,
  .sgm-single-recipe__hero .sgm-single-recipe__hero-thumbnails--inline,
  .sgm-single-recipe__hero .sgm-single-recipe__intro {
    grid-column: auto !important;
    grid-row: auto !important;
  }

  .sgm-single-recipe__hero-thumbnails {
    width: 100%;
  }

  .sgm-single-recipe__hero-bottom {
    grid-template-columns: 1fr;
  }

  .sgm-single-recipe__hero-bottom-side {
    justify-content: flex-start;
  }

  .sgm-single-recipe__intro {
    padding-top: 0;
  }

  .sgm-single-recipe__facts,
  .sgm-single-recipe__details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .sgm-search-hero__bar {
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border-radius: 28px;
  }

  .sgm-search-hero__field {
    min-height: 0;
  }

  .sgm-search-hero__input {
    min-height: 44px;
    font-size: 18px;
  }

  .sgm-search-hero__button {
    width: 100%;
    min-width: 0;
  }

  .sgm-category-grid,
  .sgm-card-grid--three {
    grid-template-columns: 1fr;
  }

  .sgm-archive-results__meta {
    justify-content: flex-start;
  }

  /* ====== SINGLE OPSKRIFT: 3 små mobil-fixes ====== */
  /* 1) Kategorier: center aligned + MINDRE pludsplads (mere compact) + MERE AFSTAND TIL TITLEN */
  .sgm-section-heading__eyebrow--categories {
    justify-content: center !important;
    text-align: center !important;
    gap: 4px !important;          /* mindre afstand mellem kategorier */
    row-gap: 4px !important;      /* mindre mellemrum ved wrap (flere linjer) */
    margin-bottom: 18px !important; /* ➕ MERE AFSTAND til OVERSKRIFTEN nedenfor */
  }
  .sgm-section-heading__eyebrow--categories .sgm-section-heading__eyebrow-link {
    font-size: 10.5px !important; /* 12 → 10.5px: mindre tekst = kompaktere */
    letter-spacing: 0.12em !important;
  }
  .sgm-section-heading__eyebrow--categories .sgm-section-heading__eyebrow-sep {
    margin: 0 1px !important;     /* 0 2 → 0 1px: mindre afstand til punktum */
    font-size: 10px !important;
  }

  /* TITEL: større på mobil (28px → 34px) */
  .sgm-single-recipe__title {
    font-size: 34px !important;
    line-height: 1.12 !important;
  }

  .sgm-single-recipe__details {
    grid-template-columns: 1fr;
  }

  .sgm-single-recipe__facts,
  .sgm-size-table__row {
    grid-template-columns: 1fr;
  }

  /* 2) GALLERI (hero-bottom thumbnails): Sørg for det kommer RIGTIGT under
     hero main (ved at ændre order, hvis de har været sat forkert).
     Hero er allerede 1 spalt, hero-bottom også. Bare sørg for at
     thumbnails er 100% bredde og har orden order:0 */
  .sgm-single-recipe__hero {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }
  .sgm-single-recipe__hero-bottom {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }
  .sgm-single-recipe__hero-bottom-media {
    order: 1;
    width: 100%;
  }
  .sgm-single-recipe__hero-bottom-side {
    order: 2;
    width: 100%;
  }
  .sgm-single-recipe__thumbnails {
    width: 100%;
    justify-content: center !important;
  }

  /* 3) FAKTA BOKSE (Pinde/Strikkefasthed/Garn etc.): 1 pr række,
     større luft, selve bokse fylder 100% ud. (grid 1fr er allerede sat
     ovenfor, men sørg for at hvert fact-card også er 100% og centered
     tekst + større touch-venlig størrelse) */
  .sgm-single-recipe__facts {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    padding: 20px 16px !important;
    margin: 0 0 40px;
    border-radius: 24px !important;
  }
  .sgm-single-recipe__fact {
    width: 100%;
    padding: 16px;
    min-height: auto;
  }
  .sgm-single-recipe__fact-icon {
    width: 58px !important;
    height: 58px !important;
  }
  .sgm-single-recipe__fact-icon svg {
    width: 30px !important;
    height: 30px !important;
  }
  .sgm-single-recipe__fact-label {
    font-size: 12px !important;
  }
  .sgm-single-recipe__fact-value {
    font-size: 17px !important;
    line-height: 1.4 !important;
  }

  .sgm-size-table__cell + .sgm-size-table__cell {
    border-left: 0;
    border-top: 1px solid #eee3d8;
  }

  .sgm-single-recipe__resource-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .sgm-single-recipe__resource-value {
    text-align: left;
  }

  /* ====== SINGLE OPSKRIFT: VURDERING CENTERET (kun mobil) ====== */
  .sgm-single-recipe__engagement .sgm-single-recipe__rating,
  .sgm-single-recipe__engagement .sgm-single-recipe__rating-summary {
    justify-items: center !important;
    text-align: center !important;
  }
  .sgm-single-recipe__engagement .sgm-single-recipe__rating-label,
  .sgm-single-recipe__engagement .sgm-single-recipe__rating-summary-title {
    text-align: center !important;
    width: 100%;
  }
  .sgm-single-recipe__engagement .sgm-single-recipe__rating-stars,
  .sgm-single-recipe__engagement .sgm-single-recipe__rating-summary-stars {
    justify-content: center !important;
  }
  .sgm-single-recipe__engagement .sgm-single-recipe__rating-note,
  .sgm-single-recipe__engagement .sgm-single-recipe__rating-summary-text {
    text-align: center !important;
  }
}

.sgm-store-map__item-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.sgm-store-map__item-select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.sgm-store-map__item-select:focus-visible {
  outline: none;
}

.sgm-store-map__item-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.sgm-store-map__item-action {
  min-width: 0;
  white-space: nowrap;
}

.sgm-store-map__item-action.is-active,
.sgm-single-recipe__secondary-action.is-active {
  background: var(--sgm-widget-button-bg);
  color: var(--sgm-widget-button-text);
  border-color: var(--sgm-widget-button-bg);
}

.sgm-single-recipe__secondary-action {
  border: 1px solid var(--sgm-widget-button-bg);
  background: var(--sgm-widget-button-bg);
  color: var(--sgm-widget-button-text);
}

.sgm-single-recipe__secondary-action:hover,
.sgm-single-recipe__secondary-action:focus-visible {
  background: var(--sgm-widget-button-hover-bg);
  color: var(--sgm-widget-button-hover-text);
  border-color: var(--sgm-widget-button-hover-bg);
}

.sgm-account {
  position: relative;
}

.sgm-account__bar,
.sgm-account__actions,
.sgm-account__user {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.sgm-account__bar {
  justify-content: space-between;
  flex-wrap: nowrap;
}

.sgm-account__user {
  flex: 1 1 auto;
  min-width: 0;
  flex-wrap: nowrap;
}

.sgm-account__actions {
  flex: 0 0 auto;
  flex-wrap: nowrap;
}

.sgm-account__actions .sgm-account__trigger {
  min-width: 112px;
  justify-content: center;
}

.sgm-account__copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.sgm-account__greeting {
  color: var(--sgm-widget-accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.2;
}

.sgm-account__avatar,
.sgm-profile__avatar {
  display: block;
  width: 40px;
  height: 40px;
  min-width: 40px;
  flex: 0 0 40px;
  border-radius: 999px !important;
  object-fit: cover;
  overflow: hidden;
  border: 1px solid var(--sgm-widget-border);
  background: var(--sgm-widget-surface);
}

.sgm-account__name {
  color: var(--sgm-widget-heading);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sgm-account .sgm-search-hero__button {
  width: auto;
  min-width: 0;
  min-height: 42px;
  padding: 0 18px;
  font-size: 12px;
  white-space: nowrap;
}

.sgm-account__trigger.is-secondary {
  background: var(--sgm-widget-surface);
  color: var(--sgm-widget-heading);
  border: 1px solid var(--sgm-widget-border);
}

.sgm-account__trigger.is-secondary:hover,
.sgm-account__trigger.is-secondary:focus-visible {
  background: var(--sgm-widget-surface-alt);
  color: var(--sgm-widget-heading);
}

html.sgm-auth-open,
body.sgm-auth-open {
  overflow: hidden;
}

.sgm-account__modal[hidden] {
  display: none !important;
}

.sgm-account__modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.sgm-account__overlay {
  position: absolute;
  inset: 0;
  background: rgba(31, 26, 23, 0.46);
  backdrop-filter: blur(4px);
}

.sgm-account__panel {
  position: relative;
  z-index: 1;
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  margin: 16px auto;
  overflow: auto;
  padding: 28px;
  border: 1px solid var(--sgm-widget-border);
  border-radius: var(--sgm-widget-radius);
  background: #fff;
  box-shadow: 0 30px 80px rgba(31, 26, 23, 0.24);
}

.sgm-account__close {
  appearance: none;
  -webkit-appearance: none;
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--sgm-widget-border);
  border-radius: 999px;
  background: var(--sgm-widget-surface);
  color: var(--sgm-widget-heading);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.sgm-account__panel-header {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}

.sgm-account__eyebrow {
  color: var(--sgm-widget-accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.sgm-account__title,
.sgm-profile__title {
  margin: 0;
  color: var(--sgm-widget-heading);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1;
}

.sgm-account__intro,
.sgm-profile__subtitle {
  margin: 0;
  color: var(--sgm-widget-muted);
  line-height: 1.6;
}

.sgm-account__tabs {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
  padding: 6px;
  border: 1px solid var(--sgm-widget-border);
  border-radius: 999px;
  background: var(--sgm-widget-surface);
}

.sgm-account__tab {
  appearance: none;
  -webkit-appearance: none;
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--sgm-widget-muted);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.sgm-account__tab.is-active {
  background: var(--sgm-widget-button-bg);
  color: var(--sgm-widget-button-text);
}

.sgm-account__feedback,
.sgm-profile__feedback {
  min-height: 20px;
  color: var(--sgm-widget-muted);
  font-size: 13px;
}

.sgm-account__feedback.is-error,
.sgm-profile__feedback.is-error {
  color: #a04141;
}

.sgm-account__feedback.is-success,
.sgm-profile__feedback.is-success {
  color: #3c7d58;
}

.sgm-account__form {
  display: none;
  gap: 14px;
}

.sgm-account__form.is-active {
  display: grid;
}

.sgm-account__form.is-loading,
.sgm-profile__form.is-loading {
  opacity: 0.65;
  pointer-events: none;
}

.sgm-account__field {
  display: grid;
  gap: 8px;
  color: var(--sgm-widget-heading);
  font-size: 13px;
  font-weight: 600;
}

.sgm-account__submit {
  width: 100%;
}

.sgm-profile {
  display: grid;
  gap: 24px;
}

.sgm-profile__guest-state {
  display: grid;
  gap: 16px;
}

.sgm-profile__guest-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.sgm-profile__header {
  position: relative;
  display: grid;
  gap: 20px;
  padding: 24px;
  border: 1px solid var(--sgm-widget-border);
  border-radius: var(--sgm-widget-radius);
  background: var(--sgm-widget-surface);
}

.sgm-profile__identity {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding-right: 250px;
}

.sgm-profile--public .sgm-profile__identity {
  padding-right: 0;
}

.sgm-profile__identity-copy {
  display: grid;
  gap: 4px;
}

.sgm-profile__eyebrow-email {
  color: var(--sgm-widget-muted);
  letter-spacing: 0;
  text-transform: none;
}

.sgm-profile__title {
  margin-top: -2px;
  font-size: clamp(22px, 3.2vw, 30px);
  font-style: italic;
}

.sgm-profile__meta {
  color: var(--sgm-widget-muted);
  font-size: 14px;
}

.sgm-profile__form {
  display: grid;
  gap: 16px;
}

.sgm-profile__edit-panel {
  display: grid;
  gap: 16px;
}

.sgm-profile__edit-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--sgm-widget-border);
  border-radius: 999px;
  background: var(--sgm-widget-surface-alt);
  color: var(--sgm-widget-heading);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  list-style: none;
  position: absolute;
  top: 24px;
  right: 24px;
}

.sgm-profile__edit-toggle::-webkit-details-marker {
  display: none;
}

.sgm-profile__edit-toggle::after {
  content: "+";
  font-size: 18px;
  line-height: 1;
}

.sgm-profile__edit-panel[open] .sgm-profile__edit-toggle::after {
  content: "−";
}

.sgm-profile__edit-toggle-label.is-open {
  display: none;
}

.sgm-profile__edit-panel[open] .sgm-profile__edit-toggle-label {
  display: none;
}

.sgm-profile__edit-panel[open] .sgm-profile__edit-toggle-label.is-open {
  display: inline;
}

.sgm-profile__form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.sgm-profile__avatar-field {
  grid-column: 1 / -1;
}

.sgm-profile__avatar-upload {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.sgm-profile__avatar-preview {
  width: 64px;
  height: 64px;
  min-width: 64px;
  flex: 0 0 64px;
}

.sgm-profile__textarea {
  min-height: 120px;
  padding: 12px;
}

.sgm-profile__form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.sgm-profile__columns {
  display: grid;
  gap: 18px;
  align-items: start;
}

.sgm-profile__columns.is-three-columns {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sgm-profile__columns.is-four-columns {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sgm-profile__column {
  display: grid;
  gap: 14px;
  min-width: 0;
  align-content: start;
  align-items: start;
}

.sgm-profile__section-title {
  margin: 0;
  color: var(--sgm-widget-heading);
  font-size: 20px;
  line-height: 1.2;
}

.sgm-profile__column-empty {
  padding: 20px;
  align-self: start;
}

.sgm-profile__card-list {
  display: grid;
  gap: 10px;
  align-content: start;
  align-items: start;
}

.sgm-profile-card {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  align-self: start;
  padding: 12px;
  border: 1px solid var(--sgm-widget-border);
  border-radius: 18px;
  background: var(--sgm-widget-surface);
  color: inherit;
  text-decoration: none;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.sgm-profile-card:hover,
.sgm-profile-card:focus-visible {
  background: var(--sgm-widget-surface-alt);
  border-color: var(--sgm-widget-border);
  outline: none;
}

.sgm-profile-card:active {
  transform: translateY(1px);
}

.sgm-profile-card__image {
  display: block;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--sgm-widget-surface-alt);
  border: 1px solid var(--sgm-widget-border);
}

.sgm-profile-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sgm-profile-card__content {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.sgm-profile-card__eyebrow {
  color: var(--sgm-widget-accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sgm-profile-card__title {
  color: var(--sgm-widget-heading);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
}

.sgm-profile-card__meta {
  color: var(--sgm-widget-muted);
  font-size: 12px;
  line-height: 1.4;
}

@media (max-width: 1024px) {
  .sgm-popular-categories__heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .sgm-popular-categories .sgm-category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .sgm-yarn-archive__filter-actions {
    grid-column: 1 / -1;
    justify-self: start;
    flex-wrap: wrap;
  }

  .sgm-yarn-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .sgm-yarn-single__layout {
    grid-template-columns: 1fr;
  }

  .sgm-profile__columns.is-three-columns,
  .sgm-profile__columns.is-four-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .sgm-popular-categories__cta {
    width: 100%;
  }

  /* 🏷️ Kompakte kategorikort på mobil: 2 kolonner, mindre padding, større billede-udnyttelse */
  .sgm-popular-categories .sgm-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
  .sgm-popular-categories .sgm-category-card {
    border-radius: 16px !important;
    overflow: hidden;
  }
  .sgm-popular-categories .sgm-category-card__image {
    border-radius: 14px 14px 0 0 !important;
  }
  .sgm-popular-categories .sgm-category-card__title {
    font-size: 14px !important;
    line-height: 1.25 !important;
    padding: 8px 10px 0 !important;
    -webkit-line-clamp: 2 !important;
  }
  .sgm-popular-categories .sgm-category-card__meta {
    font-size: 11px !important;
    line-height: 1.3 !important;
    padding: 4px 10px 10px !important;
  }
  /* Heading over populære kategorier: mindre på mobil */
  .sgm-popular-categories__heading {
    gap: 10px !important;
    margin-bottom: 14px !important;
  }
  .sgm-popular-categories__heading-copy h2,
  .sgm-popular-categories__heading-copy h3,
  .sgm-popular-categories__heading-copy .sgm-section-heading__title {
    font-size: 22px !important;
    line-height: 1.2;
  }
  .sgm-popular-categories__heading-copy p,
  .sgm-popular-categories__heading-copy .sgm-section-heading__subtitle {
    font-size: 14px !important;
    line-height: 1.5;
    margin-top: 4px !important;
  }

  .sgm-yarn-archive__filter-grid {
    grid-template-columns: 1fr;
  }

  .sgm-yarn-archive__filter-actions {
    justify-self: stretch;
  }

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

  .sgm-yarn-match-card {
    flex-basis: 200px;
  }

  .sgm-store-map__item-shell {
    grid-template-columns: 1fr;
  }

  .sgm-store-map__item-actions {
    justify-content: flex-start;
  }

  .sgm-account__panel {
    padding: 22px 16px 18px;
  }

  .sgm-account__bar {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .sgm-account__user,
  .sgm-account__actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .sgm-account__actions {
    justify-content: flex-start;
  }

  .sgm-profile__header {
    gap: 16px;
  }


  .sgm-profile__identity {
    padding-right: 0;
  }

  .sgm-profile__edit-panel {
    gap: 12px;
  }

  .sgm-profile__edit-toggle {
    position: static;
    justify-self: flex-start;
    flex-direction: column;
  }

  .sgm-profile__form-grid,
  .sgm-profile__columns.is-three-columns,
  .sgm-profile__columns.is-four-columns {
    grid-template-columns: 1fr;
  }

  .sgm-profile__form-footer {
    align-items: flex-start;
  }
}

.sgm-widget img {
  max-width: 100%;
  height: auto;
}

.sgm-size-table {
  min-width: 0;
}

@media (max-width: 1024px) {
  .sgm-archive-page {
    padding: 20px 18px 56px;
  }

  .sgm-archive-page__hero {
    margin-bottom: 22px;
  }

  .sgm-archive-page__description {
    max-width: none;
    font-size: 16px;
  }

  .sgm-designer-archive__meta {
    gap: 12px;
  }

  .sgm-designer-archive__button {
    width: 100%;
    min-width: 0;
    justify-content: center;
  }

  .sgm-filter-panel {
    padding: 18px;
    max-height: none;
  }

  .sgm-filter-panel__header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .sgm-filter-panel__toggle {
    min-height: 40px;
    padding: 0 14px;
  }

  .sgm-store-map__map {
    height: min(56vh, 520px);
    min-height: min(56vh, 520px);
    margin-top: 16px;
  }

  .sgm-store-map__selected,
  .sgm-store-map__item {
    padding: 14px;
  }

  .sgm-store-map__results .sgm-archive-results__meta {
    align-items: flex-start;
  }

  .sgm-single-recipe__actions > .sgm-search-hero__button {
    flex: 1 1 240px;
    min-width: 0;
  }

  .sgm-single-recipe__author {
    align-items: flex-start;
  }

  .sgm-single-recipe__hero-bottom-side,
  .sgm-single-recipe__makers {
    width: 100%;
  }

  .sgm-forum-toolbar {
    flex-wrap: wrap;
    align-items: stretch;
  }

  .sgm-forum-toolbar .sgm-filter-input,
  .sgm-forum-toolbar .sgm-filter-select,
  .sgm-forum-toolbar .sgm-search-hero__button {
    width: 100%;
  }

  .sgm-forum-topic-single__header-actions,
  .sgm-forum-topic-single__manage {
    width: 100%;
  }

  .sgm-forum-topic-single__header-actions {
    justify-content: space-between;
  }

  .sgm-forum-topic-single__manage .sgm-search-hero__button {
    flex: 1 1 220px;
    min-width: 0;
  }

  .sgm-profile__header {
    padding: 20px;
  }

  .sgm-profile__identity {
    padding-right: 0;
  }

  .sgm-profile__edit-toggle {
    position: static;
    justify-self: flex-start;
  }
}

@media (max-width: 767px) {
  .sgm-widget {
    --sgm-widget-radius: 20px;
  }

  .sgm-search-hero__form {
    gap: 12px;
  }

  .sgm-search-hero__bar {
    gap: 10px;
    padding: 12px;
  }

  .sgm-search-hero__icon {
    margin-right: 10px;
  }

  .sgm-search-hero__input {
    font-size: 17px;
  }

  /* =========================================================
     📱 MOBIL SØG FULD-MODAL (SIMPELT & ROBUST!):
     Hele søge-widgeten (hero) = FIXED FULDSKÆRM når den er åben!
     → Ingen ting kan "sætte sig over" eller komme bagved!
     → Søgebar = sticky øverst (sikkert!)
     ========================================================= */
  body.sgm-search-open {
    overflow: hidden !important;
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
  }

  .sgm-search-hero.is-search-focused {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: var(--sgm-vv-height, 100vh) !important;
    max-height: var(--sgm-vv-height, 100vh) !important;
    z-index: 99999 !important;
    background: #ffffff !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior: contain !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    /* Let fade-in for hele søge-UI */
    animation: sgmFadeInSearch 220ms ease-out both;
  }

  .sgm-search-hero.is-search-focused .sgm-search-hero__form {
    padding: 0 16px !important;
  }

  /* STICKY søgebar: Bliver i TOPPEN når du scroller resultater */
  .sgm-search-hero.is-search-focused .sgm-search-hero__bar {
    position: sticky !important;
    top: 0 !important;
    z-index: 10 !important;
    background: #ffffff !important;
    padding-top: max(12px, calc(env(safe-area-inset-top, 0px) + 10px)) !important;
    padding-right: 16px !important;
    padding-bottom: 14px !important;
    padding-left: 16px !important;
    margin: 0 -16px 0 !important;
    border-radius: 0 0 20px 20px !important;
    box-shadow: 0 6px 18px rgba(31, 26, 23, 0.06) !important;
    gap: 10px;
  }

  .sgm-search-hero.is-search-focused .sgm-search-hero__chips-wrap {
    padding: 14px 0 10px;
    margin: 0 !important;
  }
  .sgm-search-hero.is-search-focused .sgm-search-hero__chips {
    gap: 8px;
  }

  /* 🚫 NÅR BRUGEREN SKRIVER (is-search-engaged): SKJUL chips → frigiv højde til resultater! */
  .sgm-search-hero.is-search-engaged .sgm-search-hero__chips-wrap {
    display: none !important;
  }

  /* COMPACT søgebar når den er engaged (mindre padding = mere plads til resultater) */
  .sgm-search-hero.is-search-engaged .sgm-search-hero__bar {
    padding-top: max(10px, calc(env(safe-area-inset-top, 0px) + 8px)) !important;
    padding-bottom: 10px !important;
  }
  .sgm-search-hero.is-search-engaged .sgm-search-hero__icon {
    width: 20px !important;
    height: 20px !important;
    margin-right: 8px !important;
  }
  .sgm-search-hero.is-search-engaged .sgm-search-hero__input {
    font-size: 16px !important;
  }
  .sgm-search-hero.is-search-engaged .sgm-search-hero__button[type="submit"] {
    min-height: 42px !important;
    padding: 8px 14px !important;
    font-size: 14px !important;
  }

  /* Suggestions: NU STATIC (ikke fixed længere!) → inde i modal */
  .sgm-search-hero__suggestions {
    position: static !important;
    width: auto !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    z-index: 1 !important;
    margin: 0 -16px !important;
    padding: 8px 16px calc(40px + env(safe-area-inset-bottom, 0px)) !important;
    gap: 12px !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  /* Når engageret → KORT mere kompakte */
  .sgm-search-hero.is-search-engaged .sgm-search-hero__suggestion {
    padding: 12px 14px !important;
    min-height: 58px !important;
    border-radius: 16px !important;
  }
  .sgm-search-hero.is-search-engaged .sgm-search-hero__suggestion.is-recipe {
    grid-template-columns: 54px minmax(0, 1fr) !important;
    gap: 12px !important;
  }
  .sgm-search-hero.is-search-engaged .sgm-search-hero__suggestion-thumb {
    width: 54px !important;
    height: 54px !important;
    border-radius: 12px !important;
  }
  .sgm-search-hero.is-search-engaged .sgm-search-hero__suggestion-title {
    font-size: 15.5px !important;
    line-height: 1.22 !important;
  }
  .sgm-search-hero.is-search-engaged .sgm-search-hero__suggestion-meta {
    font-size: 13px !important;
  }

  /* Hvert kort: fade-in + stagger */
  .sgm-search-hero__suggestions[hidden] {
    display: none !important;
  }
  .sgm-search-hero__suggestion {
    opacity: 0;
    transform: translateY(6px);
    animation: sgmFadeInSearch 240ms ease-out both;
  }
  .sgm-search-hero__suggestion:nth-child(1) { animation-delay: 50ms; }
  .sgm-search-hero__suggestion:nth-child(2) { animation-delay: 80ms; }
  .sgm-search-hero__suggestion:nth-child(3) { animation-delay: 110ms; }
  .sgm-search-hero__suggestion:nth-child(4) { animation-delay: 140ms; }
  .sgm-search-hero__suggestion:nth-child(5) { animation-delay: 170ms; }
  .sgm-search-hero__suggestion:nth-child(6) { animation-delay: 200ms; }
  .sgm-search-hero__suggestion:nth-child(7) { animation-delay: 230ms; }
  .sgm-search-hero__suggestion:nth-child(n+8) { animation-delay: 260ms; }

  .sgm-search-hero__suggestion-section,
  .sgm-search-hero__suggestion-heading {
    animation: sgmFadeInSearch 220ms ease-out both;
    animation-delay: 30ms;
  }

  @keyframes sgmFadeInSearch {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .sgm-search-hero__suggestion.is-recipe {
    grid-template-columns: 60px minmax(0, 1fr) !important;
    gap: 14px !important;
    align-items: center !important;
  }
  .sgm-search-hero__suggestion-thumb {
    width: 60px !important;
    height: 60px !important;
    border-radius: 14px !important;
  }
  .sgm-search-hero__suggestion-title {
    font-size: 17px !important;
    line-height: 1.25 !important;
  }
  .sgm-search-hero__suggestion-meta {
    font-size: 14px !important;
    line-height: 1.35 !important;
  }
  .sgm-search-hero__suggestion-heading {
    font-size: 12px !important;
    letter-spacing: 0.08em !important;
  }
  .sgm-search-hero__suggestion-section {
    gap: 10px !important;
  }
  .sgm-search-hero__suggestion-list {
    gap: 10px !important;
  }
  .sgm-search-hero__suggestion-footer {
    font-size: 13px !important;
    padding-top: 4px 6px 0 !important;
  }
  /* Mobil: Altid Scrollbar tynd (ingen horizontal) */
  .sgm-search-hero__suggestions::-webkit-scrollbar {
    width: 6px;
  }
  .sgm-search-hero__suggestions::-webkit-scrollbar-thumb {
    background: #e6ddd4;
    border-radius: 999px;
  }

  .sgm-search-hero__chips {
    gap: 8px;
    max-height: none;
  }

  .sgm-chip {
    min-height: 36px;
    padding: 0 14px;
  }

  .sgm-archive-page {
    padding: 18px 14px 44px;
  }

  .sgm-archive-page__title {
    font-size: clamp(28px, 9vw, 40px);
  }

  .sgm-archive-page__description {
    font-size: 15px;
    line-height: 1.65;
  }

  .sgm-designer-archive__hero {
    gap: 18px;
    margin-bottom: 24px;
  }

  .sgm-designer-archive__image,
  .sgm-yarn-single__media {
    border-radius: 22px;
  }

  .sgm-card__body {
    padding: 12px 14px 14px;
  }

  .sgm-card__footer,
  .sgm-card__meta-list {
    gap: 8px;
  }

  .sgm-card__meta-pill,
  .sgm-card__rating-pill {
    width: 100%;
    justify-content: flex-start;
  }

  .sgm-yarn-single__details-grid {
    grid-template-columns: 1fr;
  }

  .sgm-yarn-single__details,
  .sgm-yarn-single__body {
    padding: 12px;
  }

  .sgm-store-map__sidebar {
    gap: 14px;
  }

  .sgm-store-map__map {
    height: min(48vh, 340px);
    min-height: min(48vh, 340px);
    margin-top: 12px;
    border-radius: 22px;
  }

  .sgm-store-map__filters {
    gap: 10px;
  }

  .sgm-store-map__tag {
    min-height: 36px;
    padding: 6px 12px;
  }

  .sgm-store-map__results .sgm-archive-results__meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .sgm-store-map__selected-title {
    font-size: 16px;
  }

  .sgm-store-map__item {
    padding: 12px;
  }

  .sgm-store-map__item-body {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 10px;
  }

  .sgm-store-map__item-image {
    width: 40px;
    height: 40px;
  }

  .sgm-store-map__button,
  .sgm-store-map__clear-selection {
    width: 100%;
  }

  .sgm-store-map__meta-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    justify-content: stretch;
  }

  .sgm-store-map__directions-inline,
  .sgm-store-map__clear-selection {
    width: 100%;
    min-width: 0;
  }

  .sgm-store-map__directions-inline {
    font-size: 10px;
    letter-spacing: 0.06em;
    padding: 0 10px;
  }


  .sgm-forum-category-card,
  .sgm-forum-topic-card,
  .sgm-forum-compose,
  .sgm-forum-topic-single__card,
  .sgm-forum-comments,
  .sgm-forum-reply {
    padding: 18px;
    border-radius: 20px;
  }

  .sgm-forum-category-card__title,
  .sgm-forum-topic-card__title,
  .sgm-forum-topic-single__title,
  .sgm-forum-comments__title,
  .sgm-forum-reply__title {
    font-size: 22px;
  }

  .sgm-forum-topic-single__author {
    gap: 12px;
    align-items: flex-start;
  }

  .sgm-forum-topic-single__avatar,
  .sgm-forum-topic-single__avatar-image,
  .sgm-forum-topic-single__avatar-placeholder {
    width: 52px;
    height: 52px;
  }

  .sgm-forum-topic-single__content {
    font-size: 16px;
    line-height: 1.7;
  }

  .sgm-forum-media {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .sgm-forum-form {
    gap: 18px;
  }

  .sgm-forum-form__actions > * {
    width: 100%;
  }

  .sgm-single-recipe__title {
    font-size: clamp(28px, 10vw, 40px);
  }

  .sgm-single-recipe__excerpt,
  .sgm-single-recipe__hero-intro,
  .sgm-single-recipe__content,
  .sgm-single-recipe__step-text {
    font-size: 15px;
    line-height: 1.7;
  }

  .sgm-single-recipe__actions {
    gap: 10px;
    margin-top: 18px;
  }

  .sgm-single-recipe__actions > * {
    width: 100%;
  }

  .sgm-single-recipe__author {
    min-height: 0;
    padding: 14px;
  }

  .sgm-single-recipe__author-avatar {
    width: 46px;
    height: 46px;
    min-width: 46px;
  }

  .sgm-single-recipe__author-avatar--secondary {
    margin-left: -10px;
  }

  .sgm-single-recipe__maker-avatar {
    width: 46px;
    height: 46px;
  }

  .sgm-single-recipe__thumbnails {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 72px;
    gap: 10px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding-bottom: 4px;
  }

  .sgm-single-recipe__thumbnail {
    width: 72px;
    height: 72px;
  }

  .sgm-single-recipe__fact {
    padding: 14px;
  }

  .sgm-single-recipe__fact-icon {
    width: 44px;
    height: 44px;
  }

  .sgm-single-recipe__fact-icon svg {
    width: 22px;
    height: 22px;
  }

  .sgm-single-recipe__resource-card {
    padding: 14px;
  }

  .sgm-single-recipe__resource-title {
    font-size: 18px;
  }

  .sgm-size-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .sgm-account__actions .sgm-account__trigger,
  .sgm-profile__guest-actions > * {
    width: 100%;
    min-width: 0;
  }

  .sgm-account__panel {
    max-width: min(100vw - 20px, 560px);
    max-height: calc(100vh - 24px);
    overflow: auto;
  }

  .sgm-account__tabs {
    grid-template-columns: 1fr;
  }

  .sgm-account__tab {
    min-height: 44px;
  }

  .sgm-profile__header {
    padding: 18px;
  }

  .sgm-profile__identity {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .sgm-profile__meta {
    font-size: 13px;
  }

  .sgm-profile__form-footer > .sgm-search-hero__button {
    width: 100%;
  }

  .sgm-profile-card {
    grid-template-columns: 48px minmax(0, 1fr);
    padding: 10px;
  }

  .sgm-profile-card__image {
    width: 48px;
    height: 48px;
  }
}

@media (max-width: 560px) {
  .sgm-category-grid,
  .sgm-popular-categories .sgm-category-grid,
  .sgm-yarn-grid,
  .sgm-forum-media {
    grid-template-columns: 1fr;
  }
}

/* ===========================================================
   👵 MOBIL + TABLET VENLIGT (ÆLDREVENLIGT, 44px touch targets)
   =========================================================== */

/* TABLET MELLEM (900px og derunder): Lettere overgange, 2 kol til facts */
@media (max-width: 900px) {
  .sgm-single-recipe__facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .sgm-single-recipe__details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sgm-single-recipe__section-title {
    font-size: 34px;
  }
  .sgm-single-recipe__title {
    font-size: 34px !important;
  }
  .sgm-single-recipe__hero-intro,
  .sgm-single-recipe__excerpt,
  .sgm-single-recipe__content p,
  .sgm-single-recipe__content li {
    font-size: 16px;
    line-height: 1.7;
  }
}

/* TABLET LILLE + STOR TELEFON (768px → 1024px allerede dækket, her ekstra for 767-): */
@media (max-width: 767px) {
  /* ---------- Knapper: 100% bredde (hele skærmen = let at ramme!) ---------- */
  .sgm-single-recipe__actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .sgm-single-recipe__actions .sgm-search-hero__button {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 52px !important; /* MIN 48px - ældre finger! */
    padding: 14px 20px !important;
    font-size: 15px !important;
  }
  /* ---------- Brød + overskrifter: STØRRE (ingen 12px tekster mere!) ---------- */
  .sgm-single-recipe__section-title {
    font-size: 30px;
    line-height: 1.12;
  }
  .sgm-single-recipe__designer-title {
    font-size: 26px;
  }
  .sgm-single-recipe__hero-intro,
  .sgm-single-recipe__excerpt,
  .sgm-single-recipe__content p,
  .sgm-single-recipe__content li,
  .sgm-single-recipe__content td,
  .sgm-single-recipe__content blockquote {
    font-size: 17px !important;
    line-height: 1.75 !important;
  }
  .sgm-single-recipe__content strong {
    font-size: 18px !important;
  }
  /* ---------- Fact labels (Pinde/Strikkefasthed): STØRRE ingen opacity 0.8! ---------- */
  .sgm-single-recipe__fact-label,
  .sgm-detail-card__label {
    font-size: 12px !important;
    letter-spacing: 0.08em !important;
    opacity: 1 !important;
  }
  .sgm-single-recipe__fact-value {
    font-size: 17px !important;
  }
  .sgm-detail-card__value {
    font-size: 20px !important;
  }
  /* ---------- Fact ikon cirkel (STØRRE) ---------- */
  .sgm-single-recipe__fact-icon {
    width: 58px;
    height: 58px;
  }
  .sgm-single-recipe__fact-icon svg {
    width: 30px;
    height: 30px;
  }
  /* ---------- Engagement boks: 1 kol allerede, men STØRRE avatars + stjerner ---------- */
  .sgm-single-recipe__engagement {
    padding: 20px 18px !important;
    border-radius: 22px !important;
  }
  .sgm-single-recipe__engagement .sgm-single-recipe__makers-label,
  .sgm-single-recipe__engagement .sgm-single-recipe__rating-label,
  .sgm-single-recipe__engagement .sgm-single-recipe__rating-summary-title {
    font-size: 12.5px !important;
    letter-spacing: 0.08em !important;
    opacity: 0.9 !important;
  }
  .sgm-single-recipe__engagement .sgm-single-recipe__maker-avatar {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
  }
  .sgm-single-recipe__engagement .sgm-single-recipe__makers-more-toggle {
    font-size: 15px !important;
  }
  /* ---------- Rating stjerner: 44px (FULD touch størrelse!) ---------- */
  .sgm-single-recipe__engagement .sgm-single-recipe__rating-star,
  .sgm-single-recipe__engagement .sgm-single-recipe__rating-summary-star {
    width: 44px !important;
    height: 44px !important;
    font-size: 26px !important;
    line-height: 44px !important;
  }
  .sgm-single-recipe__engagement .sgm-single-recipe__rating-note,
  .sgm-single-recipe__engagement .sgm-single-recipe__rating-summary-text {
    font-size: 15px !important;
  }
  /* ---------- Designer boks (mindre padding, større tekst) ---------- */
  .sgm-single-recipe__designer-box-inner {
    padding: 22px 18px;
    border-radius: 22px;
  }
  .sgm-single-recipe__designer-content,
  .sgm-single-recipe__designer-content p,
  .sgm-single-recipe__designer-content li {
    font-size: 16px !important;
    line-height: 1.75 !important;
  }
  /* ---------- Author boks: ---------- */
  .sgm-single-recipe__author {
    padding: 16px;
    gap: 14px;
    min-height: 84px;
  }
  .sgm-single-recipe__author-avatar {
    width: 48px;
    height: 48px;
    min-width: 48px;
  }
}

/* LILLE TELEFON (under 560px → gældende for 400-560) */
@media (max-width: 560px) {
  /* Engagement boks → mere luft */
  .sgm-single-recipe__engagement {
    padding: 18px 16px !important;
    gap: 14px !important;
    border-radius: 20px !important;
  }
  .sgm-single-recipe__engagement-col + .sgm-single-recipe__engagement-col {
    padding-top: 14px !important;
  }
  /* Rating stjerner lidt mindre (36px, stadig over 32px minimum) */
  .sgm-single-recipe__engagement .sgm-single-recipe__rating-star,
  .sgm-single-recipe__engagement .sgm-single-recipe__rating-summary-star {
    width: 38px !important;
    height: 38px !important;
    font-size: 22px !important;
    line-height: 38px !important;
  }
  /* Fact + details → mere compact padding */
  .sgm-single-recipe__facts,
  .sgm-single-recipe__details {
    gap: 14px;
    padding: 20px 16px;
    border-radius: 22px;
  }
  .sgm-detail-card {
    padding: 18px;
    min-height: 110px;
    border-radius: 20px;
  }
  /* Overskrifter: mindre på lille skærm */
  .sgm-single-recipe__title {
    font-size: 28px !important;
    line-height: 1.15 !important;
  }
  .sgm-single-recipe__section-title {
    font-size: 26px;
  }
  .sgm-single-recipe__designer-title {
    font-size: 24px;
  }
  /* H1/H2 i content → mindre */
  .sgm-single-recipe__content h1 { font-size: 24px !important; line-height: 1.2; }
  .sgm-single-recipe__content h2 { font-size: 22px !important; line-height: 1.25; }
  .sgm-single-recipe__content h3 { font-size: 19px !important; line-height: 1.3; }
}

/* MEget LILLE TELEFON (under 400px, iPhone SE 2020 375px!) */
@media (max-width: 400px) {
  /* Knapper: 100% bredde, helt fuld */
  .sgm-single-recipe__actions .sgm-search-hero__button {
    min-height: 50px !important;
    padding: 12px 16px !important;
    font-size: 14px !important;
  }
  /* Avatars → 40px stadig OK */
  .sgm-single-recipe__engagement .sgm-single-recipe__maker-avatar {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
  }
  /* Stjerner: 34px */
  .sgm-single-recipe__engagement .sgm-single-recipe__rating-star,
  .sgm-single-recipe__engagement .sgm-single-recipe__rating-summary-star {
    width: 34px !important;
    height: 34px !important;
    font-size: 20px !important;
    line-height: 34px !important;
  }
  .sgm-single-recipe__engagement .sgm-single-recipe__rating-stars {
    gap: 3px;
  }
  /* Brødtekst stadig 16px (minimum for læselighed) */
  .sgm-single-recipe__hero-intro,
  .sgm-single-recipe__excerpt,
  .sgm-single-recipe__content p,
  .sgm-single-recipe__content li {
    font-size: 16px !important;
    line-height: 1.7 !important;
  }
}

/* ===========================================================
   🏆 GENEREL TARGET STØRRELSE (for alle widgets: touch ≥44px!)
   =========================================================== */
.sgm-widget button,
.sgm-widget a.sgm-search-hero__button,
.sgm-widget .sgm-search-hero__button[type="button"],
.sgm-widget .sgm-search-hero__button[type="submit"] {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0.08);
  touch-action: manipulation;
}

/* Ingen horisontal scroll på mobil (selv hvis noget går galt!) */
.sgm-widget {
  max-width: 100%;
  overflow-x: hidden;
}
.sgm-widget img,
.sgm-widget svg {
  max-width: 100%;
  height: auto;
}

/* ===================================================================
   🏷️ ARKIV + FORSIDE WIDGETS: Mobile-optimerede chips, kort, søg, filter
   =================================================================== */

/* CHIPS (kategoriknapper): Større på mobil → 44px (Touch venlig!) */
@media (max-width: 767px) {
  .sgm-chip {
    min-height: 42px !important;
    padding: 6px 18px !important;
    font-size: 14px !important;
    border-radius: 999px;
  }
  .sgm-search-hero__chips {
    gap: 10px;
  }

  /* FORSIDE/ARKIV KORT: større font, større klikkbare områder */
  .sgm-card {
    border-radius: 22px;
  }
  .sgm-card__body {
    padding: 16px 18px 18px;
  }
  .sgm-card__title,
  .sgm-card__title a {
    font-size: 20px !important;
    line-height: 1.22 !important;
  }
  .sgm-card__excerpt {
    font-size: 15px !important;
    line-height: 1.6 !important;
  }
  .sgm-card__meta-label,
  .sgm-card__meta-value,
  .sgm-card__rating-copy {
    font-size: 13px !important;
  }
  .sgm-card__rating-star {
    width: 22px;
    height: 22px;
    font-size: 13px;
    line-height: 22px;
  }
  .sgm-card__meta-pill,
  .sgm-card__rating-pill {
    min-height: 34px;
    padding: 4px 12px;
  }

  /* SØGEBAR: større input (ældre lettere at ramme!) */
  .sgm-search-hero__bar {
    padding: 12px !important;
  }
  .sgm-search-hero__input {
    font-size: 17px !important;
    min-height: 50px !important;
  }
  .sgm-search-hero__input::placeholder {
    font-size: 16px !important;
  }
  .sgm-search-hero__button[type="submit"],
  .sgm-search-hero__button[type="button"] {
    min-height: 50px !important;
    font-size: 15px !important;
  }

}

/* =================================================================
   💻 DEFAULT (Desktop ≥768px): MOBIL-ONLY elementer = SKJULT
   (Skal være FØR @media (max-width:767px) blokken, så mobile
   regler kommer SENEST og overstyrer via CSS cascade!)
   ================================================================= */
.sgm-archive-mobile-toggle {
  display: none !important;
}
.sgm-archive-sidebar-close {
  display: none !important;
}
.sgm-archive-sidebar-close-label {
  display: none !important;
}
.sgm-archive-sidebar-overlay {
  display: none !important;
}

/* =================================================================
   📱 ARKIV OPSKRIFTER: SIDEBAR = OFF-CANVAS FRA HØJRE!
   Standard = skjult, Klik på "Filter" knap → drawer frem.
   ================================================================= */
@media (max-width: 767px) {

  /* 1. Filter knap (synlig kun mobil) */
  .sgm-archive-mobile-toggle {
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 50px !important;
    padding: 12px 20px !important;
    margin: 0 0 16px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #ffdae9 !important;
    background-color: #996515 !important;
    border: 2px solid #ffdae9 !important;
    border-radius: 999px !important;
    justify-content: center;
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(0,0,0,0.08);
  }
  .sgm-archive-mobile-toggle span:first-child {
    font-size: 22px;
    line-height: 1;
  }
  .sgm-archive-mobile-toggle:active {
    transform: scale(0.985);
  }

  /* 2. Grid layout på mobil: sidebar er fjernet fra flow! */
  .sgm-archive-layout {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    position: relative;
  }

  /* 3. Overlay mørk baggrund */
  .sgm-archive-sidebar-overlay {
    display: block !important;
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(31, 26, 23, 0.55);
    backdrop-filter: blur(1.5px);
    -webkit-backdrop-filter: blur(1.5px);
    z-index: 99997 !important;
    opacity: 0;
    transition: opacity 260ms ease-out;
    visibility: hidden;
  }
  .sgm-recipe-archive.is-sidebar-open .sgm-archive-sidebar-overlay {
    opacity: 1;
    visibility: visible;
  }

  /* 4. Sidebar = drawer FRA HØJRE (fixed!) */
  .sgm-archive-sidebar {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 88% !important;
    max-width: 420px !important;
    height: 100vh !important;
    max-height: 100vh !important;
    z-index: 99998 !important;
    background: #ffffff;
    border-left: 1px solid #eadfd3;
    border-radius: 24px 0 0 24px;
    box-shadow: -20px 0 50px rgba(31, 26, 23, 0.18);
    transform: translateX(102%);
    transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
    padding: 0 !important;
    overscroll-behavior: contain;
  }
  .sgm-recipe-archive.is-sidebar-open .sgm-archive-sidebar {
    transform: translateX(0);
  }
  /* Body lock så baggrunden ikke rører sig */
  body.sgm-archive-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
  }

  /* 5. Filter panel inde i drawer */
  .sgm-archive-sidebar .sgm-filter-panel {
    position: absolute !important;
    inset: 0 0 0 0 !important;
    padding:
      calc(16px + env(safe-area-inset-top, 0px))
      16px
      calc(24px + env(safe-area-inset-bottom, 0px))
      16px !important;
    border-radius: 24px 0 0 24px !important;
    background: #f6f1eb !important;
    max-height: none !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  /* 6. Luk knap i sidebar øverst til højre */
  .sgm-archive-sidebar-close {
    position: absolute;
    top: calc(10px + env(safe-area-inset-top, 0px));
    right: 12px;
    z-index: 5;
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    min-height: 40px;
    padding: 6px 14px;
    font-size: 14px;
    font-weight: 600;
    color: #1f1a17;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #eadfd3;
    border-radius: 999px;
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(0,0,0,0.08);
  }
  .sgm-archive-sidebar-close span:first-child {
    font-size: 22px;
    line-height: 1;
    font-weight: 500;
  }
  .sgm-archive-sidebar-close-label {
    display: inline-block !important;
    font-size: 14px;
  }

  /* 7. Filter selve rækker: noget mere luft på mobil */
  .sgm-archive-sidebar .sgm-filter-panel__title {
    max-width: calc(100% - 100px);
    font-size: 22px !important;
  }
  .sgm-archive-sidebar .sgm-filter-group {
    padding: 16px 12px;
  }
  .sgm-archive-sidebar .sgm-filter-label {
    font-size: 13px !important;
    opacity: 0.95;
  }
  .sgm-archive-sidebar .sgm-filter-input,
  .sgm-archive-sidebar .sgm-filter-select {
    min-height: 48px !important;
    font-size: 15px !important;
  }
  .sgm-archive-sidebar .sgm-filter-submit {
    margin-top: 18px !important;
    min-height: 54px !important;
    font-size: 16px !important;
  }
} /* End max-width 767px */

  /* Lille telefon (SE 375px, sidebar = 92% bred) */
@media (max-width: 400px) {
  @media (max-width: 767px) {
    .sgm-archive-sidebar {
      width: 92% !important;
    }
    .sgm-archive-sidebar-close-label {
      display: none;
    }
  }
}

/* =================================================================
   📄 ARKIV SIDEVÆLGER (pagination): Nice knapper i stedet for infinite scroll
   ================================================================= */
.sgm-archive-pagination {
  margin-top: 32px;
  display: flex;
  justify-content: center;
}

.sgm-archive-pagination .sgm-page-numbers {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 8px !important;
}

.sgm-archive-pagination .sgm-page-numbers li {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.sgm-archive-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px !important;
  min-width: 44px !important;
  padding: 8px 14px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #00401a !important;
  background: #fdf4f8 !important;
  border: 2px solid #ffdae9 !important;
  border-radius: 999px !important;
  text-decoration: none !important;
  -webkit-tap-highlight-color: rgba(0,0,0,0.08);
  transition: background-color 160ms ease, transform 120ms ease, border-color 160ms ease, color 160ms ease;
}

.sgm-archive-pagination a.page-numbers:hover,
.sgm-archive-pagination a.page-numbers:focus-visible {
  background: #996515 !important;
  color: #ffdae9 !important;
  border-color: #996515 !important;
  outline: none;
}

.sgm-archive-pagination a.page-numbers:active {
  transform: scale(0.97);
}

.sgm-archive-pagination .page-numbers.current {
  background: #00401a !important;
  color: #ffdae9 !important;
  border-color: #00401a !important;
}

.sgm-archive-pagination .page-numbers.dots {
  background: transparent !important;
  border: 2px dashed #eadfd3 !important;
  color: #8a7b6d !important;
}

/* Mobil pagination: lidt større for bedre touch */
@media (max-width: 767px) {
  .sgm-archive-pagination {
    margin-top: 28px;
  }
  .sgm-archive-pagination .sgm-page-numbers {
    gap: 7px !important;
  }
  .sgm-archive-pagination .page-numbers {
    min-height: 48px !important;
    min-width: 48px !important;
    padding: 10px 16px !important;
    font-size: 16px !important;
  }
}
@media (max-width: 767px) {
  .sgm-widget.sgm-single-recipe,
  .sgm-widget.sgm-single-recipe * {
    text-align: center !important;
  }

  /* Undtagelser for elementer der stadig skal være naturlig (ul/li bullets,
     citater, kode, tabeller til datavisning) */
  .sgm-widget.sgm-single-recipe ul,
  .sgm-widget.sgm-single-recipe ol,
  .sgm-widget.sgm-single-recipe pre,
  .sgm-widget.sgm-single-recipe code,
  .sgm-widget.sgm-single-recipe blockquote,
  .sgm-widget.sgm-single-recipe table,
  .sgm-widget.sgm-single-recipe .alignleft,
  .sgm-widget.sgm-single-recipe .alignright,
  .sgm-widget.sgm-single-recipe .wp-caption.alignleft,
  .sgm-widget.sgm-single-recipe .wp-caption.alignright,
  .sgm-widget.sgm-single-recipe .sgm-single-recipe__actions,
  .sgm-widget.sgm-single-recipe .sgm-single-recipe__fact-icon,
  .sgm-widget.sgm-single-recipe .sgm-single-recipe__hero-thumb,
  .sgm-widget.sgm-single-recipe .sgm-detail-card__icon,
  .sgm-widget.sgm-single-recipe .sgm-single-recipe__engagement-col:first-child,
  .sgm-widget.sgm-single-recipe .sgm-single-recipe__engagement-makers {
    text-align: inherit !important;
  }

  /* Actions knapper = flex, ikke tekst-align */
  .sgm-widget.sgm-single-recipe .sgm-single-recipe__actions {
    justify-content: center;
  }

  /* ul/li som er i steps-lister: center text men behold bullets placering pæn */
  .sgm-widget.sgm-single-recipe ul,
  .sgm-widget.sgm-single-recipe ol {
    text-align: center !important;
    list-style-position: inside !important;
  }

  /* billeder */
  .sgm-widget.sgm-single-recipe img,
  .sgm-widget.sgm-single-recipe .wp-caption {
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* Avatars i lavet-af: center */
  .sgm-widget.sgm-single-recipe .sgm-single-recipe__engagement-makers,
  .sgm-widget.sgm-single-recipe .sgm-single-recipe__engagement-makers-more {
    justify-content: center !important;
  }
}

/* Lille telefon (chips 40px max, ikke for store på 375px) */
@media (max-width: 400px) {
  .sgm-chip {
    min-height: 40px !important;
    padding: 5px 14px !important;
    font-size: 13px !important;
  }
  .sgm-card__title,
  .sgm-card__title a {
    font-size: 18px !important;
  }
  .sgm-search-hero__input {
    font-size: 16px !important;
  }
}

/* =================================================================
   💻 SIKKER HED (Post-cascade, KUN DESKTOP ≥768px):
   MOBIL-ONLY filter-knapper = SKJULT ALTID på skrivebord.
   (min-width 768px = overstyrer IKKE mobile @media max-width:767px!)
   ================================================================= */
@media (min-width: 768px) {
  .sgm-archive-mobile-toggle {
    display: none !important;
  }
  .sgm-archive-sidebar-close {
    display: none !important;
  }
  .sgm-archive-sidebar-close-label {
    display: none !important;
  }
  .sgm-archive-sidebar-overlay {
    display: none !important;
  }
}

/* ================================================================================
   🕵️ SMART FILTER CHIPS (Automatisk fundne filtre fra søgeord)
   Anvendes på: søgeresultater-side + live AJAX forslag overlay
   ================================================================================ */

.sgm-smart-filters {
  width: 100%;
  margin-bottom: 18px;
  padding: 14px 18px;
  background: linear-gradient(135deg, #fff8f0 0%, #fdf4f8 100%);
  border: 1px solid #efe6dc;
  border-radius: 20px;
}

.sgm-smart-filters__header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-family: "Inter", system-ui, sans-serif;
  color: #7d6f65;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sgm-smart-filters__icon {
  font-size: 14px;
  line-height: 1;
}

.sgm-smart-filters__title {
  line-height: 1;
}

.sgm-smart-filters__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  align-items: center;
}

/* ──────────────── Et enkelt chip ──────────────── */
.sgm-smart-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px 8px 12px;
  min-height: 36px;
  background: #ffffff;
  border: 1px solid #efe6dc;
  border-radius: 999px;
  box-shadow: 0 1px 3px rgba(31, 26, 23, 0.04);
  font-family: "Inter", system-ui, sans-serif;
  color: #1f1a17;
  font-size: 14px;
  line-height: 1.2;
  transition: all 180ms ease;
  cursor: default;
  user-select: none;
}

.sgm-smart-chip:hover {
  border-color: #e6d5c3;
  background: #fffbfa;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(31, 26, 23, 0.08);
}

.sgm-smart-chip__emoji {
  font-size: 15px;
  line-height: 1;
  flex-shrink: 0;
}

.sgm-smart-chip__prefix {
  color: #867265;
  font-weight: 600;
  font-size: 12.5px;
  white-space: nowrap;
}

.sgm-smart-chip__value {
  color: #1f1a17;
  font-weight: 700;
  font-size: 13.5px;
  white-space: nowrap;
  padding-right: 2px;
}

/* ──────────────── Lukke-knap (×) ──────────────── */
.sgm-smart-chip__remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  min-width: 22px;
  min-height: 22px;
  margin-left: 2px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #f5ebe1;
  color: #7d6f65;
  cursor: pointer;
  transition: all 160ms ease;
}

.sgm-smart-chip__remove svg {
  display: block;
}

.sgm-smart-chip__remove:hover,
.sgm-smart-chip__remove:focus-visible {
  background: #e6607a;
  color: #ffffff;
  transform: scale(1.08);
  outline: none;
}

.sgm-smart-chip__remove:active {
  transform: scale(0.94);
}

/* ──────────────── Mobil forstørrelse ≤767px ──────────────── */
@media (max-width: 767px) {
  .sgm-smart-filters {
    padding: 12px 14px;
    border-radius: 18px;
    margin-bottom: 14px;
  }

  .sgm-smart-filters__chips {
    gap: 7px;
  }

  .sgm-smart-chip {
    padding: 10px 12px 10px 14px;
    min-height: 44px;
    font-size: 15px;
    gap: 7px;
  }

  .sgm-smart-chip__emoji {
    font-size: 17px;
  }

  .sgm-smart-chip__prefix {
    font-size: 13px;
  }

  .sgm-smart-chip__value {
    font-size: 14.5px;
  }

  .sgm-smart-chip__remove {
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
  }

  .sgm-smart-chip__remove svg {
    width: 16px;
    height: 16px;
  }
}

/* ── Sikkerhed: hvis chips placeres i body-root (AJAX overlay) ── */
.sgm-suggestions-body-root .sgm-smart-filters {
  margin: 0 0 12px 0;
  background: linear-gradient(135deg, #fff8f0cc 0%, #fdf4f8cc 100%);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* ================================================================================
   SLUT: Smart Filter Chips
   ================================================================================ */
