/*
 * TownConnect Suite V1.0
 * File: /css/home.css
 *
 * Full public homepage experience for Ladysmith.com.
 * All selectors are scoped to the TownConnect homepage.
 */

:root {
  --home-ink: #102238;
  --home-ink-soft: #31455d;
  --home-muted: #64748b;
  --home-line: #dbe7ef;
  --home-line-strong: #c7d8e4;
  --home-surface: #ffffff;
  --home-surface-soft: #f5f9fc;
  --home-surface-blue: #edf7fc;
  --home-surface-warm: #fff9ef;
  --home-navy: #073b5c;
  --home-blue: #0a72b8;
  --home-blue-dark: #07598f;
  --home-teal: #0a8b80;
  --home-teal-dark: #096b64;
  --home-orange: #ef7f32;
  --home-gold: #d89e20;
  --home-red: #c6434e;
  --home-green: #26835a;
  --home-violet: #6e59a9;
  --home-radius-sm: 14px;
  --home-radius: 22px;
  --home-radius-lg: 34px;
  --home-shadow-sm: 0 8px 24px rgba(16, 34, 56, 0.08);
  --home-shadow: 0 18px 54px rgba(16, 34, 56, 0.13);
  --home-shadow-lg: 0 34px 90px rgba(7, 59, 92, 0.2);
  --home-page-width: 1480px;
  --home-gutter: clamp(18px, 3vw, 44px);
}

body.townconnect-home-page .site-main {
  padding: 0;
  background: #fff;
}

body.townconnect-home-page .site-main > .tc-container-wide,
body.townconnect-home-page .site-main > .container-wide,
body.townconnect-home-page .site-main > .container {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.townconnect-home-page .site-main .layout,
body.townconnect-home-page .site-main .layout.full-width,
body.townconnect-home-page .site-main .main {
  width: 100%;
  display: block;
  min-width: 0;
}

body.townconnect-home-page .site-main .layout {
  gap: 0;
}

.tc-home {
  position: relative;
  overflow: hidden;
  color: var(--home-ink);
  background: #fff;
}

.tc-home,
.tc-home * {
  box-sizing: border-box;
}

.tc-home img {
  max-width: 100%;
}

.tc-home a {
  color: inherit;
}

.tc-home__inner {
  width: min(var(--home-page-width), calc(100% - (var(--home-gutter) * 2)));
  margin-inline: auto;
}

.tc-home__section {
  position: relative;
  padding: clamp(70px, 8vw, 118px) 0;
}

.tc-home__section--compact {
  padding: clamp(42px, 5vw, 72px) 0;
}

.tc-home__section--soft {
  background:
    radial-gradient(circle at 6% 0%, rgba(10, 114, 184, 0.08), transparent 26rem),
    linear-gradient(180deg, #f8fbfd 0%, #f2f7fa 100%);
  border-block: 1px solid rgba(199, 216, 228, 0.7);
}

.tc-home__section--warm {
  background:
    radial-gradient(circle at 94% 20%, rgba(239, 127, 50, 0.1), transparent 26rem),
    #fffaf3;
  border-block: 1px solid rgba(234, 215, 185, 0.8);
}

.tc-home__section--dark {
  color: #fff;
  background:
    radial-gradient(circle at 18% 12%, rgba(54, 205, 189, 0.22), transparent 26rem),
    radial-gradient(circle at 92% 90%, rgba(239, 127, 50, 0.19), transparent 24rem),
    linear-gradient(135deg, #06324e 0%, #074b68 48%, #096d69 100%);
}

.tc-home__heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 520px);
  gap: 38px;
  align-items: end;
  margin-bottom: 38px;
}

.tc-home__heading-copy {
  max-width: 900px;
}

.tc-home__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--home-blue-dark);
  font-size: 0.78rem;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.tc-home__eyebrow::before {
  content: "";
  width: 30px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.tc-home__section--dark .tc-home__eyebrow {
  color: #8ce5db;
}

.tc-home__heading h2 {
  margin: 12px 0 0;
  color: var(--home-ink);
  font-size: clamp(2.2rem, 4.6vw, 4.55rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.tc-home__section--dark .tc-home__heading h2,
.tc-home__section--dark .tc-home__heading p {
  color: #fff;
}

.tc-home__heading p {
  margin: 0;
  color: var(--home-muted);
  font-size: clamp(1rem, 1.25vw, 1.16rem);
  line-height: 1.78;
}

.tc-home__heading-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
}

.tc-home__button,
.tc-home__chip,
.tc-home__icon-button {
  -webkit-appearance: none;
  appearance: none;
  font: inherit;
}

.tc-home__button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: #fff;
  background: var(--home-blue);
  box-shadow: 0 12px 24px rgba(10, 114, 184, 0.2);
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.tc-home__button:hover,
.tc-home__button:focus-visible {
  color: #fff;
  background: var(--home-blue-dark);
  box-shadow: 0 16px 30px rgba(7, 89, 143, 0.26);
  transform: translateY(-2px);
}

.tc-home__button--light {
  color: var(--home-navy);
  background: #fff;
  box-shadow: 0 12px 30px rgba(3, 26, 43, 0.15);
}

.tc-home__button--light:hover,
.tc-home__button--light:focus-visible {
  color: var(--home-navy);
  background: #f3fbff;
}

.tc-home__button--outline {
  color: var(--home-blue-dark);
  border-color: var(--home-line-strong);
  background: #fff;
  box-shadow: none;
}

.tc-home__button--outline:hover,
.tc-home__button--outline:focus-visible {
  color: #fff;
  border-color: var(--home-blue-dark);
}

.tc-home__button--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.tc-home__button--ghost:hover,
.tc-home__button--ghost:focus-visible {
  background: rgba(255, 255, 255, 0.16);
}

.tc-home__button svg,
.tc-home__action svg,
.tc-home__icon-button svg,
.tc-home__link svg,
.tc-home__feed-arrow svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
}

.tc-home__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--home-blue-dark);
  font-weight: 850;
  text-decoration: none;
}

.tc-home__link:hover,
.tc-home__link:focus-visible {
  color: var(--home-blue);
}

/* Alert / pulse bar */
.tc-home__alert {
  position: relative;
  z-index: 4;
  color: #fff;
  background: linear-gradient(90deg, #7e2631 0%, #b53d46 54%, #7e2631 100%);
}

.tc-home__alert--pulse {
  background: linear-gradient(90deg, #064465 0%, #0a766f 54%, #064465 100%);
}

.tc-home__alert-inner {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 0;
  text-align: center;
  font-size: 0.93rem;
  font-weight: 760;
}

.tc-home__live-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #80f0d0;
  box-shadow: 0 0 0 5px rgba(128, 240, 208, 0.16);
}

.tc-home__alert a {
  color: #fff;
  text-underline-offset: 3px;
}

/* Hero */
.tc-home__hero {
  position: relative;
  padding: clamp(28px, 4vw, 54px) 0 clamp(28px, 4vw, 58px);
  background:
    linear-gradient(180deg, #f4fbff 0%, #ffffff 80%);
}

.tc-home__hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 82%;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 10%, rgba(10, 114, 184, 0.13), transparent 30rem),
    radial-gradient(circle at 88% 18%, rgba(10, 139, 128, 0.13), transparent 30rem);
}

.tc-home__hero-card {
  position: relative;
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(420px, 0.9fr);
  gap: clamp(32px, 5vw, 78px);
  align-items: center;
  padding: clamp(38px, 5.5vw, 84px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: clamp(28px, 4vw, 44px);
  color: #fff;
  background:
    radial-gradient(circle at 82% 8%, rgba(103, 231, 213, 0.23), transparent 20rem),
    radial-gradient(circle at 8% 100%, rgba(255, 169, 91, 0.17), transparent 22rem),
    linear-gradient(135deg, #073d60 0%, #075c7b 48%, #0b756e 100%);
  box-shadow: var(--home-shadow-lg);
}

.tc-home__hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 95%);
}

.tc-home__hero-copy,
.tc-home__hero-visual {
  position: relative;
  z-index: 2;
}

.tc-home__hero-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
}

.tc-home__hero-live,
.tc-home__hero-date {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  font-size: 0.82rem;
  font-weight: 760;
}

.tc-home__hero-live .tc-home__live-dot {
  width: 8px;
  height: 8px;
  box-shadow: 0 0 0 4px rgba(128, 240, 208, 0.15);
}

.tc-home__hero h1 {
  max-width: 780px;
  margin: 0;
  color: #fff;
  font-size: clamp(3.35rem, 7vw, 7rem);
  line-height: 0.9;
  letter-spacing: -0.07em;
}

.tc-home__hero h1 span {
  display: block;
  color: #8ef0df;
}

.tc-home__hero-lead {
  max-width: 740px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.83);
  font-size: clamp(1.08rem, 1.6vw, 1.32rem);
  line-height: 1.72;
}

.tc-home__search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-top: 34px;
  padding: 9px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(3, 27, 44, 0.2);
}

.tc-home__search label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.tc-home__search input {
  width: 100%;
  min-height: 58px;
  padding: 0 18px;
  border: 0;
  outline: 0;
  color: var(--home-ink);
  background: transparent;
  font: inherit;
  font-size: 1.03rem;
}

.tc-home__search input::placeholder {
  color: #718296;
}

.tc-home__hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 25px;
}

.tc-home__quick-intents {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tc-home__quick-intents a {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.07);
  font-size: 0.83rem;
  font-weight: 720;
  text-decoration: none;
  transition: background 160ms ease, transform 160ms ease;
}

.tc-home__quick-intents a:hover,
.tc-home__quick-intents a:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

/* Integrated ecosystem visual */
.tc-home__ecosystem {
  position: relative;
  min-height: 490px;
  display: grid;
  place-items: center;
}

.tc-home__ecosystem::before,
.tc-home__ecosystem::after {
  content: "";
  position: absolute;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 50%;
}

.tc-home__ecosystem::before {
  width: min(88%, 430px);
  aspect-ratio: 1;
}

.tc-home__ecosystem::after {
  width: min(64%, 310px);
  aspect-ratio: 1;
}

.tc-home__ecosystem-core {
  position: relative;
  z-index: 3;
  width: 174px;
  min-height: 174px;
  display: grid;
  place-items: center;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 38px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 26px 60px rgba(1, 25, 40, 0.28);
  text-align: center;
}

.tc-home__ecosystem-core img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 22px;
}

.tc-home__ecosystem-core--fallback strong,
.tc-home__ecosystem-core--fallback span {
  display: block;
}

.tc-home__ecosystem-core--fallback strong {
  color: var(--home-navy);
  font-size: 1.45rem;
  line-height: 1;
}

.tc-home__ecosystem-core--fallback span {
  margin-top: 8px;
  color: var(--home-muted);
  font-size: 0.78rem;
}

.tc-home__ecosystem-node {
  position: absolute;
  z-index: 4;
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.93);
  box-shadow: 0 14px 34px rgba(2, 26, 43, 0.22);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.tc-home__ecosystem-node:hover,
.tc-home__ecosystem-node:focus-visible {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 20px 42px rgba(2, 26, 43, 0.3);
}

.tc-home__ecosystem-node img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
}

.tc-home__ecosystem-node span {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(135deg, var(--home-blue), var(--home-teal));
  font-size: 1.3rem;
  font-weight: 900;
}

.tc-home__ecosystem-node--1 { top: 2%; left: 42%; }
.tc-home__ecosystem-node--2 { top: 14%; right: 4%; }
.tc-home__ecosystem-node--3 { top: 43%; right: -1%; }
.tc-home__ecosystem-node--4 { right: 12%; bottom: 7%; }
.tc-home__ecosystem-node--5 { bottom: 0; left: 42%; }
.tc-home__ecosystem-node--6 { bottom: 10%; left: 8%; }
.tc-home__ecosystem-node--7 { top: 42%; left: -1%; }
.tc-home__ecosystem-node--8 { top: 13%; left: 8%; }

