/**
 * TFM Line Writing – links from other pages
 * /wp-content/themes/blocksy-child/css/tfm-line-writing-square.css
 *
 * Loaded with js/tfm-line-writing-square.js on the Town Square hub and on
 * mantra pages (php/tfm-line-writing.php, section 1b).
 */

/* Hub tile: "Your lines: …" (Text widget, class tfm-sq-lw-count).
   Same look as "Your sounds" in css/tfm-townsquare.css. */
.tfm-sq-lw-count,
.tfm-sq-lw-count * {
  font-family: 'Jost', sans-serif !important;
  font-size: .82rem !important;
  color: var(--muted, #b6afc7) !important;
}
.tfm-sq-lw-count.is-empty {
  display: none !important;
}

/* Mantra tiles: "Write lines" next to "Repeat". The link takes over the
   look of the repeat button (class tfm-sq-mantra-repeat). */
.tfm-sq-mantra-grid .tfm-sq-mantra-actions {
  align-self: flex-end;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.tfm-sq-mantra-grid .tfm-sq-mantra-actions .tfm-sq-mantra-repeat {
  align-self: auto;
}
.tfm-sq-mantra-grid a.tfm-sq-mantra-lines,
.tfm-sq-mantra-grid a.tfm-sq-mantra-lines:hover {
  text-decoration: none !important;
}
.tfm-sq-mantra-grid a.tfm-sq-mantra-lines {
  /* quieter than "Repeat": outline only */
  background: transparent !important;
}
.tfm-sq-mantra-grid a.tfm-sq-mantra-lines:hover {
  background: color-mix(in srgb, var(--area-accent) 14%, transparent) !important;
}
