/* FILE: static/public.css: what visitors see (package 49, app/public_view.py): the public forum pages, the Movers
   sample, the members' "this is public" note, and Admin -> Site -> Public view. Theme colors only. */

/* ── the visitors' pages ── */
.pub-h1 { font-size: 22px; margin: 4px 0 8px; }
.pub-visitor { margin: 8px 0 14px; padding: 8px 12px; border: 1px dashed var(--border-hairline); border-radius: 10px;
  color: var(--text-muted); font-size: 14px; }
.pub-pages { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 12px 0; }
.pub-pg { min-width: 36px; padding: 5px 10px; border: 1px solid var(--border-hairline); border-radius: 999px; text-align: center;
  text-decoration: none; color: inherit; font-size: 14px; }
.pub-pg:hover { border-color: var(--accent); color: var(--accent); }
.pub-pg.is-on { background: var(--accent); border-color: var(--accent); color: var(--on-accent, #111); }
.pub-gap { color: var(--text-muted); }
.pub .fp-avatar-blank { display: grid; place-items: center; }

/* the Movers sample */
.pub-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 14px; }
.pub-tab { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border-hairline); text-decoration: none;
  color: var(--text-muted); font-size: 15px; }
.pub-tab:hover { color: var(--accent); border-color: var(--accent); }
.pub-tab.is-on { color: var(--accent); border-color: var(--accent); font-weight: 700; }
.pub-mv-wrap { display: flex; flex-wrap: wrap; gap: 20px; }
.pub-mv { flex: 1 1 320px; min-width: 0; }
.pub-mv-h { font-size: 16px; margin: 0 0 8px; }
.pub-mv-h.is-up, .pub-pct.is-up { color: var(--good, #4ade80); }
.pub-mv-h.is-down, .pub-pct.is-down { color: var(--danger, #ef4444); }
.pub-mv-table { width: 100%; }
.pub-mono { font-family: var(--font-mono, ui-monospace, monospace); white-space: nowrap; }
.pub-pct { font-weight: 700; }

/* members: a public forum or topic says so (base.html) */
.pub-note { margin: 0 0 12px; padding: 8px 12px; border: 1px solid var(--accent); border-radius: 10px; font-size: 14px;
  background: color-mix(in srgb, var(--accent) 10%, transparent); }
.pv-forum-note { margin: 10px 16px 0; padding: 8px 12px; border-radius: 10px; font-size: 14px;
  border: 1px solid var(--border-hairline); }

/* ── Admin -> Site -> Public view ── */
.pv { padding: 16px; max-width: 860px; }
.pv-title { margin: 0 0 2px; }
.pv-lead { margin: 0 0 12px; color: var(--text-muted); }
.pv-msg { margin: 0 0 12px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--accent); }
.pv-msg.is-bad { border-color: var(--danger); color: var(--danger); }
.pv-card { margin: 0 0 14px; padding: 14px 16px; border: 1px solid var(--border-hairline); border-radius: 14px;
  background: color-mix(in srgb, var(--bg-base, #0d0a08) 35%, transparent); }
.pv-card h4 { margin: 0 0 8px; font-size: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pv-card .muted-note { margin: 4px 0 8px; }
.pv-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pv-chip { padding: 4px 12px; border-radius: 999px; border: 1px solid var(--border-hairline); color: var(--text-muted);
  font-size: 14px; text-decoration: line-through; }
.pv-chip.is-on { color: var(--accent); border-color: var(--accent); text-decoration: none; font-weight: 600; }
.pv-count { font-size: 13px; font-weight: 400; padding: 1px 10px; border-radius: 999px; border: 1px solid var(--border-hairline); color: var(--text-muted); }
.pv-count.is-on { color: var(--accent); border-color: var(--accent); }

.pv-forums { list-style: none; margin: 8px 0 0; padding: 0; }
.pv-cat { margin: 12px 0 4px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
.pv-forum { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 8px 10px;
  margin: 0 0 6px calc(max(var(--pv-depth, 1) - 1, 0) * 18px); border: 1px solid var(--border-hairline); border-radius: 10px; }
.pv-forum.is-public { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.pv-forum-main { flex: 1 1 260px; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.pv-name { font-weight: 700; overflow-wrap: anywhere; }
.pv-state { font-size: 13px; color: var(--text-muted); white-space: nowrap; }
.pv-forum.is-public .pv-state { color: var(--accent); font-weight: 600; }
.pv-act { display: flex; gap: 6px; margin-left: auto; }
.pv-warn { flex-basis: 100%; font-size: 13px; color: var(--warn, #eab308); margin: 4px 0 0; }
.pv-note { margin: 0 !important; font-size: 12px; }
.pv-ask { margin: 10px 0; padding: 12px 14px; border: 2px solid var(--accent); border-radius: 12px; }
.pv-ask p { margin: 0 0 8px; }
.pv-ask-bar { display: flex; flex-wrap: wrap; gap: 8px; }
.pv-check { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.pv-check input { width: 18px; height: 18px; }
.pv-nums { display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 10px 0 0; }
.pv-nums label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.pv-nums input { width: 110px; }

@media (max-width: 600px) {
  .pv { padding: 10px; }
  .pv-act { margin-left: 0; }
}

/* ── The front page (splash.html): the site's own nav bar (package 49b) ──
   The same links and the same look as the header on every other page (design.css .site-nav-link): right after the
   site's name, quiet text in pills, the page you're on tinted. The front page names its colors its own way (--ash,
   --bone, --flare: app/main.py _splash_theme), so they're used here. */
.top .site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; min-width: 0; padding: 0 8px; }
.top .site-nav-link { font-family: var(--font-display, inherit); font-size: 13px; letter-spacing: .04em; line-height: 1.2;
  color: var(--ash, #a1a1aa); text-decoration: none; padding: 8px 14px; border-radius: 999px; white-space: nowrap;
  transition: background .15s, color .15s; }
.top .site-nav-link:hover { color: var(--bone, #e4e4e7); background: color-mix(in srgb, var(--bone, #e4e4e7) 8%, transparent); }
.top .site-nav-link.nav-active { color: var(--flare, #ea580c); background: color-mix(in srgb, var(--flare, #ea580c) 18%, transparent); }
@media (min-width: 641px) { .top { grid-template-columns: auto auto 1fr; } }
@media (max-width: 640px) { .top .site-nav { grid-column: 1 / -1; padding: 0; } }

/* ── The footer (package 49d): the front page's own (splash.html), on every page ── */
.site-footer { clear: both; color: color-mix(in srgb, var(--text-muted) 70%, transparent); font-size: 11px; text-align: center;
  padding: 30px 24px 40px; }
.site-footer a { color: var(--text-muted); text-decoration: underline; text-underline-offset: 3px; }
.site-footer a:hover { color: var(--text-main); }
/* (wide screens: the page was a full screen tall before its end, which left the footer just out of sight on a short
   page; this keeps it on screen there, and long pages are as they were) */
@media (min-width: 861px) and (min-height: 521px) { #app { min-height: calc(100vh - 220px); } }
/* (49e: the question sits in the list, under its forum) */
li.pv-ask { list-style: none; margin: 0 0 10px calc(max(var(--pv-depth, 1) - 1, 0) * 18px); scroll-margin: 120px; }
