/* Site header (UI overhaul phase 1). Every rule is scoped under .sfh so nothing here touches the page. */
.sfh { --sfh-blue: #3a75fa; --sfh-blue-d: #295ccf; --sfh-ink: #1a2340; --sfh-muted: #6b7a99; --sfh-line: #e6ecf8; --sfh-soft: #f4f7fe;
  font-family: Inter, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; color: var(--sfh-ink); font-size: 14px; line-height: 1.4;
  /* The whole header sticks; the 37px top bar scrolls away above the viewport, the blue bar stays. */
  position: sticky; top: -37px; z-index: 1030; }
.sfh *, .sfh *::before, .sfh *::after { box-sizing: border-box; }
.sfh [hidden] { display: none !important; }
.sfh a { text-decoration: none; }
.sfh ul { list-style: none; margin: 0; padding: 0; }
.sfh h3 { margin: 0 0 8px; font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--sfh-muted); }
.sfh h3 a { color: var(--sfh-muted); }
.sfh h3 a:hover { color: var(--sfh-blue-d); }
.sfh-wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.sfh-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sfh-linkbtn { background: none; border: 0; padding: 0; margin: 0; font-family: inherit; font-size: inherit; line-height: inherit; color: inherit; cursor: pointer; }
.sfh-badge { display: inline-block; min-width: 18px; padding: 1px 6px; border-radius: 9px; background: #e5484d; color: #fff; font-size: 11px; font-weight: 700; text-align: center; line-height: 16px; }
.sfh a:focus-visible, .sfh button:focus-visible, .sfh summary:focus-visible, .sfh input:focus-visible { outline: 2px solid var(--sfh-blue); outline-offset: 2px; }

/* top bar */
.sfh-top { background: #fff; border-bottom: 1px solid var(--sfh-line); font-size: 12.5px; color: #4b5a78; position: relative; z-index: 1035; }
.sfh-top-in { display: flex; justify-content: space-between; align-items: center; gap: 12px; height: 36px; overflow: visible; }
.sfh-trust { display: flex; gap: 18px; flex-wrap: wrap; }
.sfh-trust .sfh-linkbtn:hover { color: var(--sfh-blue-d); }
.sfh-acct { display: flex; align-items: center; gap: 16px; }
.sfh-acct > a, .sfh-acct .sfh-linkbtn { color: var(--sfh-blue-d); }
.sfh-acct > a:hover { text-decoration: underline; }
.sfh-strong { font-weight: 600; }
.sfh a.sfh-pill { background: linear-gradient(135deg, var(--sfh-blue), var(--sfh-blue-d)); color: #fff; border-radius: 999px; padding: 5px 14px; font-weight: 600; }
.sfh a.sfh-pill:hover { text-decoration: none; opacity: .92; }
.sfh-dd { position: relative; }
.sfh-pop { position: absolute; right: 0; top: calc(100% + 8px); min-width: 210px; background: #fff; border: 1px solid var(--sfh-line); border-radius: 12px; box-shadow: 0 14px 30px rgba(26,35,64,.14); padding: 6px; z-index: 5; }
.sfh-pop a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; color: var(--sfh-ink); font-size: 13.5px; }
.sfh-pop a:hover, .sfh-pop a:focus { background: var(--sfh-soft); color: var(--sfh-blue-d); outline: none; }
.sfh-pop .sfh-sep { border-top: 1px solid var(--sfh-line); margin-top: 4px; padding-top: 4px; }

/* main bar */
.sfh-main { background: linear-gradient(135deg, var(--sfh-blue), var(--sfh-blue-d)); color: #fff; position: relative; box-shadow: 0 2px 10px rgba(26,35,64,.12); }
.sfh-main-in { display: flex; align-items: center; gap: 18px; min-height: 64px; position: relative; }
.sfh-logo { flex: none; display: flex; align-items: center; }
.sfh-logo img { display: block; height: 38px; width: auto; max-width: 170px; }
.sfh-nav { display: flex; align-items: center; gap: 4px; flex: 1 1 auto; min-width: 0; }
.sfh-item { position: static; }
.sfh .sfh-tab { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; border-radius: 8px; padding: 9px 12px; color: #fff; font-family: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.sfh .sfh-tab:hover, .sfh .sfh-tab[aria-expanded="true"] { background: rgba(255,255,255,.16); color: #fff; }
.sfh .sfh-tab.on { box-shadow: inset 0 -3px 0 rgba(255,255,255,.9); }
.sfh-mega { position: absolute; left: 20px; right: 20px; top: 100%; background: #fff; color: var(--sfh-ink); border-radius: 0 0 14px 14px; border: 1px solid var(--sfh-line); border-top: 0; box-shadow: 0 18px 36px rgba(26,35,64,.16); padding: 20px 22px 16px; }
.sfh-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 18px 24px; }
.sfh-cols a { display: block; padding: 5px 0; color: var(--sfh-ink); font-size: 14px; }
.sfh-cols a:hover, .sfh-cols a:focus { color: var(--sfh-blue-d); outline: none; text-decoration: underline; }
.sfh-cols .sfh-two { columns: 2; column-gap: 18px; }
.sfh-cols .sfh-more { color: var(--sfh-blue-d); font-weight: 600; }
.sfh-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--sfh-line); margin-top: 14px; padding-top: 12px; }
.sfh-foot a { color: var(--sfh-blue-d); font-weight: 600; }
.sfh-search { position: relative; display: flex; flex: 0 1 280px; min-width: 180px; }
.sfh-q { flex: 1 1 auto; min-width: 0; border: 1px solid rgba(255,255,255,.35); border-right: 0; border-radius: 10px 0 0 10px; background: rgba(255,255,255,.16); color: #fff; padding: 9px 12px; font-family: inherit; font-size: 13.5px; }
.sfh-q::placeholder { color: #e3ebff; }
.sfh-q:focus { background: #fff; color: var(--sfh-ink); outline: none; }
.sfh-go { border: 1px solid rgba(255,255,255,.35); border-left: 0; border-radius: 0 10px 10px 0; background: rgba(255,255,255,.24); color: #fff; padding: 0 12px; cursor: pointer; font-size: 14px; }
.sfh-sug { position: absolute; left: 0; right: 0; top: calc(100% + 6px); min-width: 300px; background: #fff; color: var(--sfh-ink); border: 1px solid var(--sfh-line); border-radius: 12px; box-shadow: 0 14px 30px rgba(26,35,64,.16); padding: 6px; z-index: 6; }
.sfh-sug .sfh-sg { font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--sfh-muted); padding: 8px 10px 4px; }
.sfh-sug .sfh-opt { display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 8px; cursor: pointer; font-size: 13.5px; }
.sfh-sug .sfh-opt.on { background: var(--sfh-soft); color: var(--sfh-blue-d); }
.sfh-sug .sfh-sub { color: var(--sfh-muted); font-size: 12px; white-space: nowrap; }
.sfh-sug .sfh-all { font-weight: 600; color: var(--sfh-blue-d); border-top: 1px solid var(--sfh-line); margin-top: 4px; }
.sfh-sug .sfh-none { padding: 10px; color: var(--sfh-muted); font-size: 13px; }
.sfh .sfh-cart { flex: none; display: inline-flex; align-items: center; gap: 6px; background: #fff; color: var(--sfh-blue-d); border-radius: 10px; padding: 8px 14px; font-weight: 700; white-space: nowrap; }
.sfh .sfh-cart .cart-count { background: #e5484d; color: #fff; border-radius: 9px; padding: 0 6px; font-size: 11.5px; line-height: 17px; min-width: 18px; text-align: center; }
.sfh-icon { background: rgba(255,255,255,.18); border: 0; color: #fff; border-radius: 9px; width: 40px; height: 40px; font-size: 17px; cursor: pointer; flex: none; }
.sfh-only-m, .sfh-strip { display: none; }

/* drawer (phones) */
.sfh-dim { position: fixed; top: 0; right: 0; bottom: 0; left: 0; background: rgba(26,35,64,.45); z-index: 1040; }
.sfh-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(88vw, 360px); background: #fff; z-index: 1050; overflow-y: auto; box-shadow: -12px 0 30px rgba(26,35,64,.25); padding-bottom: 24px; }
.sfh-dhead { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--sfh-line); font-weight: 700; }
.sfh-dhead .sfh-icon { background: var(--sfh-soft); color: var(--sfh-ink); }
.sfh-dacc { display: flex; gap: 8px; margin: 12px 14px; padding: 10px; border-radius: 12px; background: var(--sfh-soft); }
.sfh-dacc a { flex: 1; text-align: center; padding: 10px; border-radius: 9px; font-weight: 700; }
.sfh a.sfh-ghost { background: #fff; color: var(--sfh-blue-d); border: 1px solid #cfdcf7; }
.sfh-dacc a.sfh-pill { border-radius: 9px; }
.sfh-dsec { border-top: 1px solid var(--sfh-line); }
.sfh-dsec summary { list-style: none; cursor: pointer; padding: 13px 16px; font-weight: 700; display: flex; justify-content: space-between; }
.sfh-dsec summary::-webkit-details-marker { display: none; }
.sfh-dsec summary::after { content: "+"; color: var(--sfh-muted); }
.sfh-dsec[open] summary::after { content: "\2212"; }
.sfh-dlist a, .sfh-dlist .sfh-linkbtn { display: flex; justify-content: space-between; width: 100%; text-align: left; padding: 10px 16px 10px 28px; color: var(--sfh-ink); font-size: 14.5px; }
.sfh-dplain { border-top: 1px solid var(--sfh-line); padding-top: 4px; }
.sfh-dplain a, .sfh-dplain .sfh-linkbtn { padding-left: 16px; font-weight: 600; }

@media (max-width: 1180px) {
  .sfh-search { flex-basis: 200px; }
  .sfh .sfh-tab { padding: 9px 9px; font-size: 14px; }
}
@media (max-width: 991px) {
  .sfh { top: 0; }
  .sfh-top, .sfh-nav, .sfh-hide-m { display: none; }
  .sfh-only-m { display: inline-flex; align-items: center; justify-content: center; }
  .sfh-main-in { min-height: 56px; gap: 10px; }
  .sfh-logo { margin-right: auto; }
  .sfh-logo img { height: 32px; max-width: 140px; }
  .sfh-search { display: none; position: absolute; left: 12px; right: 12px; top: calc(100% + 8px); flex-basis: auto; }
  .sfh.sfh-search-open .sfh-search { display: flex; }
  .sfh-q { background: #fff; color: var(--sfh-ink); border-color: #cfdcf7; }
  .sfh-q::placeholder { color: var(--sfh-muted); }
  .sfh-go { background: var(--sfh-blue-d); border-color: var(--sfh-blue-d); }
  .sfh-sug { min-width: 0; }
  .sfh .sfh-cart { padding: 8px 10px; }
  .sfh-strip { display: flex; justify-content: center; gap: 16px; background: #fff; border-bottom: 1px solid var(--sfh-line); padding: 6px 12px; font-size: 12px; color: #4b5a78; }
  .sfh-wrap { padding: 0 12px; }
}
@media (prefers-reduced-motion: reduce) { .sfh * { transition: none !important; } }

/* Marketing bar (UI overhaul phase 2), under the header on /marketing pages. Every rule is scoped under .mkb. */
.mkb { --mkb-blue: #3a75fa; --mkb-blue-d: #295ccf; --mkb-ink: #1a2340; --mkb-muted: #6b7a99; --mkb-line: #e6ecf8; --mkb-soft: #f4f7fe;
  font-family: Inter, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; color: var(--mkb-ink); font-size: 14px; line-height: 1.4;
  position: relative; z-index: 1020; background: #f6f8fc; border-bottom: 1px solid var(--mkb-line); }
.mkb *, .mkb *::before, .mkb *::after { box-sizing: border-box; }
.mkb [hidden] { display: none !important; }
.mkb a { text-decoration: none; }
.mkb ul { list-style: none; margin: 0; padding: 0; }
.mkb a:focus-visible, .mkb button:focus-visible { outline: 2px solid var(--mkb-blue); outline-offset: 2px; }
.mkb-wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.mkb-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* strip */
.mkb-strip { background: #fff; border-bottom: 1px solid var(--mkb-line); }
.mkb-strip-in { display: flex; align-items: center; gap: 12px; min-height: 48px; padding-top: 6px; padding-bottom: 6px; }
.mkb-title { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.mkb-title strong { font-size: 15px; }
.mkb-rate { color: #4b5a78; font-size: 12.5px; white-space: nowrap; }
.mkb-acts { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.mkb a.mkb-pill { display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; border-radius: 999px; border: 1px solid #cfdcf7; background: #fff; color: var(--mkb-blue-d); font-weight: 600; font-size: 13px; white-space: nowrap; }
.mkb a.mkb-pill:hover { background: var(--mkb-soft); }
.mkb-badge { display: inline-block; min-width: 18px; padding: 1px 6px; border-radius: 9px; background: #e5484d; color: #fff; font-size: 11px; font-weight: 700; text-align: center; line-height: 16px; }
.mkb .mkb-chat { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; border: 0; background: linear-gradient(135deg, var(--mkb-blue), var(--mkb-blue-d)); color: #fff; font-weight: 700; font-size: 13px; white-space: nowrap; cursor: pointer; }
.mkb .mkb-chat:hover { opacity: .93; color: #fff; }
.mkb-dot { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 3px rgba(61,220,132,.3); flex: none; }
.mkb-dd { position: relative; }
.mkb-picker { position: absolute; right: 0; top: calc(100% + 8px); width: 400px; background: #fff; border: 1px solid var(--mkb-line); border-radius: 14px; box-shadow: 0 16px 34px rgba(26,35,64,.18); padding: 8px; z-index: 5; }
.mkb-phead { display: flex; justify-content: space-between; align-items: center; padding: 4px 8px 8px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--mkb-muted); }
.mkb-x { background: var(--mkb-soft); border: 0; border-radius: 8px; width: 30px; height: 30px; color: var(--mkb-ink); cursor: pointer; font-family: inherit; font-size: 14px; }
.mkb-it { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; color: var(--mkb-ink); }
.mkb-it:hover, .mkb-it:focus { background: var(--mkb-soft); outline: none; }
.mkb-th { width: 40px; height: 40px; border-radius: 9px; flex: none; object-fit: cover; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; }
.mkb-tx { min-width: 0; flex: 1 1 auto; }
.mkb-tx b { display: block; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mkb-tx small { display: block; color: var(--mkb-muted); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mkb-st { flex: none; font-size: 11px; font-weight: 700; border-radius: 6px; padding: 2px 7px; white-space: nowrap; background: #e8f0ff; color: var(--mkb-blue-d); }
.mkb-st-reply, .mkb-st-wait { background: #fff5e0; color: #9a5b07; }
.mkb-st-done { background: #e7f7ee; color: #14804a; }
.mkb-pfoot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; border-top: 1px solid var(--mkb-line); margin-top: 6px; padding: 10px 8px 4px; font-size: 12.5px; }
.mkb-pfoot a { color: var(--mkb-blue-d); font-weight: 600; }
.mkb-ask { background: none; border: 0; padding: 0; color: var(--mkb-blue-d); font-family: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.mkb-dim { display: none; }

/* category buttons */
.mkb-cats { padding: 10px 0; }
.mkb-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.mkb-item { position: relative; }
.mkb .mkb-btn { display: inline-flex; align-items: center; gap: 7px; border: 0; border-radius: 10px; padding: 9px 14px; color: #fff; font-family: inherit; font-size: 13.5px; font-weight: 700; white-space: nowrap; cursor: pointer; box-shadow: 0 2px 6px rgba(26,35,64,.12); }
.mkb .mkb-btn:hover, .mkb .mkb-btn[aria-expanded="true"] { color: #fff; filter: brightness(1.06); }
.mkb .mkb-btn.on { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--mkb-ink); }
.mkb-ini { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 6px; background: rgba(255,255,255,.25); font-size: 12px; }
.mkb-caret { opacity: .85; font-size: 11px; }
/* The same eight tile colours are also defined as .mkp-c0-7 in marketplace.css and .mki-c0-7 in _inbox_shell.php — change all three together. */
.mkb .mkb-c0 { background: linear-gradient(135deg, #7b2cbf, #5a189a); }
.mkb .mkb-c1 { background: linear-gradient(135deg, #ff006e, #d6005c); }
.mkb .mkb-c2 { background: linear-gradient(135deg, #f77f00, #d65f00); }
.mkb .mkb-c3 { background: linear-gradient(135deg, #2a9d8f, #1f7a70); }
.mkb .mkb-c4 { background: linear-gradient(135deg, #3a75fa, #295ccf); }
.mkb .mkb-c5 { background: linear-gradient(135deg, #e63946, #b5212d); }
.mkb .mkb-c6 { background: linear-gradient(135deg, #118ab2, #0b6a8a); }
.mkb .mkb-c7 { background: linear-gradient(135deg, #6a994e, #4e7337); }
.mkb .mkb-dark { background: var(--mkb-ink); }
.mkb-menu { position: absolute; left: 0; top: calc(100% + 6px); min-width: 230px; background: #fff; border: 1px solid var(--mkb-line); border-radius: 12px; box-shadow: 0 14px 30px rgba(26,35,64,.16); padding: 6px; z-index: 5; }
.mkb-menu.mkb-right { left: auto; right: 0; }
.mkb-menu a { display: block; padding: 8px 10px; border-radius: 8px; color: var(--mkb-ink); font-size: 13.5px; }
.mkb-menu a:hover, .mkb-menu a:focus { background: var(--mkb-soft); color: var(--mkb-blue-d); outline: none; }
.mkb-menu .mkb-all { border-top: 1px solid var(--mkb-line); margin-top: 4px; padding-top: 4px; }
.mkb-menu .mkb-all a { color: var(--mkb-blue-d); font-weight: 700; }
@media (min-width: 992px) {
  .mkb .mkb-extra { display: none; }
}
@media (max-width: 991px) {
  .mkb-wrap { padding: 0 12px; }
  .mkb-strip-in { min-height: 44px; }
  .mkb-title { flex-direction: column; align-items: flex-start; gap: 0; }
  .mkb-title strong { font-size: 14px; }
  .mkb-rate { font-size: 11.5px; }
  .mkb-acts { flex-wrap: nowrap; gap: 6px; }
  .mkb .mkb-lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .mkb a.mkb-pill, .mkb .mkb-chat { padding: 0; width: 38px; height: 38px; justify-content: center; font-size: 16px; position: relative; }
  .mkb a.mkb-pill .mkb-badge { position: absolute; top: -4px; right: -4px; }
  .mkb .mkb-chat .mkb-dot { position: absolute; top: 2px; right: 2px; }
  .mkb .mkb-chat > span[aria-hidden="true"]:last-child { display: none; }
  .mkb-row { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 2px; }
  .mkb .mkb-more { display: none; }
  .mkb .mkb-caret { display: none; }
  .mkb-menu { display: none !important; }
  .mkb-dim { display: block; position: fixed; top: 0; right: 0; bottom: 0; left: 0; background: rgba(26,35,64,.45); z-index: 1060; }
  .mkb-picker { position: fixed; left: 0; right: 0; bottom: 0; top: auto; width: auto; max-height: 75vh; overflow-y: auto; border-radius: 16px 16px 0 0; z-index: 1070; padding: 10px 10px 88px; }
}
@media (prefers-reduced-motion: reduce) { .mkb * { transition: none !important; } }
