/* Community feed: compact social layout, scoped to the community landing page. */
body.community-hub-page { background: #f0f2f5; }
.community-social { padding: 0 0 34px; background: #f0f2f5; min-height: 55vh; }
.community-social-wrap { width: min(100% - 40px, 1440px); }
.community-social-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 77px;
  margin-bottom: 14px;
  border-bottom: 1px solid #dfe3e8;
}
.community-social-heading h1 {
  margin: 0;
  color: #172b4d;
  font: 700 25px/1.15 'Bricolage Grotesque', 'Instrument Sans', sans-serif;
  letter-spacing: -.025em;
}
.community-social-heading p { margin: 4px 0 0; color: #697586; font-size: 13px; }
.community-create-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid #d8e1ed;
  border-radius: 9px;
  background: #fff;
  color: #163d69;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.community-create-link:hover { border-color: #a8bed7; background: #f8fbff; transform: translateY(-1px); }
.community-create-link > span { color: #f36f21; font-size: 19px; line-height: 1; }
.community-social-layout {
  display: grid;
  grid-template-columns: minmax(205px, 245px) minmax(0, 1fr) minmax(230px, 280px);
  align-items: start;
  gap: 18px;
}
.community-social-left,
.community-social-right { display: grid; gap: 12px; min-width: 0; }
.community-social-profile,
.community-social-nav,
.community-social-note,
.community-social-event,
.community-social-about,
.community-social-join,
.community-social-composer,
.community-social-tools,
.community-post,
.community-empty {
  border: 1px solid #e1e5ea;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 2px rgb(16 24 40 / 4%);
}
.community-social-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 66px;
  padding: 10px 12px;
  color: #1b2d45;
  text-decoration: none;
}
.community-social-profile img,
.community-social-composer > img { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.community-social-profile strong,
.community-social-profile small { display: block; }
.community-social-profile strong { font-size: 13px; line-height: 1.25; }
.community-social-profile small { margin-top: 3px; color: #7a8695; font-size: 10px; line-height: 1.35; }
.community-social-nav { display: grid; gap: 3px; padding: 7px; }
.community-social-nav > a {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 5px 8px;
  border-radius: 7px;
  color: #34445a;
  font-size: 12px;
  font-weight: 550;
  text-decoration: none;
  transition: background .16s ease, color .16s ease;
}
.community-social-nav > a:hover,
.community-social-nav > a.is-active,
.community-social-nav > a[aria-current="page"] { background: #edf4fb; color: #174b7d; }
.community-nav-icon {
  display: grid;
  place-items: center;
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: #f0f5fa;
  color: #3478b8;
  font-size: 12px;
  font-weight: 750;
}
.community-nav-count { margin-left: auto; color: #8490a0; font-size: 9px; white-space: nowrap; }
.community-social-note { padding: 13px 14px; }
.community-social-note strong { color: #213b5a; font-size: 12px; }
.community-social-note p { margin: 5px 0 9px; color: #758195; font-size: 11px; line-height: 1.5; }
.community-social-note a,
.community-social-event > a,
.community-social-about > a { color: #28669d; font-size: 11px; font-weight: 650; text-decoration: none; }
.community-social-note a:hover,
.community-social-event > a:hover,
.community-social-about > a:hover { text-decoration: underline; }
.community-social-feed { display: grid; gap: 10px; min-width: 0; }
.community-social-composer {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
}
.community-social-composer > a:not(.community-composer-action) {
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 0 13px;
  border-radius: 999px;
  background: #f0f2f5;
  color: #707b8c;
  font-size: 12px;
  text-decoration: none;
  transition: background .16s ease;
}
.community-social-composer > a:not(.community-composer-action):hover { background: #e7ebf0; }
.community-composer-action {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 10px;
  border-radius: 7px;
  color: #28669d;
  font-size: 11px;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}
.community-composer-action:hover { background: #edf4fb; }
.community-composer-action span { color: #f36f21; font-size: 17px; line-height: .8; }
.community-social-tools { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 8px; padding: 8px; }
.community-social-tools .community-search { min-height: 38px; border-radius: 7px; background: #f6f7f9; }
.community-social-tools .community-search input { font-size: 12px; }
.community-social-tools .community-filter-label select { min-height: 38px; border-radius: 7px; border-color: #e5e8ed; background-color: #f6f7f9; color: #4f5c6e; font-size: 11px; }
.community-social-feed-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 3px 2px 1px; }
.community-social-feed-head h2 { margin: 0; color: #293d57; font-size: 14px; font-weight: 700; }
.community-social-feed-head .community-feed-count { color: #818b99; font-size: 10px; }
.community-social .community-feed { display: grid; gap: 10px; }
.community-social .community-post { padding: 14px 16px 12px; border-radius: 10px; box-shadow: 0 1px 2px rgb(16 24 40 / 4%); }
.community-social .community-post:hover { transform: translateY(-1px); border-color: #d2dae4; box-shadow: 0 5px 14px rgb(16 24 40 / 7%); }
.community-social .community-post-top { gap: 6px; margin-bottom: 8px; }
.community-social .community-post-kind,
.community-social .community-post-topic,
.community-social .community-solved { min-height: 20px; padding: 2px 7px; font-size: 9px; }
.community-social .community-post h3 { color: #22364f; font-size: 16px; line-height: 1.35; }
.community-social .community-post-body { max-width: none; margin: 6px 0 11px; color: #536174; font-size: 13px; line-height: 1.55; }
.community-social .community-post-meta { gap: 9px 13px; padding-top: 9px; font-size: 10px; }
.community-social .community-avatar { width: 26px; height: 26px; font-size: 10px; }
.community-social .community-empty { padding: 23px 18px; box-shadow: none; }
.community-social-event,
.community-social-about { padding: 14px; }
.community-social-kicker { margin: 0 0 10px; color: #bb5a20; font-size: 10px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.community-event-line { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.community-social .community-event-date { display: grid; grid-template-columns: 1fr; align-content: center; justify-items: center; gap: 1px; flex: 0 0 43px; width: 43px; height: 45px; margin: 0; padding: 3px; border: 1px solid #f2d5c3; border-radius: 8px; background: #fff7f1; color: #c5541b; }
.community-social .community-event-date strong { font-size: 19px; line-height: 1; }
.community-social .community-event-date span { font-size: 8px; font-weight: 750; }
.community-social .community-event-date strong { color: #c5541b; }
.community-social .community-event-date span { color: #ae4a1c; letter-spacing: .04em; }
.community-social-event h2,
.community-social-about h2 { margin: 0; color: #253c58; font-size: 13px; line-height: 1.35; }
.community-social-event .community-event-line p { margin: 4px 0 0; color: #7a8695; font-size: 10px; line-height: 1.4; }
.community-social-about p { margin: 6px 0 10px; color: #6d798b; font-size: 11px; line-height: 1.55; }
.community-social-join { display: flex; align-items: center; gap: 9px; padding: 11px 12px; color: #324962; text-decoration: none; transition: border-color .16s ease, transform .16s ease; }
.community-social-join:hover { transform: translateY(-1px); border-color: #efc5aa; }
.community-join-mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: #fff2e9; color: #d45c1c; font-size: 20px; }
.community-social-join strong,
.community-social-join small { display: block; }
.community-social-join strong { font-size: 11px; }
.community-social-join small { margin-top: 2px; color: #8590a0; font-size: 9px; }
.community-social-join > span:last-child { margin-left: auto; color: #7a8aa0; }

@media (max-width: 1100px) {
  .community-social-layout { grid-template-columns: minmax(190px, 225px) minmax(0, 1fr); }
  .community-social-right { grid-column: 2; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .community-social-join { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .community-social-layout { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .community-social-left { gap: 8px; }
  .community-social-profile,
  .community-social-note { display: none; }
  .community-social-nav { display: flex; gap: 5px; overflow-x: auto; padding: 5px; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; }
  .community-social-nav::-webkit-scrollbar { display: none; }
  .community-social-nav > a { flex: 0 0 auto; min-height: 36px; padding: 5px 9px; white-space: nowrap; font-size: 11px; scroll-snap-align: start; }
  .community-nav-icon { flex-basis: 24px; width: 24px; height: 24px; }
  .community-social-right { grid-column: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .community-social-wrap { width: min(100% - 24px, 620px); }
  .community-social { padding-bottom: 24px; }
  .community-social-heading { min-height: 65px; margin-bottom: 10px; }
  .community-social-heading h1 { font-size: 22px; }
  .community-social-heading p { font-size: 11px; }
  .community-create-link { min-height: 36px; padding: 0 10px; font-size: 11px; }
  .community-social-layout { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .community-social-left { gap: 8px; }
  .community-social-profile { display: none; }
  .community-social-nav { display: flex; gap: 5px; overflow-x: auto; padding: 5px; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; }
  .community-social-nav::-webkit-scrollbar { display: none; }
  .community-social-nav > a { flex: 0 0 auto; min-height: 34px; padding: 4px 8px; white-space: nowrap; font-size: 10px; scroll-snap-align: start; }
  .community-social-nav > a:not(:first-child) .community-nav-count { display: none; }
  .community-nav-icon { flex-basis: 22px; width: 22px; height: 22px; font-size: 10px; }
  .community-social-note { display: none; }
  .community-social-feed { gap: 8px; }
  .community-social-composer { grid-template-columns: 34px minmax(0, 1fr); gap: 8px; padding: 9px; }
  .community-social-profile img,
  .community-social-composer > img { width: 34px; height: 34px; }
  .community-social-composer > a:not(.community-composer-action) { min-height: 35px; padding: 0 10px; font-size: 11px; }
  .community-composer-action { grid-column: 2; justify-self: end; padding: 5px 8px; }
  .community-social-tools { grid-template-columns: minmax(0, 1fr) 150px; gap: 6px; padding: 6px; }
  .community-social-right { grid-column: auto; grid-template-columns: minmax(0, 1fr); }
  .community-social-about { display: none; }
  .community-social-join { display: none; }
}
@media (max-width: 460px) {
  .community-social-wrap { width: min(100% - 18px, 420px); }
  .community-social-heading { align-items: flex-start; padding: 12px 0 10px; }
  .community-social-heading p { max-width: 220px; }
  .community-create-link { flex: 0 0 auto; width: 38px; height: 38px; overflow: hidden; padding: 0; font-size: 0; }
  .community-create-link > span { font-size: 22px; }
  .community-social-tools { grid-template-columns: minmax(0, 1fr); }
  .community-social-tools .community-filter-label select { width: 100%; }
  .community-social .community-post { padding: 12px 12px 10px; }
  .community-social .community-post h3 { font-size: 15px; }
  .community-social .community-post-body { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .community-social *, .community-social *::before, .community-social *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Community interaction states and compact account screens. */
.community-social-composer[data-community-composer] { display: block; }
.community-social-composer[data-community-composer] > img { float: left; margin-right: 10px; }
.community-composer-user { display: flex; min-width: 0; align-items: center; gap: 10px; }
.community-composer-user > img,
.community-post-author > img { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.community-composer-user > span:not(.community-avatar),
.community-post-author > span:not(.community-avatar) { display: grid; min-width: 0; gap: 3px; }
.community-composer-user strong,
.community-post-author strong { color: #273d56; font-size: 12px; }
.community-composer-user small,
.community-post-author small { color: #8490a0; font-size: 10px; }
.community-logout { margin-left: auto; padding: 6px 9px; border: 1px solid #e3e8ef; border-radius: 7px; background: #fff; color: #69798d; font: inherit; font-size: 10px; cursor: pointer; }
.community-composer-form { clear: both; display: grid; gap: 8px; padding-top: 10px; }
.community-composer-form textarea { width: 100%; min-height: 68px; resize: vertical; padding: 10px 12px; border: 1px solid #e1e6ed; border-radius: 8px; background: #f7f8fa; color: #263950; font: 12px/1.5 'Instrument Sans', sans-serif; }
.community-composer-controls { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.community-composer-controls select { min-height: 34px; max-width: 245px; padding: 0 28px 0 10px; border: 1px solid #e1e6ed; border-radius: 7px; background: #fff; color: #506176; font: 11px 'Instrument Sans', sans-serif; }
.community-form-message { margin: 0; color: #236b52; font-size: 11px; }
.community-form-message.is-error { color: #a83b38; }
.community-composer-user .community-avatar { width: 36px; height: 36px; font-size: 13px; }
.community-social .community-post { display: block; }
.community-post-author { display: flex; align-items: center; gap: 9px; margin: 0 0 9px; }
.community-post-author .community-avatar { width: 34px; height: 34px; font-size: 12px; }
.community-post-group { color: #687d91; font-size: 10px; }
.community-social .community-post-body { white-space: pre-wrap; overflow-wrap: anywhere; }
.community-post-media { display: block; max-width: 100%; max-height: 420px; margin: 8px auto 12px; border-radius: 8px; object-fit: contain; }
.community-post-actions { display: flex; align-items: center; gap: 6px; border-top: 1px solid #eef1f5; padding-top: 8px; }
.community-post-actions button { display: inline-flex; min-height: 32px; align-items: center; gap: 5px; padding: 5px 10px; border: 0; border-radius: 7px; background: transparent; color: #637287; font: 600 11px 'Instrument Sans', sans-serif; cursor: pointer; }
.community-post-actions button:hover { background: #f3f6fa; color: #214e78; }
.community-post-actions button[aria-pressed="true"] { color: #d44753; }
.community-post-actions button span { font-size: 16px; }
.community-post-actions button b { color: #8994a2; font-size: 10px; font-weight: 600; }
.community-comments { display: grid; gap: 8px; margin-top: 8px; padding-top: 9px; border-top: 1px solid #eef1f5; }
.community-comment { padding: 8px 10px; border-radius: 8px; background: #f6f7f9; }
.community-comment strong { color: #31465f; font-size: 10px; }
.community-comment p { margin: 3px 0; color: #536174; font-size: 11px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.community-comment small { color: #8a95a3; font-size: 9px; }
.community-comment-reply { margin: 8px 0 0 12px; padding-left: 9px; border-left: 2px solid #dce5ef; }
.community-no-comments,
.community-comment-loading,
.community-comments-signin { margin: 0; color: #7c8998; font-size: 11px; }
.community-comments-signin a { color: #28669d; font-weight: 650; }
.community-comment-form { display: flex; gap: 7px; }
.community-comment-form input { flex: 1; min-width: 0; min-height: 34px; padding: 0 10px; border: 1px solid #e1e6ed; border-radius: 18px; font: 11px 'Instrument Sans', sans-serif; }
.community-comment-form button { padding: 0 12px; border: 0; border-radius: 18px; background: #1d5a8d; color: white; font: 600 10px 'Instrument Sans', sans-serif; cursor: pointer; }
.community-load-more { justify-self: center; min-height: 36px; padding: 0 16px; border: 1px solid #dce4ed; border-radius: 8px; background: #fff; color: #3c5978; font: 600 11px 'Instrument Sans', sans-serif; cursor: pointer; }
.community-load-more:hover { border-color: #b8cadc; background: #f7faff; }
.community-retry-comments { justify-self: start; border: 0; background: transparent; color: #28669d; font: 600 11px 'Instrument Sans', sans-serif; cursor: pointer; }

.community-auth-main { min-height: 56vh; padding: 38px 0 46px; background: radial-gradient(circle at 78% 20%, #fff0e6 0, transparent 32%), #f5f7fa; }
.community-auth-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 470px); align-items: center; gap: clamp(24px, 6vw, 84px); }
.community-auth-intro { max-width: 600px; }
.community-auth-intro h1 { max-width: 12ch; margin: 12px 0; color: #10243e; font: 700 clamp(32px, 4.2vw, 54px)/1.08 'Bricolage Grotesque', 'Instrument Sans', sans-serif; letter-spacing: -.04em; }
.community-auth-intro > p:not(.eyebrow) { max-width: 54ch; color: #586b82; font-size: 15px; line-height: 1.65; }
.community-auth-intro > a { display: inline-block; margin-top: 13px; color: #296392; font-size: 12px; font-weight: 650; text-decoration: none; }
.community-auth-card { display: grid; gap: 12px; padding: 24px; border: 1px solid #e0e6ee; border-radius: 14px; background: #fff; box-shadow: 0 14px 36px rgb(22 43 68 / 8%); }
.community-auth-card h2 { margin: 0; color: #1a304b; font: 700 23px/1.2 'Bricolage Grotesque', 'Instrument Sans', sans-serif; }
.community-auth-card > div > p:last-child { margin: 5px 0 0; color: #78879a; font-size: 12px; }
.community-auth-kicker { margin: 0 0 5px; color: #bc541d; font-size: 10px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.community-auth-card > label { display: grid; gap: 5px; color: #394f68; font-size: 11px; font-weight: 650; }
.community-auth-card input { width: 100%; min-height: 40px; padding: 0 11px; border: 1px solid #dbe3ec; border-radius: 7px; background: #fff; color: #203650; font: 12px 'Instrument Sans', sans-serif; }
.community-auth-card input:focus { outline: 2px solid rgb(35 119 186 / 20%); border-color: #5894c4; }
.community-auth-optional { color: #8793a0; font-weight: 400; }
.community-auth-card > .btn { display: flex; width: 100%; min-height: 42px; align-items: center; justify-content: center; gap: 10px; margin-top: 2px; }
.community-auth-message { margin: 0; color: #236b52; font-size: 11px; }
.community-auth-message.is-error { color: #a83b38; }
.community-auth-switch { margin: 0; color: #718096; font-size: 11px; text-align: center; }
.community-auth-switch a { color: #28669d; font-weight: 700; }
.community-auth-privacy { color: #8b97a5; font-size: 9px; line-height: 1.5; text-align: center; }

@media (max-width: 620px) {
  body.community-hub-page .announce > .wrap,
  body.community-auth-page .announce > .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; justify-content: stretch; gap: 7px; padding: 7px 12px; text-align: left; }
  body.community-hub-page .announce > .wrap > span,
  body.community-auth-page .announce > .wrap > span { min-width: 0; font-size: 10px; line-height: 1.35; text-align: left; }
  body.community-hub-page .announce .glow-cta,
  body.community-auth-page .announce .glow-cta { min-height: 30px; gap: 4px; padding: 4px 8px; white-space: nowrap; font-size: 10px; }
  .community-auth-main { min-height: 0; padding: 25px 0 30px; }
  .community-auth-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .community-auth-intro h1 { max-width: 16ch; font-size: clamp(30px, 9vw, 42px); }
  .community-auth-intro > p:not(.eyebrow) { margin: 7px 0; font-size: 13px; }
  .community-auth-card { gap: 10px; padding: 17px; }
  .community-auth-card h2 { font-size: 21px; }
}

/* The community feed keeps its shared site navigation without the campaign ribbon. */
body.community-hub-page .announce,
body.community-auth-page .announce { display: none; }