.tc-home__ecosystem-caption {
  position: absolute;
  z-index: 5;
  right: 4%;
  bottom: 1%;
  max-width: 190px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(3, 34, 52, 0.42);
  backdrop-filter: blur(10px);
  font-size: 0.8rem;
  line-height: 1.45;
}

.tc-home__ecosystem-caption strong {
  display: block;
  margin-bottom: 2px;
  color: #fff;
  font-size: 1rem;
}

/* Pulse strip */
.tc-home__pulse {
  position: relative;
  z-index: 3;
  margin-top: -18px;
}

.tc-home__pulse-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--home-line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--home-shadow);
}

.tc-home__pulse-item {
  min-height: 118px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 22px;
  border-right: 1px solid var(--home-line);
  text-decoration: none;
  transition: background 160ms ease, transform 160ms ease;
}

.tc-home__pulse-item:last-child {
  border-right: 0;
}

.tc-home__pulse-item:hover,
.tc-home__pulse-item:focus-visible {
  background: var(--home-surface-blue);
}

.tc-home__pulse-value {
  color: var(--home-navy);
  font-size: clamp(1.55rem, 2.4vw, 2.35rem);
  line-height: 1;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.tc-home__pulse-label {
  margin-top: 8px;
  color: var(--home-muted);
  font-size: 0.83rem;
  line-height: 1.35;
  font-weight: 730;
}

/* Action rail */
.tc-home__action-rail {
  padding: 18px 0 0;
}

.tc-home__action-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(150px, 1fr);
  gap: 10px;
  overflow-x: auto;
  padding: 2px 2px 10px;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
}

.tc-home__action {
  min-height: 94px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 16px;
  border: 1px solid var(--home-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 7px 20px rgba(16, 34, 56, 0.06);
  text-decoration: none;
  scroll-snap-align: start;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.tc-home__action:hover,
.tc-home__action:focus-visible {
  border-color: #9ec4da;
  box-shadow: var(--home-shadow-sm);
  transform: translateY(-3px);
}

.tc-home__action-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 15px;
  color: var(--home-blue-dark);
  background: #e9f5fb;
}

.tc-home__action-copy strong,
.tc-home__action-copy span {
  display: block;
}

.tc-home__action-copy strong {
  color: var(--home-ink);
  font-size: 0.93rem;
}

.tc-home__action-copy span {
  margin-top: 3px;
  color: var(--home-muted);
  font-size: 0.76rem;
  line-height: 1.3;
}

/* Right Now bento */
.tc-home__now-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(330px, 0.72fr);
  gap: 24px;
  align-items: stretch;
}

.tc-home__panel {
  border: 1px solid var(--home-line);
  border-radius: var(--home-radius-lg);
  background: #fff;
  box-shadow: var(--home-shadow-sm);
}

.tc-home__feed-panel {
  min-height: 680px;
  padding: clamp(24px, 3vw, 38px);
}

.tc-home__panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--home-line);
}

.tc-home__panel-head h3 {
  margin: 0;
  color: var(--home-ink);
  font-size: clamp(1.55rem, 2.5vw, 2.35rem);
  letter-spacing: -0.035em;
}

.tc-home__panel-head p {
  margin: 5px 0 0;
  color: var(--home-muted);
  font-size: 0.9rem;
}

.tc-home__feed-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0;
}

.tc-home__chip {
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid var(--home-line-strong);
  border-radius: 999px;
  color: var(--home-ink-soft);
  background: #fff;
  font-size: 0.8rem;
  font-weight: 780;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.tc-home__chip:hover,
.tc-home__chip:focus-visible,
.tc-home__chip.is-active {
  color: #fff;
  border-color: var(--home-blue-dark);
  background: var(--home-blue-dark);
}

.tc-home__feed {
  display: grid;
}

.tc-home__feed-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--home-line);
  text-decoration: none;
  transition: padding 160ms ease, background 160ms ease;
}

.tc-home__feed-item:last-child {
  border-bottom: 0;
}

.tc-home__feed-item:hover,
.tc-home__feed-item:focus-visible {
  margin-inline: -12px;
  padding-inline: 12px;
  border-radius: 16px;
  background: var(--home-surface-soft);
}

.tc-home__feed-item[hidden] {
  display: none !important;
}

.tc-home__module-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--home-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 5px 14px rgba(16, 34, 56, 0.07);
}

.tc-home__module-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tc-home__module-mark span {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--home-blue), var(--home-teal));
  font-weight: 950;
}

.tc-home__feed-copy {
  min-width: 0;
}

.tc-home__feed-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  color: var(--home-muted);
  font-size: 0.74rem;
  font-weight: 720;
}

.tc-home__feed-meta strong {
  color: var(--home-blue-dark);
}

.tc-home__feed-title {
  margin-top: 6px;
  color: var(--home-ink);
  font-size: 1rem;
  line-height: 1.35;
  font-weight: 850;
}

.tc-home__feed-description {
  margin-top: 4px;
  color: var(--home-muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.tc-home__feed-arrow {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--home-line);
  border-radius: 50%;
  color: var(--home-blue-dark);
  background: #fff;
}

.tc-home__now-side {
  display: grid;
  gap: 24px;
}

.tc-home__feature-card {
  position: relative;
  min-height: 318px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border-radius: var(--home-radius-lg);
  color: #fff;
  background: linear-gradient(135deg, #0b6386, #0a8b80);
  box-shadow: var(--home-shadow);
}

.tc-home__feature-card--warm {
  background: linear-gradient(135deg, #9f4f29, #ef7f32);
}

.tc-home__feature-media {
  position: absolute;
  inset: 0;
}

.tc-home__feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tc-home__feature-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(3, 25, 40, 0.92), rgba(3, 25, 40, 0.08) 72%);
}

.tc-home__feature-monogram {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.18);
  font-size: 9rem;
  font-weight: 950;
  letter-spacing: -0.08em;
}

.tc-home__feature-content {
  position: relative;
  z-index: 2;
  padding: 28px;
}

.tc-home__feature-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tc-home__feature-content h3 {
  margin: 10px 0 0;
  color: #fff;
  font-size: clamp(1.55rem, 2.5vw, 2.35rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.tc-home__feature-content p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.58;
}

.tc-home__feature-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: #fff;
  font-weight: 850;
  text-decoration: none;
}

/* Local discovery */
.tc-home__business-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 22px;
}

.tc-home__business-card {
  position: relative;
  min-height: 330px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--home-line);
  border-radius: var(--home-radius);
  background: #fff;
  box-shadow: var(--home-shadow-sm);
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.tc-home__business-card:hover,
.tc-home__business-card:focus-visible {
  border-color: #a6c9dc;
  box-shadow: var(--home-shadow);
  transform: translateY(-5px);
}

.tc-home__business-card--feature {
  grid-column: span 6;
  min-height: 520px;
}

.tc-home__business-card--medium {
  grid-column: span 3;
}

.tc-home__business-card--wide {
  grid-column: span 6;
}

.tc-home__business-media {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  background:
    radial-gradient(circle at 70% 25%, rgba(255, 255, 255, 0.2), transparent 12rem),
    linear-gradient(135deg, #0a6b8d, #0a8b80);
}

.tc-home__business-card--feature .tc-home__business-media {
  flex: 1 1 auto;
  min-height: 310px;
}

.tc-home__business-media img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  transition: transform 350ms ease;
}

.tc-home__business-card:hover .tc-home__business-media img {
  transform: scale(1.035);
}

.tc-home__business-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(6, 37, 56, 0.24), transparent 58%);
}

.tc-home__business-monogram {
  min-height: inherit;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(4.5rem, 8vw, 8rem);
  font-weight: 950;
  letter-spacing: -0.08em;
}

.tc-home__business-badge {
  position: absolute;
  z-index: 2;
  top: 16px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 31px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  color: #fff;
  background: rgba(5, 34, 51, 0.65);
  backdrop-filter: blur(10px);
  font-size: 0.72rem;
  font-weight: 800;
}

.tc-home__business-body {
  flex: 0 0 auto;
  padding: 21px;
}

.tc-home__business-card--feature .tc-home__business-body {
  padding: 26px;
}

.tc-home__business-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  color: var(--home-muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.tc-home__business-body h3 {
  margin: 9px 0 0;
  color: var(--home-ink);
  font-size: clamp(1.12rem, 1.7vw, 1.55rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.tc-home__business-card--feature .tc-home__business-body h3 {
  font-size: clamp(1.7rem, 3vw, 2.65rem);
}

.tc-home__business-body p {
  margin: 10px 0 0;
  color: var(--home-muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.tc-home__business-card--feature .tc-home__business-body p {
  max-width: 70ch;
  font-size: 0.98rem;
}

.tc-home__business-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  color: var(--home-blue-dark);
  font-size: 0.82rem;
  font-weight: 830;
}

/* Community */
.tc-home__community-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(330px, 0.75fr);
  gap: 24px;
}

.tc-home__community-main,
.tc-home__community-side-card {
  border: 1px solid var(--home-line);
  border-radius: var(--home-radius-lg);
  background: #fff;
  box-shadow: var(--home-shadow-sm);
}

.tc-home__community-main {
  padding: clamp(26px, 3.4vw, 42px);
}

.tc-home__community-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.tc-home__community-brand {
  display: flex;
  align-items: center;
  gap: 13px;
}

.tc-home__community-brand .tc-home__module-mark {
  width: 58px;
  height: 58px;
}

.tc-home__community-brand h3 {
  margin: 0;
  color: var(--home-ink);
  font-size: 1.55rem;
  letter-spacing: -0.03em;
}

.tc-home__community-brand p {
  margin: 4px 0 0;
  color: var(--home-muted);
  font-size: 0.85rem;
}

.tc-home__post-list {
  display: grid;
  gap: 12px;
}

.tc-home__post {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 17px;
  border: 1px solid var(--home-line);
  border-radius: 18px;
  background: #fbfdfe;
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.tc-home__post:hover,
.tc-home__post:focus-visible {
  border-color: #9ec4da;
  background: #fff;
  transform: translateX(3px);
}

.tc-home__avatar {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--home-blue), var(--home-teal));
  font-size: 0.9rem;
  font-weight: 900;
}

.tc-home__post strong {
  color: var(--home-ink);
  line-height: 1.35;
}

.tc-home__post p {
  margin: 5px 0 0;
  color: var(--home-muted);
  font-size: 0.84rem;
  line-height: 1.52;
}

.tc-home__post time {
  color: var(--home-muted);
  font-size: 0.72rem;
  white-space: nowrap;
}

.tc-home__community-side {
  display: grid;
  gap: 24px;
}

.tc-home__community-side-card {
  padding: 26px;
}

.tc-home__community-side-card--vote {
  color: #fff;
  border: 0;
  background:
    radial-gradient(circle at 90% 0%, rgba(139, 236, 220, 0.25), transparent 16rem),
    linear-gradient(135deg, #073e5f, #0a726e);
}

.tc-home__community-side-card h3 {
  margin: 12px 0 0;
  color: inherit;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.tc-home__community-side-card p {
  margin: 10px 0 0;
  color: var(--home-muted);
  line-height: 1.6;
}

.tc-home__community-side-card--vote p {
  color: rgba(255, 255, 255, 0.78);
}

.tc-home__rating {
  display: flex;
  gap: 3px;
  margin-top: 14px;
  color: var(--home-gold);
  font-size: 1.25rem;
  letter-spacing: 0.02em;
}

/* Week track */
.tc-home__week-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.tc-home__week-card {
  min-height: 290px;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--home-line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--home-shadow-sm);
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.tc-home__week-card:hover,
.tc-home__week-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--home-shadow);
}

.tc-home__week-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tc-home__week-card h3 {
  margin: 22px 0 0;
  color: var(--home-ink);
  font-size: 1.25rem;
  line-height: 1.16;
  letter-spacing: -0.025em;
}

.tc-home__week-card p {
  margin: 10px 0 0;
  color: var(--home-muted);
  font-size: 0.86rem;
  line-height: 1.58;
}

.tc-home__week-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 22px;
  color: var(--home-blue-dark);
  font-size: 0.79rem;
  font-weight: 820;
}

.tc-home__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  color: #1c654b;
  background: #e8f7ef;
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.tc-home__status--early {
  color: #885808;
  background: #fff3d8;
}

.tc-home__status--planned {
  color: #5d6572;
  background: #edf1f4;
}

.tc-home__status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* Value / economy */
.tc-home__value-track {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.tc-home__value-card {
  position: relative;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 24px;
  border: 1px solid var(--home-line);
  border-radius: 24px;
  color: var(--home-ink);
  background: #fff;
  box-shadow: var(--home-shadow-sm);
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.tc-home__value-card:hover,
.tc-home__value-card:focus-visible {
  transform: translateY(-5px);
  box-shadow: var(--home-shadow);
}

.tc-home__value-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 7px;
  background: var(--home-blue);
}

.tc-home__value-card[data-accent="teal"]::before { background: var(--home-teal); }
.tc-home__value-card[data-accent="orange"]::before { background: var(--home-orange); }
.tc-home__value-card[data-accent="gold"]::before { background: var(--home-gold); }
.tc-home__value-card[data-accent="green"]::before { background: var(--home-green); }
.tc-home__value-card[data-accent="red"]::before { background: var(--home-red); }

.tc-home__value-card .tc-home__module-mark {
  width: 68px;
  height: 68px;
  border-radius: 20px;
}

.tc-home__value-card h3 {
  margin: 24px 0 0;
  color: var(--home-ink);
  font-size: 1.35rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.tc-home__value-card p {
  margin: 10px 0 0;
  color: var(--home-muted);
  font-size: 0.88rem;
  line-height: 1.62;
}

.tc-home__value-highlight {
  margin-top: 18px;
  padding: 14px;
  border-radius: 15px;
  color: var(--home-ink-soft);
  background: var(--home-surface-soft);
  font-size: 0.82rem;
  line-height: 1.48;
}

.tc-home__value-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 20px;
  color: var(--home-blue-dark);
  font-size: 0.8rem;
  font-weight: 830;
}

/* Stories */
.tc-home__story-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
}

.tc-home__story-card {
  grid-column: span 3;
  min-height: 430px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--home-line);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--home-shadow-sm);
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.tc-home__story-card--feature {
  grid-column: span 6;
}

