/* Discover (webpages/discover.js): other players' profiles as cards (components/garam_profile_card.js).
   The page's frame and title are the site's (garam_checklist.css). Its own tokens, light and dark. */
.gd-page {
    --gd-site-accent: var(--garam-theme-ui-accent, var(--garam-theme-accent, #087cce));
    --gd-ink: #142438; --gd-muted: #617489; --gd-panel: #fff; --gd-border: #d9e6f0; --gd-raised: #f3f7fa; --gd-on-accent: #fff;
}
html[data-garam-mode="dark"] body .gd-page {
    --gd-site-accent: var(--garam-theme-ui-accent, #b4b6c0);
    --gd-ink: var(--garam-dark-text, #f3f4f7); --gd-muted: var(--garam-dark-muted, #a5a8b2);
    --gd-panel: var(--garam-dark-panel, #23242a); --gd-border: var(--garam-dark-border, #45464d); --gd-raised: var(--garam-dark-raised, #34353c);
    /* The accent is near-white in the dark themes: dark ink on what it fills. */
    --gd-on-accent: #0c0c0e;
}
.gd-page *, .gd-page *::before { box-sizing: border-box; }
.gd-page [hidden] { display: none !important; }

.gd-tab:focus-visible, .gd-card:focus-visible { outline: 2px solid var(--gd-site-accent); outline-offset: 2px; }

/* The title: the Marketplace's (garam_marketplace.css, .marketplace-hero), the name on the left and
   what the page is for on the right; the frame and dots stay the checklist's (.checklist-hero).
   The same as the Stores list's (garam_stores.css, .gs-hero). */
.gd-page .gd-hero { display: flex; align-items: center; justify-content: space-between; gap: clamp(18px, 2.5vw, 36px); text-align: left; }
.gd-page .gd-hero .checklist-title { flex: none; justify-content: flex-start; }
.gd-page .gd-hero .checklist-instruction { margin: 0; max-width: 560px; text-align: right; line-height: 1.5; }
/* Your profile: the Marketplace's "Sell cards" panel (garam_auctions.css, .auction-start-panel and
   .auction-primary-button), light and dark. */
.gd-cta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding: 21px 24px; border-radius: 22px;
    background: #fff; border: 1px solid var(--garam-c-bbdef5, #bbdef5); box-shadow: 0 12px 27px rgba(21,99,153,.11); }
.gd-cta-copy { flex: 1; min-width: 220px; }
.gd-cta-copy h2 { margin: 0 0 5px; font-size: clamp(16px, 2vw, 20px); font-weight: 700; letter-spacing: -.025em; color: var(--gd-ink); }
.gd-cta-copy p { margin: 0; font-size: 13px; color: var(--gd-muted); }
.gd-cta-button { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; min-width: 95px; min-height: 42px; padding: 9px 18px;
    border-radius: 13px; border: 1px solid var(--garam-c-0764a6, #0764a6); background: var(--garam-c-087cce, #087cce); color: #fff;
    box-shadow: 0 4px 0 var(--garam-c-075a91, #075a91); font: inherit; font-size: 13px; font-weight: 600; text-decoration: none; cursor: pointer;
    transition: filter .15s ease, transform .15s ease; }
.gd-cta-button:hover:not(:disabled) { filter: brightness(.95); }
.gd-cta-button:active:not(:disabled) { transform: translateY(1px); }
.gd-cta-button:focus-visible { outline: 3px solid var(--garam-c-178fda, #178fda); outline-offset: 2px; }
.gd-cta-button:disabled { opacity: .45; cursor: default; }
html[data-garam-mode="dark"] body .gd-cta { background: var(--garam-dark-panel, #23242a); border-color: var(--garam-dark-border, #45464d); }
html[data-garam-mode="dark"] body .gd-cta-button { background: var(--garam-dark-hover, #3a3c44); border-color: var(--garam-theme-ui-accent, #b4b6c0);
    color: var(--garam-dark-text, #f3f4f7); box-shadow: none; }
/* Above the profiles: how many (the Marketplace's count, #marketCount) and the tabs. */
.gd-list-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; min-height: 44px; margin: 17px 0 0; }
.gd-total { margin: 0; color: var(--garam-c-096dae, #096dae); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
html[data-garam-mode="dark"] body .gd-total { color: var(--garam-dark-muted, #a5a8b2); }
@media (max-width: 740px) {
    /* Centred, like the Marketplace's and the checklist's own title on a phone. */
    .gd-page .gd-hero { display: block; padding: 28px 9px 34px; text-align: center; }
    .gd-page .gd-hero .checklist-title { justify-content: center; }
    .gd-page .gd-hero .checklist-instruction { max-width: none; margin: 16px auto 0; text-align: center; }
}
@media (max-width: 700px) {
    .gd-cta { align-items: stretch; padding: 18px; gap: 12px; }
    .gd-cta-button { width: 100%; }
}

/* Which profiles: Popular, New, Following. */
.gd-tabs { display: flex; flex-wrap: wrap; gap: 6px; width: fit-content; max-width: 100%; margin: 0 0 0 auto; padding: 5px; border-radius: 16px; border: 1px solid var(--gd-border);
    background: var(--gd-panel); }
.gd-tab { padding: 8px 16px; border-radius: 11px; color: var(--gd-muted); font-size: 14px; font-weight: 600; text-decoration: none; }
.gd-tab:hover { color: var(--gd-ink); background: var(--gd-raised); }
.gd-tab.is-active { background: var(--gd-site-accent); color: var(--gd-on-accent); }

.gd-empty { margin: 14px 0 0; padding: 18px; border-radius: 20px; border: 1px solid var(--gd-border); background: var(--gd-panel); color: var(--gd-muted); font-size: 14px; }
.gd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 16px; margin-top: 14px; }
.gd-grid.is-loading { opacity: .55; pointer-events: none; }

/* A profile's card: its banner (or its background) on top, its owner's picture half over it, then
   who they are, what they say, and the profile's numbers. Its edge and its tags take the
   profile's own accent color. */
.gd-card { position: relative; display: flex; flex-direction: column; min-width: 0; border-radius: 20px; border: 1px solid var(--gd-border); background: var(--gd-panel);
    color: var(--gd-ink); text-decoration: none; overflow: hidden; transition: transform .16s ease, border-color .16s ease; }
.gd-card:hover { border-color: var(--gd-accent); transform: translateY(-2px); }
.gd-top { display: block; height: 96px; background: var(--gd-backdrop, var(--gd-raised)); }
.gd-top img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gd-avatar { position: relative; flex: none; width: 64px; height: 64px; margin: -32px 0 0 14px; border-radius: 50%; border: 4px solid var(--gd-panel); object-fit: cover;
    background: var(--gd-raised); }
.gd-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 8px 14px 14px; flex: 1 1 auto; }
.gd-name-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.gd-name { min-width: 0; font-size: 17px; font-weight: 700; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gd-tag { flex: none; padding: 1px 8px; border-radius: 999px; background: var(--gd-accent); color: #fff; font-size: 12px; font-weight: 600; }
.gd-tag.is-soft { background: var(--gd-raised); color: var(--gd-muted); }
.gd-status { width: fit-content; max-width: 100%; padding: 3px 10px; border-radius: 12px; background: var(--gd-raised); font-size: 13px; overflow: hidden; text-overflow: ellipsis;
    white-space: nowrap; }
.gd-bio { color: var(--gd-muted); font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.gd-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: auto; padding-top: 6px; color: var(--gd-muted); font-size: 14px; font-weight: 600;
    font-variant-numeric: tabular-nums; }
.gd-count { display: inline-flex; align-items: center; gap: 5px; }
.gd-count svg { width: 17px; height: 17px; color: #e5486b; }
.gd-count.is-mega svg { color: #f0a400; }
.gd-count:last-child svg { color: var(--gd-muted); }
@media (prefers-reduced-motion: reduce) { .gd-card { transition: none; } .gd-card:hover { transform: none; } }

/* The paginator: the Marketplace's (webfiles/garam_marketplace.css, .marketplace-pagination). */
.gd-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin: 24px 0 0; }
.gd-pager button { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; min-height: 42px; padding: 9px 15px; border-radius: 13px;
    border: 1px solid var(--garam-c-a9cfea, #a9cfea); background: #fff; color: var(--garam-c-155a8d, #155a8d); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.gd-pager button:not(:disabled):hover { background: var(--garam-c-e5f5ff, #e5f5ff); }
.gd-pager button:disabled { opacity: .4; cursor: default; }
html[data-garam-mode="dark"] body .gd-pager button { background: var(--garam-dark-raised, #34353c); color: var(--garam-dark-text, #f3f4f7); border-color: var(--garam-dark-border, #45464d); }
@media (max-width: 460px) {
    .gd-pager { gap: 8px; }
    .gd-pager button { min-width: 40px; padding: 9px 11px; }
}
