/*
 * PATCH-7523 — the only rules marketplace.patchcove.com adds (Cat's UX
 * consult a74b3a16, 2026-11-20). Everything else on its pages is
 * patchcove.com's own, built into the Worker from marketing/ at the same
 * commit (scripts/marketplace.mjs): blog/blog.css (the browse page: kicker,
 * h1, intro, card grid, filters), features.css (the plugin page: kicker, h1,
 * intro, feature rows), closing.css (the closing card), phone-navigation.css,
 * motion.css and site-chrome.css (header, footer, button). Each page loads
 * this file after its own stylesheet and before those last three, as the
 * site's pages order theirs.
 */

/* The tile's colour is features.css's --bg-raised-2, restated for the browse
   page, whose blog.css does not define it. test/marketplace.test.mjs holds
   the two to one value (PATCH-4219: a card is one brown on every page). */
:root { --bg-raised-2: #2b2520; }

/* The plugin's tile: the Features page's .feature-icon, at card scale. */
.plugin-icon {
  display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 14px;
  border-radius: var(--r-md); background: var(--bg-raised-2); color: var(--accent-text);
}

/* Two entries: two columns, never three, so the two cards fill the row. */
@media (min-width: 1120px) { .posts-two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* The wide card (one entry, or the featured one of three or more): the blog's
   card at the column's full width, what the plugin brings beside its text.
   It stacks under 760px, text first. */
.card-wide { display: grid; grid-template-columns: minmax(0, 1fr); margin: 0 0 20px; }
.card-wide .card-body { padding: 24px 24px 22px; }
.card-brings { padding: 18px 24px 22px; border-top: 1px solid var(--border-soft); }
@media (min-width: 760px) {
  .card-wide { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
  .card-wide .card-body { padding: 32px 36px 30px; }
  .card-brings { padding: 32px 36px 30px; border-top: 0; border-left: 1px solid var(--border-soft); }
}
.card-wide h2 { font-size: 28px; }
.card-wide p { font-size: 16px; }
.card-tags { padding-top: 16px; font-family: var(--font-mono); font-size: 12px; color: var(--text-secondary); }

/* "What it brings" and "Releases": small mono labels, as the blog's filter labels are. */
.brings-title, .section-label {
  display: block; margin: 0; font-family: var(--font-mono); font-size: 12px; font-weight: 400;
  letter-spacing: 0.1em; line-height: 1.65; text-transform: uppercase; color: var(--text-muted);
}
.brings { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 14px; }
.brings li { display: grid; gap: 2px; }
.brings-kind { font-family: var(--font-mono); font-size: 12px; color: var(--text-secondary); }
.brings-name { font-family: var(--font-mono); font-size: 15px; color: var(--text); overflow-wrap: anywhere; }
.brings-what { font-size: 14px; line-height: 1.5; color: var(--text-secondary); }

/* The plugin page. The kicker's "Plugins" goes back to the browse page. */
.kicker-link { color: inherit; }
.kicker-link:is(:hover, :focus-visible) { text-decoration: underline; text-underline-offset: 3px; }
.plugin-facts {
  display: flex; flex-wrap: wrap; gap: 8px 32px; margin: 0 0 clamp(36px,5vw,52px); padding: 0;
  font-family: var(--font-mono); font-size: 13px;
}
.plugin-facts dt { display: inline; margin-right: 8px; color: var(--text-muted); }
.plugin-facts dd { display: inline; margin: 0; color: var(--text-secondary); }
.plugin-section { margin: 0 0 clamp(36px,5vw,52px); }
.plugin-section .section-label { padding-bottom: 12px; border-bottom: 1px solid var(--border-soft); }
.plugin-section .feature:first-of-type { border-top: 0; }
.brings-row h3 { margin: 2px 0 10px; font-family: var(--font-mono); font-size: 20px; font-weight: 500; color: var(--text); overflow-wrap: anywhere; }
.brings-row .brings-kind-line { margin: 0; font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); }
.brings-row .lead { margin: 0; }

.releases { list-style: none; margin: 0; padding: 0; }
.releases li {
  display: grid; grid-template-columns: 80px 160px minmax(0, 1fr); gap: 4px 16px; align-items: baseline;
  padding: 14px 0; border-bottom: 1px solid var(--border-soft);
}
.release-version { font-family: var(--font-mono); font-size: 15px; color: var(--text); }
.release-date { font-family: var(--font-mono); font-size: 13px; color: var(--text-muted); }
.release-what { color: var(--text-secondary); }
@media (max-width: 639px) {
  .releases li { grid-template-columns: auto minmax(0, 1fr); }
  .release-what { grid-column: 1 / -1; }
}
