/*  BUILD YOUR NEXT 2.0 — save-state indicator + tier banner styling
 *  Loaded site-wide after design-system.css. Uses only design-system tokens so
 *  both themes track automatically. No animation on the indicator (truthful,
 *  calm — a status line, not an attention-grab). */

/* ── Save-state indicator: a small mono chip in the dateline ── */
.savestate {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;      /* push the cluster right, like .dateline-account does */
  margin-right: 14px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mut);
  white-space: nowrap;
}
/* When the indicator is present it owns the auto-margin; the account link then
   only needs its own right gap (its own margin-left:auto becomes a no-op here
   because a preceding sibling already consumed the free space). */
.savestate + .dateline-account { margin-left: 0; }

.savestate-dot {
  color: var(--red);
  font-size: 8px;
  line-height: 1;
}
.savestate-amber { color: var(--ink2); }
.savestate-amber .savestate-text { border-bottom: 1px dotted var(--red); padding-bottom: 1px; }

@media (max-width: 640px) {
  /* On narrow screens the dateline is tight; keep the indicator but let it wrap
     under the date if needed rather than crushing the toggle. */
  .savestate { font-size: 9.5px; margin-right: 10px; letter-spacing: .05em; }
}

/* ── Tier banner: an inline ruled card at the top of a hub/section page ── */
.savestate-banner-wrap { margin-top: 4px; }

.savestate-banner {
  position: relative;
  border: 1px solid var(--rule);
  border-left: 3px solid var(--red);
  background: var(--paper2);
  padding: 18px 22px 16px;
  margin-top: 18px;
  max-width: 760px;
}
.savestate-banner .ssb-title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -.01em;
  color: var(--ink);
  margin: 0 0 6px;
  padding-right: 28px;   /* clear the ✕ */
}
.savestate-banner .ssb-body {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink2);
  margin: 0 0 14px;
  max-width: 620px;
}
.savestate-banner .ssb-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}
.savestate-banner .ssb-primary {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 20px;
  border: none;
  cursor: pointer;
  transition: .2s;
}
.savestate-banner .ssb-primary:hover { background: var(--red); color: #fff; }
.savestate-banner .ssb-notnow,
.savestate-banner .ssb-never {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12.5px;
  background: none;
  border: none;
  color: var(--mut);
  cursor: pointer;
  padding: 4px 0;
  transition: .2s;
}
.savestate-banner .ssb-notnow:hover,
.savestate-banner .ssb-never:hover { color: var(--red); }
.savestate-banner .ssb-sep { color: var(--faint); font-size: 12px; }
.savestate-banner .ssb-x {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  color: var(--faint);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 4px;
  transition: .2s;
}
.savestate-banner .ssb-x:hover { color: var(--red); }

@media (max-width: 640px) {
  .savestate-banner { padding: 16px 18px 14px; }
  .savestate-banner .ssb-title { font-size: 15px; }
}
