/* ==========================================================================
   Gott och Blandat — Info page
   "Så funkar det" as Apple-style benefit cards: white boxes with big
   radius and soft depth, a coloured category label, one bold statement,
   quiet supporting copy and a large line drawing anchored bottom right.
   Card colours cycle through the logotype palette.
   ========================================================================== */

.view-id-info {
  /* The card grid replaces the standard panel look */
  background: transparent;
  border: 0;
  padding: 0;
}

.view-id-info .view-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: var(--space-6);
}

.view-id-info .views-row {
  display: flex;
}

.info-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 300px;
  padding: var(--space-8);
  border-radius: 24px;
  background: var(--color-surface-raised);
  border: var(--border-hairline);
  box-shadow: 0 12px 32px -18px rgba(34, 41, 59, 0.25);
  transition: transform var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out);
  overflow: hidden;
}

.info-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -20px rgba(34, 41, 59, 0.35);
}

/* Only rendered for users with edit access to the node - invisible to
   everyone else, so it never clutters the card for a general visitor. */
.info-tile__edit {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--color-ink-tertiary);
}

.info-tile__edit a {
  color: inherit;
  text-decoration: underline;
}

.info-tile__edit a:hover {
  color: var(--color-accent);
}

/* Drag handle - admin only (see info-tile__edit above). Own corner so
   it never overlaps the redigera-link. */
.info-tile__drag {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-ink-tertiary);
  border-radius: var(--radius-sm);
  cursor: grab;
  touch-action: none;
}

.info-tile__drag:hover {
  background: var(--color-canvas);
  color: var(--color-ink);
}

.info-tile__drag svg {
  width: 18px;
  height: 18px;
}

.info-tile--dragging {
  opacity: 0.5;
  cursor: grabbing;
}

/* Category label and artwork share the card's colour; the cards cycle
   through the logotype palette (readable ink variants) */
.info-tile__label,
.info-tile__art {
  color: var(--color-accent-strong);
}

.view-id-info .views-row:nth-child(6n + 2) .info-tile__label,
.view-id-info .views-row:nth-child(6n + 2) .info-tile__art { color: var(--dot-red); }
.view-id-info .views-row:nth-child(6n + 3) .info-tile__label,
.view-id-info .views-row:nth-child(6n + 3) .info-tile__art { color: var(--color-caution-ink); }
.view-id-info .views-row:nth-child(6n + 4) .info-tile__label,
.view-id-info .views-row:nth-child(6n + 4) .info-tile__art { color: var(--dot-navy); }
.view-id-info .views-row:nth-child(6n + 5) .info-tile__label,
.view-id-info .views-row:nth-child(6n + 5) .info-tile__art { color: var(--dot-plum); }
.view-id-info .views-row:nth-child(6n + 6) .info-tile__label,
.view-id-info .views-row:nth-child(6n + 6) .info-tile__art { color: var(--color-positive-ink); }

.info-tile__label {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  margin: 0 0 var(--space-3);
}

.info-tile__statement {
  font-size: var(--text-xl);
  line-height: var(--leading-tight);
  margin: 0;
  max-width: 17em;
}

.info-tile__text {
  margin: var(--space-4) 0 0;
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  color: var(--color-ink-secondary);
  /* Keep room for the artwork below */
  margin-bottom: var(--space-6);
}

/* Large line drawing, quietly parked bottom right */
.info-tile__art {
  margin-top: auto;
  align-self: flex-end;
  width: 84px;
  height: 84px;
  opacity: 0.85;
}

.info-tile__art svg {
  width: 100%;
  height: 100%;
}
