/* Bounties and News: the paper top over a stone "How it works" band, the bounties and the news entries as ruled rows
   under group lines, today's pager in round buttons. Loaded after sections.css and reading.css (the paper top, the dark
   setting). From design-community gate 1 (site/community.css). */

/* ---------- Shared: section heads and group lines ---------- */
.cm { position: relative; background: var(--paper); padding: 96px 0 120px; }
.cm.stone { background: var(--stone); }
.cm-h { font-size: var(--t-h2-split); line-height: 1.08; letter-spacing: -0.03em; font-weight: var(--w-display); color: var(--ink); max-width: 18em; }
.cm-k { font-size: var(--t-kicker); font-weight: var(--w-label); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.cm-lede { margin-top: 18px; font-size: 17px; line-height: 1.55; color: var(--ink-2); max-width: 46ch; }
.cm-group { display: flex; align-items: baseline; gap: 14px; border-top: 1px solid var(--ink); padding: 14px 0 6px; }
.cm-group .n { font-size: var(--t-caption); color: var(--ink-3); font-feature-settings: "tnum" 1; }
.cm-group + .cm-group, .cm-rows + .cm-group { margin-top: 72px; }
.cm-rows { list-style: none; border-bottom: 1px solid var(--hair); }
.cm-link { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--ink-3); }
.cm-link:hover { text-decoration-color: var(--ink); }
.ext-a::after { content: " \2197"; font-size: .85em; }

/* ---------- Ruled steps (How it works) ---------- */
.cm-steps { list-style: none; margin-top: 40px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--g); counter-reset: st; }
.cm-steps li { border-top: 1px solid var(--hair); padding-top: 18px; min-width: 0; counter-increment: st; }
.cm-steps li::before { content: counter(st, decimal-leading-zero); display: block; font-size: 13px; color: var(--ink-3); font-feature-settings: "tnum" 1; }
.cm-steps p { margin-top: 14px; font-size: 20px; line-height: 1.35; letter-spacing: -0.01em; color: var(--ink); text-wrap: pretty; }
.cm-steps-grid { align-items: start; }
.cm-steps-grid > .cm-intro { grid-column: 1 / span 4; }
.cm-steps-grid > .cm-steps { grid-column: 5 / span 8; margin-top: 6px; }

/* ---------- Bounty rows ---------- */
.bt-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); align-items: baseline; border-top: 1px solid var(--hair); padding: 28px 0; }
.cm-group + .cm-rows > .bt-row:first-child, .bl-topics + .cm-rows > .bt-row:first-child { border-top: 0; }
/* The blog's topic bar switches open and completed; its coral comes from body.bl, which this page does not carry. */
.cm .bl-topics { --coral: var(--orange); }
.bt-t { grid-column: 1 / span 5; font-size: 24px; line-height: 1.2; letter-spacing: -0.02em; font-weight: 360; color: var(--ink); text-wrap: balance; }
.bt-d { grid-column: 6 / span 5; font-size: 15.5px; line-height: 1.55; color: var(--ink-2); }
.bt-d a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--ink-3); white-space: nowrap; }
.bt-src { display: block; margin-top: 8px; font-size: 12.5px; color: var(--ink-3); }
.bt-amt { grid-column: 11 / span 2; text-align: right; font-size: 32px; line-height: 1; letter-spacing: -0.02em; font-weight: var(--w-display); color: var(--ink); font-feature-settings: "tnum" 1; }
.bt-row.done .bt-amt { color: var(--ink-3); }
.bt-row.done .bt-amt small { display: block; margin-top: 8px; font-size: var(--t-kicker); font-weight: var(--w-label); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.bt-empty { border-top: 0; padding: 28px 0 32px; }
.bt-empty .ds-msg { max-width: 640px; }
.bt-ask { margin-top: 64px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); align-items: center; border-top: 1px solid var(--hair); padding-top: 28px; }
.bt-ask p { grid-column: 1 / span 7; font-size: 17px; color: var(--ink-2); }
.bt-ask .btns { grid-column: 8 / span 5; display: flex; justify-content: flex-end; gap: 12px; flex-wrap: wrap; }

