/* Herbino · existing interface details · 2026-11-23
   Append after the existing stylesheets. Decorative images only.
   Keep the existing paper, typography, controls and game geometry. */

/* Dílna: material illustrations on the four existing wooden sample plates.
   The plate's existing ::before / ::after engraved borders are preserved. */
#gravirovane-cedulky .catalog-plate.botanical,
#gravirovane-cedulky .catalog-plate.herb,
#gravirovane-cedulky .catalog-plate.garden,
#gravirovane-cedulky .catalog-plate.custom {
  background-color: #e7d6b5;
  background-image:
    linear-gradient(rgba(252, 247, 235, .20), rgba(252, 247, 235, .20)),
    url("/assets/web-details-20261123/herbino-birch-light-v1.webp");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: #453723;
}

/* Brass is a 3px decorative card trim, not a new product material. */
#gravirovane-cedulky .catalog-card {
  position: relative;
}

#gravirovane-cedulky .catalog-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: #b99a65 url("/assets/web-details-20261123/herbino-brass-soft-v1.webp") center / cover no-repeat;
  pointer-events: none;
}

/* Hravá zahrada: paint only the surrounding viewport.
   No changes to #board, the tray, gestures, padding or measured dimensions. */
#puzzle-panel .board-viewport {
  background-color: #e5e8dc;
  background-image:
    linear-gradient(rgba(234, 240, 227, .58), rgba(234, 240, 227, .58)),
    url("/assets/web-details-20261123/herbino-linen-warm-v1.webp");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

/* Planting: a separate, non-interactive motif in the existing first-step head. */
.stage[data-stage="0"] > .stage-head {
  position: relative;
  padding-right: 144px;
  min-height: 112px;
}

.stage[data-stage="0"] > .stage-head::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 100px;
  background: url("/assets/web-details-20261123/herbino-plum-branch-v1.webp") center / contain no-repeat;
  pointer-events: none;
}

/* Existing notebook: an in-flow flex item keeps the close button uncovered.
   Do not override .context-top positioning or its mobile sticky z-index. */
#workspaceContext > .context-top::before {
  content: "";
  display: block;
  flex: 0 0 68px;
  width: 68px;
  height: 52px;
  background: url("/assets/web-details-20261123/herbino-garden-journal-v1.webp") center / contain no-repeat;
  pointer-events: none;
}

#workspaceContext > .context-top > h2 {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
}

/* Atlas only: never decorate the garden-specimen list heading. */
#workspacePanel.herbino-atlas-hub > .hag-heading:not(.hag-garden-heading) {
  position: relative;
  padding-right: 144px;
  min-height: 124px;
}

#workspacePanel.herbino-atlas-hub > .hag-heading:not(.hag-garden-heading)::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 120px;
  background: url("/assets/web-details-20261123/herbino-botanical-corner-v1.webp") right top / contain no-repeat;
  pointer-events: none;
}

/* Preserve full-width instructions and compact cards on small screens. */
@media (max-width: 640px) {
  .stage[data-stage="0"] > .stage-head,
  #workspacePanel.herbino-atlas-hub > .hag-heading:not(.hag-garden-heading) {
    padding-right: 0;
    min-height: 0;
  }

  .stage[data-stage="0"] > .stage-head::after,
  #workspacePanel.herbino-atlas-hub > .hag-heading:not(.hag-garden-heading)::after {
    content: none;
  }
}

@media (max-width: 380px) {
  #workspaceContext > .context-top::before {
    flex-basis: 48px;
    width: 48px;
    height: 40px;
  }
}

@media print, (forced-colors: active) {
  #gravirovane-cedulky .catalog-plate.botanical,
  #gravirovane-cedulky .catalog-plate.herb,
  #gravirovane-cedulky .catalog-plate.garden,
  #gravirovane-cedulky .catalog-plate.custom,
  #puzzle-panel .board-viewport {
    background-image: none;
  }

  #gravirovane-cedulky .catalog-card::before,
  .stage[data-stage="0"] > .stage-head::after,
  #workspaceContext > .context-top::before,
  #workspacePanel.herbino-atlas-hub > .hag-heading:not(.hag-garden-heading)::after {
    content: none;
  }

  .stage[data-stage="0"] > .stage-head,
  #workspacePanel.herbino-atlas-hub > .hag-heading:not(.hag-garden-heading) {
    padding-right: 0;
    min-height: 0;
  }
}
