/* ==================================================================
   Repair Community
   ------------------------------------------------------------------
   A reading feed, not a wall of cards: rows separated by hairlines and
   whitespace, one strong title each, quiet metadata and actions that
   only take colour on hover. Topics on the left, a little genuinely
   useful help on the right, the feed in the middle.
   ================================================================== */
body.page-community {
  --cx-forest: #102f25;
  --cx-green: #075b46;
  --cx-lime: #d6f76a;
  --cx-ink: #111a16;
  --cx-text: #2a3530;
  --cx-soft: #5b6862;
  --cx-line: #e6eae6;
  --cx-surface: #f7f9f6;
  --cx-mint: #f4f8f2;
  --cx-mint-strong: #e8f1e6;
  --cx-radius: 12px;
  background: #fff;
}
.cx { color: var(--cx-ink); padding-bottom: clamp(48px, 6vw, 88px); }
.cx-wrap { width: min(100% - 40px, 1220px); margin-inline: auto; }
.cx :focus-visible { outline: 3px solid var(--cx-green); outline-offset: 2px; border-radius: 6px; }
.cx :is(h1, h2, h3) { color: var(--cx-forest); letter-spacing: -0.015em; }
.cx-link { padding: 0; border: 0; background: none; color: var(--cx-green); font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.cx-textlink { display: inline-flex; align-items: center; gap: 6px; color: var(--cx-green); font-weight: 600; text-decoration: none; }
.cx-textlink:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Buttons */
.cx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border: 1px solid transparent; border-radius: 10px; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; text-decoration: none; transition: background-color .15s, border-color .15s, color .15s; }
.cx-btn--primary { background: var(--cx-forest); color: #fff; }
.cx-btn--primary:hover { background: var(--cx-green); }
.cx-btn--quiet { border-color: #cdd6ce; background: #fff; color: var(--cx-forest); }
.cx-btn--quiet:hover { border-color: var(--cx-forest); }
.cx-btn--sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.cx-btn.is-busy { opacity: .7; cursor: progress; }
.cx-icon-btn { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 10px; background: none; color: var(--cx-soft); cursor: pointer; }
.cx-icon-btn:hover { background: var(--cx-surface); color: var(--cx-ink); }

/* 1. Header and search -------------------------------------------- */
.cx-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-top: clamp(8px, 1.5vw, 20px); }
.cx-eyebrow { margin: 0 0 10px; color: var(--cx-green); font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.cx-head h1 { margin: 0; font-size: clamp(30px, 1.5vw + 18px, 38px); line-height: 1.1; font-weight: 700; }
.cx-lede { margin: 8px 0 0; max-width: 640px; color: var(--cx-soft); font-size: 16px; line-height: 1.5; }
.cx-head__cta { flex: none; min-height: 48px; padding: 0 22px; }
.cx-search { position: relative; display: flex; align-items: center; gap: 6px; margin: 20px 0 24px; padding: 4px; border: 1px solid #d5ddd6; border-radius: 12px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.cx-search:focus-within { border-color: var(--cx-green); box-shadow: 0 0 0 4px #075b461c; }
.cx-search > svg { position: absolute; left: 16px; color: var(--cx-soft); pointer-events: none; }
.cx-search input { flex: 1; min-width: 0; height: 46px; padding: 0 8px 0 44px; border: 0; background: transparent; color: var(--cx-ink); font: inherit; font-size: 16px; }
.cx-search input::-webkit-search-cancel-button { display: none; }
.cx-search input:focus, .cx .cx-search input:focus-visible { outline: none; }
.cx-search__clear { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border: 0; border-radius: 8px; background: none; color: var(--cx-soft); cursor: pointer; }
.cx-search__clear:hover { background: var(--cx-surface); color: var(--cx-ink); }
.cx-search__clear[hidden] { display: none; }
.cx-search__go { flex: none; height: 46px; padding: 0 20px; border: 0; border-radius: 9px; background: var(--cx-forest); color: #fff; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.cx-search__go:hover { background: var(--cx-green); }

/* 2. Three areas ---------------------------------------------------- */
.cx-layout { display: grid; grid-template-columns: 224px minmax(0, 1fr) 280px; gap: 28px; align-items: start; }
.cx-layout[hidden] { display: none; }
.cx-layout--thread { grid-template-columns: minmax(0, 1fr) 280px; padding-top: clamp(24px, 3vw, 40px); }
.cx-layout--thread .cx-thread, .cx-layout--thread .cx-thread-foot { grid-column: 1; max-width: 740px; }
.cx-layout--thread .cx-rail { grid-column: 2; grid-row: 1 / span 2; }

/* Topics rail */
.cx-topics { position: sticky; top: calc(var(--header-h, 72px) + 20px); }
.cx-rail-title { margin: 0 0 10px; padding-left: 12px; color: var(--cx-soft) !important; font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.cx-topics ul { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.cx-topic { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 0 10px 0 12px; border: 0; border-radius: 9px; background: none; color: var(--cx-text); font: inherit; font-size: 14.5px; text-align: left; cursor: pointer; transition: background-color .15s, color .15s; }
.cx-topic svg { flex: none; color: #7c8983; }
.cx-topic span:first-of-type { flex: 1; }
.cx-topic:hover { background: var(--cx-surface); color: var(--cx-ink); }
.cx-topic.is-active { background: var(--cx-mint-strong); color: var(--cx-forest); font-weight: 600; }
.cx-topic.is-active svg { color: var(--cx-green); }
.cx-topic__count { color: var(--cx-soft); font-size: 12.5px; font-variant-numeric: tabular-nums; }

/* Feed */
.cx-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--cx-line); }
.cx-toolbar h2 { margin: 0; font-size: 18px; font-weight: 700; }
.cx-sort { display: flex; align-items: center; gap: 2px; color: var(--cx-soft); font-size: 14px; }
.cx-sort > span { margin-right: 6px; }
.cx-sort button { min-height: 34px; padding: 0 10px; border: 0; border-radius: 8px; background: none; color: var(--cx-soft); font: inherit; font-size: 14px; cursor: pointer; }
.cx-sort button:hover { color: var(--cx-ink); background: var(--cx-surface); }
.cx-sort button[aria-pressed="true"] { color: var(--cx-forest); font-weight: 600; background: var(--cx-mint-strong); }
.cx-search-status { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 14px 0 0; color: var(--cx-soft); font-size: 14.5px; }
.cx-search-status[hidden] { display: none; }
.cx-list { margin: 0; padding: 0; list-style: none; }
.cx-row { position: relative; border-bottom: 1px solid var(--cx-line); }
.cx-row__inner { display: flex; gap: 20px; margin-inline: -12px; padding: 12px 12px 8px; border-radius: 10px; transition: background-color .15s; }
.cx-row:hover .cx-row__inner { background: var(--cx-surface); }
.cx-row__main { flex: 1; min-width: 0; }
.cx-row__title { margin: 5px 0 3px; font-size: 16.5px; line-height: 1.4; font-weight: 500; }
.cx-row__title a { color: var(--cx-ink); text-decoration: none; }
.cx-row__title a::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.cx-row:hover .cx-row__title a { color: var(--cx-green); }
.cx-row__title a:focus-visible { outline: none; }
.cx-row:has(.cx-row__title a:focus-visible) .cx-row__inner { outline: 3px solid var(--cx-green); outline-offset: -3px; }
.cx-row__preview { margin: 0; color: var(--cx-soft); font-size: 15px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cx-row__topic { color: var(--cx-soft); }
.cx-row__thumb { position: relative; z-index: 1; flex: none; align-self: flex-start; width: 112px; margin-top: 4px; }
.cx-row__thumb img { display: block; width: 112px; height: 84px; border-radius: 10px; object-fit: cover; background: var(--cx-surface); }
.cx-row :is(.cx-actions, .cx-meta a, .cx-activity, .cx-report) { position: relative; z-index: 1; }
.cx-row--skeleton { display: grid; gap: 10px; padding: 20px 0; }
.cx-row--skeleton span { display: block; height: 12px; border-radius: 6px; background: linear-gradient(90deg, #eef1ee 0%, #f6f8f5 50%, #eef1ee 100%); background-size: 200% 100%; animation: cx-shimmer 1.2s ease-in-out infinite; }
.cx-row--skeleton span:nth-child(1) { width: 30%; }
.cx-row--skeleton span:nth-child(2) { width: 75%; height: 16px; }
.cx-row--skeleton span:nth-child(3) { width: 90%; }
@keyframes cx-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.cx-empty { padding: 28px 0; color: var(--cx-soft); line-height: 1.6; list-style: none; }
.cx-more-btn { display: flex; margin: 24px auto 0; }
.cx-more-btn[hidden] { display: none; }

/* Metadata and people */
.cx-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0; color: var(--cx-soft); font-size: 13px; line-height: 1.4; }
.cx-meta__name { color: var(--cx-ink); font-weight: 600; }
.cx-meta__sep { color: #a9b3ad; }
.cx-meta a { color: var(--cx-green); }
.cx-role { color: var(--cx-soft); }
.cx-avatar { display: inline-grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; background: hsl(var(--hue, 140) 32% 90%); color: hsl(var(--hue, 140) 35% 28%); font-size: 11px; font-weight: 700; }
.cx-avatar--md { width: 34px; height: 34px; font-size: 13px; }
.cx-avatar--team { background: var(--cx-forest); color: var(--cx-lime); }
.cx-avatar--expert { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--cx-green); }
.cx-badge { display: inline-flex; align-items: center; gap: 3px; padding: 2px 7px 2px 6px; border-radius: 999px; font-size: 11.5px; font-weight: 700; line-height: 1.4; }
.cx-badge--team { background: var(--cx-forest); color: #fff; }
.cx-badge--team svg { color: var(--cx-lime); }
.cx-badge--expert { background: var(--cx-mint-strong); color: var(--cx-forest); padding: 2px 6px 2px 8px; }
.cx-badge--expert svg { color: var(--cx-green); }
.cx-kind { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 10px; color: var(--cx-green); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.cx-kind--inline { margin: 0; font-size: 11px; }
.cx-activity { margin: 0 0 0 auto; padding-left: 12px; color: var(--cx-soft); font-size: 13px; }
.cx-activity strong { color: var(--cx-text); font-weight: 600; }
.cx-activity__team { display: inline-flex; align-items: center; gap: 3px; color: var(--cx-forest) !important; }
.cx-activity__team svg { color: var(--cx-green); }
.cx-activity__none { color: #7a8680; }

/* Actions: quiet until hovered */
.cx-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; margin: 4px 0 0 -8px; }
.cx-action { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 8px; border: 0; border-radius: 8px; background: none; color: #6d7a74; font: inherit; font-size: 13px; font-weight: 500; text-decoration: none; cursor: pointer; list-style: none; transition: background-color .15s, color .15s; }
.cx-action::-webkit-details-marker { display: none; }
.cx-action:hover { background: #eef2ee; color: var(--cx-forest); }
.cx-action.is-on { color: var(--cx-green); font-weight: 600; }
.cx-action.is-on svg { stroke-width: 2.4; }
.cx-action.is-bump svg { animation: cx-bump .2s ease-out; }
@keyframes cx-bump { 50% { transform: translateY(-3px); } }
.cx-action__count { font-variant-numeric: tabular-nums; }
.cx-action__count:empty { display: none; }
.cx-action--static { cursor: default; }
.cx-action--static:hover { background: none; color: #6d7a74; }
.cx-more { position: relative; }
.cx-more__menu { position: absolute; z-index: 5; top: calc(100% + 4px); left: 0; min-width: 160px; padding: 6px; border: 1px solid var(--cx-line); border-radius: 10px; background: #fff; box-shadow: 0 8px 24px #102f2514; }
.cx-more__menu button { display: block; width: 100%; min-height: 40px; padding: 0 12px; border: 0; border-radius: 7px; background: none; color: var(--cx-ink); font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.cx-more__menu button:hover { background: var(--cx-surface); }
.cx-report { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 10px 0 0; padding: 12px; border-radius: 10px; background: var(--cx-surface); font-size: 14px; }
.cx-report select { min-height: 36px; margin-left: 6px; border: 1px solid #cdd6ce; border-radius: 8px; font: inherit; }

/* Right rail */
.cx-rail { position: sticky; top: calc(var(--header-h, 72px) + 20px); display: grid; gap: 16px; }
.cx-module { padding: 18px 20px; border: 1px solid var(--cx-line); border-radius: var(--cx-radius); }
.cx-module--help { border-color: transparent; background: var(--cx-mint); }
.cx-module h2 { margin: 0 0 6px; font-size: 15.5px; font-weight: 700; }
.cx-module p { margin: 0 0 12px; color: var(--cx-soft); font-size: 14px; line-height: 1.55; }
.cx-module p:last-child { margin-bottom: 0; }
.cx-module .cx-textlink { font-size: 14px; }
.cx-popular { display: grid; gap: 2px; margin: 4px 0 0; padding: 0; list-style: none; }
.cx-popular button { display: block; width: 100%; min-height: 36px; padding: 0 8px; margin-left: -8px; border: 0; border-radius: 8px; background: none; color: var(--cx-text); font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.cx-popular button:hover { background: var(--cx-surface); color: var(--cx-green); }
.cx-guidelines summary { color: var(--cx-green); font-size: 14px; font-weight: 600; cursor: pointer; }
.cx-guidelines ul { margin: 10px 0 0; padding-left: 18px; color: var(--cx-soft); font-size: 13.5px; line-height: 1.55; }
.cx-guidelines li { margin-bottom: 6px; }

/* 3. A discussion --------------------------------------------------- */
.cx-crumb { display: flex; gap: 8px; margin: 0 0 18px; color: var(--cx-soft); font-size: 14px; }
.cx-crumb a { color: var(--cx-green); text-decoration: none; }
.cx-crumb a:hover { text-decoration: underline; }
.cx-thread .cx-meta { font-size: 13.5px; }
.cx-thread__title { margin: 12px 0 10px; font-size: clamp(26px, 1.4vw + 18px, 34px); line-height: 1.2; font-weight: 700; }
.cx-thread__title:focus { outline: none; }
.cx-device { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 14px; padding: 3px 10px; border-radius: 999px; background: var(--cx-surface); color: var(--cx-text); font-size: 13px; }
.cx-prose { color: var(--cx-text); font-size: 16px; line-height: 1.6; max-width: 700px; overflow-wrap: anywhere; }
.cx-prose > :first-child { margin-top: 0; }
.cx-prose p { margin: 0 0 14px; }
.cx-prose h3 { margin: 22px 0 8px; color: var(--cx-forest); font-size: 16.5px; font-weight: 700; letter-spacing: 0; }
.cx-prose :is(ul, ol) { margin: 0 0 14px; padding-left: 22px; }
.cx-prose ul { list-style: disc; }
.cx-prose ol { list-style: decimal; }
.cx-prose li::marker { color: var(--cx-green); }
.cx-prose li { margin-bottom: 6px; padding-left: 2px; }
.cx-prose > :last-child { margin-bottom: 0; }
.cx-prose--lead { font-size: 16.5px; margin-top: 8px; }
.cx-photos { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 0; padding: 0; list-style: none; }
.cx-photos img { display: block; width: 180px; height: 135px; border-radius: 10px; object-fit: cover; background: var(--cx-surface); transition: opacity .15s; }
.cx-photos--lead img { width: 260px; height: 195px; }
.cx-photos a:hover img { opacity: .9; }
.cx-replies-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--cx-line); scroll-margin-top: calc(var(--header-h, 72px) + 16px); }
.cx-replies-head h2 { margin: 0; font-size: 18px; font-weight: 700; }
.cx-replies { margin: 0; padding: 0; list-style: none; }
.cx-reply { position: relative; padding: 18px 0 6px; scroll-margin-top: calc(var(--header-h, 72px) + 16px); }
.cx-replies:not(.cx-replies--nested) > .cx-reply + .cx-reply { border-top: 1px solid var(--cx-line); }
.cx-reply > .cx-prose { margin-top: 8px; font-size: 15.5px; }
.cx-replies--nested { margin: 6px 0 0 12px; padding-left: 20px; border-left: 2px solid var(--cx-line); }
.cx-replies--nested .cx-reply { padding-top: 12px; }
.cx-replies--nested .cx-replies--nested .cx-replies--nested { margin-left: 0; padding-left: 0; border-left: 0; }
.cx-reply--expert { margin-inline: -16px; padding-inline: 14px 16px; border-left: 3px solid var(--cx-green); border-radius: 0 10px 10px 0; background: var(--cx-mint); }
.cx-replies:not(.cx-replies--nested) > .cx-reply--expert + .cx-reply, .cx-replies:not(.cx-replies--nested) > .cx-reply + .cx-reply--expert { border-top-color: transparent; margin-top: 8px; }
.cx-reply--best { box-shadow: inset 0 0 0 1px #cfe3c9; }
.cx-best { display: inline-flex; align-items: center; gap: 4px; margin: 0 0 8px; padding: 3px 9px 3px 7px; border-radius: 999px; background: var(--cx-mint-strong); color: var(--cx-forest); font-size: 12px; font-weight: 700; }
.cx-best svg { color: var(--cx-green); }
.cx-replying { margin: 6px 0 0; color: var(--cx-soft); font-size: 13px; }
.cx-reply.is-new { animation: cx-arrive 1.6s ease-out; }
@keyframes cx-arrive { from { background-color: #eaf6d0; } }

/* Composer */
.cx-thread-foot { padding-top: 28px; }
.cx-composer { margin-bottom: 20px; }
.cx-composer__prompt { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 52px; padding: 0 16px; border: 1px solid #d5ddd6; border-radius: 12px; background: #fff; color: var(--cx-soft); font: inherit; font-size: 15.5px; text-align: left; cursor: text; transition: border-color .15s; }
.cx-composer__prompt:hover { border-color: var(--cx-green); color: var(--cx-ink); }
.cx-composer__prompt[hidden] { display: none; }
.cx-replying-to { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--cx-surface); font-size: 14px; }
.cx-replying-to[hidden] { display: none; }

/* Forms */
.cx-form { display: grid; gap: 16px; }
.cx-form[hidden] { display: none; }
.cx-form--reply { padding: 20px; border: 1px solid var(--cx-line); border-radius: var(--cx-radius); }
.cx-form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.cx-field { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--cx-ink); }
.cx-field small { margin-left: 6px; color: var(--cx-soft); font-weight: 400; }
.cx-field :is(input:not([type="file"]), select, textarea) { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #cdd6ce; border-radius: 10px; background: #fff; color: var(--cx-ink); font: inherit; font-size: 16px; font-weight: 400; }
.cx-field textarea { min-height: 120px; line-height: 1.55; resize: vertical; }
.cx-field :is(input, select, textarea):focus { outline: none; border-color: var(--cx-green); box-shadow: 0 0 0 3px #075b461c; }
.cx-field input[type="file"] { font-weight: 400; font-size: 14px; }
.cx-check { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--cx-text); }
.cx-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cx-form__note { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--cx-surface); color: var(--cx-soft); font-size: 13.5px; line-height: 1.5; }
.cx-form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.cx-status { margin: 0; color: var(--cx-text); font-size: 14px; }

/* Start a discussion: opens in the feed column, above the list. */
.cx-start { margin: 0 0 28px; padding: 22px 24px 24px; border: 1px solid var(--cx-line); border-radius: var(--cx-radius); background: #fff; box-shadow: 0 6px 24px #102f250d; scroll-margin-top: calc(var(--header-h, 72px) + 16px); }
.cx-start[hidden] { display: none; }
.cx-start__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -4px -8px 0 0; }
.cx-start__head h2 { margin: 0; color: var(--cx-forest); font-size: 22px; }
/* Start a discussion */
.cx-dialog { width: min(100% - 32px, 640px); max-height: min(92vh, 900px); padding: 0; border: 0; border-radius: 16px; box-shadow: 0 24px 64px #0b1f1833; color: var(--cx-ink); }
.cx-dialog::backdrop { background: #0b1f1873; }
.cx-dialog .cx-form { padding: 22px 24px 24px; }
.cx-dialog__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -4px -8px 0 0; }
.cx-dialog__head h2 { margin: 0; color: var(--cx-forest); font-size: 22px; }

/* Lightbox and toast */
.cx-lightbox { max-width: min(96vw, 1200px); max-height: 92vh; padding: 0; border: 0; border-radius: 12px; background: #0b1511; }
.cx-lightbox::backdrop { background: #050b08d9; }
.cx-lightbox img { display: block; max-width: min(96vw, 1200px); max-height: 92vh; object-fit: contain; }
.cx-lightbox__close { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #ffffffe6; color: var(--cx-forest); cursor: pointer; }
.cx-toast { position: fixed; z-index: 60; left: 50%; bottom: 24px; transform: translateX(-50%); margin: 0; padding: 10px 16px; border-radius: 10px; background: var(--cx-forest); color: #fff; font-size: 14px; box-shadow: 0 8px 24px #0b1f1833; }
.cx-toast[hidden] { display: none; }

@media (prefers-reduced-motion: reduce) {
  .cx *, .cx *::before, .cx *::after { animation: none !important; transition: none !important; }
}

/* Medium screens: drop the right rail */
@media (max-width: 1099px) {
  .cx-layout { grid-template-columns: 216px minmax(0, 1fr); }
  .cx-layout > .cx-rail { display: none; }
  .cx-layout--thread { grid-template-columns: minmax(0, 1fr); }
  .cx-layout--thread .cx-rail { display: none; }
}

/* Phones and small tablets: one column, topics as chips */
@media (max-width: 767px) {
  .cx-wrap { width: min(100% - 36px, 1220px); }
  .cx-head { flex-direction: column; align-items: stretch; gap: 16px; }
  .cx-head__cta { width: 100%; }
  .cx-search { margin: 18px 0 16px; }
  .cx-search__go { padding: 0 14px; }
  .cx-layout { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .cx-topics { position: static; margin-inline: -18px; }
  .cx-rail-title { display: none; }
  .cx-topics ul { display: flex; gap: 8px; overflow-x: auto; padding: 2px 18px 8px; scrollbar-width: none; }
  .cx-topics ul::-webkit-scrollbar { display: none; }
  .cx-topic { width: auto; min-height: 40px; padding: 0 14px; border: 1px solid var(--cx-line); border-radius: 999px; white-space: nowrap; }
  .cx-topic svg, .cx-topic__count { display: none; }
  .cx-topic.is-active { border-color: var(--cx-mint-strong); }
  .cx-toolbar { flex-wrap: wrap; gap: 6px; }
  .cx-sort > span { display: none; }
  .cx-row__inner { flex-direction: column; gap: 10px; }
  .cx-row__thumb { order: 2; width: 100%; margin: 0; }
  .cx-row__thumb img { width: 100%; height: auto; aspect-ratio: 16 / 9; }
  .cx-row__main { display: contents; }
  .cx-row__main > .cx-actions { order: 3; }
  .cx-activity { flex-basis: 100%; margin: 0; padding: 0 0 0 8px; }
  .cx-action { min-height: 44px; }
  .cx-action__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .cx-row .cx-role { display: none; }
  .cx-row .cx-meta .cx-badge + .cx-meta__sep, .cx-row .cx-meta .cx-role + .cx-meta__sep { display: inline; }
  .cx-form__row { grid-template-columns: minmax(0, 1fr); }
  .cx-photos img, .cx-photos--lead img { width: calc(50vw - 28px); height: calc((50vw - 28px) * .75); }
  .cx-replies--nested { margin-left: 4px; padding-left: 14px; }
  .cx-reply--expert { margin-inline: -18px; padding-inline: 15px 18px; border-radius: 0; }
  .cx-dialog { width: 100%; max-width: none; max-height: 100dvh; height: 100dvh; margin: 0; border-radius: 0; }
  .cx-dialog .cx-form { padding: 16px 18px 28px; }
  .cx-start { margin-inline: -4px; padding: 18px 16px 20px; }
}

/* The site gives every button 16px semibold text (body :is(button, …)).
   Community controls are quieter; these restate their type at page
   specificity so they are not overridden. */
body.page-community :is(.cx-topic, .cx-popular button, .cx-more__menu button) { font-size: 14.5px; font-weight: 500; }
body.page-community .cx-topic.is-active { font-weight: 600; }
body.page-community .cx-sort button { font-size: 14px; font-weight: 500; }
body.page-community .cx-sort button[aria-pressed="true"] { font-weight: 600; }
body.page-community .cx-action { font-size: 13px; font-weight: 500; }
body.page-community .cx-action.is-on { font-weight: 600; }
body.page-community :is(.cx-btn, .cx-search__go) { font-size: 15px; font-weight: 600; }
body.page-community .cx-btn--sm { font-size: 14px; }
body.page-community .cx-composer__prompt { font-size: 15.5px; font-weight: 400; }
body.page-community .cx-link { font-size: inherit; font-weight: 600; }
body.page-community .cx-guidelines summary { font-size: 14px; font-weight: 600; }

/* A focused title marks its whole row; the site's own link focus style
   (a box around each line of text) is switched off here, and a heading
   focused by the page itself shows no ring. */
body.page-community .cx-row__title a:is(:focus, :focus-visible) { outline: none; box-shadow: none; background: none; text-decoration: underline; text-underline-offset: 4px; }
body.page-community .cx-row:has(.cx-row__title a:focus-visible) .cx-row__inner { outline: 2px solid var(--cx-green); outline-offset: -2px; }
body.page-community .cx-thread__title:is(:focus, :focus-visible) { outline: none; box-shadow: none; }
body.page-community .cx-row__title, body.page-community .cx-row__title a { font-weight: 500; }
