/* -------------------------------------------------------- */
/* 🔹 Settings Row                                          */
/* -------------------------------------------------------- */
/* Icon tile, title and trailing chevron — stacked inside a  */
/* .card--settings, separated by a hairline divider          */
/* Mirrors settings_row.dart                                 */

.settings-row {
  display: flex;
  align-items: center;
  position: relative;
  min-height: 50px;
  padding: var(--settings-row-padding);
  color: var(--color-on-surface);
  text-decoration: none;
}

.settings-row + .settings-row {
  border-top: 1px solid var(--color-divider);
}

.settings-row .icon-tile {
  margin-right: var(--space-m);
}

.settings-row__title {
  flex: 1;
  min-width: 0;
  font-size: var(--text-body-large);
  line-height: var(--text-body-large-height);
}

.settings-row__chevron {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-left: var(--space-s);
  color: var(--color-info);
}


/* -------------------------------------------------------- */
/* 🔹 Press Highlight                                       */
/* -------------------------------------------------------- */
/* Same overlay as the tappable card; the first and last     */
/* rows follow the card's rounded corners                    */

a.settings-row::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-press-highlight);
  opacity: 0;
  transition: opacity 0.15s ease;
  pointer-events: none;
}

a.settings-row:first-child::after {
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
}

a.settings-row:last-child::after {
  border-bottom-left-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
}

a.settings-row:hover::after {
  opacity: 1;
}

a.settings-row:active::after {
  opacity: 1;
  background: var(--color-press-active);
  transition-duration: 0.01s;
}