.tc-home__story-card:hover,
.tc-home__story-card:focus-visible {
  transform: translateY(-5px);
  box-shadow: var(--home-shadow);
}

.tc-home__story-media {
  min-height: 225px;
  overflow: hidden;
  background: linear-gradient(135deg, #0a6688, #0a8b80);
}

.tc-home__story-card--feature .tc-home__story-media {
  min-height: 280px;
}

.tc-home__story-media img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.tc-home__story-monogram {
  min-height: inherit;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.82);
  font-size: 5rem;
  font-weight: 950;
}

.tc-home__story-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 22px;
}

.tc-home__story-body h3 {
  margin: 10px 0 0;
  color: var(--home-ink);
  font-size: 1.25rem;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.tc-home__story-card--feature .tc-home__story-body h3 {
  font-size: clamp(1.55rem, 2.6vw, 2.35rem);
}

.tc-home__story-body p {
  margin: 10px 0 0;
  color: var(--home-muted);
  font-size: 0.86rem;
  line-height: 1.58;
}

.tc-home__story-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 20px;
  color: var(--home-blue-dark);
  font-size: 0.79rem;
  font-weight: 830;
}

/* Business CTA */
.tc-home__business-cta {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  gap: 42px;
  align-items: center;
  padding: clamp(34px, 5vw, 64px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--home-radius-lg);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 30px 80px rgba(2, 26, 43, 0.18);
  backdrop-filter: blur(10px);
}

.tc-home__business-cta h2 {
  margin: 12px 0 0;
  color: #fff;
  font-size: clamp(2.4rem, 4.7vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.tc-home__business-cta p {
  max-width: 760px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
  line-height: 1.72;
}

.tc-home__business-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 26px;
}

.tc-home__business-paths {
  display: grid;
  gap: 10px;
}

.tc-home__business-path {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
}

.tc-home__business-path span:first-child {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: var(--home-navy);
  background: #fff;
  font-weight: 950;
}

.tc-home__business-path strong,
.tc-home__business-path small {
  display: block;
}

.tc-home__business-path strong {
  color: #fff;
  font-size: 0.9rem;
}

.tc-home__business-path small {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.67);
  line-height: 1.35;
}

/* Module ecosystem */
.tc-home__ecosystem-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.tc-home__group-card {
  position: relative;
  min-height: 370px;
  overflow: hidden;
  padding: clamp(26px, 3vw, 38px);
  border: 1px solid var(--home-line);
  border-radius: var(--home-radius-lg);
  background: #fff;
  box-shadow: var(--home-shadow-sm);
}

.tc-home__group-card::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -110px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(10, 114, 184, 0.05);
}

.tc-home__group-card[data-tone="teal"]::after { background: rgba(10, 139, 128, 0.07); }
.tc-home__group-card[data-tone="warm"]::after { background: rgba(239, 127, 50, 0.08); }
.tc-home__group-card[data-tone="green"]::after { background: rgba(38, 131, 90, 0.07); }

.tc-home__group-number {
  color: var(--home-blue);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tc-home__group-card h3 {
  margin: 10px 0 0;
  color: var(--home-ink);
  font-size: clamp(1.65rem, 2.7vw, 2.55rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.tc-home__group-card > p {
  max-width: 62ch;
  margin: 12px 0 0;
  color: var(--home-muted);
  line-height: 1.62;
}

.tc-home__module-list {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 9px;
  margin-top: 24px;
}

.tc-home__module-row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
  padding: 10px 11px;
  border: 1px solid var(--home-line);
  border-radius: 16px;
  background: #fbfdfe;
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.tc-home__module-row:hover,
.tc-home__module-row:focus-visible {
  border-color: #9ec4da;
  background: #fff;
  transform: translateX(3px);
}

.tc-home__module-row .tc-home__module-mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
}

.tc-home__module-row strong,
.tc-home__module-row span {
  display: block;
}

.tc-home__module-row strong {
  color: var(--home-ink);
  font-size: 0.89rem;
}

.tc-home__module-row-copy > span {
  margin-top: 2px;
  color: var(--home-muted);
  font-size: 0.75rem;
  line-height: 1.32;
}

.tc-home__module-arrow {
  color: var(--home-blue-dark);
  font-weight: 900;
}

.tc-home__module-dock {
  display: grid;
  grid-template-columns: repeat(17, minmax(0, 1fr));
  gap: 8px;
  margin-top: 28px;
  padding: 14px;
  border: 1px solid var(--home-line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--home-shadow-sm);
}

.tc-home__module-dock a,
.tc-home__module-dock span {
  min-width: 0;
}

.tc-home__module-dock-item {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--home-line);
  border-radius: 13px;
  background: var(--home-surface-soft);
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.tc-home__module-dock-item:hover,
.tc-home__module-dock-item:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--home-shadow-sm);
}

.tc-home__module-dock-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tc-home__module-dock-item b {
  color: var(--home-blue-dark);
  font-size: 0.9rem;
}

