/* Community post = a deal page, 2026-09-23.
   The post is an offer, so it reads like a listing: a coloured hero with the
   headline figures and the DLD verdict, then the facts as cards, then the
   related deals. Accents: gold for money, teal for data, green/red for the
   verdict. */

.card {
  display: block;
  background: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 0 40px !important;
  overflow: visible;
}

/* ---------- hero ---------- */
.cpx-hero {
  position: relative;
  margin: 18px 0 0;
  padding: 26px 30px 28px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 0% 0%, rgba(251, 191, 36, .14), transparent 42%),
    linear-gradient(160deg, rgba(17, 34, 52, .96), rgba(8, 17, 28, .98));
  border: 1px solid rgba(96, 231, 220, .22);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
  overflow: hidden;
}
.cpx-hero::before {                      /* accent bar down the left edge */
  content: "";
  position: absolute;
  left: 0; top: 22px; bottom: 22px;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, #fbbf24, #60e7dc);
}
.cpx-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.cpx-kind {
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(251, 191, 36, .16);
  border: 1px solid rgba(251, 191, 36, .45);
  color: #fbbf24;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.cpx-when { font-size: .8rem; color: rgba(148, 163, 184, .85); }

.cpx-hero h1,
.card > .cpx-hero h1 {
  margin: 14px 0 0;
  font-size: clamp(1.7rem, 1.1rem + 2vw, 2.5rem);
  line-height: 1.14;
  letter-spacing: -.02em;
  color: #f5f7fb;
}
.cpx-hero .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  border: 0;
}
.cpx-hero .meta .tag {
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(96, 231, 220, .1);
  border: 1px solid rgba(96, 231, 220, .3);
  color: #60e7dc;
  font-size: .78rem;
  font-weight: 700;
  text-decoration: none;
}
.cpx-hero .meta a.tag:hover { background: rgba(96, 231, 220, .2); }

