/* Debut Week / The Global Almanac — site styles.
   Loads AFTER the shared design CSS (global.design_css_url), so anything set
   here wins. Two kinds of rule live here and nothing else:
     1. design TOKEN overrides (custom properties) — the brand's look;
     2. this product's OWN components, all prefixed dw- / al- (launch cards,
        vote buttons, category grid). Never copy a design-system rule here.
   The same file ships on both sites (each serves its own copy). */

:root {
}

/* The design CSS gives some components an explicit display, which beats the
   browser's own [hidden] rule; app.js hides and shows with the attribute. */
[hidden] { display: none !important; }

.dw-hero { padding: 7rem 0 2.5rem; }
.dw-hero .hero-sub { color: var(--text-muted); }
.dw-crumb { color: var(--text-muted); font-size: .85rem; margin-bottom: .5rem; }
.dw-crumb a { color: var(--cyan); }
.dw-main { padding-bottom: 4rem; }
.dw-empty { color: var(--text-dim); font-size: .9rem; margin: .5rem 0; }
.dw-count { color: var(--text-dim); font-weight: 500; font-size: .85em; margin-left: .25rem; }

.dw-group { margin: 2.5rem 0; }
.dw-group > h2 { font-size: 1.1rem; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 1rem; }
.dw-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.25rem; }
.dw-cat { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; }
.dw-cat-title { font-size: 1rem; margin: 0 0 .75rem; }
.dw-cat-title a { color: var(--text); }
.dw-cat .dw-card { background: transparent; border: 0; padding: .5rem 0; }

.dw-list { display: grid; gap: .75rem; }
.dw-card { display: flex; align-items: center; gap: 1rem; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1rem 1.25rem; position: relative; }
.dw-card-body { flex: 1; min-width: 0; }
.dw-card h3 { font-size: 1.05rem; margin: 0 0 .2rem; }
.dw-card h3 a { color: var(--text); }
.dw-card h3 a:hover { color: var(--cyan); }
.dw-tagline { color: var(--text-muted); font-size: .92rem; margin: 0 0 .4rem; }
.dw-chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.dw-chips .badge { background: var(--bg-card-2); color: var(--text-muted); border: 1px solid var(--border); }
.dw-chips .badge-cyan { color: var(--cyan); }
.dw-rank { font-weight: 700; color: var(--purple-hi); min-width: 2.2rem; }

.dw-logo { width: 48px; height: 48px; border-radius: var(--radius-sm); object-fit: cover; flex: none; background: var(--bg-card-2); }
.dw-logo-letter { display: inline-flex; align-items: center; justify-content: center; font-weight: 700; color: var(--cyan);
  border: 1px solid var(--border-mid); }
.dw-launch-head { display: flex; gap: 1.5rem; align-items: flex-start; text-align: left; }
.dw-launch-head .dw-logo { width: 72px; height: 72px; }
.dw-launch-head > div { flex: 1; }
.dw-launch-head p { margin-left: 0; margin-right: 0; max-width: none; }
.dw-launch-head .hero-actions, .dw-launch-head .dw-chips { justify-content: flex-start; }
.dw-launch-head .hero-sub { margin: 0 0 .75rem; max-width: none; }
.dw-launch-head .hero-actions { margin-top: 1rem; }
.dw-place { color: var(--purple-hi); font-weight: 600; margin-top: .6rem; }

.dw-vote { flex: none; display: flex; flex-direction: column; align-items: center; gap: .1rem; min-width: 3.5rem;
  padding: .45rem .6rem; border-radius: var(--radius-sm); border: 1px solid var(--border-mid); background: var(--bg-card-2);
  color: var(--text); cursor: pointer; font: inherit; transition: var(--transition); }
.dw-vote:hover:not(:disabled) { border-color: var(--cyan); }
.dw-vote-arrow { font-size: .75rem; color: var(--cyan); }
.dw-vote-n { font-weight: 700; font-size: .95rem; }
.dw-vote.dw-voted { background: rgba(0, 229, 255, .12); border-color: var(--cyan); }
.dw-vote-closed { cursor: default; opacity: .75; }