/* Final CTA */
.tc-home__closing {
  padding: clamp(34px, 5vw, 58px);
  border: 1px solid var(--home-line);
  border-radius: var(--home-radius-lg);
  background:
    radial-gradient(circle at 90% 20%, rgba(10, 139, 128, 0.12), transparent 22rem),
    linear-gradient(135deg, #fff 0%, #f0f8fb 100%);
  box-shadow: var(--home-shadow-sm);
  text-align: center;
}

.tc-home__closing h2 {
  max-width: 900px;
  margin: 0 auto;
  color: var(--home-ink);
  font-size: clamp(2.2rem, 4.3vw, 4.35rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.tc-home__closing p {
  max-width: 760px;
  margin: 18px auto 0;
  color: var(--home-muted);
  font-size: 1.04rem;
  line-height: 1.7;
}

.tc-home__closing-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 11px;
  margin-top: 26px;
}

/* Empty state */
.tc-home__empty {
  padding: 28px;
  border: 1px dashed var(--home-line-strong);
  border-radius: 20px;
  color: var(--home-muted);
  background: var(--home-surface-soft);
  text-align: center;
}

.tc-home__empty strong {
  display: block;
  margin-bottom: 6px;
  color: var(--home-ink);
  font-size: 1.08rem;
}

/* Reveal animation */
.tc-home [data-home-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.tc-home [data-home-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1240px) {
  .tc-home__hero-card {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr);
  }

  .tc-home__pulse-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tc-home__pulse-item:nth-child(3n) {
    border-right: 0;
  }

  .tc-home__pulse-item:nth-child(-n+3) {
    border-bottom: 1px solid var(--home-line);
  }

  .tc-home__value-track {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tc-home__module-dock {
    grid-template-columns: repeat(9, minmax(0, 1fr));
  }
}

@media (max-width: 1040px) {
  .tc-home__heading {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .tc-home__heading-actions {
    justify-content: flex-start;
  }

  .tc-home__hero-card {
    grid-template-columns: 1fr;
  }

  .tc-home__ecosystem {
    min-height: 430px;
    max-width: 620px;
    margin-inline: auto;
  }

  .tc-home__now-grid,
  .tc-home__community-grid,
  .tc-home__business-cta {
    grid-template-columns: 1fr;
  }

  .tc-home__now-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tc-home__business-card--feature {
    grid-column: span 12;
  }

  .tc-home__business-card--medium {
    grid-column: span 4;
  }

  .tc-home__week-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tc-home__story-card,
  .tc-home__story-card--feature {
    grid-column: span 6;
  }
}

@media (max-width: 820px) {
  :root {
    --home-gutter: 16px;
  }

  .tc-home__section {
    padding: 66px 0;
  }

  .tc-home__hero-card {
    min-height: auto;
    padding: 34px 24px;
    border-radius: 28px;
  }

  .tc-home__hero h1 {
    font-size: clamp(3rem, 14vw, 5rem);
  }

  .tc-home__search {
    grid-template-columns: 1fr;
  }

  .tc-home__pulse-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tc-home__pulse-item:nth-child(3n) {
    border-right: 1px solid var(--home-line);
  }

  .tc-home__pulse-item:nth-child(2n) {
    border-right: 0;
  }

  .tc-home__pulse-item:nth-child(-n+4) {
    border-bottom: 1px solid var(--home-line);
  }

  .tc-home__feed-panel {
    min-height: auto;
  }

  .tc-home__now-side,
  .tc-home__value-track,
  .tc-home__ecosystem-groups {
    grid-template-columns: 1fr;
  }

  .tc-home__business-card--medium,
  .tc-home__business-card--wide {
    grid-column: span 6;
  }

  .tc-home__module-dock {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .tc-home__alert-inner {
    align-items: flex-start;
    text-align: left;
  }

  .tc-home__hero {
    padding-top: 16px;
  }

  .tc-home__hero-card {
    padding: 28px 20px;
  }

  .tc-home__hero-status,
  .tc-home__hero-actions {
    align-items: stretch;
  }

  .tc-home__hero-actions .tc-home__button {
    flex: 1 1 100%;
  }

  .tc-home__ecosystem {
    min-height: 350px;
  }

  .tc-home__ecosystem-core {
    width: 138px;
    min-height: 138px;
    border-radius: 30px;
  }

  .tc-home__ecosystem-node {
    width: 58px;
    height: 58px;
    border-radius: 18px;
  }

  .tc-home__ecosystem-caption {
    display: none;
  }

  .tc-home__pulse-item {
    min-height: 105px;
    padding: 18px;
  }

  .tc-home__heading h2 {
    font-size: clamp(2.15rem, 11vw, 3.3rem);
  }

  .tc-home__panel-head,
  .tc-home__community-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .tc-home__feed-item {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .tc-home__feed-arrow {
    display: none;
  }

  .tc-home__feed-description {
    display: none;
  }

  .tc-home__now-side,
  .tc-home__week-grid {
    grid-template-columns: 1fr;
  }

  .tc-home__business-card--feature,
  .tc-home__business-card--medium,
  .tc-home__business-card--wide,
  .tc-home__story-card,
  .tc-home__story-card--feature {
    grid-column: span 12;
  }

  .tc-home__value-card {
    min-height: 300px;
  }

  .tc-home__post {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .tc-home__post time {
    display: none;
  }

  .tc-home__business-cta {
    padding: 28px 20px;
  }

  .tc-home__module-dock {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  .tc-home__pulse-grid {
    grid-template-columns: 1fr;
  }

  .tc-home__pulse-item,
  .tc-home__pulse-item:nth-child(n) {
    border-right: 0;
    border-bottom: 1px solid var(--home-line);
  }

  .tc-home__pulse-item:last-child {
    border-bottom: 0;
  }

  .tc-home__ecosystem-node--2,
  .tc-home__ecosystem-node--6 {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tc-home *,
  .tc-home *::before,
  .tc-home *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .tc-home [data-home-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   TownConnect Homepage V3
   Light Contrast & Readability Refinement
   --------------------------------------------------------------------------
   This layer intentionally preserves the approved V2 layout while:
   - replacing low-contrast dark/glass areas with light surfaces;
   - using darker body, label, and button text;
   - keeping primary actions strongly contrasted;
   - improving hover, keyboard-focus, and mobile readability.
   ========================================================================== */

.tc-home {
  --home-ink: #0d2236;
  --home-ink-soft: #293f55;
  --home-muted: #52677b;
  --home-line: #d3e1e9;
  --home-line-strong: #b9ceda;
  --home-surface-soft: #f3f8fb;
  --home-surface-blue: #eaf5fa;
  --home-surface-warm: #fff7ec;
  --home-navy: #082f4a;
  --home-blue: #086aa8;
  --home-blue-dark: #065382;
  --home-teal: #087d75;
  --home-teal-dark: #075f5a;
  --home-shadow-sm: 0 8px 24px rgba(13, 34, 54, 0.07);
  --home-shadow: 0 18px 48px rgba(13, 34, 54, 0.11);
  --home-shadow-lg: 0 26px 70px rgba(13, 52, 73, 0.16);
}

/* Stronger, clearer controls */
.tc-home__button {
  min-height: 52px;
  padding-inline: 22px;
  color: #ffffff;
  background: var(--home-blue-dark);
  border-color: var(--home-blue-dark);
  box-shadow: 0 10px 24px rgba(6, 83, 130, 0.2);
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: 0.005em;
}

.tc-home__button:hover,
.tc-home__button:focus-visible {
  color: #ffffff;
  background: var(--home-navy);
  border-color: var(--home-navy);
  box-shadow: 0 14px 30px rgba(8, 47, 74, 0.22);
}

.tc-home__button--light {
  color: var(--home-navy);
  background: #ffffff;
  border-color: #c7d9e3;
  box-shadow: 0 9px 22px rgba(13, 34, 54, 0.1);
}

.tc-home__button--light:hover,
.tc-home__button--light:focus-visible {
  color: var(--home-navy);
  background: #edf7fb;
  border-color: #9fc2d3;
}

.tc-home__button--outline {
  color: var(--home-blue-dark);
  background: #ffffff;
  border-color: #9fbdcd;
  box-shadow: none;
}

.tc-home__button--outline:hover,
.tc-home__button--outline:focus-visible {
  color: var(--home-navy);
  background: #e8f4f9;
  border-color: #6e9fb7;
  box-shadow: 0 8px 20px rgba(13, 34, 54, 0.08);
}

.tc-home__button--ghost {
  color: var(--home-navy);
  background: rgba(255, 255, 255, 0.94);
  border-color: #bfd4df;
  box-shadow: 0 7px 18px rgba(13, 34, 54, 0.08);
}

.tc-home__button--ghost:hover,
.tc-home__button--ghost:focus-visible {
  color: var(--home-navy);
  background: #eaf5fa;
  border-color: #8fb6c8;
}

/* Always-visible keyboard focus */
.tc-home a:focus-visible,
.tc-home button:focus-visible,
.tc-home input:focus-visible {
  outline: 3px solid rgba(8, 106, 168, 0.3);
  outline-offset: 3px;
}

/* Keep urgent alerts strong; make the everyday pulse lighter */
.tc-home__alert--pulse {
  color: var(--home-navy);
  background: linear-gradient(90deg, #dff4f3 0%, #eef9f8 50%, #dff4f3 100%);
  border-bottom: 1px solid #b9dad7;
}

.tc-home__alert--pulse a {
  color: var(--home-blue-dark);
  font-weight: 900;
}

/* Light, welcoming hero */
.tc-home__hero {
  background:
    radial-gradient(circle at 10% 8%, rgba(8, 106, 168, 0.1), transparent 28rem),
    radial-gradient(circle at 92% 12%, rgba(8, 125, 117, 0.1), transparent 30rem),
    linear-gradient(180deg, #f5fbfe 0%, #ffffff 86%);
}

.tc-home__hero-card {
  color: var(--home-ink);
  border-color: #c6dde7;
  background:
    radial-gradient(circle at 84% 8%, rgba(100, 214, 201, 0.23), transparent 21rem),
    radial-gradient(circle at 8% 100%, rgba(255, 181, 112, 0.17), transparent 23rem),
    linear-gradient(135deg, #f8fcfe 0%, #e9f6fa 48%, #e8f7f4 100%);
  box-shadow: var(--home-shadow-lg);
}

.tc-home__hero-card::after {
  opacity: 0.68;
  background-image:
    linear-gradient(rgba(8, 47, 74, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 47, 74, 0.035) 1px, transparent 1px);
}

.tc-home__hero-live,
.tc-home__hero-date {
  color: var(--home-ink-soft);
  background: rgba(255, 255, 255, 0.88);
  border-color: #bfd5df;
  box-shadow: 0 5px 14px rgba(13, 34, 54, 0.06);
  backdrop-filter: blur(10px);
}

.tc-home__hero h1 {
  color: var(--home-navy);
}

.tc-home__hero h1 span {
  color: var(--home-teal-dark);
}

.tc-home__hero-lead {
  color: var(--home-ink-soft);
}

.tc-home__search {
  border: 1px solid #c4d9e3;
  box-shadow: 0 14px 36px rgba(13, 53, 73, 0.12);
}

.tc-home__search input {
  color: var(--home-ink);
}

.tc-home__search input::placeholder {
  color: #667b8f;
  opacity: 1;
}

.tc-home__quick-intents a {
  color: var(--home-ink-soft);
  background: rgba(255, 255, 255, 0.9);
  border-color: #bfd5df;
  box-shadow: 0 4px 12px rgba(13, 34, 54, 0.05);
}

.tc-home__quick-intents a:hover,
.tc-home__quick-intents a:focus-visible {
  color: var(--home-navy);
  background: #e4f2f8;
  border-color: #86afc2;
}

/* Ecosystem visual remains branded but reads clearly on the lighter hero */
.tc-home__ecosystem::before,
.tc-home__ecosystem::after {
  border-color: rgba(8, 83, 130, 0.24);
}

.tc-home__ecosystem-caption {
  color: var(--home-ink-soft);
  background: rgba(255, 255, 255, 0.94);
  border-color: #bfd5df;
  box-shadow: 0 10px 28px rgba(13, 34, 54, 0.1);
}

.tc-home__ecosystem-caption strong {
  color: var(--home-navy);
}

/* Softer active filters with dark type */
.tc-home__chip:hover,
.tc-home__chip:focus-visible,
.tc-home__chip.is-active {
  color: var(--home-navy);
  border-color: #88b2c5;
  background: #deeff6;
  box-shadow: inset 0 0 0 1px rgba(8, 106, 168, 0.05);
}

/* Featured content becomes a clear light information panel */
.tc-home__feature-card,
.tc-home__feature-card--warm {
  color: var(--home-ink);
  border: 1px solid var(--home-line);
  background:
    radial-gradient(circle at 90% 10%, rgba(8, 125, 117, 0.12), transparent 15rem),
    linear-gradient(135deg, #edf8fb 0%, #e7f6f2 100%);
}

.tc-home__feature-card--warm {
  background:
    radial-gradient(circle at 90% 10%, rgba(239, 127, 50, 0.14), transparent 15rem),
    linear-gradient(135deg, #fff8ef 0%, #fff0df 100%);
}

.tc-home__feature-media::after {
  background: linear-gradient(
    to top,
    rgba(230, 243, 248, 0.52),
    rgba(230, 243, 248, 0.04) 72%
  );
}

.tc-home__feature-monogram {
  color: rgba(8, 83, 130, 0.16);
}

.tc-home__feature-content {
  margin: 18px;
  padding: 24px;
  border: 1px solid rgba(185, 206, 218, 0.9);
  border-radius: 20px;
  color: var(--home-ink);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 14px 34px rgba(13, 34, 54, 0.12);
  backdrop-filter: blur(10px);
}

.tc-home__feature-kicker {
  color: var(--home-blue-dark);
}

.tc-home__feature-content h3 {
  color: var(--home-navy);
}

.tc-home__feature-content p {
  color: var(--home-ink-soft);
}

.tc-home__feature-link {
  min-height: 38px;
  width: fit-content;
  padding: 0 13px;
  border: 1px solid #a8c7d5;
  border-radius: 999px;
  color: var(--home-blue-dark);
  background: #edf7fb;
}

.tc-home__feature-link:hover,
.tc-home__feature-link:focus-visible {
  color: var(--home-navy);
  background: #dceff6;
  border-color: #7faabd;
}

/* Light VoteTown participation card */
.tc-home__community-side-card--vote {
  color: var(--home-ink);
  border: 1px solid #bcd9d5;
  background:
    radial-gradient(circle at 90% 0%, rgba(8, 125, 117, 0.15), transparent 16rem),
    linear-gradient(135deg, #edf9f7 0%, #dff2ef 100%);
}

.tc-home__community-side-card--vote p {
  color: var(--home-ink-soft);
}

.tc-home__community-side-card--vote .tc-home__button--light {
  color: #ffffff;
  background: var(--home-blue-dark);
  border-color: var(--home-blue-dark);
}

.tc-home__community-side-card--vote .tc-home__button--light:hover,
.tc-home__community-side-card--vote .tc-home__button--light:focus-visible {
  color: #ffffff;
  background: var(--home-navy);
  border-color: var(--home-navy);
}

/* Replace the dark business band with a bright, premium local-business panel */
.tc-home__section--dark {
  color: var(--home-ink);
  background:
    radial-gradient(circle at 16% 8%, rgba(8, 106, 168, 0.11), transparent 27rem),
    radial-gradient(circle at 92% 86%, rgba(8, 125, 117, 0.12), transparent 25rem),
    linear-gradient(135deg, #edf7fb 0%, #e4f3f2 100%);
  border-block: 1px solid #c6dde3;
}

.tc-home__section--dark .tc-home__eyebrow {
  color: var(--home-blue-dark);
}

.tc-home__section--dark .tc-home__heading h2,
.tc-home__section--dark .tc-home__heading p {
  color: var(--home-ink);
}

.tc-home__business-cta {
  border-color: #bdd5df;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 24px 62px rgba(13, 52, 73, 0.13);
  backdrop-filter: blur(12px);
}

.tc-home__business-cta h2 {
  color: var(--home-navy);
}

.tc-home__business-cta p {
  color: var(--home-ink-soft);
}

.tc-home__business-path {
  border-color: #c8dce5;
  background: #f7fbfd;
  box-shadow: 0 5px 14px rgba(13, 34, 54, 0.05);
}

.tc-home__business-path span:first-child {
  color: var(--home-blue-dark);
  background: #e4f2f8;
  border: 1px solid #c1d8e3;
}

.tc-home__business-path strong {
  color: var(--home-ink);
}

.tc-home__business-path small {
  color: var(--home-muted);
}

.tc-home__business-cta .tc-home__button--light {
  color: #ffffff;
  background: var(--home-blue-dark);
  border-color: var(--home-blue-dark);
}

.tc-home__business-cta .tc-home__button--light:hover,
.tc-home__business-cta .tc-home__button--light:focus-visible {
  color: #ffffff;
  background: var(--home-navy);
  border-color: var(--home-navy);
}

.tc-home__business-cta .tc-home__button--ghost {
  color: var(--home-navy);
  background: #edf7fb;
  border-color: #a8c8d6;
}

.tc-home__business-cta .tc-home__button--ghost:hover,
.tc-home__business-cta .tc-home__button--ghost:focus-visible {
  color: var(--home-navy);
  background: #dceff6;
  border-color: #79a9bd;
}

/* Slightly stronger card text and links throughout */
.tc-home__heading p,
.tc-home__feed-description,
.tc-home__business-body p,
.tc-home__community-brand p,
.tc-home__post p,
.tc-home__week-card p,
.tc-home__value-card p,
.tc-home__story-body p,
.tc-home__group-card > p,
.tc-home__module-row-copy > span,
.tc-home__closing p {
  color: var(--home-muted);
}

.tc-home__link,
.tc-home__business-footer,
.tc-home__week-bottom,
.tc-home__value-footer,
.tc-home__story-footer,
.tc-home__module-arrow {
  color: var(--home-blue-dark);
}

/* Keep small status labels legible */
.tc-home__status {
  color: #15563f;
  background: #e2f4ea;
  border: 1px solid #b9ddc8;
}

.tc-home__status--early {
  color: #734902;
  background: #fff0ce;
  border-color: #ecd08b;
}

.tc-home__status--planned {
  color: #4e5b68;
  background: #e8eef2;
  border-color: #cbd6dd;
}

/* Mobile: keep the light panels spacious and the button labels readable */
@media (max-width: 760px) {
  .tc-home__button {
    font-size: 0.9rem;
  }

  .tc-home__feature-content {
    margin: 14px;
    padding: 20px;
  }

  .tc-home__hero-live,
  .tc-home__hero-date,
  .tc-home__quick-intents a {
    background: rgba(255, 255, 255, 0.97);
  }
}


/* ==========================================================================
   TownConnect Homepage V4
   Expert Polish, Density & Conversion Refinement
   --------------------------------------------------------------------------
   Preserves the approved visual direction while tightening hierarchy,
   spacing, card balance, copy readability, conversion clarity, and
   responsive behaviour.
   ========================================================================== */

.tc-home {
  --home-page-width: 1240px;
  --home-radius: 22px;
  --home-radius-lg: 30px;
}

/* More disciplined vertical rhythm */
.tc-home__section {
  padding: clamp(62px, 6.6vw, 94px) 0;
}

.tc-home__section--compact {
  padding: clamp(38px, 4.6vw, 62px) 0;
}

/* Stronger editorial section introductions */
.tc-home__heading {
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.55fr);
  gap: clamp(34px, 5vw, 72px);
  align-items: center;
  margin-bottom: clamp(28px, 3.4vw, 40px);
}

.tc-home__heading h2 {
  max-width: 16ch;
  font-size: clamp(2.25rem, 4.15vw, 4.1rem);
  line-height: 1;
}

.tc-home__heading p {
  max-width: 54ch;
  color: #40586d;
  font-size: clamp(1.02rem, 1.1vw, 1.12rem);
  line-height: 1.66;
}

.tc-home__heading-actions {
  justify-content: flex-start;
}

/* Slightly bolder hero and clearer hierarchy */
.tc-home__hero {
  padding-top: clamp(34px, 4.4vw, 68px);
}

.tc-home__hero-card {
  padding: clamp(34px, 4.8vw, 70px);
  border-color: #b9d5e0;
  box-shadow: 0 30px 80px rgba(13, 52, 73, 0.14);
}

.tc-home__hero h1 {
  max-width: 10.5ch;
  font-size: clamp(3.35rem, 6.7vw, 6.65rem);
}

.tc-home__hero-lead {
  max-width: 62ch;
  font-size: clamp(1.04rem, 1.3vw, 1.2rem);
  line-height: 1.7;
}

.tc-home__search {
  max-width: 780px;
}

.tc-home__hero-actions {
  gap: 10px;
}

.tc-home__quick-intents {
  margin-top: 15px;
}

.tc-home__quick-intents a {
  min-height: 38px;
  padding-inline: 14px;
  font-size: 0.8rem;
}

/* Make the pulse useful without feeling like an analytics dashboard */
.tc-home__pulse {
  margin-top: -1px;
}

.tc-home__pulse-item {
  min-height: 94px;
  padding: 18px 20px;
}

.tc-home__pulse-value {
  font-size: clamp(1.45rem, 2.1vw, 2rem);
}

.tc-home__pulse-label {
  max-width: 21ch;
  font-size: 0.75rem;
  line-height: 1.35;
}

/* Action rail: clean, readable and less compressed */
.tc-home__action-rail {
  padding-top: 16px;
}

.tc-home__action-track {
  gap: 10px;
}

.tc-home__action {
  min-width: 170px;
  padding: 13px 15px;
  border-radius: 16px;
}

.tc-home__action-copy strong {
  font-size: 0.84rem;
}

.tc-home__action-copy span {
  font-size: 0.72rem;
}

/* Right-now area: more editorial, less database-like */
.tc-home__now-grid {
  grid-template-columns: minmax(0, 1.52fr) minmax(310px, 0.48fr);
  gap: 26px;
  align-items: start;
}

.tc-home__feed-panel {
  min-height: 0;
  padding: clamp(25px, 3vw, 36px);
}

.tc-home__panel-head h3 {
  font-size: clamp(1.65rem, 2.25vw, 2.2rem);
}

.tc-home__feed-filters {
  margin: 19px 0 10px;
}

.tc-home__chip {
  min-height: 39px;
  padding-inline: 14px;
  font-size: 0.79rem;
}

.tc-home__feed-item {
  grid-template-columns: 54px minmax(0, 1fr) 38px;
  gap: 15px;
  min-height: 92px;
  padding: 16px 0;
}

.tc-home__feed-title {
  font-size: 1.01rem;
}

.tc-home__feed-description {
  max-width: 68ch;
  font-size: 0.87rem;
  line-height: 1.52;
}

.tc-home__now-side {
  gap: 18px;
}

.tc-home__feature-card {
  min-height: 282px;
}

.tc-home__feature-content {
  margin: 15px;
  padding: 22px;
}

.tc-home__feature-content h3 {
  font-size: clamp(1.45rem, 2.1vw, 2rem);
}

/* Fix LocalScope's orphan-card layout */
.tc-home__business-grid {
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: repeat(2, minmax(250px, auto));
  gap: 20px;
}

.tc-home__business-card--feature {
  grid-column: 1;
  grid-row: 1 / span 2;
  min-height: 540px;
}

.tc-home__business-card--medium {
  grid-column: auto;
  min-height: 250px;
}

.tc-home__business-card--medium:nth-child(4) {
  grid-column: 2 / span 2;
}

.tc-home__business-card--medium .tc-home__business-media {
  min-height: 145px;
}

.tc-home__business-card--medium:nth-child(4) {
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) minmax(0, 1.25fr);
}

.tc-home__business-card--medium:nth-child(4) .tc-home__business-media {
  min-height: 100%;
}

.tc-home__business-body {
  padding: 20px;
}

.tc-home__business-body h3 {
  font-size: clamp(1.16rem, 1.7vw, 1.55rem);
}

.tc-home__business-card--feature .tc-home__business-body h3 {
  font-size: clamp(1.75rem, 2.8vw, 2.65rem);
}

/* Keep the community area from stretching into unused space */
.tc-home__community-grid {
  align-items: start;
}

.tc-home__community-main {
  align-self: start;
}

.tc-home__community-head {
  margin-bottom: 16px;
}

.tc-home__post {
  padding: 15px;
}

.tc-home__empty--community {
  display: grid;
  justify-items: start;
  gap: 12px;
  padding: 26px;
  text-align: left;
}

.tc-home__empty--community strong {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.25;
}

.tc-home__empty--community span {
  max-width: 62ch;
  line-height: 1.6;
}

.tc-home__empty--community .tc-home__button {
  margin-top: 4px;
}

/* Week cards: slightly larger type and quieter metadata */
.tc-home__week-grid {
  gap: 18px;
}

.tc-home__week-card {
  min-height: 292px;
  padding: 21px;
}

.tc-home__week-card h3 {
  font-size: 1.16rem;
  line-height: 1.18;
}

.tc-home__week-card p {
  font-size: 0.88rem;
  line-height: 1.55;
}

/* Local value: 3 cards followed by 2 wider cards */
.tc-home__value-track {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}

.tc-home__value-card {
  grid-column: span 2;
  min-height: 330px;
  padding: 23px;
}

.tc-home__value-card:nth-last-child(-n + 2) {
  grid-column: span 3;
}

.tc-home__value-card h3 {
  font-size: 1.3rem;
}

.tc-home__value-card p {
  font-size: 0.9rem;
}

.tc-home__value-highlight {
  font-size: 0.86rem;
}

/* Fix the story section's orphan card */
.tc-home__story-grid {
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: repeat(2, minmax(245px, auto));
  gap: 20px;
}

.tc-home__story-card {
  grid-column: auto;
  min-height: 245px;
}

.tc-home__story-card--feature {
  grid-column: 1;
  grid-row: 1 / span 2;
  min-height: 520px;
}

.tc-home__story-card:nth-child(4) {
  grid-column: 2 / span 2;
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) minmax(0, 1.25fr);
}

.tc-home__story-card:nth-child(4) .tc-home__story-media {
  min-height: 100%;
}

.tc-home__story-media {
  min-height: 145px;
}

.tc-home__story-card--feature .tc-home__story-media {
  min-height: 300px;
}

.tc-home__story-body {
  padding: 20px;
}

/* Business conversion panel: clearer actions and less visual bulk */
.tc-home__business-cta {
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 38px;
  padding: clamp(34px, 4.4vw, 56px);
}

.tc-home__business-cta h2 {
  max-width: 12ch;
  font-size: clamp(2.35rem, 4.2vw, 4.1rem);
}

.tc-home__business-cta p {
  max-width: 64ch;
  font-size: 1rem;
  line-height: 1.65;
}

.tc-home__business-path {
  padding: 13px 15px;
}

/* Module ecosystem: improve scanability and reduce visual noise */
.tc-home__ecosystem-groups {
  gap: 20px;
}

.tc-home__group-card {
  min-height: 0;
  padding: clamp(25px, 2.8vw, 34px);
}

.tc-home__group-card h3 {
  font-size: clamp(1.55rem, 2.35vw, 2.2rem);
}

.tc-home__group-card > p {
  font-size: 0.94rem;
}

.tc-home__module-list {
  gap: 8px;
  margin-top: 20px;
}

.tc-home__module-row {
  min-height: 68px;
  padding: 9px 11px;
}

.tc-home__module-row strong {
  font-size: 0.92rem;
}

.tc-home__module-row-copy > span {
  font-size: 0.77rem;
}

.tc-home__status {
  min-width: 70px;
  justify-content: center;
  text-align: center;
  font-size: 0.67rem;
}

.tc-home__module-dock {
  grid-template-columns: repeat(17, 56px);
  justify-content: center;
  overflow-x: auto;
  padding: 12px;
  scrollbar-width: thin;
}

.tc-home__module-dock-item {
  width: 56px;
  height: 56px;
}

/* Final CTA: strong but not oversized */
.tc-home__closing {
  padding: clamp(32px, 4.2vw, 50px);
}

.tc-home__closing h2 {
  max-width: 15ch;
  font-size: clamp(2.1rem, 3.75vw, 3.65rem);
}

.tc-home__closing p {
  max-width: 68ch;
  font-size: 1rem;
}

/* Consistent micro-interactions */
.tc-home__business-card,
.tc-home__story-card,
.tc-home__week-card,
.tc-home__value-card,
.tc-home__group-card,
.tc-home__panel,
.tc-home__community-main,
.tc-home__community-side-card {
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.tc-home__group-card:hover,
.tc-home__community-side-card:hover {
  border-color: #afcad7;
  box-shadow: var(--home-shadow);
}

/* Desktop hierarchy is preserved while smaller screens become simpler */
@media (max-width: 1080px) {
  .tc-home__heading {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .tc-home__heading h2 {
    max-width: 18ch;
  }

  .tc-home__heading p {
    max-width: 68ch;
  }

  .tc-home__business-grid,
  .tc-home__story-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
  }

  .tc-home__business-card--feature,
  .tc-home__story-card--feature {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 430px;
  }

  .tc-home__business-card--medium,
  .tc-home__business-card--medium:nth-child(4),
  .tc-home__story-card,
  .tc-home__story-card:nth-child(4) {
    grid-column: auto;
    display: flex;
  }

  .tc-home__business-card--medium:nth-child(4) .tc-home__business-media,
  .tc-home__story-card:nth-child(4) .tc-home__story-media {
    min-height: 170px;
  }

  .tc-home__value-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tc-home__value-card,
  .tc-home__value-card:nth-last-child(-n + 2) {
    grid-column: auto;
  }

  .tc-home__value-card:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .tc-home__section {
    padding: 52px 0;
  }

  .tc-home__hero-card {
    padding: 28px 22px;
  }

  .tc-home__hero h1 {
    font-size: clamp(3rem, 15vw, 4.5rem);
  }

  .tc-home__hero-actions .tc-home__button,
  .tc-home__search .tc-home__button {
    width: 100%;
  }

  .tc-home__pulse-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tc-home__pulse-item {
    min-height: 88px;
  }

  .tc-home__business-grid,
  .tc-home__story-grid,
  .tc-home__value-track {
    grid-template-columns: 1fr;
  }

  .tc-home__business-card--feature,
  .tc-home__business-card--medium,
  .tc-home__business-card--medium:nth-child(4),
  .tc-home__story-card,
  .tc-home__story-card--feature,
  .tc-home__story-card:nth-child(4),
  .tc-home__value-card,
  .tc-home__value-card:nth-last-child(-n + 2),
  .tc-home__value-card:last-child {
    grid-column: auto;
    grid-row: auto;
    display: flex;
    min-height: 0;
  }

  .tc-home__business-card--feature .tc-home__business-media,
  .tc-home__business-card--medium .tc-home__business-media,
  .tc-home__story-card--feature .tc-home__story-media,
  .tc-home__story-card .tc-home__story-media {
    min-height: 210px;
  }

  .tc-home__community-head {
    align-items: flex-start;
  }

  .tc-home__community-head .tc-home__button {
    width: 100%;
  }

  .tc-home__module-dock {
    justify-content: flex-start;
  }
}


/* ==========================================================================
   TownConnect Homepage V5
   Final Homepage Refinement
   --------------------------------------------------------------------------
   Fewer, larger, clearer choices; stronger hierarchy; intentional temporary
   states; opportunity-first local value; and audience-based conversion paths.
   ========================================================================== */

.townconnect-home-v5 .tc-home {
  --home-readable: #334b60;
}

/* Improve the readability floor throughout the public homepage. */
.townconnect-home-v5 .tc-home__heading p,
.townconnect-home-v5 .tc-home__panel-head p,
.townconnect-home-v5 .tc-home__hero-lead,
.townconnect-home-v5 .tc-home__business-body p,
.townconnect-home-v5 .tc-home__community-side-card p,
.townconnect-home-v5 .tc-home__week-card p,
.townconnect-home-v5 .tc-home__value-card p,
.townconnect-home-v5 .tc-home__story-body p,
.townconnect-home-v5 .tc-home__group-card > p,
.townconnect-home-v5 .tc-home__closing p {
  color: var(--home-readable);
}

/* Controlled hero headline wrapping. */
.townconnect-home-v5 .tc-home__hero h1 {
  max-width: 11ch;
  display: grid;
  gap: 0;
}

.townconnect-home-v5 .tc-home__hero h1 .tc-home__hero-line,
.townconnect-home-v5 .tc-home__hero h1 .tc-home__hero-place {
  display: block;
}

.townconnect-home-v5 .tc-home__hero h1 .tc-home__hero-line {
  color: var(--home-navy);
}

.townconnect-home-v5 .tc-home__hero h1 .tc-home__hero-place {
  color: var(--home-teal-dark);
}

.townconnect-home-v5 .tc-home__quick-intents {
  gap: 9px;
}

.townconnect-home-v5 .tc-home__quick-intents a {
  min-height: 40px;
  font-size: 0.83rem;
  font-weight: 800;
}

/* Six deliberate actions instead of an endless horizontal list. */
.townconnect-home-v5 .tc-home__action-track {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  overflow: visible;
}

.townconnect-home-v5 .tc-home__action {
  min-width: 0;
  min-height: 78px;
}

.townconnect-home-v5 .tc-home__action-copy strong {
  font-size: 0.9rem;
}

.townconnect-home-v5 .tc-home__action-copy span {
  font-size: 0.76rem;
  line-height: 1.35;
}

/* Stronger activity feed and clearer next action. */
.townconnect-home-v5 .tc-home__now-grid {
  grid-template-columns: minmax(0, 1.45fr) minmax(340px, 0.55fr);
}

.townconnect-home-v5 .tc-home__feed-item {
  min-height: 112px;
  align-items: start;
  padding: 19px 0;
}

.townconnect-home-v5 .tc-home__feed-title {
  font-size: 1.08rem;
  line-height: 1.28;
}

.townconnect-home-v5 .tc-home__feed-description {
  margin-top: 5px;
  font-size: 0.92rem;
  line-height: 1.55;
}

.townconnect-home-v5 .tc-home__feed-cta {
  display: inline-flex;
  width: fit-content;
  margin-top: 8px;
  color: var(--home-blue-dark);
  font-size: 0.78rem;
  font-weight: 900;
}

.townconnect-home-v5 .tc-home__now-side {
  grid-template-columns: 1fr;
}

.townconnect-home-v5 .tc-home__feature-card {
  min-height: 315px;
}

/* Purposeful branded fallbacks instead of giant initials. */
.townconnect-home-v5 .tc-home__feature-brand-fallback {
  min-height: 170px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  padding: 28px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 15%, rgba(8, 125, 117, 0.16), transparent 13rem),
    linear-gradient(145deg, #e8f7f4 0%, #e6f3f9 100%);
}

.townconnect-home-v5 .tc-home__feature-brand-fallback--warm {
  background:
    radial-gradient(circle at 50% 15%, rgba(239, 127, 50, 0.16), transparent 13rem),
    linear-gradient(145deg, #fff5e8 0%, #edf6f9 100%);
}

.townconnect-home-v5 .tc-home__feature-brand-fallback .tc-home__module-mark {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  box-shadow: 0 13px 30px rgba(13, 34, 54, 0.14);
}

.townconnect-home-v5 .tc-home__feature-brand-fallback > span:last-child {
  max-width: 24ch;
  color: var(--home-ink-soft);
  font-size: 0.92rem;
  font-weight: 850;
  line-height: 1.35;
}

/* LocalScope fallback: identify the listing without pretending a photo exists. */
.townconnect-home-v5 .tc-home__business-fallback {
  min-height: 100%;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  padding: 26px;
  color: var(--home-navy);
  text-align: center;
  background:
    radial-gradient(circle at 50% 10%, rgba(8, 125, 117, 0.18), transparent 15rem),
    linear-gradient(145deg, #e3f4f2 0%, #dceff7 100%);
}

.townconnect-home-v5 .tc-home__business-fallback .tc-home__module-mark {
  width: 80px;
  height: 80px;
  border-radius: 22px;
  box-shadow: 0 14px 32px rgba(13, 34, 54, 0.14);
}

.townconnect-home-v5 .tc-home__business-fallback > span:last-child {
  max-width: 23ch;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.3;
}

/* TownCircle temporary state now looks intentionally designed. */
.townconnect-home-v5 .tc-home__empty--community {
  gap: 15px;
  padding: clamp(25px, 3.2vw, 38px);
  border-style: solid;
  background:
    radial-gradient(circle at 100% 0%, rgba(8, 125, 117, 0.09), transparent 18rem),
    #f8fbfd;
}

.townconnect-home-v5 .tc-home__community-preview-label {
  display: inline-flex;
  width: fit-content;
  padding: 6px 10px;
  border: 1px solid #bdd7e1;
  border-radius: 999px;
  color: var(--home-blue-dark);
  background: #e8f4f8;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.townconnect-home-v5 .tc-home__community-preview-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
  margin-top: 4px;
}

.townconnect-home-v5 .tc-home__community-preview-grid a {
  min-height: 82px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid #d2e1e8;
  border-radius: 16px;
  color: var(--home-ink);
  background: #ffffff;
  box-shadow: 0 7px 18px rgba(13, 34, 54, 0.05);
  text-decoration: none;
}

.townconnect-home-v5 .tc-home__community-preview-grid a:hover,
.townconnect-home-v5 .tc-home__community-preview-grid a:focus-visible {
  border-color: #91b8ca;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(13, 34, 54, 0.09);
}

.townconnect-home-v5 .tc-home__community-preview-grid svg {
  width: 25px;
  height: 25px;
  color: var(--home-blue-dark);
}

.townconnect-home-v5 .tc-home__community-preview-grid strong,
.townconnect-home-v5 .tc-home__community-preview-grid small {
  display: block;
}

.townconnect-home-v5 .tc-home__community-preview-grid strong {
  font-size: 0.9rem;
}

.townconnect-home-v5 .tc-home__community-preview-grid small {
  margin-top: 3px;
  color: var(--home-muted);
  font-size: 0.75rem;
}

/* Larger event/community cards: 2 × 2 at ordinary desktop widths. */
.townconnect-home-v5 .tc-home__week-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.townconnect-home-v5 .tc-home__week-card {
  min-height: 250px;
  padding: 25px;
}

.townconnect-home-v5 .tc-home__week-card h3 {
  max-width: 28ch;
  font-size: clamp(1.28rem, 1.8vw, 1.62rem);
}

.townconnect-home-v5 .tc-home__week-card p {
  max-width: 55ch;
  font-size: 0.95rem;
}

/* Opportunity-first local economy cards. */
.townconnect-home-v5 .tc-home__value-card {
  display: flex;
  min-height: 300px;
  padding: 25px;
}

.townconnect-home-v5 .tc-home__value-top {
  display: flex;
  gap: 11px;
  align-items: center;
}

.townconnect-home-v5 .tc-home__value-top > span:last-child {
  min-width: 0;
}

.townconnect-home-v5 .tc-home__value-top strong,
.townconnect-home-v5 .tc-home__value-top small {
  display: block;
}

.townconnect-home-v5 .tc-home__value-top strong {
  color: var(--home-ink);
  font-size: 0.91rem;
}

.townconnect-home-v5 .tc-home__value-top small {
  margin-top: 2px;
  color: var(--home-muted);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.townconnect-home-v5 .tc-home__value-card h3 {
  margin-top: 24px;
  color: var(--home-navy);
  font-size: clamp(1.32rem, 2vw, 1.75rem);
  line-height: 1.15;
}

.townconnect-home-v5 .tc-home__value-card p {
  margin-top: 10px;
  font-size: 0.94rem;
  line-height: 1.58;
}

.townconnect-home-v5 .tc-home__value-highlight {
  display: none;
}

/* Editorial module artwork replaces single-letter story placeholders. */
.townconnect-home-v5 .tc-home__story-brand-fallback {
  min-height: 100%;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 26px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 15%, rgba(8, 125, 117, 0.16), transparent 15rem),
    linear-gradient(145deg, #e7f6f3 0%, #e4f1f8 100%);
}

.townconnect-home-v5 .tc-home__story-brand-fallback .tc-home__module-mark {
  width: 86px;
  height: 86px;
  border-radius: 24px;
  box-shadow: 0 14px 34px rgba(13, 34, 54, 0.14);
}

.townconnect-home-v5 .tc-home__story-brand-fallback strong {
  color: var(--home-navy);
  font-size: 1.12rem;
}

.townconnect-home-v5 .tc-home__story-brand-fallback small {
  max-width: 28ch;
  color: var(--home-ink-soft);
  font-size: 0.82rem;
  line-height: 1.45;
}

/* Business conversion: keep the primary action unmistakable. */
.townconnect-home-v5 .tc-home__business-cta-actions .tc-home__button:first-child {
  min-width: 205px;
}

/* Cleaner module rows and no redundant icon-only dock. */
.townconnect-home-v5 .tc-home__module-row {
  grid-template-columns: 46px minmax(0, 1fr) auto;
  min-height: 76px;
}

.townconnect-home-v5 .tc-home__module-row-copy > span {
  max-width: 40ch;
  font-size: 0.8rem;
  line-height: 1.35;
}

.townconnect-home-v5 .tc-home__module-row-end {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.townconnect-home-v5 .tc-home__module-arrow {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  color: var(--home-blue-dark);
  background: #edf6fa;
}

.townconnect-home-v5 .tc-home__module-arrow svg {
  width: 15px;
  height: 15px;
}

/* Three clear audience pathways replace a small row of generic buttons. */
.townconnect-home-v5 .tc-home__closing {
  text-align: left;
}

.townconnect-home-v5 .tc-home__closing > .tc-home__eyebrow {
  justify-content: flex-start;
}

.townconnect-home-v5 .tc-home__closing h2,
.townconnect-home-v5 .tc-home__closing > p {
  margin-inline: 0;
}

.townconnect-home-v5 .tc-home__closing h2 {
  max-width: 16ch;
}

.townconnect-home-v5 .tc-home__closing > p {
  max-width: 72ch;
}

.townconnect-home-v5 .tc-home__closing-paths {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 30px;
}

.townconnect-home-v5 .tc-home__closing-path {
  min-height: 210px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 15px;
  align-items: start;
  padding: 24px;
  border: 1px solid #cedfe7;
  border-radius: 20px;
  color: var(--home-ink);
  background: rgba(255,255,255,0.92);
  box-shadow: 0 10px 26px rgba(13, 34, 54, 0.07);
  text-decoration: none;
}

.townconnect-home-v5 .tc-home__closing-path:hover,
.townconnect-home-v5 .tc-home__closing-path:focus-visible {
  border-color: #8eb6c8;
  transform: translateY(-3px);
  box-shadow: 0 17px 34px rgba(13, 34, 54, 0.12);
}

.townconnect-home-v5 .tc-home__closing-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 15px;
  color: var(--home-blue-dark);
  background: #e6f3f8;
}

.townconnect-home-v5 .tc-home__closing-icon svg {
  width: 25px;
  height: 25px;
}

.townconnect-home-v5 .tc-home__closing-path strong,
.townconnect-home-v5 .tc-home__closing-path small,
.townconnect-home-v5 .tc-home__closing-path b {
  display: block;
}

.townconnect-home-v5 .tc-home__closing-path strong {
  color: var(--home-navy);
  font-size: 1.08rem;
  line-height: 1.25;
}

.townconnect-home-v5 .tc-home__closing-path small {
  margin-top: 8px;
  color: var(--home-readable);
  font-size: 0.88rem;
  line-height: 1.55;
}

.townconnect-home-v5 .tc-home__closing-path b {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  margin-top: 18px;
  color: var(--home-blue-dark);
  font-size: 0.8rem;
}

.townconnect-home-v5 .tc-home__closing-path b svg {
  width: 15px;
  height: 15px;
}

@media (max-width: 1080px) {
  .townconnect-home-v5 .tc-home__action-track {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .townconnect-home-v5 .tc-home__now-grid {
    grid-template-columns: 1fr;
  }

  .townconnect-home-v5 .tc-home__now-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .townconnect-home-v5 .tc-home__closing-paths {
    grid-template-columns: 1fr;
  }

  .townconnect-home-v5 .tc-home__closing-path {
    min-height: 0;
  }
}

@media (max-width: 760px) {
  .townconnect-home-v5 .tc-home__hero h1 {
    max-width: none;
  }

  .townconnect-home-v5 .tc-home__hero h1 .tc-home__hero-line,
  .townconnect-home-v5 .tc-home__hero h1 .tc-home__hero-place {
    display: inline;
  }

  .townconnect-home-v5 .tc-home__hero h1 .tc-home__hero-line::after {
    content: " ";
  }

  .townconnect-home-v5 .tc-home__action-track,
  .townconnect-home-v5 .tc-home__week-grid,
  .townconnect-home-v5 .tc-home__community-preview-grid,
  .townconnect-home-v5 .tc-home__now-side {
    grid-template-columns: 1fr;
  }

  .townconnect-home-v5 .tc-home__action {
    min-height: 70px;
  }

  .townconnect-home-v5 .tc-home__feed-item {
    grid-template-columns: 48px minmax(0, 1fr) 32px;
  }

  .townconnect-home-v5 .tc-home__feature-card {
    min-height: 0;
  }

  .townconnect-home-v5 .tc-home__module-row {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .townconnect-home-v5 .tc-home__module-row-end {
    grid-column: 2;
    justify-content: space-between;
  }

  .townconnect-home-v5 .tc-home__closing-path {
    grid-template-columns: 42px minmax(0, 1fr);
    padding: 20px;
  }

  .townconnect-home-v5 .tc-home__closing-icon {
    width: 42px;
    height: 42px;
  }
}


.townconnect-home-v5 .tc-home__feed-empty {
  margin-top: 12px;
  padding: 18px;
  border: 1px dashed #bed4df;
  border-radius: 15px;
  color: var(--home-readable);
  background: #f5fafc;
  font-size: 0.9rem;
  line-height: 1.5;
}


/* ==========================================================================
   TownConnect Homepage V6 — Interactive Ecosystem CTA
   --------------------------------------------------------------------------
   - reserves a dedicated orbit area for the module icons;
   - moves the ecosystem caption below the orbit;
   - makes the caption a clear link to the full module section;
   - adds visible hover/focus labels to module nodes;
   - preserves responsive and reduced-motion behaviour.
   ========================================================================== */

.townconnect-home-v5 .tc-home__ecosystem {
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(410px, 1fr) auto;
  gap: 18px;
  place-items: stretch;
}

.townconnect-home-v5 .tc-home__ecosystem::before,
.townconnect-home-v5 .tc-home__ecosystem::after {
  content: none;
  display: none;
}

.townconnect-home-v5 .tc-home__ecosystem-orbit {
  position: relative;
  min-height: 410px;
  display: grid;
  place-items: center;
}

.townconnect-home-v5 .tc-home__ecosystem-orbit::before,
.townconnect-home-v5 .tc-home__ecosystem-orbit::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border: 1px dashed rgba(8, 83, 130, 0.24);
  border-radius: 50%;
}

.townconnect-home-v5 .tc-home__ecosystem-orbit::before {
  width: min(88%, 430px);
  aspect-ratio: 1;
}

.townconnect-home-v5 .tc-home__ecosystem-orbit::after {
  width: min(64%, 310px);
  aspect-ratio: 1;
}

/* Module-name tooltip */
.townconnect-home-v5 .tc-home__ecosystem-node::after {
  content: attr(data-module-label);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 9px);
  z-index: 12;
  width: max-content;
  max-width: 190px;
  padding: 7px 10px;
  border: 1px solid #c2d8e2;
  border-radius: 10px;
  color: var(--home-navy);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 9px 24px rgba(13, 34, 54, 0.14);
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 5px);
  transition:
    opacity 150ms ease,
    visibility 150ms ease,
    transform 150ms ease;
}

.townconnect-home-v5 .tc-home__ecosystem-node:hover::after,
.townconnect-home-v5 .tc-home__ecosystem-node:focus-visible::after {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

/* Dedicated, clickable CTA below the orbit */
.townconnect-home-v5 .tc-home__ecosystem-caption {
  position: relative;
  right: auto;
  bottom: auto;
  z-index: 6;
  width: min(100%, 390px);
  max-width: none;
  min-height: 72px;
  justify-self: center;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 34px;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid #b9d2de;
  border-radius: 18px;
  color: var(--home-ink);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(237, 247, 251, 0.98));
  box-shadow: 0 12px 30px rgba(13, 34, 54, 0.11);
  backdrop-filter: blur(10px);
  font-size: 0.82rem;
  line-height: 1.4;
  text-decoration: none;
  transition:
    transform 170ms ease,
    border-color 170ms ease,
    box-shadow 170ms ease,
    background 170ms ease;
}

.townconnect-home-v5 .tc-home__ecosystem-caption:hover,
.townconnect-home-v5 .tc-home__ecosystem-caption:focus-visible {
  color: var(--home-ink);
  border-color: #79aabd;
  background:
    linear-gradient(135deg, #ffffff, #e2f2f7);
  box-shadow: 0 17px 38px rgba(13, 34, 54, 0.16);
  text-decoration: none;
  transform: translateY(-3px);
}

.townconnect-home-v5 .tc-home__ecosystem-caption-icon,
.townconnect-home-v5 .tc-home__ecosystem-caption-arrow {
  display: grid;
  place-items: center;
  color: var(--home-blue-dark);
}

.townconnect-home-v5 .tc-home__ecosystem-caption-icon {
  width: 42px;
  height: 42px;
  border: 1px solid #bdd6e1;
  border-radius: 13px;
  background: #e5f3f8;
}

.townconnect-home-v5 .tc-home__ecosystem-caption-icon svg {
  width: 22px;
  height: 22px;
}

.townconnect-home-v5 .tc-home__ecosystem-caption-arrow {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #e8f4f8;
  transition:
    color 170ms ease,
    background 170ms ease,
    transform 170ms ease;
}

.townconnect-home-v5 .tc-home__ecosystem-caption:hover .tc-home__ecosystem-caption-arrow,
.townconnect-home-v5 .tc-home__ecosystem-caption:focus-visible .tc-home__ecosystem-caption-arrow {
  color: #ffffff;
  background: var(--home-blue-dark);
  transform: translateX(3px);
}

.townconnect-home-v5 .tc-home__ecosystem-caption-arrow svg {
  width: 17px;
  height: 17px;
}

.townconnect-home-v5 .tc-home__ecosystem-caption-copy {
  min-width: 0;
}

.townconnect-home-v5 .tc-home__ecosystem-caption strong,
.townconnect-home-v5 .tc-home__ecosystem-caption small {
  display: block;
}

.townconnect-home-v5 .tc-home__ecosystem-caption strong {
  margin: 0;
  color: var(--home-navy);
  font-size: 0.96rem;
  font-weight: 950;
  line-height: 1.2;
}

.townconnect-home-v5 .tc-home__ecosystem-caption small {
  margin-top: 3px;
  color: var(--home-muted);
  font-size: 0.74rem;
  font-weight: 720;
  line-height: 1.35;
}

/* The target section should not hide beneath the sticky shared header. */
#townconnect-modules {
  scroll-margin-top: 104px;
}

@media (max-width: 1040px) {
  .townconnect-home-v5 .tc-home__ecosystem {
    max-width: 620px;
    min-height: 0;
    margin-inline: auto;
    grid-template-rows: minmax(390px, 1fr) auto;
  }

  .townconnect-home-v5 .tc-home__ecosystem-orbit {
    min-height: 390px;
  }
}

@media (max-width: 620px) {
  .townconnect-home-v5 .tc-home__ecosystem {
    min-height: 0;
    grid-template-rows: minmax(330px, 1fr) auto;
    gap: 14px;
  }

  .townconnect-home-v5 .tc-home__ecosystem-orbit {
    min-height: 330px;
  }

  /* Override the older mobile rule that hid the caption. */
  .townconnect-home-v5 .tc-home__ecosystem-caption {
    display: grid;
    width: 100%;
    min-height: 68px;
    grid-template-columns: 38px minmax(0, 1fr) 30px;
    gap: 10px;
    padding: 11px 12px;
    border-radius: 16px;
  }

  .townconnect-home-v5 .tc-home__ecosystem-caption-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .townconnect-home-v5 .tc-home__ecosystem-caption-arrow {
    width: 30px;
    height: 30px;
  }

  .townconnect-home-v5 .tc-home__ecosystem-caption strong {
    font-size: 0.9rem;
  }

  .townconnect-home-v5 .tc-home__ecosystem-caption small {
    font-size: 0.7rem;
  }

  /* Native title/aria labels remain available on touch devices. */
  .townconnect-home-v5 .tc-home__ecosystem-node::after {
    display: none;
  }
}

@media (max-width: 420px) {
  .townconnect-home-v5 .tc-home__ecosystem {
    grid-template-rows: minmax(300px, 1fr) auto;
  }

  .townconnect-home-v5 .tc-home__ecosystem-orbit {
    min-height: 300px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .townconnect-home-v5 .tc-home__ecosystem-caption,
  .townconnect-home-v5 .tc-home__ecosystem-caption-arrow,
  .townconnect-home-v5 .tc-home__ecosystem-node::after {
    transition: none !important;
  }
}

/* ==========================================================================
   TownConnect Homepage V7 — Responsive Finalization
   ========================================================================== */

.tc-home__group-toggle {
  width: 100%;
  display: block;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: left;
}

.tc-home__group-heading > span:last-child > strong,
.tc-home__group-heading > span:last-child > small {
  display: block;
}

.tc-home__group-heading > span:last-child > strong {
  color: var(--home-navy);
  font-size: clamp(1.55rem, 2.35vw, 2.2rem);
  line-height: 1.12;
}

.tc-home__group-heading > span:last-child > small {
  margin-top: 8px;
  color: var(--home-muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.tc-home__group-toggle-icon {
  display: none;
}

.tc-home__group-content {
  display: block;
}

@media (max-width: 760px) {
  .tc-home__alert-inner {
    gap: 9px;
    padding-block: 11px;
    font-size: 0.83rem;
    line-height: 1.4;
  }

  .tc-home__hero {
    padding-top: 22px;
  }

  .tc-home__hero-card {
    padding: 24px 18px;
    border-radius: 28px;
  }

  .tc-home__hero-status {
    gap: 8px;
  }

  .tc-home__hero-live,
  .tc-home__hero-date {
    min-height: 36px;
    padding: 0 12px;
    font-size: 0.74rem;
  }

  .tc-home__hero h1 {
    margin-top: 24px;
    font-size: clamp(3.15rem, 13.5vw, 4.35rem);
    line-height: 0.94;
  }

  .tc-home__hero-lead {
    margin-top: 22px;
    font-size: 1rem;
    line-height: 1.65;
  }

  .tc-home__search {
    margin-top: 24px;
    padding: 12px;
    border-radius: 20px;
  }

  .tc-home__search input {
    min-height: 48px;
    padding-inline: 12px;
    font-size: 0.96rem;
  }

  .tc-home__search .tc-home__button {
    min-height: 48px;
  }

  .tc-home__hero-actions {
    margin-top: 18px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }

  .tc-home__hero-actions .tc-home__button {
    width: 100%;
    min-height: 48px;
    padding-inline: 10px;
    font-size: 0.82rem;
  }

  .tc-home__hero-actions .tc-home__button:first-child {
    grid-column: 1 / -1;
  }

  .tc-home__quick-intents {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .tc-home__quick-intents a {
    min-height: 38px;
    padding-inline: 8px;
    font-size: 0.75rem;
  }

  .townconnect-home-v5 .tc-home__ecosystem {
    margin-top: 22px;
    grid-template-rows: minmax(275px, 1fr) auto;
  }

  .townconnect-home-v5 .tc-home__ecosystem-orbit {
    min-height: 275px;
  }

  .tc-home__ecosystem-core {
    transform: scale(0.86);
  }

  .tc-home__ecosystem-node {
    transform: scale(0.84);
  }

  .tc-home__pulse {
    margin-top: 12px;
  }

  .tc-home__pulse-item {
    min-height: 78px;
    padding: 15px 14px;
  }

  .tc-home__pulse-value {
    font-size: 1.45rem;
  }

  .tc-home__pulse-label {
    font-size: 0.72rem;
  }

  .tc-home__action-track {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 9px !important;
  }

  .tc-home__action {
    min-width: 0 !important;
    min-height: 84px !important;
    padding: 12px !important;
  }

  .tc-home__action-copy strong {
    font-size: 0.84rem;
  }

  .tc-home__action-copy span {
    font-size: 0.7rem;
  }

  .tc-home__section {
    padding: 48px 0;
  }

  .tc-home__heading {
    margin-bottom: 24px;
    gap: 13px;
  }

  .tc-home__heading h2 {
    max-width: none;
    font-size: clamp(2.15rem, 10vw, 3rem);
    line-height: 1.02;
  }

  .tc-home__heading p {
    font-size: 0.98rem;
    line-height: 1.65;
  }

  .tc-home__panel,
  .tc-home__community-main,
  .tc-home__community-side-card,
  .tc-home__week-card,
  .tc-home__value-card,
  .tc-home__story-card,
  .tc-home__group-card {
    border-radius: 22px;
  }

  .tc-home__panel-head {
    gap: 12px;
  }

  .tc-home__panel-head h3 {
    font-size: 1.7rem;
  }

  .tc-home__panel-head .tc-home__link {
    display: flex;
    width: 100%;
    margin-top: 8px;
  }

  .tc-home__feed-filters {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 7px;
    scrollbar-width: none;
  }

  .tc-home__feed-filters::-webkit-scrollbar {
    display: none;
  }

  .tc-home__chip {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .tc-home__feed-item {
    grid-template-columns: 48px minmax(0, 1fr) 30px;
    min-height: 0;
    padding: 17px 0;
  }

  .tc-home__feed-title,
  .tc-home__feed-description,
  .tc-home__feed-cta {
    display: block;
    width: 100%;
  }

  .tc-home__feed-title {
    margin-top: 5px;
    font-size: 1.05rem;
    line-height: 1.28;
  }

  .tc-home__feed-description {
    margin-top: 6px;
  }

  .tc-home__feed-cta {
    margin-top: 9px;
  }

  .tc-home__feature-card {
    min-height: 0;
  }

  .tc-home__feature-brand-fallback {
    min-height: 140px;
    padding: 20px;
  }

  .tc-home__feature-content {
    margin: 12px;
    padding: 20px;
  }

  .tc-home__feature-content h3 {
    font-size: 1.55rem;
  }

  .tc-home__business-card--feature,
  .tc-home__business-card--medium,
  .tc-home__business-card--medium:nth-child(4) {
    display: flex !important;
  }

  .tc-home__business-media {
    min-height: 170px !important;
  }

  .tc-home__business-fallback {
    min-height: 170px;
    padding: 18px;
  }

  .tc-home__business-fallback > span:last-child {
    display: none;
  }

  .tc-home__business-body {
    padding: 19px;
  }

  .tc-home__business-body h3 {
    font-size: 1.45rem;
  }

  .tc-home__week-card,
  .tc-home__value-card {
    min-height: 0;
    padding: 20px;
  }

  .tc-home__week-card p,
  .tc-home__value-card p {
    margin-top: 9px;
  }

  .tc-home__story-card,
  .tc-home__story-card--feature,
  .tc-home__story-card:nth-child(4) {
    display: grid !important;
    grid-template-columns: 92px minmax(0, 1fr) !important;
    align-items: stretch;
  }

  .tc-home__story-media,
  .tc-home__story-card--feature .tc-home__story-media,
  .tc-home__story-card:nth-child(4) .tc-home__story-media {
    min-height: 0 !important;
  }

  .tc-home__story-brand-fallback {
    min-height: 100%;
    padding: 12px 8px;
  }

  .tc-home__story-brand-fallback .tc-home__module-mark {
    width: 58px;
    height: 58px;
    border-radius: 17px;
  }

  .tc-home__story-brand-fallback strong,
  .tc-home__story-brand-fallback small {
    display: none;
  }

  .tc-home__story-body {
    padding: 18px;
  }

  .tc-home__story-body h3 {
    font-size: 1.25rem;
  }

  .tc-home__business-cta {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    padding: 24px 20px !important;
  }

  .tc-home__business-copy {
    min-width: 0;
    width: 100%;
  }

  .tc-home__business-cta h2 {
    max-width: none !important;
    font-size: clamp(2.2rem, 11vw, 3.1rem) !important;
    line-height: 1.02 !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
  }

  .tc-home__business-cta p {
    max-width: none !important;
    font-size: 0.98rem;
    line-height: 1.65;
  }

  .tc-home__business-cta-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 9px !important;
  }

  .tc-home__business-cta-actions .tc-home__button {
    width: 100% !important;
    min-width: 0 !important;
  }

  .tc-home__business-paths {
    width: 100%;
    display: grid !important;
    gap: 10px;
  }

  .tc-home__business-path {
    width: 100%;
    grid-template-columns: 44px minmax(0, 1fr) !important;
    padding: 13px !important;
  }

  .tc-home__ecosystem-groups {
    display: grid;
    gap: 12px;
  }

  .tc-home__group-card {
    min-height: 0;
    padding: 0;
    overflow: hidden;
  }

  .tc-home__group-toggle {
    min-height: 92px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 36px;
    gap: 12px;
    align-items: center;
    padding: 18px;
    cursor: pointer;
  }

  .tc-home__group-heading {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
  }

  .tc-home__group-heading > span:last-child > strong {
    font-size: 1.35rem;
  }

  .tc-home__group-heading > span:last-child > small {
    margin-top: 5px;
    font-size: 0.79rem;
    line-height: 1.4;
  }

  .tc-home__group-toggle-icon {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 50%;
    color: var(--home-blue-dark);
    background: #e9f4f8;
    transition: transform 160ms ease;
  }

  .tc-home__group-toggle-icon svg {
    width: 17px;
    height: 17px;
  }

  .tc-home__group-card.is-open .tc-home__group-toggle-icon {
    transform: rotate(180deg);
  }

  .tc-home__group-content {
    display: none;
    padding: 0 14px 14px;
  }

  .tc-home__group-card.is-open .tc-home__group-content {
    display: block;
  }

  .tc-home__module-row {
    min-height: 72px;
  }

  .tc-home__module-row-copy > span {
    font-size: 0.74rem;
  }

  .tc-home__closing {
    padding: 24px 18px;
  }

  .tc-home__closing h2 {
    font-size: clamp(2rem, 9.5vw, 2.7rem);
  }

  .tc-home__closing-path {
    min-height: 0;
    padding: 18px;
  }

  .tc-home__section,
  .tc-home__closing,
  .site-footer {
    padding-bottom: max(24px, env(safe-area-inset-bottom));
  }
}