/* ---------- News rows ---------- */
.nw-rows { margin-top: 48px; }
.nw-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); align-items: baseline; border-top: 1px solid var(--hair); padding: 22px 0 24px; }
.cm-group + .cm-rows > .nw-row:first-child { border-top: 0; }
.nw-date { grid-column: 1 / span 2; font-size: 14px; color: var(--ink-2); font-feature-settings: "tnum" 1; }
.nw-t { grid-column: 3 / span 4; font-size: 19px; line-height: 1.25; letter-spacing: -0.015em; font-weight: 400; color: var(--ink); text-wrap: balance; }
.nw-b { grid-column: 7 / span 6; font-size: var(--t-body-s); line-height: 1.6; color: var(--ink-2); min-width: 0; overflow-wrap: anywhere; }
.nw-b p + p { margin-top: .6em; }
.nw-b a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--ink-3); }
.nw-b code, .nw-b .liq { font-family: ui-monospace, Menlo, monospace; font-size: .92em; }
.nw-pager { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; font-size: 14.5px; font-feature-settings: "tnum" 1; }
.nw-pager .pagy { display: contents; }
.nw-pager a { min-width: 36px; height: 36px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; border-radius: 18px; color: var(--ink-2); }
.nw-pager a[href]:hover { color: var(--ink); background: var(--bone); }
.nw-pager a[aria-current="page"] { color: var(--paper); background: var(--ink); }
.nw-pager a[aria-disabled="true"]:not([aria-current]) { color: var(--ink-3); opacity: .5; }
.nw-pager a[role="separator"] { min-width: 20px; padding: 0; opacity: 1; }
.nw-back { margin-top: 36px; font-size: 14.5px; }

/* ---------- Phones ---------- */
@media (max-width: 1100px) {
  .cm-steps-grid > .cm-intro, .cm-steps-grid > .cm-steps { grid-column: 1 / -1; }
  .cm-steps-grid > .cm-steps { margin-top: 32px; }
}
@media (max-width: 760px) {
  .cm { padding: 64px 0 80px; }
  .cm-h { font-size: var(--t-h2-phone); }
  .cm-steps { grid-template-columns: 1fr; row-gap: 22px; }
  .cm-steps p { font-size: 18px; margin-top: 8px; }
  .bt-row { grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; row-gap: 10px; padding: 22px 0; }
  .bt-t { grid-column: 1; grid-row: 1; font-size: 20px; }
  .bt-amt { grid-column: 2; grid-row: 1; font-size: 24px; }
  .bt-d { grid-column: 1 / -1; grid-row: 2; font-size: 15px; }
  .bt-ask { display: block; margin-top: 48px; }
  .bt-ask .btns { justify-content: flex-start; margin-top: 18px; }
  .nw-row { display: block; padding: 18px 0 20px; }
  .nw-date { display: block; font-size: 13px; }
  .nw-t { margin-top: 6px; font-size: 18px; }
  .nw-b { margin-top: 6px; font-size: 14.5px; }
}

/* ---------- The visitor's dark setting (as the blog design) ---------- */
html.dark body.rd-theme .nw-pager a[aria-current="page"] { color: #181716; background: var(--ink); }

/* paper top followed by a stone band */
.ds-top-actions :is(.more, .rt-by) { margin: 0; }

/* ---------- One entry among its neighbors: the entry on a raised card, the neighbors as titles only ---------- */
.nw-t a { color: inherit; text-decoration: none; }
.nw-t a:hover { color: var(--ink); }
.nw-context { margin-top: 8px; }
.nw-context .cm-rows { border-bottom: 0; }
.nw-context .nw-b { display: none; }
.nw-context .nw-t { grid-column: 3 / span 10; color: var(--ink-2); }
.nw-context .nw-date { color: var(--ink-3); }
.nw-context .cm-rows:first-child > .nw-row:first-child { border-top: 0; }
.nw-entry { margin: 12px calc(-1 * var(--g)); padding: 48px var(--g) 56px; background: var(--bone); border-radius: 16px; box-shadow: inset 4px 0 0 var(--orange);
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); }
.nw-entry + .cm-rows > .nw-row:first-child { border-top: 0; }
.nw-entry-meta { grid-column: 1 / span 2; display: flex; flex-direction: column; gap: 10px; }
.nw-entry-meta .nw-date { color: var(--ink); }
.nw-entry-main { grid-column: 3 / span 8; }
.nw-entry-title { font-size: var(--t-h2-split); line-height: 1.04; letter-spacing: -0.03em; font-weight: var(--w-display); color: var(--ink); text-wrap: balance; }
.nw-entry-body { margin-top: 28px; max-width: 58ch; font-size: 20px; line-height: 1.6; color: var(--ink); overflow-wrap: anywhere; }
.nw-entry-body p + p { margin-top: .7em; }
.nw-entry-body a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--orange); }
@media (max-width: 760px) {
  .nw-entry { display: block; padding: 32px var(--g) 36px; }
  .nw-entry-meta { flex-direction: row; gap: 14px; align-items: baseline; }
  .nw-entry-title { margin-top: 12px; font-size: 32px; }
  .nw-entry-body { margin-top: 16px; font-size: 17px; }
}
