/*
 * Halfpix Dayoo v1.7.1 - Discover entry page layout, "Try this combination".
 *
 * A Discover entry used to put everything in the side panel: a 400px column
 * over 3000px tall beside an empty one, with the firing chart squeezed to
 * 300px. On its own page (.discover-detail--page) the panel keeps what you
 * read first and the rest sits below at full width. The post overlay is not
 * affected. Palette tokens only (--hp-*), so the dark scheme follows.
 */

.discover-detail--page .discover-detail__media {
  /* The body below would slide under a sticky gallery. */
  position: relative;
  top: auto;
}
.discover-detail--page .discover-detail__body {
  grid-column: 1 / -1;
  display: grid;
  gap: 22px;
  min-width: 0;
  padding: 28px;
  border: 1px solid var(--hp-line);
  border-radius: 24px;
  background: var(--hp-surface);
  box-shadow: 0 8px 24px rgba(21, 24, 29, 0.067);
}
.discover-detail--page .discover-detail__body > * { min-width: 0; margin: 0; }
/* One heading size for every section below the fold (firing schedule,
   products, results, comments); the note cards use a smaller one. */
.discover-detail--page .discover-detail__body h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: var(--weight-regular, 400);
  letter-spacing: 0.004em;
  line-height: 1.35;
}
.discover-detail--page .firing-schedule__head h2,
.discover-detail--page .discover-results__head h2 { margin-bottom: 0; }

/* Effect / Method / Firing notes side by side. */
.discover-detail__notes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 16px;
}
.discover-detail--page .discover-detail__notes .info-card {
  margin: 0;
  padding: 18px 20px;
  border: 1px solid var(--hp-line);
  border-radius: 18px;
  background: var(--hp-surface);
}
.discover-detail--page .discover-detail__notes .info-card h2 { font-size: 17px; margin-bottom: 8px; }
.discover-detail--page .discover-detail__notes .info-card p {
  margin: 0;
  color: var(--hp-muted);
  font-size: 14px;
  line-height: 1.75;
}

/* The firing schedule gets the full width its chart needs. */
.discover-detail--page .discover-detail__body > .firing-schedule {
  padding: 22px 24px;
  border: 1px solid var(--hp-line);
  border-radius: 18px;
}

/* Products in a row of cards, the buttons beside them. */
.discover-detail--page .discover-related .related-products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
}
.discover-detail--page .discover-related .sticky-commerce-actions {
  position: static;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}
.discover-detail--page .discover-related .sticky-commerce-actions > * { flex: 0 1 220px; }

/* Results as a proper grid, comments at a readable width. */
.discover-detail--page .discover-results {
  margin: 0;
  padding-top: 22px;
  border-top: 1px solid var(--hp-line);
}
.discover-detail--page .discover-results__grid {
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}
.discover-detail--page .discover-results__form { max-width: 760px; }
.discover-detail--page .discover-detail__comments {
  max-width: 760px;
  padding-top: 22px;
  border-top: 1px solid var(--hp-line);
}

@media (max-width: 900px) {
  .discover-detail--page .discover-detail__body { padding: 18px; border-radius: 18px; }
}
@media (max-width: 600px) {
  .discover-detail--page .discover-detail__body {
    padding: 16px 0 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
  }
  .discover-detail--page .discover-related .sticky-commerce-actions > * { flex: 1 1 100%; }
}

/* "Try this combination": the banner sits at the top of the form column. */
.creation-main-column > .try-this-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 16px;
}
.creation-main-column > .try-this-banner > .app-icon { flex: none; margin-top: 3px; }
.try-this-banner__body { display: grid; gap: 12px; min-width: 0; }
.try-this-banner__body > p { margin: 0; }
.try-this-glazes { display: grid; gap: 8px; }
.try-this-glazes > strong { font-size: 13px; }
.try-this-glazes ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.try-this-glazes li a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 6px;
  border: 1px solid var(--hp-line);
  border-radius: 12px;
  color: var(--hp-ink);
  background: var(--hp-surface);
  text-decoration: none;
}
.try-this-glazes li img,
.try-this-glazes__thumb {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  display: grid;
  place-items: center;
  background: var(--hp-line);
}
.try-this-glazes li span { display: grid; min-width: 0; }
.try-this-glazes li b {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.try-this-glazes li small { color: var(--hp-muted); font-size: 12px; }
.try-this-buy { justify-self: start; }
.try-this-buy__status { margin: 0; font-size: 13px; }
.try-this-buy__status:empty { display: none; }

/* Studio share: send the result back under the original post too. */
.journal-share__original {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 4px 0 14px;
  font-size: 14px;
}
.journal-share__original input { margin-top: 3px; }
