/**
 * @file
 * Steel subtheme flag styles — node and comment upvote/downvote.
 */

/* Discuss link + vote flags on one row */
.node__action-row {
  display: flex;
  align-items: center;
  margin: 1em 0;
}

/* Jump-to-comment-form icon link — far left of the action row */
.node__comment-form-link {
  display: inline-flex;
  align-items: center;
  margin-right: 16px;
  font-size: 1.1rem;
  color: var(--mt-color-primary);
  text-decoration: none;
  position: relative;
  top: -2px;
}
.node__comment-form-link:hover,
.node__comment-form-link:focus {
  color: var(--mt-color-secondary-light);
}

/* Discuss link: icon via LA pseudo-element */
.node__links {
  flex: 1;
}

.node__links a {
  align-items: center;
  text-decoration: none;
}

.node__links a::before {
  font-family: 'Line Awesome Free';
  font-weight: 900;
  content: "\f075";
  font-size: 1.1em;
  padding-right: 3px;
}

/* Node flag group: side by side, right-aligned */
.nodeflags {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  gap: 16px;
  margin: 0;
}

/* Flag link: icon + count side by side with breathing room */
.flag a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}
.flag.action-unflag a {
  color: var(--mt-color-dark);
}

.flag .flagcount {
  font-weight: 600;
  min-width: 1ch;
}

/* Prevent AJAX throbber from shifting flag link layout on click —
   same technique as the notify-me fix below, generalized to all flags
   (covers node + comment upvote/downvote). */
.flag {
  position: relative;
}
.flag .ajax-progress-throbber {
  position: absolute;
  top: 50%;
  left: 100%;
  transform: translateY(-50%);
  margin-left: 4px;
  white-space: nowrap;
}

/* Comment flags: side by side on the right */
.commentflags {
  display: flex;
  flex-direction: row;
  gap: 12px;
}

/* bcn/notify me flag */
.flag-notify-me {
  padding-top: 0;
  margin-bottom: .2rem;
}
.flag-notify-me .flagcount {
  display: none;
}
.flag-notify-me.action-unflag a::before {
  font-family: 'Line Awesome Free';
  font-weight: 900;
  content: "\f205";
  font-size: 1.1rem;
  color: var(--mt-color-dark);
  position: relative;
  top: 2px;
}
.flag-notify-me.action-flag a::before {
  font-family: 'Line Awesome Free';
  font-weight: 900;
  content: "\f204";
  font-size: 1.1rem;
  position: relative;
  top: 2px;
}
.flag-notify-me {
  position: relative;
}
.flag-notify-me .ajax-progress-throbber {
  position: absolute;
  top: 50%;
  left: 100%;
  transform: translateY(-50%);
  margin-left: 4px;
  white-space: nowrap;
}

/* user on hold */
.flag-on-hold .flagcount {
  display: none;
}
.flag-on-hold.action-unflag a::before {
  font-family: 'Line Awesome Free';
  font-weight: 900;
  content: "\f252";
  font-size: 1.2em;
}
.flag-on-hold.action-flag a::before {
  font-family: 'Line Awesome Free';
  font-weight: 900;
  content: "\f254";
  font-size: 1.2em;
}