.dw-listing { max-width: 760px; }
.dw-listing h2 { font-size: 1.1rem; margin: 2rem 0 .6rem; }
.dw-listing p { color: var(--text-muted); line-height: 1.7; margin: 0 0 1rem; }
.dw-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .75rem; margin: 1.5rem 0; }
.dw-gallery img { width: 100%; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.dw-past { margin-top: 3rem; }
.dw-past h2 { font-size: 1.1rem; margin-bottom: 1rem; color: var(--text-muted); }

.dw-form { max-width: 640px; display: grid; gap: 1.1rem; }
.dw-form input, .dw-form select, .dw-form textarea { width: 100%; }
.dw-form fieldset { border: 0; padding: 0; margin: 0; }
.dw-limit { color: var(--text-dim); font-weight: 400; font-size: .8em; float: right; }
.dw-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .4rem; }
.dw-check { display: flex; gap: .45rem; align-items: center; font-weight: 400; }
.dw-check input { width: auto; }
.dw-auth { max-width: 440px; margin: 0 auto; }
.dw-providers { display: grid; gap: .6rem; }
.dw-provider { justify-content: center; }
.dw-mine { align-items: flex-start; }
.dw-badge-code { display: grid; gap: .4rem; margin: .75rem 0; }
.dw-badge-code textarea { font-family: var(--font-mono); font-size: .75rem; width: 100%; }

.al-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; }
.al-cats { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.al-cats a { color: var(--text); }
.al-history { color: var(--text-muted); line-height: 1.9; }

@media (max-width: 640px) {
  .dw-launch-head { flex-direction: column; }
  .dw-cats { grid-template-columns: 1fr; }
}

/* ── 2026-10-11: featured slots, comments, archive, search, follows ── */
.dw-featured { margin: 1rem 0 2.5rem; }
.dw-featured > h2 { font-size: 1.1rem; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 1rem; }
.dw-featured .dw-card { border-color: var(--border-mid); box-shadow: var(--shadow-glow); }
.dw-paid { text-transform: none; letter-spacing: 0; font-size: .75rem; font-weight: 500; color: var(--text-dim);
  border: 1px solid var(--border); border-radius: 100px; padding: .1rem .55rem; margin-left: .5rem; vertical-align: middle; }
.dw-more { margin-top: 2rem; text-align: center; }

.dw-comments { margin-top: 3rem; border-top: 1px solid var(--border); padding-top: 1.5rem; }
.dw-comment { margin: 0 0 1rem calc(var(--depth, 0) * 1.25rem); padding: .75rem 1rem; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius-sm); }
.dw-comment p { margin: 0 0 .4rem; }
.dw-c-meta { font-size: .85rem; color: var(--text-muted); }
.dw-c-meta strong { color: var(--text); }
.dw-c-deleted { color: var(--text-dim); font-style: italic; }
.dw-c-tools { display: flex; gap: .75rem; }
.dw-c-act { background: none; border: 0; color: var(--cyan); cursor: pointer; font: inherit; font-size: .8rem; padding: 0; }
.dw-c-form { margin: .75rem 0 1.25rem; max-width: none; }

.dw-weeks { list-style: none; padding: 0; display: grid; gap: .5rem; max-width: 520px; }
.dw-weeks a { color: var(--text); }

.dw-search { display: flex; gap: .5rem; max-width: 560px; margin: 1.5rem auto 0; }
.dw-search input { flex: 1; }
.dw-inline { display: flex; gap: .5rem; align-items: center; max-width: 520px; }
.dw-inline input { flex: 1; }
.dw-note { color: var(--text-dim); font-size: .85rem; }
.dw-main > h2 { font-size: 1.1rem; margin: 2.5rem 0 1rem; }
.al-follows { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.al-follow-group { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .75rem 1rem; }
.al-follow-group legend { color: var(--text-muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; padding: 0 .3rem; }

/* ── 2026-10-12: featured-slot auction on the account page ── */
.dw-auction { margin: 1rem 0; padding: .9rem 1rem; border: 1px dashed var(--border-mid); border-radius: var(--radius-sm); }
.dw-auction h4 { margin: 0 0 .4rem; font-size: .95rem; }
.dw-bids { margin: .5rem 0; padding-left: 1.2rem; color: var(--text-muted); }
.dw-auction .dw-inline input { max-width: 9rem; }

/* ── 2026-10-12: pre-launch notice under the nav ── */
.dw-prelaunch { position: relative; z-index: 5; margin-top: 64px; padding: .55rem 1rem; text-align: center;
  font-size: .85rem; color: var(--text); background: rgba(124, 92, 255, .14); border-bottom: 1px solid var(--border-mid); }
.dw-prelaunch + .page-hero, .dw-prelaunch + section { padding-top: 3rem; }
