/* The public profile (templates/public.html, static/public.js): the app's theme without the app
   around it -- no sidebar, no search, nothing to edit. Tiles and set cards reuse the app's own
   classes, so a missing card is greyed out exactly as in the set overview. */
body.public-page { min-height:100vh;margin:0;background:var(--bg);color:var(--ink); }
.public-topbar { display:flex;align-items:center;max-width:1280px;margin:0 auto;padding:18px 24px 0; }
.public-brand { display:inline-flex;align-items:center;gap:8px;color:var(--ink);font:800 15px var(--font-ui,"Manrope",sans-serif);letter-spacing:.06em; }
.public-brand b { font-weight:800; }
.public-brand .brand-symbol { width:26px;height:26px;color:var(--mt-gold,var(--brand)); }
body.public-page .public-content { max-width:1280px;margin:0 auto;padding:22px 24px 64px; }
.public-head { display:flex;align-items:flex-end;gap:16px;margin-bottom:16px; }
.public-head h1 { margin:4px 0 6px;font-size:38px;font-weight:600; }
.public-head p { margin:0;color:var(--muted);font-size:13px; }
/* The theme stretches every .segmented across the page; the game switch only needs its buttons. */
body.public-page .content .public-games { display:inline-flex;flex-wrap:wrap;gap:4px;width:auto;max-width:100%;margin-bottom:22px;padding:4px; }
.public-games button { display:inline-flex;align-items:center;gap:7px;min-height:36px;padding:0 14px;font-weight:700; }
.public-games img { width:18px;height:18px;object-fit:contain; }
.public-toolbar { margin:0 0 12px; }
.public-toolbar h2 { margin:0;font-size:20px; }
.public-set-grid { --set-cols:3; }
.public-progress { height:5px;margin:10px 0 2px;overflow:hidden;border-radius:999px;background:var(--surface-2); }
.public-progress i { display:block;width:var(--done);height:100%;border-radius:inherit;background:var(--mt-gold,var(--brand)); }
.public-set-head { display:flex;flex-wrap:wrap;align-items:center;gap:12px 16px;margin:4px 0 18px; }
.public-set-head h2 { margin:0 0 4px;font-size:24px; }
.public-set-head h2 span { margin-right:6px;color:var(--mt-gold,var(--brand)); }
.public-set-head p { margin:0;color:var(--muted);font-size:12px; }
.public-set-head .public-filter { flex:0 0 auto;margin-left:auto; }
.public-back { min-height:36px; }
.public-card-grid { --card-size:170px; }
.public-card-grid .card-image-wrap { cursor:default; }
.public-card-grid .variant-chips { flex-wrap:wrap; }
.public-missing { margin-top:60px; }
@media (max-width:760px) {
  .public-topbar { padding:14px 16px 0; }
  body.public-page .public-content { padding:16px 16px 48px; }
  .public-head h1 { font-size:30px; }
  .public-set-grid { --set-cols:1; }
  .public-set-head .public-filter { flex-basis:100%;margin-left:0; }
  .public-card-grid { --card-size:110px; }
}

/* The app's type: display face for headings and the brand, as in the sidebar. */
body.public-page .public-head h1,body.public-page .public-set-head h2,body.public-page .public-toolbar h2 { font-family:var(--font-display,"Cormorant Garamond",serif);font-weight:600;letter-spacing:-.01em; }
body.public-page .public-brand { font-family:var(--font-display,"Cormorant Garamond",serif);font-weight:600;letter-spacing:.14em; }
body.public-page .public-brand b { font-weight:700; }
@media (max-width:760px) {
  body.public-page .public-content { padding-top:8px; }
  body.public-page .public-head h1 { font-size:32px; }
}

body.public-page .public-game-logo { display:grid;place-items:center;width:26px;height:26px;border-radius:7px;background:#22261f; }
body.public-page .public-games .public-game-logo img { width:20px;height:20px; }

/* Game logos big enough to recognise, on a tile that stands out in both themes. */
body.public-page .public-game-logo { width:30px;height:30px;border-radius:8px;background:#22261f;box-shadow:inset 0 0 0 1px rgba(255,255,255,.12); }
body.public-page .public-games .public-game-logo img { width:24px;height:24px; }
