/* Repair Community: a simple feed, not a forum. */
/* Community hub: editorial introduction, topic rail, conversations and library. */
.page-community .cm-hero--home { background:#102f25; color:#fff; padding:64px 0; }
.page-community .cm-hero-grid { display:grid; grid-template-columns:minmax(0,1.5fr) minmax(280px,1fr); gap:72px; align-items:center; }
.page-community .cm-hero--home .eyebrow { color:#d6f76a; }
.page-community .cm-hero--home h1 { color:#fff; font-size:clamp(36px,4.8vw,60px); line-height:1.1; margin:16px 0 24px; }
.page-community .cm-hero--home .cm-lede { font-size:clamp(21px,2.4vw,28px); line-height:1.45; color:#fff; }
.cm-hero-description { max-width:530px; color:#c9d9d1; line-height:1.75; margin:18px 0 0; }
.page-community .cm-hero--home .btn--primary { background:#d6f76a; border-color:#d6f76a; color:#102f25; }
.page-community .cm-hero--home .tlink { color:#fff; font-size:14px; }
.cm-welcome { background:#204337; border:1px solid #466155; border-radius:20px; padding:32px; }
.cm-welcome-icon { display:grid; place-items:center; width:44px; height:44px; border-radius:12px; background:#d6f76a; color:#102f25; font-size:27px; font-weight:600; }
.page-community .cm-welcome h2 { color:#fff; font-size:25px; line-height:1.3; margin:22px 0 14px; }
.cm-welcome p { color:#d1ded7; font-size:15px; line-height:1.75; }
.cm-welcome-foot { display:flex; flex-wrap:wrap; gap:12px 24px; border-top:1px solid #466155; margin-top:24px; padding-top:18px; color:#d6f76a; font-size:12px; }
.cm-workspace { display:grid; grid-template-columns:240px minmax(0,1fr); gap:48px; padding-block:48px; align-items:start; }
.cm-sidebar { position:sticky; top:104px; }
.cm-sidebar .cm-topics { display:grid; gap:4px; margin:18px 0 28px; }
.cm-sidebar .cm-topic { text-align:left; padding:12px 14px; border-radius:8px; border-color:transparent; background:transparent; line-height:1.4; }
.cm-sidebar .cm-topic:hover { background:#eef3ed; }
.cm-sidebar .cm-topic.is-active { background:#075b46; color:white; font-weight:600; }
.cm-sidebar-help { background:#eef3e9; padding:22px; border-radius:12px; }
.cm-sidebar-help h2 { font-size:17px; line-height:1.4; margin:0 0 10px; }
.cm-sidebar-help p,.cm-sidebar-note { font-size:14px; line-height:1.7; color:#52635b; }
.cm-sidebar-note { padding:8px 6px; }
.cm-feed-heading { display:flex; justify-content:space-between; gap:20px; align-items:center; margin-bottom:22px; }
.cm-feed-heading .eyebrow { margin:0 0 8px; }
.cm-feed-heading h2 { font-size:clamp(23px,2.5vw,30px); line-height:1.3; margin:0; }
.cm-feed-heading>a { flex-shrink:0; }
.cm-main { min-width:0; }
.cm-main .cm-starters { border:0; border-top:1px solid #d9e1d8; background:transparent; margin:36px 0 0; padding:32px 0 0; }
.cm-main .cm-starters>.cm-narrow { max-width:none; padding:0; width:100%; }
.cm-main .cm-starters__heading>.btn { display:none; }
.cm-main .cm-sample-notice { background:#f6f8f4; border:0; border-left:3px solid #99b783; border-radius:0 8px 8px 0; padding:12px 16px; font-size:13px; margin:20px 0; }
.cm-main .cm-sample-notice strong { display:inline; margin-right:6px; }
.cm-main .cm-starter-controls { display:grid; grid-template-columns:minmax(0,1.5fr) minmax(180px,1fr); align-items:end; }
.cm-starter-controls input { width:100%; min-height:46px; border:1px solid #b9c4bc; border-radius:8px; padding:10px 12px; font:inherit; font-weight:400; background:white; }
.cm-library-results { margin:0 0 16px; color:#52635b; font-size:13px; }
.cm-main .cm-starter-list { gap:0; border:1px solid #d9e1d8; border-radius:14px; overflow:clip; }
.cm-main .cm-starter { border:0; border-bottom:1px solid #d9e1d8; border-radius:0; }
.cm-main .cm-starter:last-child { border-bottom:0; }
.cm-main .cm-starter>summary { gap:8px; padding:22px 24px; }
.cm-main .cm-starter>summary:hover { background:#f7f9f5; }
.cm-main .cm-starter[open]>summary { background:#eef3e9; }
.cm-main .cm-starter__title { font-size:17px; line-height:1.5; }
.cm-main .cm-starter__meta { font-size:12px; }
.cm-main .cm-empty { padding:26px; margin:0; border:1px dashed #b9c4bc; background:#f7f8f4; border-radius:12px; line-height:1.75; }
.page-community .cm-compose { background:#f1f4ed; border-top:1px solid #d9e1d8; padding-block:56px; }
.cm-compose-grid { display:grid; grid-template-columns:minmax(230px,.7fr) minmax(0,1.3fr); gap:64px; align-items:start; }
.cm-compose-intro h2 { font-size:clamp(28px,3vw,38px); line-height:1.25; margin:16px 0 24px; }
.cm-compose-intro p:not(.eyebrow) { max-width:370px; color:#52635b; line-height:1.8; }
.cm-compose .cm-form { padding:32px; gap:22px; box-shadow:0 4px 20px #102f2505; }
@media(max-width:1000px) {
 .page-community .cm-hero-grid { gap:32px; grid-template-columns:1.3fr 1fr; }
 .cm-workspace { grid-template-columns:200px minmax(0,1fr); gap:28px; }
 .cm-compose-grid { gap:32px; }
 .cm-feed-heading { display:block; }
 .cm-feed-heading>a { display:inline-block; margin-top:12px; }
}
@media(max-width:767px) {
 .page-community .cm-hero--home { padding-block:36px; }
 .page-community .cm-hero-grid,.cm-compose-grid,.cm-workspace { grid-template-columns:1fr; gap:28px; }
 .cm-welcome { display:none; }
 .cm-workspace { padding-block:28px; }
 .cm-sidebar { position:static; min-width:0; }
 .cm-sidebar .cm-topics { display:flex; flex-wrap:nowrap; overflow-x:auto; margin:12px 0 0; padding-bottom:8px; }
 .cm-sidebar .cm-topic { flex:0 0 auto; border:1px solid #d9e1d8; background:white; }
 .cm-sidebar-help,.cm-sidebar-note { display:none; }
 .cm-main .cm-starter-controls { grid-template-columns:1fr; gap:14px; }
 .cm-main .cm-starter>summary { padding:20px; }
 .page-community .cm-compose { padding-block:32px; }
 .cm-compose-intro h2 br { display:none; }
 .cm-compose .cm-form { padding:22px; }
 .cm-starter-controls input { font-size:16px; }
}
.page-community .cm-narrow { max-width: 760px; }
.page-community [hidden] { display: none !important; }
.cm-hero { padding: 40px 0 8px; }
.cm-hero h1 { margin: 6px 0 10px; font-size: clamp(32px, 5vw, 48px); line-height: 1.08; letter-spacing: -.03em; }
.cm-hero--thread h1 { font-size: clamp(26px, 4vw, 38px); }
.cm-hero .eyebrow a { color: inherit; }
.cm-lede { margin: 0; font-size: 18px; color: #42564e; }
.cm-section { padding-block: 20px; }
.cm-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 24px; }
.page-community .cm-starters>.cm-narrow { max-width: 960px; }
.cm-starters { margin-block: 20px; padding-block: 32px; background: var(--canvas, #f6f8f5); border-block: 1px solid var(--line, #d8ddd1); }
.cm-starters__heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.cm-starters__heading h2 { margin: 6px 0 10px; font-size: clamp(24px, 3vw, 30px); line-height: 1.25; }
.cm-starters__heading p { margin: 0; line-height: 1.65; }
.cm-sample-notice { padding: 16px 20px; border: 1px solid var(--line, #d8ddd1); border-radius: 10px; background: var(--sage, #edf3e9); font-size: 14px; line-height: 1.7; margin: 24px 0; }
.cm-sample-notice strong { display: block; color: var(--ink, #102c23); }
.cm-starter-controls { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.cm-starter-controls label { display: grid; gap: 8px; font-size: 14px; font-weight: 600; }
.cm-starter-controls select { background: white; color: var(--ink, #102c23); border: 1px solid var(--control-line, #b9c4bc); border-radius: 8px; min-height: 44px; padding: 10px 36px 10px 12px; font: inherit; font-weight: 400; }
.cm-starter-controls p { margin: 0 0 12px; font-size: 13px; color: var(--text-soft, #42564e); }
.cm-starter-list { display: grid; gap: 12px; }
.cm-starter { border: 1px solid var(--line, #d8ddd1); border-radius: 12px; background: white; scroll-margin-top: 96px; overflow: clip; }
.cm-starter[hidden] { display: none; }
.cm-starter>summary { display: grid; gap: 10px; padding: 20px 24px; cursor: pointer; list-style: none; }
.cm-starter>summary::-webkit-details-marker { display: none; }
.cm-starter>summary:focus-visible { outline: 3px solid var(--brand, #08734c); outline-offset: -3px; border-radius: 12px; }
.cm-starter__topic { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--brand, #08734c); }
.cm-starter__topic>span { background: var(--sage, #edf3e9); color: var(--text-soft, #42564e); padding: 2px 8px; border-radius: 4px; }
.cm-starter__title { font-size: 18px; font-weight: 600; line-height: 1.5; color: var(--ink, #102c23); }
.cm-starter__meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--text-soft, #42564e); font-size: 13px; }
.cm-starter[open] .cm-starter__meta svg { transform: rotate(180deg); }
.cm-starter__conversation { display: grid; gap: 16px; border-top: 1px solid var(--line, #d8ddd1); padding: 24px; }
.cm-starter__conversation h3 { margin: 0 0 8px; font-size: 13px; font-weight: 600; color: var(--brand, #08734c); }
.cm-starter__conversation p { margin: 0; font-size: 15px; line-height: 1.75; }
.cm-starter__reply { border-left: 3px solid var(--line, #d8ddd1); padding: 16px; background: var(--canvas, #f6f8f5); border-radius: 0 8px 8px 0; }
.cm-starters-more { margin-top: 20px; }
.cm-starters__live { margin: 20px 0 0; }
.page-community #community-form, .page-community #cm-feed-title { scroll-margin-top: 96px; }
@media(max-width:599px) {
 .cm-starters__heading>.btn { display: none; }
 .cm-starter>summary, .cm-starter__conversation { padding: 18px; }
 .cm-starter-controls { align-items: stretch; gap: 10px; }
 .cm-starter-controls>label { width: 100%; }
 .cm-starter-controls select { font-size: 16px; }
 .cm-starter-controls p { margin: 0; }
}

.cm-form { display: grid; gap: 14px; padding: 22px; border: 1px solid #d8ddd1; border-radius: 12px; background: #fff; }
.cm-form h2, .cm-form h3 { margin: 0; font-size: 20px; }
.cm-form__row { display: grid; gap: 14px; }
@media (min-width: 640px) { .cm-form__row { grid-template-columns: 1fr 1fr; } }
.cm-field { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
.cm-field small { display: block; font-weight: 400; color: #5b6b63; }
.cm-field input, .cm-field select, .cm-field textarea { width: 100%; box-sizing: border-box; padding: 11px 12px; border: 1px solid #b9c4bc; border-radius: 8px; font: inherit; font-weight: 400; background: #fff; }
.cm-field textarea { resize: vertical; min-height: 110px; }
.cm-field input[type="file"] { padding: 8px; }
.cm-remember { display: flex; gap: 8px; align-items: center; font-size: 14px; color: #42564e; }
.cm-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.cm-form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.cm-status { margin: 0; font-size: 14px; color: #42564e; }

.cm-guidelines { margin-top: 14px; font-size: 15px; color: #42564e; }
.cm-guidelines summary { cursor: pointer; font-weight: 600; }
.cm-guidelines ul { margin: 10px 0 0; padding-left: 20px; }

.cm-section--feed h2 { margin: 0 0 14px; }
.cm-topics { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.cm-topic { padding: 7px 13px; border: 1px solid #b9c4bc; border-radius: 999px; background: #fff; font: inherit; font-size: 14px; cursor: pointer; color: #20332b; }
.cm-topic.is-active { background: #102c23; border-color: #102c23; color: #fff; }
.cm-feed { display: grid; gap: 14px; }
.cm-empty { color: #5b6b63; }
.cm-more { margin-top: 16px; }

.cm-thread { padding: 18px 20px; border: 1px solid #d8ddd1; border-radius: 12px; background: #fff; }
.cm-thread__topic { margin: 0 0 8px; font-size: 13px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: #08734c; }
.cm-thread__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 12px; }
.cm-thread__more { margin-top: 16px; display: grid; gap: 14px; }

.cm-post__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 14px; color: #5b6b63; }
.cm-post__name { font-size: 16px; color: #102c23; }
.cm-post__head time { margin-left: auto; }
.cm-badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; background: #eef2ec; color: #42564e; }
.cm-badge--repairer { background: #e1f3e8; color: #08734c; }
.cm-badge--team { background: #102c23; color: #d6f76a; }
.cm-post__body { margin-top: 8px; font-size: 16px; line-height: 1.6; color: #20332b; overflow-wrap: anywhere; }
.cm-post__body p { margin: 0 0 10px; }
.cm-post__body p:last-child { margin-bottom: 0; }
.cm-post__foot { margin-top: 6px; }
.cm-link { padding: 0; border: 0; background: none; font: inherit; font-size: 14px; color: #08734c; text-decoration: underline; cursor: pointer; }
.cm-photos { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.cm-photos img { display: block; width: 160px; height: 120px; object-fit: cover; border-radius: 8px; border: 1px solid #d8ddd1; }

.cm-replies { display: grid; gap: 12px; }
.cm-post--reply { padding: 14px 16px; border-left: 3px solid #d6e3d9; background: #f7f9f5; border-radius: 0 10px 10px 0; }
.cm-replies-title { margin: 22px 0 10px; font-size: 20px; }
.page-community #community-thread > .cm-post--root { padding: 20px; border: 1px solid #d8ddd1; border-radius: 12px; background: #fff; }
.page-community #community-thread { display: grid; gap: 16px; }

.cm-report { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; font-size: 14px; }
.cm-report select { padding: 6px 8px; border: 1px solid #b9c4bc; border-radius: 6px; font: inherit; }

.cm-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-radius: 12px; background: #d6f76a; color: #102c23; }
.cm-cta p { margin: 0; max-width: 460px; }

@media (max-width: 599px) {
  .cm-form, .cm-thread { padding: 16px; }
  .cm-post__head time { margin-left: 0; width: 100%; }
  .cm-photos img { width: 100px; height: 76px; }
  .cm-cta .btn { width: 100%; justify-content: center; }
}

/* Phones: leave room below the forms so their buttons can always scroll
   clear of the site's sticky call/book bar. */
@media (max-width: 767px) {
  .page-community .cm-form { scroll-margin-bottom: 96px; }
  .page-community .cm-form__actions { padding-bottom: 8px; }
  .page-community main { padding-bottom: 88px; }
}
