/* Forms and dynamic cards for Diaspora Konnekt. */
.media-text { background: linear-gradient(135deg, #06274f, #0759a8); }
.media-initials { color: #fff; font-size: 44px; font-weight: 800; letter-spacing: .02em; }

.dk-section { padding-block: clamp(40px, 6vw, 72px); background: #f5f8fc; color: var(--ink); }
.dk-section--dark { background: var(--navy); }
.dk-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.dk-intro h2 { margin: 0 0 12px; color: var(--navy); font-size: clamp(26px, 3.2vw, 36px); line-height: 1.1; }
.dk-section--dark .dk-intro h2 { color: #fff; }
.dk-intro p { max-width: 46ch; margin: 0; color: #53667b; font-size: 16px; }
.dk-section--dark .dk-intro p { color: #cfdded; }

.dk-form { display: grid; gap: 16px; padding: clamp(20px, 3vw, 32px); border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); box-shadow: var(--shadow); }
section[id] { scroll-margin-top: 84px; } /* a link to #section stops below the sticky header, not under it */
.dk-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.dk-field { display: grid; gap: 6px; min-width: 0; align-content: start; } /* a taller neighbour in the same row must not stretch the label row and push this box down */
.dk-field > label, .dk-field > legend { color: var(--navy); font-size: 14px; font-weight: 700; }
.dk-field input:not([type="checkbox"]), .dk-field select, .dk-field textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #b6c4d4; border-radius: 6px;
  background: #fff; color: var(--ink); font: inherit; font-size: 16px;
}
.dk-field textarea { min-height: 120px; resize: vertical; }
.dk-field input:focus-visible, .dk-field select:focus-visible, .dk-field textarea:focus-visible { outline: 3px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.dk-field [aria-invalid="true"] { border-color: #b3261e; }
.dk-hint { margin: 0; color: #53667b; font-size: 13px; }
.dk-error { margin: 0; color: #b3261e; font-size: 13.5px; font-weight: 650; }
fieldset.dk-field { margin: 0; padding: 0; border: 0; }
.dk-checks { display: flex; flex-wrap: wrap; gap: 8px; }
.dk-checks label { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border: 1px solid #b6c4d4; border-radius: 999px; color: var(--ink); font-size: 14px; font-weight: 600; cursor: pointer; }
.dk-checks label:has(input:checked) { border-color: var(--blue); background: #e8f0fb; color: var(--navy); }
.dk-checks input { accent-color: var(--blue); }
.dk-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.dk-submit { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 0 24px; border: 0; border-radius: 6px; background: var(--gold); color: var(--navy-deep); cursor: pointer; font: inherit; font-size: 15px; font-weight: 800; justify-self: start; }
.dk-submit:hover { background: #ffd24b; }
.dk-submit:disabled { opacity: .6; cursor: progress; }
.dk-status { margin: 0; padding: 12px 14px; border-radius: 6px; font-size: 15px; font-weight: 650; }
.dk-status[data-kind="success"] { background: #e6f4ea; color: #12602a; }
.dk-status[data-kind="error"] { background: #fdecea; color: #8a1c14; }

@media (max-width: 800px) {
  .dk-grid { grid-template-columns: 1fr; }
  .dk-row { grid-template-columns: 1fr; }
}

/* ---------- Business profile and clickable cards ---------- */
.business-card { position: relative; }
.business-card .card-open { color: inherit; text-decoration: none; }
.business-card .card-open::after { position: absolute; inset: 0; z-index: 1; content: ""; }
.business-card .card-open:hover { color: var(--blue); }
.business-card .card-open:focus-visible::after { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 8px; }
.business-card .card-link { position: relative; z-index: 2; }
.business-rating-line, .business-review-summary-content { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 5px; color: #53667b; font-size: 12.5px; font-weight: 650; line-height: 1.35; }
.business-review-stars { color: #8a6a00; letter-spacing: .035em; white-space: nowrap; }
.business-review-summary { position: relative; z-index: 2; display: inline-flex; width: fit-content; max-width: 100%; margin-top: 8px; border-radius: 4px; text-decoration: none; }
.business-review-summary:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.business-review-summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.biz-page { background: #f5f8fc; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; padding-block: 20px 6px; color: #53667b; font-size: 14px; }
.crumbs a { color: var(--blue); font-weight: 650; }
.crumbs a:hover { text-decoration: underline; }
.biz-loading, .biz-missing { padding: 40px 0; color: #53667b; }
.biz-hero { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: start; padding-block: 18px 40px; }
.biz-logo { display: grid; min-height: 260px; place-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.biz-logo img { width: 100%; max-height: 360px; object-fit: contain; padding: 16px; }
.biz-logo .media-initials { display: grid; width: 100%; min-height: 260px; place-items: center; background: linear-gradient(135deg, #06274f, #0759a8); }
.biz-main h1 { margin: 0 0 8px; color: var(--navy); font-size: clamp(30px, 4vw, 46px); line-height: 1.05; }
.biz-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; }
.biz-tags a, .biz-tags span { display: inline-block; padding: 4px 12px; border: 1px solid #b6c4d4; border-radius: 999px; background: #fff; color: var(--navy); font-size: 13.5px; font-weight: 650; }
.biz-tags a:hover { border-color: var(--blue); background: #e8f0fb; }
.biz-tagline { max-width: 60ch; margin: 0 0 14px; color: var(--ink); font-size: 19px; line-height: 1.45; }
.biz-about { max-width: 66ch; margin: 0 0 20px; color: #3d5068; white-space: pre-line; }
.biz-facts { display: grid; gap: 8px; margin: 0 0 24px; padding: 0; list-style: none; }
.biz-facts li { color: #3d5068; }
.biz-facts strong { display: inline-block; min-width: 86px; color: var(--navy); }
.biz-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.biz-related { padding-bottom: 48px; }
.biz-related h2 { margin: 0 0 14px; color: var(--navy); font-size: 22px; }
.biz-related .business-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }

.biz-reviews { scroll-margin-top: 96px; padding-block: clamp(34px, 5vw, 58px); border-top: 1px solid #e0e7ef; background: #fff; }
.biz-reviews-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.biz-reviews-heading .eyebrow { margin: 0 0 6px; color: #8a6a00; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.biz-reviews-heading h2 { margin: 0; color: var(--navy); font-size: clamp(25px, 3vw, 34px); line-height: 1.1; }
.biz-reviews-heading [data-review-summary] { margin: 8px 0 0; color: #53667b; }
.biz-reviews-heading [data-review-rating] { display: flex; align-items: center; gap: 9px; color: #53667b; white-space: nowrap; }
.biz-review-average { color: var(--navy); font-size: 34px; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.biz-review-scale { font-size: 13px; }
.biz-review-list { display: grid; gap: 12px; }
.biz-review-item { padding: 18px 20px; border: 1px solid #dce5ef; border-radius: 12px; background: #fbfcfe; }
.biz-review-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.biz-review-meta h3 { margin: 0; color: var(--navy); font-size: 16px; }
.biz-review-meta time, .biz-review-edited { color: #687b91; font-size: 13px; }
.biz-review-score { display: flex; align-items: center; gap: 8px; margin: 7px 0 0; color: #53667b; font-size: 13px; }
.biz-review-body { margin: 10px 0 0; color: #30445d; line-height: 1.6; white-space: pre-line; overflow-wrap: anywhere; }
.biz-review-edited { margin: 8px 0 0; }
.biz-review-empty, .biz-review-loading { margin: 0; padding: 18px 20px; border: 1px dashed #c6d2df; border-radius: 12px; color: #53667b; }
.biz-review-controls { display: grid; gap: 12px; max-width: 820px; margin-top: 24px; }
.biz-review-form { box-shadow: 0 8px 26px rgb(6 39 79 / 7%); }
.biz-review-rating-field { gap: 10px; }
.biz-review-choices { display: flex; flex-wrap: wrap; gap: 4px; }
.biz-review-choice { position: relative; display: grid; min-width: 48px; min-height: 48px; place-items: center; border-radius: 8px; color: #9aa8b8; cursor: pointer; }
.biz-review-choice input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; clip-path: inset(50%); }
.biz-review-choice > span[aria-hidden] { font-size: 30px; line-height: 1; }
.biz-review-choice.is-selected, .biz-review-choice:has(input:checked), .biz-review-choice:hover { color: #8a6a00; }
.biz-review-choice:focus-within { outline: 3px solid var(--blue); outline-offset: 1px; }
.biz-review-prompt { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 20px; border: 1px solid #dce5ef; border-radius: 12px; background: #f6f9fc; }
.biz-review-prompt p { margin: 0; color: #3d5068; }
.biz-review-remove { justify-self: start; }
.biz-review-status { grid-column: 1 / -1; }
.tile .business-rating-line, .fc-card .business-rating-line { margin-top: 3px; font-size: 11.8px; }
@media (max-width: 700px) {
  .biz-reviews-heading { align-items: flex-start; flex-direction: column; }
  .biz-review-meta { align-items: flex-start; flex-direction: column; gap: 3px; }
  .biz-review-prompt { align-items: flex-start; }
  .biz-review-prompt .button { width: 100%; justify-content: center; }
}
@media (max-width: 800px) { .biz-hero { grid-template-columns: 1fr; } .biz-logo { min-height: 200px; } }

.biz-related .business-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.biz-related .business-card:nth-child(n) { grid-column: auto; margin: 0; transform: none; }
.biz-related .business-card:nth-child(n):hover { transform: translateY(-3px); }
.biz-related .business-card:nth-child(n) .business-media { height: 150px; border-radius: 5px; }

/* Multi-day dates such as 09–11 stay on one line. */
.event-row { grid-template-columns: minmax(48px, auto) 1fr 24px; }
.event-date { width: auto; min-width: 48px; padding-inline: 6px; }
.event-date strong { white-space: nowrap; }

/* ---------- Jobs and classifieds ---------- */
.notices-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; padding-block: 12px 18px; }
.notices-head h1 { margin: 0 0 6px; color: var(--navy); font-size: clamp(30px, 4vw, 44px); line-height: 1.05; }
.notices-head p { margin: 0; color: #53667b; }
.notices-page .filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.notice-list { display: grid; gap: 14px; margin: 0 0 56px; padding: 0; list-style: none; }
.notice-item { position: relative; padding: 18px 20px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.notice-item h3 { margin: 6px 0 4px; font-size: 20px; line-height: 1.2; }
.notice-item h3 a { color: var(--navy); }
.notice-item h3 a::after { position: absolute; inset: 0; content: ""; }
.notice-item h3 a:hover { color: var(--blue); }
.notice-item p { margin: 4px 0 0; color: #3d5068; }
.notice-item .notice-meta { color: var(--navy); font-weight: 650; }
.notice-item .notice-foot { color: #6a7b8f; font-size: 13.5px; }
.notice-kind { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 750; }
.notice-kind--job { background: #e8f0fb; color: var(--navy); }
.notice-kind--classified { background: #fff3cf; color: #7a5a00; }
.notice-empty { padding: 28px; border: 1px dashed #b6c4d4; border-radius: 8px; background: #fff; color: #53667b; }
.notice-empty a { color: var(--blue); font-weight: 700; }
.notice-detail { max-width: 760px; padding-block: 12px 40px; }
.notice-detail h1 { margin: 10px 0 14px; color: var(--navy); font-size: clamp(28px, 4vw, 42px); line-height: 1.08; }
.notice-mini { display: grid; gap: 10px; margin: 0 0 14px; padding: 0; list-style: none; }
.notice-mini a { color: var(--navy); font-weight: 750; }
.notice-mini a:hover { color: var(--blue); }
.notice-mini span { display: block; color: #6a7b8f; font-size: 13.5px; }

/* ---------- UI polish ---------- */
/* Header compacts once the page is scrolled, so it takes less of the screen. */
.site-header { transition: box-shadow .2s ease; }
.brand img, .explore-nav { transition: height .2s ease, width .2s ease, max-height .2s ease, opacity .2s ease; }
.explore-nav { max-height: 60px; }
.site-header.is-compact .header-main { min-height: 62px; }
.site-header.is-compact .brand { flex-basis: 150px; }
.site-header.is-compact .brand img { width: 146px; height: 50px; }
.site-header.is-compact .explore-nav { max-height: 0; overflow: hidden; border-width: 0; opacity: 0; }
.site-header.is-compact { box-shadow: 0 6px 24px rgb(2 30 61 / 14%); }

/* Even rhythm and alignment. */
.opportunity-grid { align-items: start; }
.section-heading h2, .directory-heading h2 { text-wrap: balance; }
p, li { text-wrap: pretty; }
.business-card-body h3 { text-wrap: balance; }
img { image-rendering: auto; }

/* Clearer pressed and focus states for buttons and chips. */
.button:active, .dk-submit:active, .filter-chip:active { transform: translateY(1px); }
.filter-chip { transition: background .15s ease, color .15s ease, border-color .15s ease; }
.filter-chip:not(.is-active):hover { border-color: var(--blue); color: var(--blue); }
.text-link { text-underline-offset: 4px; }
.text-link:hover { text-decoration: underline; }

/* Form fields: consistent height, calmer disabled and error states. */
.dk-field input:not([type="checkbox"]), .dk-field select { height: 46px; }
.dk-field input::placeholder, .dk-field textarea::placeholder { color: #8a99ab; }
.dk-field select { appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%2306274f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center / 12px; padding-right: 38px; }
.dk-submit { transition: background .15s ease, transform .15s ease; }
.dk-status:not([hidden]) { animation: dk-in .2s ease; }
@keyframes dk-in { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .dk-status:not([hidden]) { animation: none; } .site-header * { transition: none !important; } }

/* Small screens: touch-friendly targets and tidier spacing. */
@media (max-width: 760px) {
  .dk-checks label { padding: 10px 14px; }
  .notice-item { padding: 16px; }
  .notices-head .button { width: 100%; justify-content: center; }
  .biz-actions .button { flex: 1 1 100%; justify-content: center; }
  .crumbs { padding-top: 14px; }
}

/* ===== Landing: hero search, next event, featured companies ===== */
.market-hero { z-index: auto; overflow: visible; }
.market-hero::after {
  position: absolute; top: -140px; right: -120px; width: 460px; height: 460px; border: 1px solid rgb(241 190 56 / 22%);
  border-radius: 50%; box-shadow: inset 0 0 0 38px rgb(241 190 56 / 4%), 0 0 0 44px rgb(255 255 255 / 3%); content: ""; pointer-events: none;
}
.hero-grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); padding-block: 56px 112px; }
.hero-copy { z-index: 6; }
.hero-copy h1 { max-width: 640px; font-size: clamp(40px, 4.8vw, 66px); }
.business-search { position: relative; min-height: 64px; max-width: 680px; border: 0; border-radius: 14px; box-shadow: 0 18px 44px rgb(2 14 33 / 34%), 0 0 0 4px rgb(255 255 255 / 12%); }
.business-search input { font-size: 15.5px; }
.business-search .button { min-height: 52px; border-radius: 10px; padding-inline: 20px; }
.business-search:focus-within { box-shadow: 0 18px 44px rgb(2 14 33 / 34%), 0 0 0 4px rgb(241 190 56 / 55%); }

.hero-quicklinks { gap: 8px 8px; }
.hero-quicklinks span { margin-right: 4px; }
.hero-quicklinks button {
  padding: 6px 13px; border: 1px solid rgb(255 255 255 / 26%); border-radius: 999px; background: rgb(255 255 255 / 8%);
  color: #fff; font: inherit; font-size: 12.6px; font-weight: 650; cursor: pointer; transition: background .15s, border-color .15s, color .15s;
}
.hero-quicklinks button:hover { border-color: var(--gold); background: var(--gold); color: var(--navy-deep); }
.hero-quicklinks a { margin-left: 6px; }

.hero-suggest {
  position: absolute; z-index: 30; top: calc(100% + 10px); right: 0; left: 0; max-height: 420px; overflow-y: auto; padding: 8px;
  border-radius: 14px; background: #fff; box-shadow: 0 26px 60px rgb(2 14 33 / 38%); color: var(--ink); text-align: left;
}
.hs-group { margin: 8px 10px 4px; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.hs-item { display: grid; grid-template-columns: 74px 1fr; align-items: baseline; column-gap: 10px; padding: 10px; border-radius: 9px; color: var(--ink); }
.hs-item strong { font-size: 14.5px; font-weight: 750; line-height: 1.25; }
.hs-item small { grid-column: 2; color: var(--muted); font-size: 12.6px; line-height: 1.35; }
.hs-kind { grid-row: 1; align-self: center; justify-self: start; padding: 3px 8px; border-radius: 999px; background: #e8f0f9; color: var(--blue); font-size: 12px; font-weight: 800; }
.hs-item:hover, .hs-item.is-active { background: #eef4fb; }
.hs-all { margin-top: 4px; border-top: 1px solid #e7edf4; border-radius: 0 0 9px 9px; }
.hs-all .hs-kind { background: var(--gold); color: var(--navy-deep); }
.hs-empty { margin: 8px 10px; color: var(--muted); font-size: 13.6px; }

/* Next event panel */
.hero-event {
  position: relative; display: grid; gap: 14px; padding: 20px; border: 1px solid rgb(255 255 255 / 18%); border-radius: 20px;
  background: linear-gradient(160deg, rgb(255 255 255 / 14%), rgb(255 255 255 / 5%)); box-shadow: 0 30px 70px rgb(2 14 33 / 36%);
  backdrop-filter: blur(10px);
}
.hero-event-label { display: flex; align-items: center; gap: 9px; margin: 0; color: #dceaff; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgb(241 190 56 / 60%); animation: dk-pulse 2.4s ease-out infinite; }
@keyframes dk-pulse { 70% { box-shadow: 0 0 0 10px rgb(241 190 56 / 0%); } 100% { box-shadow: 0 0 0 0 rgb(241 190 56 / 0%); } }
.hero-event-card { display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 16px; align-items: start; color: #fff; }
.hero-event-poster { width: 118px; aspect-ratio: 3 / 4; border-radius: 12px; object-fit: contain; background: rgb(255 255 255 / 10%); box-shadow: 0 12px 28px rgb(2 14 33 / 40%); transition: transform .3s ease; }
.hero-event-card:hover .hero-event-poster { transform: rotate(-2deg) scale(1.03); }
.hero-event-body { display: grid; gap: 6px; align-content: start; }
.hero-event-body > span, .hero-event-body > strong { display: block; }
.hero-event-kind { color: var(--gold); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.hero-event-title { font-size: clamp(19px, 1.8vw, 24px); font-weight: 780; letter-spacing: -.03em; line-height: 1.15; }
.hero-event-when { color: #eaf2fb; font-size: 14px; font-weight: 600; }
.hero-event-where { color: #bcd0e6; font-size: 13.6px; }
.hero-event-count { justify-self: start; margin-top: 4px; padding: 5px 11px; border: 1px solid rgb(241 190 56 / 60%); border-radius: 999px; color: var(--gold); font-size: 12.6px; font-weight: 800; }
.hero-event-count[hidden], .hero-event-next[hidden] { display: none; }
.hero-event-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; }
.hero-event-all { color: #fff; font-size: 13.6px; font-weight: 700; }
.hero-event-all:hover { color: var(--gold); }
.hero-event-next { display: grid; gap: 8px; margin: 0; padding: 14px 0 0; border-top: 1px solid rgb(255 255 255 / 16%); list-style: none; }
.hero-event-next li { display: grid; grid-template-columns: 56px 1fr; align-items: center; gap: 12px; }
.hero-event-next li > span:last-child { display: grid; gap: 1px; }
.hero-event-next strong { color: #fff; font-size: 14px; font-weight: 700; line-height: 1.25; }
.hero-event-next li small { color: #bcd0e6; font-size: 12.6px; }
.hero-date { display: grid; place-items: center; padding: 6px 0; border-radius: 10px; background: rgb(255 255 255 / 12%); line-height: 1.1; text-align: center; }
.hero-date small { color: var(--gold); font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.hero-date b { color: #fff; font-size: 15px; font-weight: 800; }

/* Featured companies, overlapping the hero edge */
.featured-rail { position: relative; z-index: 4; margin-top: -76px; padding-bottom: 12px; }
.rail-card { padding: 26px 26px 18px; border-radius: 22px; background: #fff; box-shadow: 0 26px 60px rgb(6 39 79 / 18%), 0 0 0 1px rgb(6 39 79 / 6%); }
.rail-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.rail-head h2 { margin: 0; color: var(--navy); font-size: clamp(22px, 2.2vw, 28px); font-weight: 780; letter-spacing: -.04em; }
.rail-head p { margin: 4px 0 0; color: var(--muted); font-size: 14.2px; }
.rail-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(142px, 1fr); gap: 14px; margin: 0; padding: 4px 2px 12px; overflow-x: auto;
  list-style: none; scroll-snap-type: x proximity; scrollbar-width: thin;
}
.rail-track li { scroll-snap-align: start; }
.fc-card { display: grid; gap: 3px; height: 100%; padding: 8px 8px 12px; border: 1px solid transparent; border-radius: 14px; color: var(--ink); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.fc-card .business-media { height: 104px; padding: 8px; border-radius: 10px; margin-bottom: 8px; }
.fc-card .business-media img { object-fit: contain; }
.fc-card .media-clicknpay img { width: 84px; height: 84px; }
.fc-card .media-blue-hectare img, .fc-card .media-tannin img { object-fit: cover; }
.fc-card .media-insurance img { width: 100%; object-fit: cover; object-position: top; }
.fc-card strong { color: var(--navy); font-size: 14.2px; font-weight: 760; line-height: 1.25; }
.fc-card small { color: var(--muted); font-size: 12.6px; }
.fc-card:hover { border-color: var(--gold); box-shadow: 0 14px 28px rgb(6 39 79 / 14%); transform: translateY(-3px); }
.fc-card:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.rail-partner { margin: 6px 0 0; color: var(--muted); font-size: 12.6px; text-align: right; }
.rail-partner a { color: var(--blue); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; padding-block: 40px 96px; }
  .market-hero::after { display: none; }
  .hero-event { max-width: 560px; }
}
@media (max-width: 640px) {
  .hero-grid { padding-block: 32px 84px; }
  .business-search { flex-wrap: wrap; row-gap: 6px; }
  .business-search select { max-width: none; flex: 1; border-left: 0; }
  .business-search .button { width: 100%; }
  .hero-event { padding: 16px; border-radius: 16px; }
  .hero-event-card { grid-template-columns: 92px minmax(0, 1fr); gap: 12px; }
  .hero-event-poster { width: 92px; }
  .featured-rail { margin-top: -60px; }
  .rail-card { padding: 20px 14px 14px; border-radius: 18px; }
  .rail-head { align-items: flex-start; flex-direction: column; gap: 8px; }
  .rail-track { grid-auto-columns: 148px; }
  .hs-item { grid-template-columns: 1fr; row-gap: 3px; }
  .hs-item small { grid-column: 1; }
}
@media (prefers-reduced-motion: reduce) { .pulse { animation: none; } .fc-card, .hero-event-poster { transition: none; } }

/* ===== Reference layout: sponsor band, categories, invite ===== */
.sponsor-band { position: relative; z-index: 1; margin-top: 8px; background: #f6f9fd; border-block: 1px solid #e3ebf4; }
.sponsor-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding-block: 14px; }
.sponsor-tag { padding: 4px 10px; border-radius: 999px; background: #e3ebf4; color: var(--navy); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.sponsor-inner p { flex: 1; min-width: 220px; margin: 0; color: #455a73; font-size: 14.4px; }
.sponsor-inner p strong { color: var(--navy); }

.category-section { background: #fff; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.cat-card {
  display: grid; width: 100%; gap: 3px; padding: 18px; border: 1px solid #dfe8f2; border-radius: 16px; background: linear-gradient(180deg, #fff, #f6f9fd);
  color: var(--ink); text-align: left; cursor: pointer; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.cat-card:hover { border-color: var(--gold); box-shadow: 0 14px 28px rgb(6 39 79 / 12%); transform: translateY(-3px); }
.cat-card:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.cat-icon { display: grid; width: 42px; height: 42px; margin-bottom: 8px; place-items: center; border-radius: 12px; background: var(--navy); color: var(--gold); font-size: 19px; }
.cat-name { color: var(--navy); font-size: 16px; font-weight: 760; }
.cat-count { color: var(--blue); font-size: 13px; font-weight: 650; }
.cat-count.is-empty { color: var(--muted); font-weight: 550; }

.invite-section { padding-block: 70px; background: linear-gradient(115deg, var(--navy-deep), var(--navy) 62%, #07396a); color: #fff; }
.invite-inner { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); align-items: center; gap: 48px; }
.invite-copy h2 { margin: 0; max-width: 560px; font-size: clamp(30px, 3.6vw, 46px); font-weight: 780; letter-spacing: -.045em; line-height: 1.08; }
.invite-copy > p:not(.eyebrow):not(.invite-note) { max-width: 520px; margin: 16px 0 24px; color: #d1deed; font-size: 16.4px; }
.invite-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button-outline-light { border: 1px solid rgb(255 255 255 / 45%); background: transparent; color: #fff; cursor: pointer; }
.button-outline-light:hover { border-color: var(--gold); color: var(--gold); }
.invite-note { min-height: 1.4em; margin: 12px 0 0; color: var(--gold-soft); font-size: 13.6px; }
.invite-qr { display: grid; justify-items: center; gap: 12px; margin: 0; }
.qr-box { width: min(240px, 100%); padding: 14px; border-radius: 20px; background: #fff; box-shadow: 0 24px 50px rgb(2 14 33 / 40%); }
.qr-box svg { display: block; width: 100%; height: auto; }
.invite-qr figcaption { color: #dceaff; font-size: 14px; font-weight: 700; }
.invite-download { padding: 0; border: 0; background: none; color: var(--gold); font: inherit; font-size: 13.6px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.invite-download[hidden], .qr-box[hidden] { display: none; }
@media (max-width: 800px) { .invite-inner { grid-template-columns: 1fr; gap: 30px; } .invite-section { padding-block: 52px; } .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .cat-card { padding: 14px; } }

/* Phone comfort (every page): 16px form text stops iPhone Safari zooming in on focus; larger tap areas for small links. */
@media (max-width: 700px) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]), select, textarea,
  .business-search input, .composer textarea { font-size: 16px !important; }
  .site-footer a { display: inline-block; padding: 11px 4px; }
  .side-list a, .side-list button { padding-top: 12px; padding-bottom: 12px; }
}
/* Motion: one calm entrance on the home page, small feedback on buttons, a gentle reveal for cards. Off for reduced-motion. */
@keyframes dk-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes dk-reveal { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .intro-copy h1 { animation: dk-rise .7s cubic-bezier(.2, .7, .2, 1) both; }
  .intro-copy p { animation: dk-rise .7s cubic-bezier(.2, .7, .2, 1) .12s both; }
  .intro-cta { animation: dk-rise .7s cubic-bezier(.2, .7, .2, 1) .24s both; }
  .intro-links { animation: dk-rise .7s cubic-bezier(.2, .7, .2, 1) .36s both; }

  .button { transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease; }
  .button:active { transform: scale(.97); }
  .bn-item { transition: background-color .2s ease, color .2s ease, transform .15s ease; }
  .bn-item:active { transform: scale(.92); }
}
@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  .button:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgb(6 39 79 / 16%); }
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .tile, .cat-card { animation: dk-reveal linear backwards; animation-timeline: view(); animation-range: entry 0% entry 40%; }
  }
}
/* Laptops and tablets (981-1239px): the top bar cannot fit the logo, seven links and the buttons. The sidebar lists the same pages, so drop the top links here. */
@media (min-width: 981px) and (max-width: 1239px) {
  .topbar .topbar-nav { display: none; }
  .topbar .topbar-actions { margin-left: auto; }
}
/* Very small phones (iPhone SE and similar): keep the header on one line. */
@media (max-width: 360px) {
  .topbar-join .join-long, .topbar-join .join-arrow { display: none !important; }
  .side-toggle { flex: none; }
}

/* Contrast (WCAG AA): darker text colours only, layout unchanged. */
.hero-date small { color: #dbe7f5; }
.event-kicker { color: #7a5a00; }
.event-row p { color: #5b6b7d; }
/* Promoted events show their flier large (2:1 landscape, cropped to fit), above the row details. */
.promo-flier { display: flex; justify-content: center; width: 100%; overflow: hidden; border-radius: 10px; background: #eef3f9; }
.promo-flier img { display: block; width: auto; max-width: 100%; height: auto; max-height: 360px; object-fit: contain; }
.event-row--flier { grid-template-columns: 56px minmax(0, 1fr) 44px; }
.event-row--flier .promo-flier { grid-column: 1 / -1; }
.events-page__event-copy .promo-flier { max-width: 560px; margin: 10px 0; }
.event-date-tbd { color: #7a5a00; }

/* Tap targets on phones: 44px for small standalone controls (inline links in paragraphs are left alone). */
@media (max-width: 700px) {
  .card-link, *:not(p) > .linklike, .events-page__links a { display: inline-flex; align-items: center; min-height: 44px; }
  .cal-tabs button { min-height: 44px; }
  .dk-field input:not([type="checkbox"]):not([type="radio"]), .dk-field select, .business-search input, .business-search select { min-height: 44px; }
}

/* Account area in the top bar */
.topbar-signin { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--navy, #06274f); font-weight: 700; text-decoration: none; border-radius: 10px; }
.topbar-signin:hover { background: #eef3f9; }
.topbar-actions .acct { position: relative; }
.acct-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 4px 12px 4px 4px; border: 1px solid #b9c9dc; border-radius: 999px; background: #fff; color: var(--navy, #06274f); font: inherit; font-weight: 750; cursor: pointer; }
.acct-btn:hover { border-color: var(--navy, #06274f); }
.acct-btn:focus-visible { outline: 3px solid var(--navy, #06274f); outline-offset: 2px; box-shadow: 0 0 0 5px var(--gold, #f6bf18); }
.acct-av { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex: none; }
.acct-initial { display: grid; place-items: center; background: var(--gold, #f6bf18); color: var(--navy, #06274f); font-weight: 800; }
.acct-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; min-width: 230px; padding: 8px; border: 1px solid #dfe8f2; border-radius: 14px; background: #fff; box-shadow: 0 18px 44px rgb(6 39 79 / 18%); }
.acct-menu[hidden] { display: none; }
.acct-who { display: grid; margin: 0; padding: 8px 10px 10px; border-bottom: 1px solid #e6edf5; color: var(--navy, #06274f); overflow-wrap: anywhere; }
.acct-who span { color: #475569; font-size: 14px; }
.acct-menu a, .acct-menu .acct-out { display: flex; align-items: center; width: 100%; min-height: 44px; padding: 0 10px; border: 0; border-radius: 8px; background: none; color: var(--navy, #06274f); font: inherit; font-weight: 650; text-align: left; text-decoration: none; cursor: pointer; }
.acct-menu a:hover, .acct-menu .acct-out:hover { background: #eef3f9; }
.acct-menu .acct-out { margin-top: 4px; border-top: 1px solid #e6edf5; border-radius: 0 0 8px 8px; color: #8a1c1c; }
@media (max-width: 700px) { .acct-name { display: none; } .acct-btn { padding: 4px; } }
@media (max-width: 560px) { .topbar-signin:has(+ .topbar-join:not([hidden])) { display: none; } }
.topbar .topbar-join[hidden] { display: none !important; }
a[data-join][hidden] { display: none !important; }

/* Polish round: a focus ring that can be seen, readable small text, comfortable tap targets */
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--navy, #06274f); outline-offset: 2px; box-shadow: 0 0 0 5px #fff; }
.site-footer a:focus-visible, .site-footer button:focus-visible { outline-color: #ffcf37; box-shadow: none; }
.invite-qr figcaption { color: var(--navy, #06274f); }
.invite-qr a { color: #0759a8; text-decoration: underline; }
.coming-item .hero-date small { color: var(--gold, #f6bf18); }
@media (max-width: 700px) {
  .card-open, .filter-chip, .react-btn, .text-link, .side-toggle { display: inline-flex; align-items: center; min-height: 44px; }
  .side-toggle { min-width: 44px; justify-content: center; }
  .crumbs a { display: inline-flex; align-items: center; min-height: 44px; }
  .side a { min-height: 44px; display: flex; align-items: center; }
  .dash-tabs { scroll-snap-type: x proximity; }
}

/* Shared shell finish: clear current location and comfortable header targets. */
.topbar .topbar-nav > a {
  position: relative;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}
.topbar .topbar-nav > a::after {
  position: absolute;
  right: 0;
  bottom: 6px;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--gold, #f6bf18);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .18s ease;
}
.topbar .topbar-nav > a:hover::after,
.topbar .topbar-nav > a[aria-current="page"]::after { transform: scaleX(1); }
.topbar .topbar-nav > a[aria-current="page"] { color: var(--navy, #06274f); font-weight: 800; }
.topbar .topbar-join, .topbar .site-search-trigger, .topbar .side-toggle { min-height: 44px; }
.topbar .side-toggle { min-width: 44px; }

/* Inputs respond to hover as well as keyboard focus, without competing with the focus ring. */
.dk-field input:not([type="checkbox"]):not(:disabled):not(:focus-visible):hover,
.dk-field select:not(:disabled):not(:focus-visible):hover,
.dk-field textarea:not(:disabled):not(:focus-visible):hover {
  border-color: #8197ae;
}
.dk-checks label { min-height: 44px; }
.button:disabled, .dk-submit:disabled, .acct-menu .acct-out:disabled { box-shadow: none; }

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

/* Listing a business or posting a job: the sign-up prompt, the picture preview, and the admin's message box */
.account-gate { display: grid; gap: 10px; max-width: 640px; padding: 18px 20px; border: 1px solid #dbe5f0; border-radius: 14px; background: #f6f9fd; }
.account-gate h3 { margin: 0; color: var(--navy); }
.account-gate p { margin: 0; color: #324a66; }
.account-gate__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.upload-preview { display: grid; justify-items: start; gap: 8px; margin-top: 6px; }
.upload-preview img { display: block; max-width: 220px; max-height: 140px; border-radius: 8px; object-fit: contain; }
.upload-status { margin: 0; color: #324a66; font-size: 13px; }
.biz-thumb { display: block; max-width: 160px; max-height: 100px; margin: 6px 0; border-radius: 8px; object-fit: contain; }
.msg-box textarea { width: 100%; margin: 6px 0; }

/* The listing owner's (or an admin's) "add a picture" box on a business page */
.biz-picture-edit { display: grid; gap: 6px; margin-top: 14px; padding: 12px 14px; border: 1px dashed #b9c9dc; border-radius: 10px; background: #f6f9fd; }
.biz-picture-edit label { color: var(--navy); font-weight: 700; }

/* Google reviews: a second section under the member reviews, shown only when the owner connected Google. */
.biz-google { margin-top: 48px; padding-top: 32px; border-top: 1px solid #dce5ef; }
