/**
 * pages/settings.css
 * Settings page rows.
 *
 * settings.html has linked this file since it was written, but the file itself
 * had never existed in the repo — no `.stt-*` rule was defined anywhere, so the
 * whole page rendered with browser defaults. Found 2026-07-29 while porting
 * Settings to the native app, where there was no styled reference to copy.
 *
 * Written to match the conventions already used by the other subpages
 * (css/subpage.css, css/components.css) rather than inventing a new look:
 * grouped card, hairline dividers, muted sub-labels, gold accents.
 */

/* ── Grouped rows ─────────────────────────────────────────────────────────── */
.stt-group {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 4px;
}

.stt-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid var(--border);
}
.stt-row:last-child { border-bottom: none; }

/* Only rows that do something get affordances. */
.stt-action {
  cursor: pointer;
  background: none;
  border-left: none;
  border-right: none;
  border-top: none;
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
  transition: background var(--transition);
}
a.stt-action { text-decoration: none; }
.stt-action:hover { background: var(--card-raised); }
.stt-action[disabled] { cursor: default; }
.stt-action[disabled]:hover { background: none; }
/* Inset ring: .stt-group clips overflow (for its rounded corners), which
   would cut an outer focus ring off at the group's edge. */
.stt-action:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--gold-light);
}

.stt-row-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.stt-icon {
  flex-shrink: 0;
  width: 22px;
  font-size: 18px;
  line-height: 1;
  text-align: center;
}

/* Row text lives in <span>s (buttons may only hold phrasing content), so the
   stacked label/sub pair needs block display. */
.stt-text,
.stt-label,
.stt-sub { display: block; }

.stt-label {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}

.stt-sub {
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
  margin-top: 2px;
}

/* Membership: the plan itself is the row's main text. */
.stt-plan-name {
  font-family: var(--font-condensed);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 1.15;
}
.stt-plan-name.is-pro { color: var(--gold); }

.stt-value {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
}

.stt-danger:hover { background: rgba(224, 82, 82, 0.08); }

/* Notification sub-toggles read as children of the row above them. Dimmed
   and inert until the master "Enable Notifications" row is on (JS toggles
   .enabled on these per settings.js's tap(), which already blocks their
   clicks while the master is off — this makes that gating visible instead
   of the toggles sitting gold/"on" with no indication they're inactive). */
.notif-child .stt-label { font-weight: 400; }
.notif-child {
  padding-left: 26px;
  opacity: 0.4;
  pointer-events: none;
  transition: opacity 0.2s;
}
.notif-child.enabled {
  opacity: 1;
  pointer-events: auto;
}

/* ── App info footer ──────────────────────────────────────────────────────── */
.stt-app-info {
  text-align: center;
  margin-top: 32px;
  padding-bottom: 8px;
}

.stt-app-name {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 3px;
  color: var(--muted);
}

.stt-app-version {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}
