/* Numi Collect: albums laid out like a classic coin board. The page follows the site's light or dark look;
   the board itself is always the album's own dark blue, as a real album is. */
.numi-collect {
  --nc-ink: var(--ink, #0d1b3d);
  --nc-muted: var(--muted, #5b6782);
  --nc-line: var(--line, #d9e2f2);
  --nc-card: var(--card, #ffffff);
  --nc-soft: var(--navy-soft, #e3ecfc);
  --nc-accent: var(--navy, #0047ab);
  --nc-accent-ink: #ffffff;
  --nc-board: #1f3566;
  --nc-board-edge: #182a52;
  --nc-print: #e9dcbe;
  --nc-hole: #070d1e;
  --nc-key: #f2c46d;
  --nc-serif: var(--serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif);
  --nc-sans: var(--sans, "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif);
  font-family: var(--nc-sans);
  color: var(--nc-ink);
  max-width: 1180px;
  margin: 0 auto;
  box-sizing: border-box;
}
.numi-collect *, .numi-collect *::before, .numi-collect *::after { box-sizing: border-box; }
.numi-collect button { font: inherit; }
/* Fields shown only for some choices (cert number, CAC) use the hidden attribute; .nc-field's display: flex mustn't undo it. */
.numi-collect [hidden], .nc-dialog [hidden] { display: none !important; }
.nc-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 20px; }
.nc-brand { margin: 0; font-family: var(--nc-serif); font-size: clamp(28px, 4vw, 38px); font-weight: 700; letter-spacing: -.01em; }
.nc-brand span { color: var(--nc-accent); }
.nc-sub { margin: 4px 0 0; color: var(--nc-muted); font-size: 15px; }
.nc-layout { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.nc-side { flex: 1 1 240px; max-width: 300px; display: flex; flex-direction: column; gap: 10px; }
.nc-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.nc-list { display: flex; flex-direction: column; gap: 10px; }
@media (max-width: 860px) {
  .nc-side { flex-basis: 100%; max-width: 100%; }
  .nc-list { flex-direction: row; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
  .nc-list .nc-album { flex: 0 0 210px; scroll-snap-align: start; }
}
.nc-label { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--nc-muted); }
.nc-album { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; width: 100%; padding: 10px 14px; text-align: left; border-radius: 12px; border: 1px solid var(--nc-line); background: var(--nc-card); color: var(--nc-ink); cursor: pointer; }
.nc-album:hover { border-color: var(--nc-accent); }
.nc-album[aria-current="true"] { border: 2px solid var(--nc-accent); padding: 9px 13px; background: var(--nc-soft); }
.nc-album b { display: block; font-size: 15px; }
.nc-album small { display: block; margin-top: 2px; color: var(--nc-muted); font-size: 12px; }
.nc-pct { font-size: 13px; font-weight: 600; color: var(--nc-accent); white-space: nowrap; }
.nc-note { padding: 12px 14px; border: 1px dashed var(--nc-line); border-radius: 12px; font-size: 13px; line-height: 1.5; color: var(--nc-muted); }
.nc-note a { color: var(--nc-accent); }
.nc-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.nc-title { margin: 0; font-family: var(--nc-serif); font-size: clamp(24px, 3vw, 32px); font-weight: 700; }
.nc-meta { margin-top: 4px; font-size: 14px; color: var(--nc-muted); }
.nc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 18px; border-radius: 22px; border: 1px solid var(--nc-line); background: transparent; color: var(--nc-ink); font-size: 14px; font-weight: 500; text-decoration: none; cursor: pointer; }
.nc-btn:hover { border-color: var(--nc-accent); }
.nc-btn.nc-primary { border-color: var(--nc-accent); background: var(--nc-accent); color: var(--nc-accent-ink); font-weight: 600; }
.nc-btn.nc-danger { color: #b0352a; border-color: rgba(176,53,42,.4); }
.nc-btn[disabled] { opacity: .55; cursor: default; }
.nc-progress { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: 13px; color: var(--nc-muted); }
.nc-bar { flex: 1 1 200px; height: 8px; border-radius: 4px; background: var(--nc-soft); overflow: hidden; }
.nc-bar i { display: block; height: 100%; background: var(--nc-accent); border-radius: 4px; }
.nc-progress strong { color: var(--nc-ink); }
.nc-banner { padding: 14px 16px; border-radius: 12px; background: var(--nc-soft); font-size: 14px; line-height: 1.5; }
.nc-banner a { color: var(--nc-accent); font-weight: 600; }

/* The board */
.nc-board { background: var(--nc-board); border-radius: 10px; padding: 26px clamp(14px, 3vw, 34px) 22px; box-shadow: 0 12px 30px rgba(7,13,30,.35), inset 0 0 0 1px rgba(255,255,255,.05), inset 0 0 0 6px var(--nc-board-edge); color: var(--nc-print); }
.nc-board-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 16px; padding-bottom: 10px; margin-bottom: 18px; border-bottom: 1px solid rgba(233,220,190,.25); }
.nc-board-title { font-family: var(--nc-serif); font-size: clamp(14px, 1.8vw, 18px); letter-spacing: .14em; text-transform: uppercase; }
.nc-holes { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); row-gap: 18px; column-gap: 8px; }
@media (max-width: 900px) { .nc-holes { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 620px) { .nc-holes { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.nc-hole { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 4px 0; border: 0; background: transparent; color: var(--nc-print); cursor: pointer; border-radius: 10px; }
.nc-hole:focus-visible { outline: 2px solid var(--nc-key); outline-offset: 2px; }
.nc-well { position: relative; width: min(76px, 100%); aspect-ratio: 1; border-radius: 50%; background: var(--nc-hole); box-shadow: inset 0 3px 6px rgba(0,0,0,.85), inset 0 -1px 0 rgba(255,255,255,.06), 0 1px 0 rgba(255,255,255,.08); }
.nc-hole:hover .nc-well { box-shadow: inset 0 3px 6px rgba(0,0,0,.85), 0 0 0 2px rgba(233,220,190,.35); }
.nc-coin { position: absolute; inset: 6%; border-radius: 50%; overflow: hidden; background: radial-gradient(circle at 35% 30%, #e7a874 0%, #b8693a 45%, #7a3f1e 100%); box-shadow: 0 2px 3px rgba(0,0,0,.5); }
.nc-coin img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nc-coin.nc-stock img { filter: saturate(.8) brightness(.92); }
.nc-stockmark { position: absolute; right: -2px; bottom: -2px; padding: 0 4px; border-radius: 4px; background: rgba(7,13,30,.85); color: var(--nc-print); font-size: 8px; letter-spacing: .06em; text-transform: uppercase; }
.nc-name { font-size: 12px; font-weight: 600; letter-spacing: .03em; text-align: center; line-height: 1.25; }
.nc-keytag { font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--nc-key); }
.nc-tag { padding: 1px 6px; border-radius: 4px; font-size: 9px; letter-spacing: .03em; white-space: nowrap; }
.nc-tag.nc-slab { background: var(--nc-print); color: var(--nc-board); font-weight: 700; }
.nc-tag.nc-raw { border: 1px solid rgba(233,220,190,.45); }
.nc-board-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 18px; font-size: 12px; }
.nc-board-foot .nc-hint { opacity: .65; }
.nc-pager { display: flex; align-items: center; gap: 8px; }
.nc-pager button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(233,220,190,.35); background: transparent; color: var(--nc-print); font-size: 18px; cursor: pointer; }
.nc-pager button[disabled] { opacity: .35; cursor: default; }
.nc-credit { font-size: 11px; color: var(--nc-muted); }
.nc-credit a { color: inherit; }

/* Signed out */
.nc-welcome { display: flex; flex-direction: column; gap: 14px; padding: 24px; border-radius: 14px; border: 1px solid var(--nc-line); background: var(--nc-card); }
.nc-welcome p { margin: 0; line-height: 1.55; max-width: 62ch; }
.nc-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* The coin dialog */
.nc-dialog { width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 24px); padding: 0; border: 0; border-radius: 16px; background: var(--nc-card); color: var(--nc-ink); box-shadow: 0 24px 60px rgba(7,13,30,.45); }
.nc-dialog::backdrop { background: rgba(7,13,30,.55); }
.nc-form { display: flex; flex-direction: column; gap: 14px; padding: 22px; }
.nc-form h2 { margin: 0; font-family: var(--nc-serif); font-size: 24px; }
.nc-form .nc-meta { margin-top: -8px; }
.nc-field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--nc-muted); }
.nc-field input, .nc-field textarea, .nc-field select { min-height: 44px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--nc-line); background: transparent; color: var(--nc-ink); font: 15px var(--nc-sans); }
.nc-field textarea { min-height: 72px; resize: vertical; }
.nc-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 520px) { .nc-grid2 { grid-template-columns: minmax(0, 1fr); } }
.nc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.nc-chip { min-height: 36px; padding: 0 14px; border-radius: 18px; border: 1px solid var(--nc-line); background: transparent; color: var(--nc-ink); font-size: 14px; cursor: pointer; }
.nc-chip[aria-checked="true"] { border-color: var(--nc-accent); background: var(--nc-accent); color: var(--nc-accent-ink); font-weight: 600; }
.nc-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.nc-photo { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px; border: 1px dashed var(--nc-line); border-radius: 12px; font-size: 13px; color: var(--nc-muted); cursor: pointer; text-align: center; }
.nc-photo .nc-preview { width: 96px; height: 96px; border: 0; padding: 0; border-radius: 50%; background: var(--nc-soft) center/cover no-repeat; cursor: zoom-in; }
.nc-photo .nc-preview:disabled { cursor: default; }
.nc-photo .nc-pick { position: relative; cursor: pointer; color: var(--nc-accent, inherit); text-decoration: underline; text-underline-offset: 3px; }
.nc-photo input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.nc-viewer { width: min(760px, calc(100vw - 24px)); padding: 16px; }
.nc-viewer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.nc-viewer .nc-chips { margin-bottom: 10px; }
.nc-viewer .nc-chip[aria-selected="true"] { background: var(--nc-navy, #0047ab); color: #fff; border-color: transparent; }
.nc-viewer-img { display: block; width: 100%; max-height: calc(100vh - 180px); object-fit: contain; border-radius: 12px; background: #070d1e; }
.nc-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 4px; }
.nc-actions > div { display: flex; flex-wrap: wrap; gap: 10px; }
.nc-error { color: #b0352a; font-size: 14px; }
.nc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* The "Add to album" card in NUMI's chat */
.numi-collect-card { margin-top: 10px; padding: 12px; border-radius: 12px; background: #1f3566; color: #e9dcbe; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.numi-collect-card b { color: #ffffff; }
.numi-collect-card .nc-chips { gap: 6px; }
.numi-collect-card .nc-chip { border-color: rgba(233,220,190,.45); color: #e9dcbe; min-height: 34px; }
.numi-collect-card .nc-chip[aria-checked="true"] { background: #e9dcbe; color: #1f3566; border-color: #e9dcbe; }
.numi-collect-card .nc-btn { border-color: rgba(233,220,190,.45); color: #e9dcbe; min-height: 40px; }
.numi-collect-card .nc-btn.nc-primary { background: #e9dcbe; color: #1f3566; border-color: #e9dcbe; }
.numi-collect-card a { color: #ffffff; }

/* The albums page: the board needs the full width, and the page's own title would repeat "Numi Collect". */
.has-numi-collect .page-head { display: none; }
.has-numi-collect .prose { max-width: none; padding-top: clamp(28px, 4vw, 52px); }

/* Share dialog */
.nc-share { width: min(560px, calc(100vw - 24px)); padding: 20px; }
.nc-share-body { display: flex; flex-direction: column; gap: 14px; }
.nc-share .nc-title { margin: 0; font-size: 22px; }
.nc-share-link { display: flex; gap: 8px; }
.nc-share-link input { flex: 1; min-width: 0; min-height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--nc-line); background: transparent; color: var(--nc-ink); font: 14px var(--nc-sans); }
.nc-check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.nc-check input { margin-top: 3px; width: 18px; height: 18px; }
.nc-check span { display: flex; flex-direction: column; gap: 2px; color: var(--nc-ink); }
.nc-check small { color: var(--nc-muted); font-size: 13px; }
.nc-share a.nc-chip { text-decoration: none; color: var(--nc-ink); }
.nc-btn.nc-danger { color: #c0392b; border-color: rgba(192,57,43,.45); }
