/*
 * Hometown Country Meadows / Community Home 9.4
 * New, isolated homepage layout. Does NOT inherit the old homegrid/rightcol
 * widget structure. All right-rail elements live inside one actual aside.
 */
.hcm94-home {
  --h94-panel: #fffefa;
  --h94-panel-alt: #f5f7ef;
  --h94-stroke: #dae4d9;
  --h94-text: #193d30;
  --h94-muted: #60776b;
  --h94-accent: #1d7556;
  --h94-hint: #e6f4e9;
  box-sizing: border-box;
  width: 100%; min-width: 0; max-width: 100%;
  margin: 0; padding: 0 0 24px;
  color:var(--h94-text);
}
html[data-theme="dark"] .hcm94-home {
  --h94-panel: #1c2d26;
  --h94-panel-alt: #253b31;
  --h94-stroke: #365a48;
  --h94-text: #eef7ef;
  --h94-muted: #b8ccbf;
  --h94-accent: #a9ddb8;
  --h94-hint: #234737;
}
.hcm94-home, .hcm94-home *, .hcm94-home *::before, .hcm94-home *::after {box-sizing:border-box;}
/* Avoid legacy page maximums that squashed the sidebar. */
.content:has(> .hcm94-home), .content:has(.hcm94-home) {max-width:none!important; width:100%!important; min-width:0!important;}
.mainwrap:has(.hcm94-home) {min-width:0!important;}
.hcm94-titlebar {display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:17px;}
.hcm94-eyebrow {display:block;font-size:10px!important;letter-spacing:1.7px!important;font-weight:800;color:var(--h94-accent)!important;line-height:1.4;}
.hcm94-titlebar h1 {font-size:22px!important;margin:3px 0 0!important;line-height:1.15!important;letter-spacing:-.6px;color:var(--h94-text)!important;}
.hcm94-title-spark {color:#62b896;margin-left:7px;font-size:14px;vertical-align:top;}
.hcm94-focus {cursor:pointer;border:1px solid var(--h94-stroke)!important;color:var(--h94-text)!important;background:var(--h94-panel)!important;padding:9px 12px!important;min-height:37px;border-radius:9px!important;white-space:nowrap;font-size:12px;font-weight:700;}
.hcm94-focus:hover {border-color:var(--h94-accent)!important;}
/* THE only homepage grid: the activity/feed + a SINGLE sidebar. */
.hcm94-home .hcm94-columns {
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(250px,300px)!important;
  align-items:start!important;
  gap:20px!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
}
.hcm94-home .hcm94-main {grid-column:1!important;grid-row:1!important;width:100%!important;max-width:100%!important;min-width:0!important;display:block!important;}
.hcm94-home .hcm94-rail {
  grid-column:2!important;grid-row:1!important;
  width:100%!important;max-width:300px!important;min-width:0!important;
  display:flex!important;flex-flow:column nowrap!important;gap:11px!important;
  margin:0!important;padding:0!important;
  float:none!important;position:sticky!important;top:75px!important;
  max-height:calc(100dvh - 90px)!important;overflow-y:auto!important;overflow-x:hidden!important;
  overscroll-behavior:contain;scrollbar-width:thin;
}
/* COVER: compact image instead of giant banner, with readable CTA. */
.hcm94-cover {
  position:relative; isolation:isolate; overflow:hidden;
  width:100%;max-width:100%;height:230px!important;min-height:230px!important;
  border-radius:16px;border:1px solid #4b7962;
  background:linear-gradient(120deg,#103c2c,#275b3c);
  box-shadow:0 12px 28px rgba(8,33,22,.15);
}
.hcm94-cover .cover-slideshow,
.hcm94-cover .cover-slide {position:absolute!important;inset:0!important;width:100%!important;height:100%!important;border-radius:inherit;}
.hcm94-cover .cover-slideshow {z-index:0!important;overflow:hidden!important;}
.hcm94-cover .cover-slide {
  opacity:0!important;background-size:cover!important;background-position:center 46%!important;
  background-repeat:no-repeat!important;transition:opacity .65s ease!important;
}
.hcm94-cover .cover-slide.is-active {opacity:1!important;}
.hcm94-cover-shade {position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(90deg,rgba(8,35,25,.88) 0%,rgba(11,41,29,.72) 34%,rgba(13,43,33,.23) 100%);}
.hcm94-cover-body {position:relative;z-index:2;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;width:min(100%,560px);height:100%;padding:21px 26px 28px;}
.hcm94-cover-tag {display:inline-block;color:#d9eddb!important;letter-spacing:1.3px!important;font-weight:750!important;font-size:9px!important;line-height:1.2!important;margin-bottom:9px!important;}
.hcm94-cover h2 {font-size:clamp(23px,2.4vw,33px)!important;line-height:1.06!important;letter-spacing:-1px!important;margin:0!important;color:#fff!important;font-weight:800!important;}
.hcm94-cover h2 em {font-style:normal;color:#c9efb6!important;}
.hcm94-cover p {font-size:12px!important;line-height:1.45!important;color:#e3f0e6!important;margin:8px 0 12px!important;max-width:440px!important;}
.hcm94-cover-actions {display:flex;align-items:center;gap:9px;flex-wrap:wrap;}
.hcm94-cover-cta {background:#d6efbc!important;border:1px solid #d6efbc!important;color:#183c2d!important;text-decoration:none!important;padding:10px 13px!important;border-radius:9px!important;font-weight:800!important;font-size:12px!important;line-height:1!important;box-shadow:none!important;}
.hcm94-cover-cta span {color:#183c2d!important;}
.hcm94-cover-secondary {color:#f1fcf2!important;text-decoration:none!important;font-weight:700!important;font-size:12px!important;padding:10px 7px!important;}
.hcm94-cover-cta:hover {background:#effbdc!important;}
.hcm94-cover .cover-controls {
  position:absolute!important;right:14px!important;left:auto!important;top:auto!important;bottom:12px!important;
  transform:none!important;display:flex!important;z-index:4!important;
  padding:3px 5px!important;margin:0!important;gap:7px!important;
  align-items:center!important;background:rgba(10,31,24,.47)!important;
  border-radius:999px!important;
}
.hcm94-cover .cover-controls>button {display:flex!important;align-items:center!important;justify-content:center!important;width:26px!important;height:26px!important;min-height:26px!important;min-width:26px!important;border-radius:50%!important;border:1px solid rgba(226,247,227,.22)!important;background:rgba(31,68,51,.68)!important;color:#fff!important;font-size:18px!important;padding:0!important;line-height:1!important;}
.hcm94-cover .cover-dots {display:flex!important;align-items:center!important;gap:5px!important;margin:0!important;}
.hcm94-cover .cover-dots button {display:block!important;width:7px!important;height:7px!important;min-width:7px!important;min-height:7px!important;border-radius:999px!important;margin:0!important;padding:0!important;border:0!important;background:rgba(235,245,235,.55)!important;}
.hcm94-cover .cover-dots button.selected {width:17px!important;background:#d6efb9!important;}
/* Feed, interactions, independently scrolling post list. */
.hcm94-feed {width:100%!important;min-width:0!important;max-width:100%!important;margin-top:16px!important;}
.hcm94-feed-header {display:flex;align-items:end;justify-content:space-between;gap:12px;margin:0 0 11px!important;}
.hcm94-feed-header h2 {color:var(--h94-text)!important;font-size:21px!important;letter-spacing:-.7px!important;line-height:1.2!important;margin:3px 0 0!important;}
.hcm94-feed-live {color:var(--h94-muted)!important;font-size:11px!important;white-space:nowrap;}
.hcm94-feed-live i {display:inline-block;background:#4fb68c;width:6px;height:6px;border-radius:50%;vertical-align:middle;margin-right:4px;}
.hcm94-home .hcm94-composer {margin:0!important;padding:17px 18px!important;border-radius:14px!important;background:var(--h94-panel)!important;border:1px solid var(--h94-stroke)!important;box-shadow:none!important;}
.hcm94-home .hcm94-composer h2 {color:var(--h94-text)!important;font-size:17px!important;}
.hcm94-home .hcm94-composer .composer-note {color:var(--h94-muted)!important;font-size:10px!important;}
.hcm94-home .hcm94-composer textarea {min-height:65px!important;}
.hcm94-home .hcm94-composer .formfooter {gap:10px!important;flex-wrap:wrap!important;}
.hcm94-feed-sort {display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:7px!important;margin:11px 0!important;}
.hcm94-home .hcm94-feed-sort>a {display:inline-flex!important;align-items:center!important;justify-content:center!important;background:var(--h94-panel-alt)!important;color:var(--h94-muted)!important;border:1px solid var(--h94-stroke)!important;border-radius:9px!important;min-height:32px!important;padding:6px 13px!important;font-size:11px!important;text-decoration:none!important;}
.hcm94-home .hcm94-feed-sort>a.hcm94-selected {background:var(--h94-hint)!important;color:var(--h94-text)!important;border-color:var(--h94-accent)!important;font-weight:800!important;}
.hcm94-home .hcm94-feed-sort>small {margin-left:auto!important;color:var(--h94-muted)!important;font-size:10px!important;}
/* Give desktop readers a genuinely tall independently scrolling feed.
   The old 66vh height in style.css and the v9.4 max-height cap are both overridden. */
.hcm94-home .hcm94-post-scroll {
  width:100%!important;max-width:100%!important;min-width:0!important;
  height:clamp(680px, 88dvh, 1280px)!important;
  min-height:680px!important;
  max-height:none!important;
  overflow-x:hidden!important;overflow-y:auto!important;
  scrollbar-width:thin;scrollbar-gutter:stable;
  overscroll-behavior:contain;
}
.hcm94-home .hcm94-post-scroll article.post {min-width:0!important;max-width:100%!important;}
/* Small, real sidebar widgets; no legacy `.panel`, `.rightcol` or `.discovery-grid`. */
.hcm94-widget {display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;height:auto!important;min-height:0!important;padding:13px!important;margin:0!important;border:1px solid var(--h94-stroke)!important;border-radius:12px!important;background:var(--h94-panel)!important;color:var(--h94-text)!important;box-shadow:none!important;flex:0 0 auto!important;}
.hcm94-widget-head {display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:11px;}
.hcm94-widget-head h2 {font-size:13px!important;letter-spacing:-.15px!important;color:var(--h94-text)!important;margin:0!important;line-height:1.25!important;}
.hcm94-widget-head>a {color:var(--h94-accent)!important;text-decoration:none!important;font-size:10px!important;font-weight:750!important;white-space:nowrap;}
.hcm94-widget-head>span {color:var(--h94-muted)!important;font-size:8px!important;letter-spacing:.65px!important;font-weight:800!important;white-space:nowrap;}
.hcm94-shortcuts {display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important;width:100%!important;}
.hcm94-shortcuts>a {display:flex!important;align-items:center!important;gap:7px!important;padding:9px 8px!important;border:1px solid var(--h94-stroke)!important;border-radius:9px!important;background:var(--h94-panel-alt)!important;color:var(--h94-text)!important;min-width:0!important;font-size:11px!important;font-weight:700!important;text-decoration:none!important;}
.hcm94-shortcuts>a>span {font-size:16px!important;color:var(--h94-accent)!important;line-height:1!important;}
.hcm94-home .hcm94-shortcuts>a:hover {border-color:var(--h94-accent)!important;}
.hcm94-home .hcm94-numbers {display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;padding:12px 5px!important;gap:0!important;}
.hcm94-numbers>div {text-align:center!important;min-width:0!important;padding:0 3px!important;display:flex!important;flex-direction:column!important;align-items:center!important;gap:2px!important;border-right:1px solid var(--h94-stroke)!important;}
.hcm94-numbers>div:last-child {border:0!important;}
.hcm94-numbers strong {color:var(--h94-text)!important;font-size:20px!important;font-weight:800!important;line-height:1.1!important;}
.hcm94-numbers span {color:var(--h94-muted)!important;font-size:9px!important;line-height:1.3!important;}
.hcm94-event {display:flex!important;align-items:center!important;gap:9px!important;border-top:1px solid var(--h94-stroke)!important;padding:9px 0!important;text-decoration:none!important;color:var(--h94-text)!important;min-width:0!important;}
.hcm94-event:first-of-type {border-top:0!important;}
.hcm94-date {background:var(--h94-hint)!important;color:var(--h94-text)!important;padding:7px 5px!important;min-width:47px!important;max-width:47px!important;border-radius:8px;text-align:center;}
.hcm94-date b {color:var(--h94-text)!important;font-size:10px!important;}
.hcm94-event-info {display:flex;flex-direction:column;min-width:0;gap:2px;flex:1;}
.hcm94-event-info strong {font-size:11px!important;color:var(--h94-text)!important;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;}
.hcm94-event-info small {font-size:10px!important;color:var(--h94-muted)!important;}
.hcm94-event>span:last-child {color:var(--h94-muted)!important;font-size:18px!important;}
.hcm94-empty {color:var(--h94-muted)!important;font-size:11px!important;margin:0!important;line-height:1.4!important;}
.hcm94-market-row {display:flex!important;align-items:center!important;gap:7px!important;padding:9px 0!important;border-top:1px solid var(--h94-stroke)!important;color:var(--h94-text)!important;text-decoration:none!important;font-size:11px!important;}
.hcm94-market-row>span:nth-child(2) {min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.hcm94-market-row>span:first-child {font-size:16px;color:var(--h94-accent);}
.hcm94-market-row b {font-size:10px!important;color:var(--h94-accent)!important;white-space:nowrap;}
.hcm94-minor-action {display:flex!important;justify-content:space-between!important;background:var(--h94-panel-alt)!important;border:1px solid var(--h94-stroke)!important;border-radius:8px!important;padding:9px!important;text-decoration:none!important;color:var(--h94-text)!important;font-size:11px!important;font-weight:700!important;margin-top:9px!important;}
.hcm94-quick>a {display:flex!important;justify-content:space-between!important;align-items:center!important;border-top:1px solid var(--h94-stroke)!important;padding:9px 0!important;color:var(--h94-text)!important;font-size:11px!important;text-decoration:none!important;font-weight:650!important;}
.hcm94-quick>a>span {color:var(--h94-accent)!important;}
.hcm94-footnote {display:flex;gap:7px;align-items:center;flex-wrap:wrap;color:var(--h94-muted)!important;font-size:11px;padding:6px 8px;}
.hcm94-footnote>span {color:#85cba3;font-size:17px;}
.hcm94-footnote>small {font-size:10px;color:var(--h94-muted);}
/* Ads must never enlarge the information rail. */
.hcm94-rail> :not(.hcm94-widget) {max-width:100%!important;min-width:0!important;}
.hcm94-rail img {max-width:100%!important;height:auto!important;}
/* Focus mode only hides the rail, not the active feed or its composer. */
.content.feed-focus-mode .hcm94-home .hcm94-rail,
.content.feed-focus-mode .hcm94-home .hcm94-cover {display:none!important;}
.content.feed-focus-mode .hcm94-home .hcm94-columns {grid-template-columns:minmax(0,1fr)!important;}
/* Tablet: no squeezed feed, sidebar moves below it. */
@media (max-width:1040px) {
 .hcm94-home .hcm94-columns {grid-template-columns:minmax(0,1fr)!important;gap:15px!important;}
 .hcm94-home .hcm94-main,.hcm94-home .hcm94-rail {grid-column:1!important;grid-row:auto!important;max-width:100%!important;width:100%!important;}
 .hcm94-home .hcm94-rail {position:static!important;overflow:visible!important;max-height:none!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;}
 .hcm94-home .hcm94-rail>.hcm94-footnote {grid-column:1/-1;}
 .hcm94-home .hcm94-post-scroll {height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;scrollbar-gutter:auto!important;}
}
@media (max-width:660px) {
 .hcm94-titlebar h1 {font-size:19px!important;}
 .hcm94-focus {font-size:10px!important;padding:8px 9px!important;}
 .hcm94-cover {height:244px!important;min-height:244px!important;}
 .hcm94-cover-body {padding:16px 18px 36px;}
 .hcm94-cover h2 {font-size:25px!important;}
 .hcm94-cover p {font-size:11px!important;max-width:260px!important;}
 .hcm94-cover .cover-controls {bottom:8px!important;right:7px!important;}
 .hcm94-cover-cta {font-size:11px!important;padding:9px 10px!important;}
 .hcm94-cover-secondary {font-size:11px!important;padding:8px 4px!important;}
 .hcm94-feed-live {display:none!important;}
 .hcm94-feed-header h2 {font-size:19px!important;}
 .hcm94-home .hcm94-composer {padding:13px!important;}
 .hcm94-home .hcm94-rail {grid-template-columns:minmax(0,1fr)!important;}
 .hcm94-home .hcm94-rail>.hcm94-footnote {grid-column:1;}
 .hcm94-home .hcm94-feed-sort>small {display:none!important;}
}
@media (prefers-reduced-motion:reduce) {.hcm94-cover .cover-slide {transition:none!important;}}
/* Stronger than old dark-mode cover rules; keep slideshow controls inside the
   lower-right corner and never let them overlap the headline. */
html[data-theme="dark"] .hcm94-home .hcm94-cover .cover-controls,
html[data-theme="light"] .hcm94-home .hcm94-cover .cover-controls {
  position:absolute!important;
  top:auto!important;
  left:auto!important;
  bottom:12px!important;
  right:14px!important;
  transform:none!important;
}
html[data-theme="dark"] .hcm94-home .hcm94-cover .cover-controls button,
html[data-theme="dark"] .hcm94-home .hcm94-cover .cover-dots button {color:#fff!important;}
@media(max-width:660px) {
  html[data-theme="dark"] .hcm94-home .hcm94-cover .cover-controls,
  html[data-theme="light"] .hcm94-home .hcm94-cover .cover-controls {
    bottom:9px!important;right:8px!important;
  }
}
/* Keep unusually long administrator slide headlines from covering the CTA. */
.hcm94-cover #cover-heading {display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2;overflow:hidden!important;max-width:100%;}
.hcm94-cover #cover-subtitle {display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2;overflow:hidden!important;}