/* headline figures */
.cpx-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin: 20px 0 0 !important;
  padding: 18px 0 0;
  border-top: 1px solid rgba(148, 163, 184, .16);
}
.cpx-fact {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(8, 17, 28, .7);
  border: 1px solid rgba(96, 231, 220, .16);
}
.cpx-fact-k {
  display: block;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: #60e7dc;
  margin-bottom: 5px;
}
.cpx-fact-v { font-size: 1.3rem; font-weight: 800; color: #f5f7fb; line-height: 1.2; }
.cpx-fact-hi { background: rgba(251, 191, 36, .1); border-color: rgba(251, 191, 36, .4); }
.cpx-fact-hi .cpx-fact-k { color: #fbbf24; }
.cpx-fact-hi .cpx-fact-v { color: #fde68a; }

/* the DLD verdict band */
.cpx-verdict {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 16px 0 0;
  padding: 13px 16px;
  border-radius: 14px;
  font-weight: 800;
  font-size: .98rem;
  line-height: 1.35;
}
.cpx-verdict small {
  flex: 0 0 auto;
  margin-left: auto;
  font-weight: 600;
  font-size: .78rem;
  opacity: .8;
}
.cpx-verdict-dot { width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.cpx-verdict.is-below { background: rgba(52, 211, 153, .14); border: 1px solid rgba(52, 211, 153, .45); color: #34d399; }
.cpx-verdict.is-within { background: rgba(96, 231, 220, .12); border: 1px solid rgba(96, 231, 220, .4); color: #60e7dc; }
.cpx-verdict.is-above { background: rgba(248, 113, 113, .14); border: 1px solid rgba(248, 113, 113, .45); color: #f87171; }

.cpx-hero-acts { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; }
.cpx-side-btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  background: #fbbf24;
  color: #1c1917;
  font-weight: 800;
  font-size: .9rem;
  text-decoration: none;
}
.cpx-side-btn:hover { background: #f59e0b; }
.cpx-side-btn.is-ghost {
  background: rgba(96, 231, 220, .08);
  border: 1px solid rgba(96, 231, 220, .38);
  color: #60e7dc;
}
.cpx-side-btn.is-ghost:hover { background: rgba(96, 231, 220, .18); }

/* ---------- body ---------- */
.card > .community-post-summary {
  margin: 26px 0 0;
  padding: 0 0 0 16px;
  border-left: 3px solid rgba(251, 191, 36, .55);
  font-size: 1.08rem;
  line-height: 1.75;
  color: rgba(226, 232, 240, .92);
  max-width: 72ch;
}
.card > .field { margin: 30px 0 0; padding: 0; border: 0; background: none; }
.card > .field .label {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: #60e7dc;
  margin-bottom: 12px;
}

/* facts as cards with an accent edge */
.card .community-table-scroll { overflow: visible; }
.card .detail-table {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 10px;
  width: 100%;
  border: 0;
  border-collapse: separate;
}
.card .detail-table tbody { display: contents; }
.card .detail-table tr {
  display: block;
  padding: 13px 16px;
  border-radius: 14px;
  background: rgba(13, 27, 42, .75);
  border: 1px solid rgba(80, 120, 255, .16);
  border-left: 3px solid rgba(96, 231, 220, .55);
}
.card .detail-table th,
.card .detail-table td { display: block; padding: 0; border: 0; text-align: left; }
.card .detail-table th {
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: rgba(96, 231, 220, .9);
  margin-bottom: 5px;
}
.card .detail-table td { font-size: 1.02rem; font-weight: 650; color: #f5f7fb; line-height: 1.45; }
.card .field .detail-table:has(thead) { display: table; border-spacing: 0; }
.card .field .detail-table:has(thead) tbody { display: table-row-group; }
.card .field .detail-table:has(thead) tr { display: table-row; background: none; border: 0; padding: 0; }
.card .field .detail-table:has(thead) th,
.card .field .detail-table:has(thead) td {
  display: table-cell;
  padding: 10px 14px 10px 0;
  border-bottom: 1px solid rgba(148, 163, 184, .14);
}

.card > .note {
  margin: 26px 0 0;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(96, 231, 220, .06);
  border-left: 3px solid rgba(96, 231, 220, .45);
  font-size: .86rem;
  line-height: 1.6;
  color: rgba(226, 232, 240, .8);
  max-width: 72ch;
}
.card > .date { margin: 10px 0 0; font-size: .8rem; color: rgba(148, 163, 184, .6); }

/* the deal panel's own tiles duplicate the hero figures */
.cm-deal .cm-figs { display: none; }
.cm-deal { margin-top: 30px; }

/* ---------- panels that were removed ---------- */
.card > .community-share-bar,
.card > .cp-split-wrap,
.cp-split-wrap,
.card > .community-reactions,
.community-reactions,
.cp-sticky-reactions-proxy,
.community-share-bar { display: none !important; }

/* ---------- related deals ---------- */
.cp-solid-related-posts,
.cp-solid-related-posts.cp-related-is-outside {
  background-image: none !important;
  background-color: transparent !important;
  padding: 30px 0 0 !important;
  border: 0 !important;
  border-top: 1px solid rgba(148, 163, 184, .16) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  margin: 40px auto 60px !important;
}
.cp-solid-related-head span { display: none; }
.cp-solid-related-head h2 { margin: 0; font-size: 1.3rem; color: #f5f7fb; }
.cp-solid-related-head p {
  margin: 6px 0 18px;
  font-size: .9rem;
  color: rgba(148, 163, 184, .8);
  max-width: 64ch;
}
.cp-solid-related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px !important; }
.cp-solid-related-card,
.cp-related-is-outside .cp-solid-related-card {
  background-image: none !important;
  background-color: rgba(13, 27, 42, .75) !important;
  border: 1px solid rgba(80, 120, 255, .16) !important;
  border-radius: 16px !important;
  min-height: 0 !important;
  padding: 16px !important;
  box-shadow: none !important;
  text-decoration: none;
}
.cp-solid-related-card:hover { border-color: rgba(96, 231, 220, .45) !important; }
.cp-solid-related-card small {
  display: inline-block;
  padding: 4px 10px !important;
  border-radius: 999px !important;
  background: rgba(96, 231, 220, .12) !important;
  border: 1px solid rgba(96, 231, 220, .3) !important;
  color: #60e7dc !important;
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.cp-solid-related-card strong { display: block; font-size: 1rem; line-height: 1.4; color: #f5f7fb; }
.cp-solid-related-card:hover strong { color: #60e7dc; }
.cp-solid-related-meta { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; }
.cp-solid-related-meta em {
  font-style: normal;
  font-size: .76rem;
  padding: 3px 9px !important;
  border-radius: 999px !important;
  background: rgba(8, 17, 28, .8) !important;
  border: 1px solid rgba(148, 163, 184, .2) !important;
  color: rgba(226, 232, 240, .85) !important;
}
.cp-solid-related-card b { display: block; margin-top: 12px; color: #fbbf24; font-size: .84rem; font-weight: 800; }

@media (max-width: 720px) {
  .cpx-hero { padding: 20px 18px 22px; border-radius: 20px; }
  .cpx-facts { grid-template-columns: repeat(auto-fit, minmax(135px, 1fr)); }
  .cpx-verdict small { margin-left: 0; flex-basis: 100%; }
  .cpx-side-btn { flex: 1 1 100%; text-align: center; }
  .card .detail-table { grid-template-columns: 1fr; }
}
