/* Member area styles.
 *
 * Inherits the site tokens from css/theme.css (or the page's inline copy), so the
 * member pages look like the rest of the site instead of a bolt-on. Token
 * fallbacks are declared here so the file still renders if it loads alone.
 */

:root {
  --osh-bg: var(--bg, #121926);
  --osh-card: var(--bg-card, #0f1723);
  --osh-nav: var(--bg-nav, #0c1526);
  --osh-accent: var(--teal, #f2b344);
  --osh-accent-faint: var(--teal-faint, rgba(242, 179, 68, 0.10));
  --osh-border: var(--border, rgba(242, 179, 68, 0.12));
  --osh-border-md: var(--border-md, rgba(242, 179, 68, 0.22));
  --osh-text: var(--text, #e8e6e0);
  --osh-muted: var(--text-muted, #a9b8ce);
  --osh-dim: var(--text-dim, #a9b8ce);
  --osh-radius: var(--radius, 14px);
  --osh-radius-sm: var(--radius-sm, 8px);
}

/* --------------------------------------------------------------- save chip */

.osh-chip {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 9996;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--osh-text);
  background: var(--osh-card);
  border: 1px solid var(--osh-border-md);
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.18s, border-color 0.18s, background 0.18s;
}
.osh-chip:hover { transform: translateY(-2px); border-color: var(--osh-accent); }
.osh-chip:focus-visible { outline: 2px solid var(--osh-accent); outline-offset: 2px; }
.osh-chip[data-state="saved"] { border-color: var(--osh-accent); background: var(--osh-accent-faint); }
.osh-chip[data-state="saved"] .osh-chip-star { color: var(--osh-accent); }
.osh-chip-star { font-size: 1rem; line-height: 1; color: var(--osh-muted); }
.osh-chip[disabled] { opacity: 0.6; cursor: progress; }

/* ------------------------------------------------------------ member shell */

.osh-wrap { max-width: 1080px; margin: 0 auto; padding: 7rem 1.25rem 5rem; }
.osh-head { margin-bottom: 2rem; }
.osh-eyebrow {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--osh-accent);
  margin-bottom: 0.6rem;
}
.osh-h1 {
  font-size: clamp(1.9rem, 5vw, 2.9rem);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.6rem;
}
.osh-lede { color: var(--osh-dim); max-width: 62ch; line-height: 1.65; }

/* Tab strip: hairline rules, not boxes, in the house style. */
.osh-tabs { display: flex; flex-wrap: wrap; gap: 0.25rem; border-bottom: 1px solid var(--osh-border); margin: 2rem 0 1.5rem; }
.osh-tab {
  appearance: none;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 0.7rem 1rem;
  color: var(--osh-muted);
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.18s, border-color 0.18s;
}
.osh-tab:hover { color: var(--osh-text); }
.osh-tab[aria-selected="true"] { color: var(--osh-accent); border-bottom-color: var(--osh-accent); }
.osh-tab:focus-visible { outline: 2px solid var(--osh-accent); outline-offset: -2px; }
.osh-panel[hidden] { display: none; }

/* ---------------------------------------------------------------- lists */

.osh-group-label {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--osh-muted);
  margin: 2rem 0 0.85rem;
}
.osh-list { list-style: none; display: grid; gap: 0.6rem; }
.osh-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem 1rem;
  align-items: center;
  padding: 0.95rem 1.1rem;
  background: var(--osh-card);
  border: 1px solid var(--osh-border);
  border-radius: var(--osh-radius-sm);
}
.osh-row-name { font-weight: 600; }
.osh-row-name a { color: var(--osh-text); text-decoration: none; border-bottom: 1px solid var(--osh-border-md); }
.osh-row-name a:hover { border-bottom-color: var(--osh-accent); color: var(--osh-accent); }
.osh-row-note { grid-column: 1 / -1; color: var(--osh-muted); font-size: 0.9rem; line-height: 1.55; }
.osh-row-actions { display: flex; align-items: center; gap: 0.5rem; }

.osh-tag {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size:12px;
  letter-spacing:.08em;
  text-transform: uppercase;
  color: var(--osh-muted);
  border: 1px solid var(--osh-border);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  white-space: nowrap;
}
.osh-tag[data-sweeps="true"] { color: var(--osh-accent); border-color: var(--osh-border-md); }

/* --------------------------------------------------------------- controls */

.osh-field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; }
.osh-label {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size:12px;
  letter-spacing:.08em;
  text-transform: uppercase;
  color: var(--osh-muted);
}
.osh-input, .osh-select, .osh-textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  color: var(--osh-text);
  background: var(--osh-bg);
  border: 1px solid var(--osh-border-md);
  border-radius: var(--osh-radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
}
.osh-textarea { min-height: 4.5rem; resize: vertical; }
.osh-input:focus, .osh-select:focus, .osh-textarea:focus { outline: 2px solid var(--osh-accent); outline-offset: 1px; border-color: var(--osh-accent); }

.osh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.85rem 1.25rem;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--lime-text, #0b111c);
  background: var(--osh-accent);
  border: 1px solid var(--osh-accent);
  border-radius: var(--osh-radius-sm);
  cursor: pointer;
  transition: filter 0.18s, transform 0.18s;
}
.osh-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.osh-btn:focus-visible { outline: 2px solid var(--osh-text); outline-offset: 2px; }
.osh-btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; }
.osh-btn-ghost { color: var(--osh-text); background: transparent; border-color: var(--osh-border-md); }
.osh-btn-ghost:hover { border-color: var(--osh-accent); color: var(--osh-accent); }
.osh-btn-sm { width: auto; padding: 0.45rem 0.8rem; font-size:12px; }

.osh-card {
  background: var(--osh-card);
  border: 1px solid var(--osh-border);
  border-radius: var(--osh-radius);
  padding: 1.75rem;
}
/* Left aligned, not centred: the page heading and the card read as one
   column, matching how every other page on the site is laid out. */
.osh-card-narrow { max-width: 460px; }
.osh-stack { display: flex; flex-direction: column; gap: 1rem; }
.osh-rule { height: 1px; background: var(--osh-border); margin: 1.5rem 0; }

.osh-msg { font-size: 0.9rem; line-height: 1.5; margin-top: 0.75rem; }
.osh-msg[data-kind="error"] { color: #fca5a5; }
.osh-msg[data-kind="ok"] { color: var(--osh-accent); }
.osh-empty { color: var(--osh-muted); padding: 1.5rem; text-align: center; border: 1px dashed var(--osh-border-md); border-radius: var(--osh-radius-sm); }
.osh-loading { color: var(--osh-muted); font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 0.85rem; }
.osh-signed-in-as { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 0.8rem; color: var(--osh-muted); }
.osh-signed-in-as strong { color: var(--osh-text); font-weight: 600; }

/* The tracker row stacks its form fields under the name on narrow screens. */
@media (max-width: 640px) {
  .osh-wrap { padding-top: 6rem; }
  .osh-row { grid-template-columns: 1fr; }
  .osh-row-actions { justify-content: flex-start; flex-wrap: wrap; }
  .osh-chip { right: 0.75rem; bottom: 0.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  .osh-chip, .osh-btn, .osh-tab { transition: none; }
  .osh-chip:hover, .osh-btn:hover { transform: none; }
}

/* ux-blockers: members base background */
html{background:var(--osh-bg,#121926);}
