/* Home page shell: top bar, sidebar, main column (layout follows the Diaspora Konnekt concept) */
:root { --side-w: 252px; --top-h: 64px; --panel: #eef3f9; --edge: #dfe8f2; }
body { background: #fff; }

.topbar {
  position: sticky; top: 0; z-index: 60; display: flex; height: var(--top-h); align-items: center; gap: 22px; padding: 0 22px;
  border-bottom: 1px solid var(--edge); background: rgb(255 255 255 / 96%); backdrop-filter: blur(8px);
}
.topbar-brand { display: flex; align-items: center; flex: 0 0 auto; width: calc(var(--side-w) - 44px); }
.topbar-brand img { height: 46px; width: auto; }
.topbar-nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.topbar-nav a { color: var(--navy); font-size: 14.4px; font-weight: 650; }
.topbar-nav a:hover { color: var(--blue); }
.topbar-actions { display: flex; align-items: center; gap: 14px; }
.topbar-actions > *, .topbar-nav a { flex-shrink: 0; white-space: nowrap; } /* "Log in" and the menu words never break onto two lines */
.topbar-invite { color: var(--navy); font-size: 14.4px; font-weight: 650; }
.topbar-join { background: var(--navy); color: #fff; }
.topbar-join:hover { background: var(--blue); }
.topbar-join { gap: 0; }
.topbar-join .join-long { margin-left: .3em; }
.side-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--edge); border-radius: 10px; background: #fff; color: var(--navy); font-size: 20px; cursor: pointer; }

.shell { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); align-items: start; }
.side {
  position: sticky; top: var(--top-h); height: calc(100vh - var(--top-h)); overflow-y: auto; padding: 18px 12px 28px 16px;
  border-right: 1px solid var(--edge); background: #fff; scrollbar-width: thin;
}
.side-title { margin: 20px 8px 4px; color: var(--navy); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.side-title:first-child { margin-top: 4px; }
.side-sub { margin: 0 8px 8px; color: var(--muted); font-size: 12.6px; }
.side-list { display: grid; gap: 1px; margin: 0 0 6px; padding: 0; list-style: none; }
.side-list a, .side-list button {
  display: flex; width: 100%; align-items: center; gap: 11px; padding: 9px 10px; border: 0; border-radius: 9px; background: none; color: #324a66;
  font: inherit; font-size: 14px; font-weight: 600; text-align: left; cursor: pointer;
}
.side-list a:hover, .side-list button:hover { background: var(--panel); color: var(--navy); }
.side-list a:focus-visible, .side-list button:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
.side-ico { display: inline-grid; width: 22px; flex: 0 0 22px; place-items: center; color: var(--blue); font-size: 15px; }

.home-main { display: grid; gap: 23px; padding: 24px clamp(18px, 2.6vw, 40px) 0; min-width: 0; }
.home-main > section, .home-main > aside { min-width: 0; }
/* The page ships with event text as a fallback. Until the live list has loaded it stays invisible, so a past event never flashes. */
.home-main[data-events-pending] .coming-list, .home-main[data-events-pending] .event-feature, .home-main[data-events-pending] .event-list, .home-main[data-events-pending] [data-m-ev] { visibility: hidden; }
.home-main .section-space { padding-block: 0; }

/* Search bar */
.find-bar { display: grid; gap: 10px; }
.find-lede { margin: 0; color: var(--navy); font-size: 21px; font-weight: 760; letter-spacing: -.03em; }
.find-bar .business-search { max-width: none; border: 1px solid var(--edge); box-shadow: 0 8px 24px rgb(6 39 79 / 8%); }
.find-bar .business-search:focus-within { border-color: var(--gold); box-shadow: 0 8px 24px rgb(6 39 79 / 10%), 0 0 0 3px rgb(246 191 24 / 40%); }
.find-bar .hero-quicklinks { margin: 0; color: var(--muted); }
.find-bar .hero-quicklinks button { border-color: var(--edge); background: #fff; color: var(--navy); }
.find-bar .hero-quicklinks a { color: var(--blue); text-decoration-color: rgb(7 89 168 / 40%); }

/* Sponsored */
.home-main .sponsor-band { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0; padding: 12px 16px; border: 1px solid #f1dfa6; border-radius: 14px; background: #fff9e6; }
.home-main .sponsor-band p { margin: 0; color: #5a4a14; font-size: 14.2px; }
.home-main .sponsor-band a { margin-left: 6px; color: var(--navy); font-weight: 750; white-space: nowrap; }
.sponsor-tag { padding: 4px 10px; border-radius: 999px; background: #f6e4a4; color: #5a4a14; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }

/* Panels */
.kicker { margin: 0 0 6px; color: #8a6a00; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.panel-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 24px; margin-bottom: 18px; }
.panel-head h2 { margin: 0; color: var(--navy); font-size: clamp(26px, 2.8vw, 36px); font-weight: 780; letter-spacing: -.045em; line-height: 1.1; }
.panel-lede { max-width: 620px; margin: 8px 0 0; color: #51647c; font-size: 15.4px; }

.events-panel { padding: 26px; border-radius: 22px; background: var(--panel); }
.events-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.events-main { display: grid; gap: 16px; min-width: 0; }
.events-panel .event-feature { grid-template-columns: 230px minmax(0, 1fr); min-height: 0; border-radius: 18px; box-shadow: 0 10px 30px rgb(6 39 79 / 10%); }
.events-panel .event-poster-wrap { min-height: 0; padding: 0; background: #08254b; }
.events-panel .event-poster-wrap img { width: 100%; height: 100%; max-height: none; object-fit: cover; box-shadow: none; }
.events-panel .event-feature-copy { padding: 24px 26px; }
.events-panel .event-feature-copy h3 { font-size: clamp(22px, 2.3vw, 30px); }
.events-panel .event-list { grid-template-columns: 1fr; }

.cal { padding: 18px; border-radius: 18px; background: #fff; box-shadow: 0 10px 30px rgb(6 39 79 / 8%); }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-head h3 { margin: 0; color: var(--navy); font-size: 17px; font-weight: 780; }
.cal-nav { display: flex; gap: 4px; }
.cal-nav button { width: 30px; height: 30px; border: 1px solid var(--edge); border-radius: 8px; background: #fff; color: var(--navy); font-size: 15px; cursor: pointer; }
.cal-nav button:hover { border-color: var(--gold); background: #fff9e6; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; text-align: center; }
.cal-dow { padding: 6px 0; color: var(--muted); font-size: 12px; font-weight: 700; }
.cal-day { position: relative; display: grid; aspect-ratio: 1; place-items: center; border-radius: 9px; color: #324a66; font-size: 13.6px; }
.cal-day.is-today { box-shadow: inset 0 0 0 1.5px var(--blue); }
button.cal-day { padding: 0; border: 0; background: transparent; font: inherit; font-size: 13.6px; cursor: pointer; }
.cal-day.has-event { background: var(--navy); color: #fff; font-weight: 800; }
.cal-day.has-event:hover { background: var(--blue); }
.cal-day.has-event.is-selected { box-shadow: 0 0 0 2px var(--gold); }
.cal-day.has-event:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.cal-day.has-event::after { position: absolute; bottom: 5px; width: 4px; height: 4px; border-radius: 50%; background: var(--gold); content: ""; }
.cal-foot { margin: 10px 2px 0; color: var(--muted); font-size: 12.6px; }

/* Big banner */
.big-banner { position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: center; gap: 20px; min-height: 280px; overflow: hidden; padding: 38px clamp(24px, 4vw, 52px); border-radius: 22px; background: linear-gradient(115deg, var(--navy-deep), var(--navy) 60%, #0a4a8c); color: #fff; }
.big-banner h2 { margin: 0; max-width: 460px; font-size: clamp(34px, 4.2vw, 56px); font-weight: 790; letter-spacing: -.05em; line-height: 1.04; }
.big-banner p { max-width: 460px; margin: 16px 0 22px; color: #d1deed; font-size: 16.4px; }
.big-banner-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.banner-link { color: #fff; font-size: 14.4px; font-weight: 700; }
.banner-link:hover { color: var(--gold); }
.big-banner-art { display: grid; place-items: center; }
.big-banner-art img { width: min(280px, 100%); border-radius: 50%; box-shadow: 0 0 0 14px rgb(255 255 255 / 7%), 0 0 0 34px rgb(255 255 255 / 4%), 0 30px 60px rgb(2 14 33 / 40%); }

/* Categories */
.home-main .category-section { background: none; }
.home-main .section-heading { margin-bottom: 18px; }
.home-main .cat-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.home-main .cat-card { padding: 16px; border-radius: 16px; background: #fff; }
.cat-grid li:nth-child(5n+1) .cat-icon { background: #fde7ea; color: #c4364b; }
.cat-grid li:nth-child(5n+2) .cat-icon { background: #e7efff; color: #2f5fc4; }
.cat-grid li:nth-child(5n+3) .cat-icon { background: #fdf0d9; color: #b46f08; }
.cat-grid li:nth-child(5n+4) .cat-icon { background: #e3f4ec; color: #1c7d56; }
.cat-grid li:nth-child(5n) .cat-icon { background: #ece8fb; color: #5a3fb3; }
.cat-count { font-size: 12.6px; }

/* Marketplace */
.market-block .rail-track { padding-bottom: 14px; }
.market-block .fc-card { background: #fff; border-color: var(--edge); }
.list-callout { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-top: 8px; padding: 16px 20px; border: 1.5px dashed #b6c4d4; border-radius: 16px; background: #f8fafd; }
.list-callout div { display: grid; gap: 3px; max-width: 640px; }
.list-callout strong { color: var(--navy); font-size: 15.4px; }
.list-callout span { color: #51647c; font-size: 14px; }
.button-navy { background: var(--navy); color: #fff; }
.button-navy:hover { background: var(--blue); }

/* Community panel */
.community-panel { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 0; overflow: hidden; border-radius: 22px; background: var(--panel); }
.community-copy { padding: 30px clamp(22px, 3vw, 40px); }
.community-copy h2 { margin: 0; max-width: 520px; color: var(--navy); font-size: clamp(28px, 3.2vw, 42px); font-weight: 780; letter-spacing: -.045em; line-height: 1.08; }
.community-copy > p:not(.kicker) { max-width: 520px; margin: 12px 0 20px; color: #51647c; font-size: 15.6px; }
.community-next { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-block: 1px solid #d3deeb; }
.community-next .hero-date { min-width: 56px; background: var(--navy); }
.community-next > span:last-child { display: grid; gap: 2px; }
.community-next small { color: var(--muted); font-size: 12px; font-weight: 700; }
.community-next strong { color: var(--navy); font-size: 17px; }
.community-next em { color: #51647c; font-size: 13.6px; font-style: normal; }
.community-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 16px; }
.community-links a { color: var(--blue); font-size: 14.2px; font-weight: 700; }
.community-links a:hover { color: var(--navy); }
.community-tools { padding: 30px clamp(20px, 2.6vw, 32px); border-left: 1px solid #d3deeb; background: rgb(255 255 255 / 55%); }
.community-tools h3 { margin: 0 0 12px; color: var(--navy); font-size: 21px; font-weight: 780; }
.community-tools ul { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.community-tools li a { display: grid; gap: 2px; padding: 12px 0; border-bottom: 1px solid #d3deeb; }
.community-tools li:last-child a { border-bottom: 0; }
.community-tools strong { color: var(--navy); font-size: 14.6px; }
.community-tools span { color: #51647c; font-size: 13.4px; }
.community-tools li a:hover strong { color: var(--blue); }

/* Existing sections inside the new main column */
.home-main .directory-section, .home-main .growth-section, .home-main .opportunity-section { margin-inline: 0; }
.home-main .directory-section > .page-wrap, .home-main .growth-section > .page-wrap, .home-main .opportunity-section > .page-wrap, .home-main .invite-inner { width: 100%; }
.home-main .invite-section { margin-inline: calc(-1 * clamp(18px, 2.6vw, 40px)); }
.home-main .invite-section .page-wrap { width: min(1080px, calc(100% - 48px)); }
.site-footer { margin-left: var(--side-w); }

@media (max-width: 1240px) {
  .home-main .cat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .events-layout { grid-template-columns: 1fr; }
  .cal { max-width: 420px; }
}
@media (max-width: 980px) {
  :root { --side-w: 0px; }
  .shell { display: block; }
  .side-toggle { display: grid; place-items: center; }
  .topbar { gap: 12px; padding: 0 14px; }
  .topbar-brand { width: auto; }
  .topbar-brand img { height: 40px; }
  .topbar-nav { display: none; }
  .topbar-actions { margin-left: auto; gap: 10px; }
  .topbar-invite, .site-search-trigger span, .site-search-trigger kbd { display: none; }
  .side {
    position: fixed; z-index: 70; top: var(--drawer-top, var(--top-h)); bottom: 0; left: 0; width: min(300px, 86vw); height: auto; transform: translateX(-102%);
    box-shadow: 0 20px 50px rgb(2 14 33 / 30%); transition: transform .22s ease;
  }
  .side.is-open { transform: none; }
  .side-close { display: flex; width: 100%; align-items: center; gap: 10px; margin: 0 0 8px; padding: 10px 12px; border: 1px solid var(--edge); border-radius: 10px; background: var(--panel); color: var(--navy); font: inherit; font-weight: 700; cursor: pointer; }
  .side-close:hover { border-color: var(--gold); background: #fff9e6; }
  .side-close:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
  .side-close-ico { display: grid; width: 22px; flex: 0 0 22px; place-items: center; font-size: 22px; line-height: 1; }
  body.menu-open { overflow: hidden; }
  .site-footer { margin-left: 0; }
  .community-panel, .big-banner { grid-template-columns: 1fr; }
  .big-banner-art { display: none; }
  .community-tools { border-top: 1px solid #d3deeb; border-left: 0; }
  .home-main .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .home-main { gap: 22px; padding-top: 16px; }
  .topbar-join { padding-inline: 11px; font-size: 12.6px; }
  .find-lede { font-size: 19px; }
  .events-panel { padding: 16px; border-radius: 18px; }
  .events-panel .event-feature { grid-template-columns: 1fr; }
  .events-panel .event-poster-wrap { height: 280px; }
  .home-main .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .big-banner { padding: 28px 22px; min-height: 0; }
}
@media (prefers-reduced-motion: reduce) { .side { transition: none; } }

/* Line icons */
.ico { width: 18px; height: 18px; flex: 0 0 auto; }
.side-ico { color: #4a6a8f; }
.side-ico .ico { width: 19px; height: 19px; }
.side-list a:hover .side-ico, .side-list button:hover .side-ico { color: var(--navy); }
.cat-icon .ico { width: 23px; height: 23px; }
.topbar-invite { display: inline-flex; align-items: center; gap: 7px; }
.topbar-invite .ico { width: 19px; height: 19px; }

/* Inner pages inside the shell */
.page-col { min-width: 0; }
.page-col > main { min-width: 0; }
.page-col .page-wrap { width: min(1120px, calc(100% - 56px)); }
@media (max-width: 640px) { .page-col .page-wrap { width: calc(100% - 32px); } }

/* Banner art: connected network (replaces the round logo) */
.big-banner-art img { box-shadow: none; }
.net { width: min(420px, 100%); height: auto; color: #fff; overflow: visible; }
.net-lines path { stroke: rgb(255 255 255 / 38%); stroke-width: 1.4; stroke-dasharray: 2 6; stroke-linecap: round; }
.net-rings circle { stroke: rgb(255 255 255 / 10%); stroke-width: 1; }
.bn circle { fill: rgb(255 255 255 / 10%); stroke: rgb(255 255 255 / 45%); stroke-width: 1.2; }
.bn { color: #fff; }
.bn-gold circle { fill: var(--gold); stroke: none; }
.bn-gold { color: var(--navy-deep); }
.bn-core circle { fill: #fcfbf8; stroke: rgb(185 155 93 / 78%); stroke-width: 3; }
.bn-core text { fill: var(--navy); font-family: var(--font); font-size: 31px; font-weight: 800; }

/* Event poster: show the whole poster instead of cropping it */
.events-panel .event-poster-wrap { display: grid; place-items: center; padding: 16px; background: linear-gradient(150deg, #08254b, #123b6e); }
.events-panel .event-poster-wrap img { width: 100%; height: auto; max-height: 360px; object-fit: contain; border-radius: 6px; box-shadow: 0 12px 26px rgb(0 0 0 / 35%); }
@media (max-width: 640px) { .events-panel .event-poster-wrap { height: auto; } .events-panel .event-poster-wrap img { max-height: 320px; } }

/* Announcement ticker */
.ticker { overflow: hidden; background: var(--navy-deep); color: #e7eef8; font-size: 13px; }
.ticker-track { display: flex; width: max-content; gap: 56px; padding: 7px 0; animation: dk-ticker 38s linear infinite; }
.ticker-track span { white-space: nowrap; }
.ticker a { color: var(--gold); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes dk-ticker { to { transform: translateX(-50%); } }

/* Moving strip of promoted images under the ticker. The list is repeated once so the loop has no gap; the end padding equals the gap. */
.promo-strip { overflow: hidden; background: #fff; border-bottom: 1px solid #e0e7ef; }
.promo-strip[hidden] { display: none; }
.promo-strip-track { display: flex; width: max-content; gap: 12px; padding: 8px 12px 8px 0; animation: dk-ticker 70s linear infinite; }
.promo-strip:hover .promo-strip-track, .promo-strip:focus-within .promo-strip-track { animation-play-state: paused; }
.promo-strip-item { position: relative; display: grid; flex: none; width: 128px; height: 64px; place-items: center; overflow: hidden; border: 1px solid #e0e7ef; border-radius: 8px; background: #fff; }
.promo-strip-item img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }
.promo-strip-item.is-event { background: #eef3f9; }
.promo-strip-item.is-event img { width: 100%; height: 100%; object-fit: contain; }
.promo-strip-cta { padding: 0 12px; background: var(--navy-deep); color: var(--gold); font-size: 13px; font-weight: 800; text-align: center; text-decoration: none; }
.promo-strip-item:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.promo-strip-tag { position: absolute; left: 4px; top: 4px; padding: 1px 7px; border-radius: 999px; background: var(--gold); color: var(--navy-deep); font-size: 10px; font-weight: 800; line-height: 1.5; }
@media (max-width: 640px) { .promo-strip-item { width: 104px; height: 52px; } }
@media (prefers-reduced-motion: reduce) { .promo-strip { overflow-x: auto; } .promo-strip-track { animation: none; padding-right: 12px; } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; gap: 6px 28px; padding-inline: 14px; } .ticker-track [aria-hidden] { display: none; } }

/* Showcase: one large spotlight plus a grid of every promoted business */
.showcase { display: grid; gap: 16px; padding: 18px; border: 1px solid var(--edge); border-radius: 22px; background: linear-gradient(180deg, #fff, #f6f9fd); box-shadow: 0 10px 30px rgb(6 39 79 / 7%); }
.showcase-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.showcase-head p { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--navy); font-size: 15px; }
.spot-slide { display: grid; grid-template-columns: minmax(200px, 300px) minmax(0, 1fr); align-items: center; gap: 24px; min-height: 220px; padding: 14px; border-radius: 18px; background: #fff; box-shadow: 0 8px 24px rgb(6 39 79 / 8%); }
.spot-slide.is-new { animation: dk-fade .5s ease; }
@keyframes dk-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.spot-media { height: 190px; border-radius: 14px; }
.spot-media img { width: 100%; height: 100%; object-fit: contain; }
.spot-media.media-insurance img, .spot-media.media-tannin img, .spot-media.media-blue-hectare img { object-fit: cover; object-position: top; }
.spot-body { display: grid; gap: 6px; align-content: center; min-width: 0; }
.spot-type { margin: 0; color: #8a6a00; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.spot-body h2 { margin: 0; color: var(--navy); font-size: clamp(24px, 2.8vw, 36px); font-weight: 790; letter-spacing: -.04em; line-height: 1.1; }
.spot-body h2 a:hover { color: var(--blue); }
.spot-tag { max-width: 560px; margin: 0; color: #51647c; font-size: 16px; }
.spot-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.tile { display: grid; gap: 3px; height: 100%; padding: 8px 8px 12px; border: 1px solid var(--edge); border-radius: 16px; background: #fff; color: var(--ink); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.tile .business-media { height: 124px; margin-bottom: 8px; padding: 8px; border-radius: 11px; }
.tile .business-media img { object-fit: contain; }
.tile .media-clicknpay img { width: 96px; height: 96px; }
.tile .media-insurance img, .tile .media-tannin img, .tile .media-blue-hectare img { width: 100%; object-fit: cover; object-position: top; }
.tile strong { color: var(--navy); font-size: 14.6px; font-weight: 760; line-height: 1.25; }
.tile small { color: var(--muted); font-size: 12.6px; }
.tile:hover { border-color: var(--gold); box-shadow: 0 14px 28px rgb(6 39 79 / 14%); transform: translateY(-3px); }
.tile:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
@media (max-width: 640px) { .spot-slide { grid-template-columns: 1fr; gap: 14px; } .spot-media { height: 170px; } .tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .showcase { padding: 12px; } }
@media (prefers-reduced-motion: reduce) { .spot-slide { animation: none; } .tile { transition: none; } }

.showcase-tools { display: flex; align-items: center; gap: 16px; }
.spot-nav { display: flex; gap: 6px; }
.spot-nav button { width: 32px; height: 32px; border: 1px solid var(--edge); border-radius: 50%; background: #fff; color: var(--navy); font-size: 18px; line-height: 1; cursor: pointer; }
.spot-nav button:hover { border-color: var(--gold); background: #fff9e6; }
.spot-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin-top: -4px; }
.spot-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: #c9d6e6; cursor: pointer; transition: width .2s, background .2s; }
.spot-dots button[aria-current="true"] { width: 22px; background: var(--navy); }
.tile.is-active { border-color: var(--gold); box-shadow: 0 0 0 2px rgb(246 191 24 / 55%); }
@media (prefers-reduced-motion: reduce) { .spot-slide.is-new { animation: none; } }

/* Phone fixes: header and showcase must fit a 375px screen */
.showcase > * { min-width: 0; }
@media (max-width: 640px) {
  .showcase-head { flex-wrap: wrap; gap: 10px; }
  .showcase-head p { flex-wrap: wrap; }
  .showcase-tools { width: 100%; justify-content: space-between; }
  .topbar { gap: 8px; padding: 0 10px; }
  .topbar-brand img { height: 34px; }
  .topbar-actions { gap: 8px; }
  .topbar-invite span { display: none; }
  .topbar-invite { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid var(--edge); border-radius: 9px; }
  .topbar-join { padding-inline: 10px; font-size: 12.6px; white-space: nowrap; min-height: 38px; }
  .site-search-trigger { min-height: 38px; min-width: 38px; justify-content: center; padding: 0; }
  .spot-slide { padding: 10px; min-height: 0; }
  .spot-body h2 { font-size: 26px; }
  .spot-dots { gap: 5px; }
}
@media (max-width: 400px) { .topbar-join { font-size: 12px; padding-inline: 8px; } }

/* Coming up strip */
.coming-up { padding: 14px 18px 16px; border: 1px solid var(--edge); border-radius: 18px; background: #fff; }
.coming-up[hidden] { display: none; }
.coming-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.coming-head h2 { margin: 0; color: var(--navy); font-size: 18px; font-weight: 780; letter-spacing: -.02em; }
.coming-list { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 10px; margin: 0; padding: 2px 2px 6px; overflow-x: auto; list-style: none; scroll-snap-type: x proximity; scrollbar-width: thin; }
.coming-list li { scroll-snap-align: start; }
.coming-item { display: grid; grid-template-columns: 56px minmax(0, 1fr); align-items: center; gap: 12px; height: 100%; padding: 10px 12px; border: 1px solid var(--edge); border-radius: 14px; background: #f8fafd; transition: border-color .2s, box-shadow .2s, transform .2s; }
.coming-item:hover { border-color: var(--gold); box-shadow: 0 10px 22px rgb(6 39 79 / 10%); transform: translateY(-2px); }
.coming-item:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.coming-item .hero-date { background: var(--navy); }
.coming-item > span:last-child { display: grid; gap: 2px; min-width: 0; }
.coming-item strong { color: var(--navy); font-size: 14.4px; line-height: 1.25; }
.coming-item small { overflow: hidden; color: var(--muted); font-size: 12.6px; text-overflow: ellipsis; white-space: nowrap; }

/* Calendar: Month / List tabs and list view */
.cal-head { flex-wrap: wrap; gap: 8px; }
.cal-tabs { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--panel); }
.cal-tabs button { padding: 5px 13px; border: 0; border-radius: 999px; background: none; color: #324a66; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.cal-tabs button[aria-selected="true"] { background: var(--navy); color: #fff; }
.cal-nav-row { display: flex; gap: 4px; margin-bottom: 8px; }
.cal-nav-row button { width: 30px; height: 30px; border: 1px solid var(--edge); border-radius: 8px; background: #fff; color: var(--navy); font-size: 15px; cursor: pointer; }
.cal-nav-row button:hover { border-color: var(--gold); background: #fff9e6; }
.cal-list { display: grid; gap: 10px; max-height: 420px; margin: 0; padding: 0; overflow-y: auto; list-style: none; }
.cal-list li { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 12px; align-items: start; padding-bottom: 10px; border-bottom: 1px solid #e7edf4; }
.cal-list li:last-child { border-bottom: 0; }
.cal-list .hero-date { background: var(--navy); }
.cal-list-body { display: grid; gap: 3px; }
.cal-list-body strong { color: var(--navy); font-size: 14.6px; line-height: 1.25; }
.cal-list-body small { color: var(--muted); font-size: 12.6px; }
.cal-book { justify-self: start; margin-top: 3px; padding: 5px 11px; border-radius: 8px; background: var(--gold); color: var(--navy-deep); font-size: 12.6px; font-weight: 800; }
.cal-empty { color: var(--muted); font-size: 14px; }
.showcase .coming-up { padding: 4px 0 0; border: 0; border-top: 1px solid var(--edge); border-radius: 0; background: none; padding-top: 14px; }

/* Retractable sidebar (desktop) */
@media (min-width: 981px) { .topbar-brand { width: 208px; } }
.shell { transition: grid-template-columns .22s ease; }
.side-collapse { display: flex; width: 100%; align-items: center; gap: 10px; margin: 0 0 8px; padding: 8px 10px; border: 1px solid var(--edge); border-radius: 10px; background: var(--panel); color: var(--navy); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.side-collapse:hover { border-color: var(--gold); background: #fff9e6; }
.side-collapse:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
.side-collapse-ico { display: grid; width: 22px; flex: 0 0 22px; place-items: center; font-size: 20px; line-height: 1; transition: transform .2s; }
@media (min-width: 981px) {
  html.side-collapsed { --side-w: 76px; }
  html.side-collapsed .side { padding-inline: 10px; overflow-x: hidden; }
  html.side-collapsed .side-label, html.side-collapsed .side-title, html.side-collapsed .side-sub { display: none; }
  html.side-collapsed .side-collapse { justify-content: center; padding: 8px 0; }
  html.side-collapsed .side-collapse-ico { transform: rotate(180deg); }
  html.side-collapsed .side-list a, html.side-collapsed .side-list button { justify-content: center; padding: 10px 0; }
  html.side-collapsed .side-list { margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--edge); }
  html.side-collapsed .site-footer { margin-left: var(--side-w); }
  /* The space freed goes to the events calendar */
  html.side-collapsed .showcase-top { grid-template-columns: minmax(0, 1fr) 430px; }
  html.side-collapsed .cal { padding: 22px; }
  html.side-collapsed .cal-day { font-size: 15px; }
  html.side-collapsed .home-main { padding-inline: clamp(22px, 3vw, 56px); }
}
@media (max-width: 980px) { .side-collapse { display: none; } }
@media (prefers-reduced-motion: reduce) { .shell, .side-collapse-ico { transition: none; } }

/* Calendar sits beside the spotlight so both are visible on landing */
.showcase-top { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.showcase-lead { display: grid; gap: 12px; min-width: 0; }
.showcase-top .cal { padding: 14px; border: 1px solid var(--edge); box-shadow: 0 8px 24px rgb(6 39 79 / 8%); }
.showcase-top .cal-head h3 { font-size: 16px; }
.showcase-top .cal-list { max-height: 292px; }
.showcase-top .spot-slide { grid-template-columns: minmax(170px, 230px) minmax(0, 1fr); gap: 18px; }
.showcase-top .spot-media { height: 170px; }
.showcase-top .spot-body h2 { font-size: clamp(22px, 2.3vw, 30px); }
.events-layout { grid-template-columns: 1fr; }
@media (max-width: 1180px) { .showcase-top { grid-template-columns: 1fr; } .showcase-top .cal { max-width: none; } }
@media (max-width: 640px) { .showcase-top .spot-slide { grid-template-columns: 1fr; } .showcase-top .spot-media { height: 170px; } }
.showcase-lead { grid-template-columns: minmax(0, 1fr); }
.showcase-top .cal-day { aspect-ratio: 1.15; }

/* Intro: what this platform is, in plain words */
.intro { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; padding: 2px 4px; }
.intro-copy { max-width: 640px; }
.intro h1 { margin: 0; color: var(--navy); font-size: clamp(25px, 2.7vw, 36px); font-weight: 790; letter-spacing: -.045em; line-height: 1.1; }
.intro p { margin: 8px 0 0; color: #3d536d; font-size: 16px; }
.intro-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.intro-links a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 15px; border: 1px solid var(--edge); border-radius: 999px; background: #fff; color: var(--navy); font-size: 14px; font-weight: 700; transition: border-color .2s, background .2s, transform .2s; }
.intro-links a:hover { border-color: var(--gold); background: #fff9e6; transform: translateY(-2px); }
.intro-links a:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.intro-links .ico { color: var(--blue); }
@media (max-width: 640px) { .intro h1 { font-size: 24px; } .intro p { font-size: 15px; } .intro-links { display: grid; grid-template-columns: 1fr 1fr; width: 100%; } .intro-links a { justify-content: center; padding-inline: 8px; } }

/* ===== Phone layout: a grid of boxes (sectors, companies, events), then the calendar ===== */
.m-grid, .intro-cta { display: none; }
@media (max-width: 640px) {
  /* header: logo, gold Join, menu */
  .topbar { gap: 8px; }
  .topbar-brand { order: 1; }
  .topbar-actions { order: 2; margin-left: auto; }
  .side-toggle { order: 3; }
  .topbar-actions .site-search-trigger, .topbar-invite { display: none; }
  .topbar-join { background: var(--gold); color: var(--navy-deep); padding-inline: 12px; font-size: 13px; box-shadow: none; }
  .topbar-join:hover { background: #ffd24b; }
  .topbar-join .join-long { display: inline; }
  .topbar-join .join-arrow { display: inline-block; margin-left: 6px; }

  /* intro becomes a dark card with two buttons */
  .home-main > * { order: 5; }
  .home-main > .intro { order: 1; }
  .home-main > .m-grid { order: 3; }
  .home-main > .find-bar { order: 2; }
  .showcase, .showcase-top { display: contents; }
  .showcase-head, .showcase-lead, .tile-grid { display: none; }
  .showcase-top .cal { order: 4; }
  .list-callout { order: 6; }
  .home-main { gap: 12px; padding-top: 12px; }
  .intro { display: grid; gap: 8px; padding: 14px 14px 12px; border-radius: 18px; background: linear-gradient(150deg, var(--navy-deep), var(--navy) 70%, #0a4a8c); color: #fff; }
  .intro h1 { color: #fff; font-size: 20px; line-height: 1.12; letter-spacing: -.03em; }
  .intro p { margin: 4px 0 0; color: #d1deed; font-size: 13px; line-height: 1.38; }
  .intro-links { display: none; }
  .intro-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 2px; }
  .intro-cta .button { justify-content: center; gap: 6px; width: 100%; min-height: 38px; padding: 8px; font-size: 13px; }
  .intro-explore { border: 1px solid rgb(255 255 255 / 40%); background: transparent; color: #fff; }

  /* search bar: no heading, tighter */
  .find-bar { gap: 6px; }
  .find-lede { display: none; }
  .find-bar .business-search { gap: 6px; padding: 6px; }
  .find-bar .search-submit { min-height: 38px; padding-block: 8px; font-size: 13.5px; }
  .find-bar .hero-quicklinks { display: flex; flex-wrap: nowrap; gap: 6px; overflow-x: auto; scrollbar-width: none; white-space: nowrap; font-size: 13px; }
  .find-bar .hero-quicklinks::-webkit-scrollbar { display: none; }
  .find-bar .hero-quicklinks button { padding: 5px 11px; font-size: 12.6px; }

  /* the grid */
  .m-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .m-box { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 12px; border: 1px solid var(--edge); border-radius: 18px; background: #fff; box-shadow: 0 6px 18px rgb(6 39 79 / 6%); }
  .m-box h2 { margin: 0; color: var(--navy); font-size: 15.5px; font-weight: 780; line-height: 1.2; letter-spacing: -.02em; }
  .m-box p { margin: 0; color: #51647c; font-size: 13px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .m-btn { align-self: flex-start; margin-top: auto; padding: 8px 13px; border-radius: 10px; background: var(--gold); color: var(--navy-deep); font-size: 13px; font-weight: 800; }
  .m-sectors { background: var(--panel); }
  .m-sectors ul { display: grid; gap: 1px; margin: 4px 0 0; padding: 0; list-style: none; }
  .m-sectors a { display: flex; align-items: center; gap: 8px; padding: 3px 2px; color: #324a66; font-size: 12.8px; font-weight: 650; white-space: nowrap; }
  .m-sectors a:active, .m-sectors a:hover { color: var(--navy); }
  .m-sectors .ico { width: 16px; height: 16px; color: var(--blue); }
  .m-co-media { height: 96px; border-radius: 12px; padding: 6px; }
  .m-co-media img { width: 100%; height: 100%; object-fit: contain; }
  .m-co-media.media-insurance img, .m-co-media.media-tannin img, .m-co-media.media-blue-hectare img { object-fit: cover; object-position: top; }
  .m-co-media.media-clicknpay img { width: 74px; height: 74px; }
  .m-co.is-new { animation: dk-fade .5s ease; }
  .m-ev { grid-column: span 1; background: linear-gradient(160deg, var(--navy), #0a4a8c); border-color: transparent; }
  .m-ev h2 { color: #fff; }
  .m-ev p { color: #cfe0f4; }
  .m-ev .hero-date { align-self: flex-start; min-width: 54px; background: rgb(255 255 255 / 14%); }
  .showcase-top .cal { padding: 14px; }
}
@media (max-width: 640px) {
  .m-co .m-co-media { flex: 1 1 96px; min-height: 96px; }
  .m-co { justify-content: flex-start; }
}

.star-ico { width: 1em; height: 1em; vertical-align: -.12em; }
.topbar-join .join-arrow { display: none; }
@media (max-width: 640px) { .topbar-join .join-arrow { display: inline-block; } }

.search-icon { display: inline-grid; place-items: center; transform: none; }
.search-svg { width: 20px; height: 20px; }
.burger-svg { width: 22px; height: 22px; }

/* Promoted events (paid front-page promotion) */
.promo-tag { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: var(--gold); color: var(--navy-deep); font-size: 10.5px; font-style: normal; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; vertical-align: .12em; white-space: nowrap; }

/* Marketplace strip on the home page */
.market-strip { display: grid; gap: 14px; padding: 22px; border-radius: 22px; background: #fff; border: 1px solid var(--edge); }
.market-strip[hidden] { display: none; }
.market-strip-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 20px; }
.market-strip-head h2 { margin: 0; color: var(--navy); font-size: clamp(22px, 2.4vw, 28px); font-weight: 780; letter-spacing: -.04em; }
.market-strip-head p { margin: 4px 0 0; color: #51647c; font-size: 15px; }
@media (max-width: 640px) {
  .market-strip { padding: 14px; border-radius: 18px; }
  .market-strip .market-grid > li:nth-child(n+5) { display: none; }
}

/* Inbox badge and phone bottom navigation */
.nav-badge { display: inline-grid; min-width: 18px; height: 18px; margin-left: 6px; padding: 0 5px; place-items: center; border-radius: 999px; background: #d92d20; color: #fff; font-size: 11px; font-weight: 800; line-height: 1; vertical-align: 2px; }
.bottom-nav { display: none; }
@media (max-width: 640px) {
  body { padding-bottom: 68px; }
  .bottom-nav { position: fixed; inset: auto 0 0 0; z-index: 60; display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); border-top: 1px solid var(--edge, #dce4ee); background: rgb(255 255 255 / 96%); backdrop-filter: blur(10px); box-shadow: 0 -6px 20px rgb(6 39 79 / 8%); }
  .bn-item { position: relative; display: grid; justify-items: center; gap: 2px; padding: 6px 2px; border-radius: 10px; color: #51647c; font-size: 11.5px; font-weight: 700; text-decoration: none; }
  .bn-item .bn-ico { width: 22px; height: 22px; }
  .bn-item.is-active { color: var(--navy); background: #eef3fa; }
  .bn-item.is-active .bn-ico { color: var(--blue); }
  .bn-item .nav-badge { position: absolute; top: 2px; left: calc(50% + 6px); margin: 0; min-width: 16px; height: 16px; font-size: 10px; }
}
@media print { .bottom-nav { display: none !important; } }

/* Events page: filters and links */
.events-filter { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 8px; }
.events-filter input[type="search"], .events-filter select { min-height: 46px; padding: 0 14px; border: 1px solid #c9d6e6; border-radius: 10px; background: #fff; color: #10233c; font: inherit; font-size: 15px; }
.events-filter input[type="search"] { flex: 1 1 260px; }
.events-filter select { flex: 0 1 200px; }
.events-filter input:focus-visible, .events-filter select:focus-visible { outline: 3px solid #0759a8; outline-offset: 1px; }
.events-count { min-height: 1.4em; margin: 0 0 14px; color: #64748b; font-size: 14px; font-weight: 650; }
.events-page__links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 8px 0 0; }
.events-page__list .empty { padding: 20px; border: 1px dashed #b9c9dc; border-radius: 12px; color: #51647c; }

/* ---------- polish: header never wraps ---------- */
.topbar-nav { gap: clamp(12px, 1.5vw, 26px); }
.topbar-nav a, .topbar-join, .topbar-invite, .site-search-trigger { white-space: nowrap; }
@media (min-width: 1081px) and (max-width: 1320px) { .topbar-nav a { font-size: 13.6px; } .topbar-invite { display: none; } }

/* Calendar: the events of the day you choose */
.cal-day-panel { display: grid; gap: 8px; margin-top: 12px; padding: 12px 14px; border: 1px solid #dbe5f0; border-radius: 12px; background: #f6f9fd; }
.cal-day-panel h4 { margin: 0; color: var(--navy); font-size: 14.6px; }
.cal-day-panel ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.cal-day-panel li { display: grid; gap: 2px; padding-bottom: 10px; border-bottom: 1px solid #e0e8f2; }
.cal-day-panel li:last-child { padding-bottom: 0; border-bottom: 0; }
.cal-day-panel strong { color: var(--navy); font-size: 14px; }
.cal-day-panel small { color: var(--muted); font-size: 12.6px; }
.cal-day-links { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 2px; font-size: 13px; font-weight: 700; }

/* Events page: dots and arrows for the rotating Spotlight / featured event */
.spot-controls { display: flex; grid-column: 1 / -1; align-items: center; justify-content: center; gap: 8px; padding: 6px 0; }
.spot-step { width: 34px; height: 34px; border: 1px solid #c9d6e6; border-radius: 50%; background: #fff; color: var(--navy); font-size: 18px; line-height: 1; cursor: pointer; }
.spot-step:hover { background: #eef4fb; }
.spot-dot { width: 11px; height: 11px; padding: 0; border: 0; border-radius: 50%; background: #c9d6e6; cursor: pointer; }
.spot-dot[aria-current="true"] { width: 26px; border-radius: 999px; background: var(--navy); }
.spot-step:focus-visible, .spot-dot:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* Event pictures in the Coming up list and the calendar's day panel */
/* Bigger fliers so they can be read, and the title and venue wrap instead of being cut off. */
.coming-list { grid-auto-columns: 280px; }
.coming-item { grid-template-columns: 48px minmax(0, 1fr); gap: 10px; padding: 10px; }
.coming-item .hero-date { width: 48px; }
.coming-item.has-pic { grid-template-columns: 48px 72px minmax(0, 1fr); align-items: start; }
.coming-pic { display: block; width: 72px; height: 94px; border: 1px solid var(--edge); border-radius: 8px; background: #eef3f9; object-fit: contain; }
.coming-item strong { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.coming-item small { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; white-space: normal; }
@media (max-width: 520px) {
  .coming-list { grid-auto-columns: min(280px, 84%); }
}
.cal-day-panel li.has-pic { grid-template-columns: 64px minmax(0, 1fr); column-gap: 12px; align-items: start; }
.cal-day-panel li.has-pic > img { grid-row: 1 / span 3; width: 64px; height: 80px; border-radius: 8px; background: #eef3f9; object-fit: contain; }

/* Menu drawer (tablet and phone): the dimmed page behind it. The Close button only exists in drawer mode. */
@media (min-width: 981px) { .side-close { display: none; } }
.side-backdrop { position: fixed; inset: 0; z-index: 65; background: rgb(2 14 33 / 48%); }
.side-backdrop[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) { .side-backdrop { animation: dk-fade .2s ease; } }
@keyframes dk-fade { from { opacity: 0; } }

/* Header fit: the links never wrap, so the header must fit. Tighter gaps; "Search" becomes an icon below 1500px; and below 1340px the
   top menu is left to the side rail (which already lists every page). */
.topbar-nav { gap: 18px; }
.topbar-actions { gap: 10px; }
@media (min-width: 981px) and (max-width: 1499px) { .site-search-trigger span, .site-search-trigger kbd { display: none; } }
@media (min-width: 981px) and (max-width: 1339px) { .topbar-nav { display: none; } .topbar-actions { margin-left: auto; } }

/* Phone: the event cards show the event's flier whole, and the suggestion chips are easy to tap */
.m-ev-pic { display: block; width: 100%; height: 104px; margin-bottom: 8px; border-radius: 10px; background: rgb(255 255 255 / 12%); object-fit: contain; }
@media (max-width: 640px) { [data-hero-chip] { min-height: 40px; padding-inline: 14px; } }

/* Featured event with no picture of its own: hide the built-in flyer and let the text use the full card */
.events-panel .event-feature.is-no-poster { grid-template-columns: 1fr; }
.events-panel .event-feature.is-no-poster .event-poster-wrap { display: none; }

/* Nothing upcoming: the featured event card and its list are not shown */
.events-layout.has-no-events .events-main, .events-layout.has-no-events .event-list { display: none; }

/* The featured event's flier sits in its own shape. No tall navy panel around it. */
.events-panel .event-feature { align-items: start; }
.events-panel .event-poster-wrap { align-self: start; height: auto; min-height: 0; padding: 0; background: transparent; border-radius: 14px; overflow: hidden; }
.events-panel .event-poster-wrap img { width: 100%; height: auto; max-height: 420px; object-fit: contain; border-radius: 14px; box-shadow: 0 8px 22px rgb(6 39 79 / 14%); }
@media (max-width: 640px) { .events-panel .event-poster-wrap { height: auto; } .events-panel .event-poster-wrap img { max-height: 360px; } }
