/* SFM 2026-11-24 directory v4: community palette (white cards, hairline borders, medium icon tiles, red heading bars, blue links). */
.bd4 { --ink: #1d2129; --mute: #6d6f7a; --line: #e6e8ec; --blue: #2f7be0; --red: #d8343c; max-width: 1120px; color: var(--ink); padding-top: 4px; }
.bd4 a { text-decoration: none !important; }
.bd4 [hidden] { display: none !important; }

/* Title row */
.bd4-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 12px; }
.bd4 h1 { font-size: 24px !important; font-weight: 700 !important; margin: 0 !important; color: var(--ink) !important; letter-spacing: -.01em; font-family: inherit !important; }
.bd4-listbtn { font-size: 14px; font-weight: 600; color: var(--blue) !important; border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 7px 13px; white-space: nowrap; }
.bd4-listbtn:hover { border-color: var(--blue); }
.bd4-listbtn .fa { font-size: 12px; margin-right: 3px; }

/* Search: one 48px bar */
.bd4-search { display: flex; align-items: stretch; height: 48px; background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; box-shadow: 0 1px 2px rgba(16,24,40,.04); }
.bd4-search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47,123,224,.12); }
.bd4 .bd4-f { display: flex !important; align-items: center; gap: 9px; padding: 0 14px; margin: 0; min-width: 0; cursor: text; }
.bd4-fq { flex: 1.7; } .bd4-fw { flex: 1; border-left: 1px solid var(--line); }
.bd4-f .fa { color: #9a9ca5; font-size: 14px; }
.bd4 .bd4-f input { flex: 1; min-width: 0; border: 0 !important; background: transparent !important; box-shadow: none !important; outline: none; font: inherit; font-size: 15.5px; color: var(--ink) !important; padding: 0 !important; height: 100% !important; }
.bd4-f input::placeholder { color: #9a9ca5; }
html .bd4 .bd4-search button { background: var(--blue) !important; color: #fff !important; border: 0 !important; border-radius: 0 !important; font: inherit; font-weight: 600; font-size: 15px; padding: 0 24px; cursor: pointer; }
html .bd4 .bd4-search button:hover { background: #2569c4 !important; }

/* Category tiles: Production Board style (18% tint, full-color icon) */
.bd4-tiles { display: flex; gap: 10px; margin: 14px 0 0; overflow-x: auto; scrollbar-width: none; padding: 2px 1px 4px; }
.bd4-tiles::-webkit-scrollbar { display: none; }
.bd4-tile { flex: 1 0 auto; display: flex; flex-direction: column; align-items: center; gap: 7px; min-width: 104px; padding: 12px 10px 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; color: var(--ink) !important; font-size: 13px; font-weight: 600; text-align: center; transition: border-color .15s, box-shadow .15s; }
.bd4-tile:hover { border-color: color-mix(in srgb, var(--c) 45%, white); box-shadow: 0 2px 8px rgba(16,24,40,.06); }
.bd4-tile.on { border-color: var(--c); box-shadow: inset 0 0 0 1px var(--c); }
.bd4-ico { width: 40px; height: 40px; border-radius: 11px; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--c) 18%, white); color: var(--c); font-size: 17px; }
.bd4-tl { line-height: 1.2; white-space: nowrap; }
.bd4-subnav { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; }
.bd4-subnav a { font-size: 13.5px; color: var(--mute) !important; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; }
.bd4-subnav a.on, .bd4-subnav a:hover { color: var(--blue) !important; border-color: var(--blue); background: #eff3ff; }

/* Section headings: small red bar */
.bd4-h2 { font-size: 18px !important; font-weight: 700 !important; margin: 26px 0 12px !important; color: var(--ink) !important; padding-left: 11px; border-left: 3px solid var(--red); line-height: 1.2; font-family: inherit !important; }

/* Cards */
.bd4-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.bd4-grid-feat { grid-template-columns: repeat(4, minmax(0,1fr)); }
.bd4-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; color: var(--ink) !important; transition: box-shadow .15s, transform .15s; }
.bd4-card:hover { box-shadow: 0 6px 18px rgba(16,24,40,.09); transform: translateY(-1px); }
.bd4-img { display: block; aspect-ratio: 16 / 9; background: #e9ebef center 35% / cover no-repeat; position: relative; }
.bd4-noimg { display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--t) 10%, white); }
.bd4-biglogo { display: flex; align-items: center; justify-content: center; width: 46%; height: 62%; }
.bd4-biglogo img { max-width: 100%; max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.bd4-biglogo.bd-logo-text { width: 64px; height: 64px; border-radius: 14px; background: #fff; color: var(--t, #617fe3); font-weight: 700; font-size: 22px; }
.bd4-body { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 12px 14px 14px; flex: 1; }
.bd4-logo { position: absolute; top: -26px; left: 12px; width: 46px; height: 46px; border-radius: 10px; background: #fff; border: 1px solid var(--line); box-shadow: 0 2px 6px rgba(16,24,40,.10); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.bd4-logo img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.bd4-logo.bd-logo-text { color: #477dd4; font-weight: 700; font-size: 15px; }
.bd4-logo + .bd4-name { margin-top: 18px; }
.bd4-name { font-size: 15.5px; font-weight: 700; line-height: 1.3; }
.bd4-meta { font-size: 13px; color: var(--mute); line-height: 1.35; }
.bd4-line { font-size: 13.5px; color: #4a4d57; line-height: 1.45; margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bd4-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: auto; padding-top: 9px; }
.bd4-chip { font-size: 11.5px; font-weight: 600; line-height: 1.3; border-radius: 999px; padding: 3px 9px; background: #f1f3f6; color: var(--mute); white-space: nowrap; }
.bd4-chip .fa, .bd4-chip .far { font-size: 10.5px; margin-right: 2px; }
.bd4-chip-deal { background: #d6f6f4; color: #1f6f6b; }
.bd4-chip-date { background: #e8e3f7; color: #6b4fb8; }
.bd4-chip-mag { background: #fef2cb; color: #8a6a1c; }
.bd4-grid-feat .bd4-line { display: none; }

.bd4-more-wrap { text-align: center; margin: 18px 0 0; }
html .bd4 .bd4-more { background: #fff !important; color: var(--ink) !important; border: 1px solid var(--line) !important; border-radius: 8px !important; font: inherit; font-weight: 600; font-size: 14.5px; padding: 9px 26px; cursor: pointer; }
html .bd4 .bd4-more:hover { border-color: var(--blue) !important; color: var(--blue) !important; }
.bd4-empty { padding: 24px 2px; color: var(--mute); font-size: 15px; }
.bd4-empty p { margin: 0 0 6px; } .bd4-empty a { color: var(--blue) !important; font-weight: 600; }

/* Email: one slim line */
.bd4-alerts { display: flex; align-items: center; justify-content: space-between; gap: 10px 18px; flex-wrap: wrap; margin: 30px 0 6px; padding: 12px 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.bd4-alerts-t { margin: 0; font-size: 15px; font-weight: 600; color: var(--ink); }
.bd4-alerts-t .fa { color: #477dd4; margin-right: 6px; }
.bd4-alerts-form { display: flex; gap: 8px; flex: 0 1 400px; margin: 0; }
.bd4-alerts-form input[type=email] { flex: 1; min-width: 0; border: 1px solid var(--line) !important; border-radius: 8px; padding: 8px 11px !important; font: inherit; font-size: 14.5px; height: auto !important; background: #fff !important; color: var(--ink) !important; }
html .bd4 .bd4-alerts-form button { background: var(--blue) !important; color: #fff !important; border: 0 !important; border-radius: 8px !important; font: inherit; font-weight: 600; font-size: 14.5px; padding: 8px 16px; white-space: nowrap; cursor: pointer; }
.bd4-alerts-done { margin: 0; font-size: 15px; } .bd4-alerts-done b { color: #1f6f6b; }

@media (max-width: 960px) {
  .bd4-grid, .bd4-grid-feat { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .bd4-tile { flex: none; }
}
@media (max-width: 620px) {
  .bd4 h1 { font-size: 21px !important; }
  .bd4-listbtn { font-size: 13px; padding: 6px 10px; }
  .bd4-search { height: auto; flex-wrap: wrap; }
  .bd4-fq { flex: 1 1 100%; height: 46px; }
  .bd4-fw { flex: 1; height: 44px; border-left: 0; border-top: 1px solid var(--line); }
  html .bd4 .bd4-search button { border-top: 1px solid var(--line) !important; padding: 0 18px; }
  .bd4-tiles { margin-right: -16px; padding-right: 16px; gap: 8px; }
  .bd4-tile { min-width: 0; padding: 10px 12px 9px; font-size: 12.5px; }
  .bd4-grid { grid-template-columns: minmax(0,1fr); gap: 12px; }
  .bd4-grid-feat { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
  .bd4-grid-feat .bd4-chips { display: none; }
  .bd4-grid-feat .bd4-logo { width: 38px; height: 38px; top: -21px; }
  .bd4-grid-feat .bd4-name { font-size: 14px; }
  .bd4-alerts-form { flex: 1 1 100%; }
}

/* ===== SFM 2026-11-24 v4 business page: sticky contact box (PC), slim phone bar, Similar businesses ===== */
@media (min-width: 901px) {
  .bd4v .bd-side { position: static !important; align-self: stretch; }
  .bd4v .bd4v-act { position: sticky; top: 116px; z-index: 5; }
}
.bd4v-act { background: #fff; border: 1px solid #e6e8ec; border-radius: 12px; padding: 14px; margin: 0 0 16px; box-shadow: 0 2px 10px rgba(16,24,40,.06); display: flex; flex-direction: column; gap: 10px; }
.bd4v-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.bd4v-who > span { display: flex; flex-direction: column; min-width: 0; }
.bd4v-who b { font-size: 15px; line-height: 1.25; color: #1d2129; }
.bd4v-who small { font-size: 12.5px; color: #6d6f7a; }
.bd4v-logo { flex: none; width: 40px; height: 40px; border-radius: 9px; border: 1px solid #e6e8ec; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.bd4v-logo img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.bd4v-logo.bd-logo-text { color: #477dd4; font-weight: 700; font-size: 14px; }
.bd4v-deal { margin: 0; font-size: 13px; font-weight: 600; color: #1f6f6b; background: #d6f6f4; border-radius: 8px; padding: 6px 10px; }
.bd4v-deal .fa { font-size: 11.5px; margin-right: 3px; }
html .bd4v-b { display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex: 1 1 0; min-width: 0; white-space: nowrap; font-size: 14px; font-weight: 600; line-height: 1.2; padding: 10px 12px; border-radius: 9px; border: 1px solid #e6e8ec; background: #fff !important; color: #1d2129 !important; text-decoration: none !important; }
html .bd4v-b:hover { border-color: #2f7be0; color: #2f7be0 !important; }
html .bd4v-b .fa { font-size: 13px; color: #477dd4; }
html .bd4v-b.bd4v-bp { background: #2f7be0 !important; border-color: #2f7be0; color: #fff !important; font-size: 15px; padding: 11px 14px; }
html .bd4v-b.bd4v-bp:hover { background: #2569c4 !important; color: #fff !important; }
html .bd4v-b.bd4v-bp .fa { color: #fff; }
.bd4v-row { display: flex; gap: 8px; }
.bd4v-row:empty { display: none; }

.bd4v-similar { margin-top: 8px; }
.bd4v-h2 { font-size: 18px !important; font-weight: 700 !important; margin: 10px 0 12px !important; color: #1d2129 !important; padding-left: 11px; border-left: 3px solid #d8343c; line-height: 1.2; font-family: inherit !important; }
.bd4v-cards { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.bd4v-cards .bd4-card { text-decoration: none !important; }
.bd4v-cards .bd4-name { font-size: 14.5px; }

.bd4v-bar { display: none; }
@media (max-width: 900px) {
  .bd4v-act { display: none; }
  .bd4v-bar { display: flex; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid #e6e8ec; box-shadow: 0 -4px 14px rgba(16,24,40,.08); transform: translateY(110%); transition: transform .2s; }
  .bd4v-bar.on { transform: none; }
  .bd4v-cards { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 620px) {
  .bd4v-cards { grid-template-columns: minmax(0,1fr); gap: 10px; }
  .bd4v-cards .bd4-card { flex-direction: row; }
  .bd4v-cards .bd4-img { width: 112px; flex: none; aspect-ratio: auto; min-height: 84px; }
  .bd4v-cards .bd4-logo { display: none; }
  .bd4v-cards .bd4-logo + .bd4-name { margin-top: 0; }
  .bd4v-cards .bd4-body { padding: 10px 12px; justify-content: center; }
  .bd4v-cards .bd4-chips { padding-top: 5px; }
}

/* ===== SFM 2026-11-24 HD Pro + SVT Networks: same layout, own colors, two-row tiles (more specific jobs) ===== */
.bd4-hd { --acc: #16181d; --acc2: #2c2f36; --bar: #d7191f; }
.bd4-svt { --acc: #d7191f; --acc2: #b5141a; --bar: #d7191f; --navy: #0b1f3a; }
.bd4-hd .bd4-h2, .bd4-svt .bd4-h2 { border-left-color: var(--bar); }
html body .bd4.bd4-hd .bd4-search button[type], html body .bd4.bd4-svt .bd4-search button[type] { background: var(--acc) !important; background-color: var(--acc) !important; border-color: var(--acc) !important; }
html body .bd4.bd4-hd .bd4-search button[type]:hover, html body .bd4.bd4-svt .bd4-search button[type]:hover { background: var(--acc2) !important; background-color: var(--acc2) !important; }
.bd4-hd .bd4-search:focus-within { border-color: #16181d; box-shadow: 0 0 0 3px rgba(22,24,29,.10); }
.bd4-svt .bd4-search:focus-within { border-color: #d7191f; box-shadow: 0 0 0 3px rgba(215,25,31,.12); }
.bd4-svt h1 { text-transform: uppercase; letter-spacing: .01em !important; font-weight: 800 !important; }
.bd4-svt .bd4-card:hover { border-color: rgba(215,25,31,.35); }
.bd4-svt .bd4-listbtn { color: #d7191f !important; } .bd4-svt .bd4-listbtn:hover { border-color: #d7191f; }
.bd4-hd .bd4-listbtn { color: #16181d !important; } .bd4-hd .bd4-listbtn:hover { border-color: #16181d; }
.bd4-topr { display: flex; align-items: center; gap: 14px; }
.bd4-getfeat { font-size: 13.5px; font-weight: 600; color: #d7191f !important; white-space: nowrap; }
.bd4-getfeat:hover { text-decoration: underline !important; }
.bd4-chip-feat { background: #fdecec; color: #b3141a; }
.bd4-missing { margin: 26px 0 6px; font-size: 14px; color: #6d6f7a; }
.bd4-missing a { color: #2f7be0 !important; font-weight: 600; }

/* two-row tiles: icon left, label right */
.bd4-hd .bd4-tiles, .bd4-svt .bd4-tiles { display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); gap: 8px; overflow: visible; padding: 0; }
.bd4-svt .bd4-tiles { grid-template-columns: repeat(6, minmax(0,1fr)); }
.bd4-hd .bd4-tile, .bd4-svt .bd4-tile { flex-direction: row; align-items: center; gap: 9px; min-width: 0; padding: 8px 10px; text-align: left; border-radius: 10px; min-height: 50px; font-size: 13px; }
.bd4-hd .bd4-ico, .bd4-svt .bd4-ico { flex: 0 0 32px; width: 32px; height: 32px; border-radius: 9px; font-size: 14px; }
.bd4-hd .bd4-tl, .bd4-svt .bd4-tl { white-space: normal; line-height: 1.2; }
.bd4-svt .bd4-tile.on { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
@media (max-width: 1060px) { /* always two rows: swipe sideways for the rest */
  .bd4-hd .bd4-tiles, .bd4-svt .bd4-tiles { grid-template-columns: none; grid-auto-flow: column; grid-template-rows: repeat(2, auto); grid-auto-columns: 172px; overflow-x: auto; scrollbar-width: none; margin-right: -16px; padding-right: 16px; }
}
@media (max-width: 620px) {
  .bd4-hd .bd4-tiles, .bd4-svt .bd4-tiles { grid-auto-columns: 44%; }
  .bd4-hd .bd4-tiles::-webkit-scrollbar, .bd4-svt .bd4-tiles::-webkit-scrollbar { display: none; }
  .bd4-hd .bd4-tile, .bd4-svt .bd4-tile { min-height: 46px; padding: 6px 8px; font-size: 12.5px; }
  .bd4-topr { gap: 10px; }
  .bd4-getfeat { display: none; }
}

@media (max-width: 1060px) { .bd4-svt .bd4-tiles { margin-right: -12px; padding-right: 12px; } }

/* HD Pro + SVT business pages: shorter header, own button colors */
@media (min-width: 901px) { .bd4v .bd4v-act { top: var(--bd4v-top, 116px); } }
html.hd-pal .bd4v, .bd4v.bd4v-hd { --bd4v-top: 84px; }
.bd4v-hd, .bd4v-svt { --bd4v-top: 84px; }
html .bd4v-hd .bd4v-b.bd4v-bp { background: #16181d !important; border-color: #16181d; }
html .bd4v-hd .bd4v-b.bd4v-bp:hover { background: #2c2f36 !important; }
html .bd4v-svt .bd4v-b.bd4v-bp { background: #d7191f !important; border-color: #d7191f; }
html .bd4v-svt .bd4v-b.bd4v-bp:hover { background: #b5141a !important; }
html .bd4v-svt .bd4v-b .fa { color: #d7191f; }
html .bd4v-hd .bd4v-b .fa { color: #16181d; }
html .bd4v-hd .bd4v-b.bd4v-bp .fa, html .bd4v-svt .bd4v-b.bd4v-bp .fa { color: #fff; }
.bd4v-hd .bd4v-h2, .bd4v-svt .bd4v-h2 { border-left-color: #d7191f; }
