/* Grove Marketplace — public directory + broker profile pages.
 *
 * ── WHERE THIS CSS COMES FROM ──────────────────────────────────────────────
 * Everything down to the MARKETPLACE COMPONENTS divider is copied VERBATIM from
 * the inline <style> in index.html: the same custom properties, the same button
 * classes, the same nav, the same footer, the same breakpoints. It is a copy
 * because index.html carries its whole design system inline and the site has no
 * build step to share it — extracting it would mean rewriting the shipped
 * homepage, which is a much larger and riskier change than this prompt calls
 * for.
 *
 * So: this is not a second design language, it is the SAME one, and the tokens
 * below must not drift from index.html. Anything genuinely new lives under the
 * divider and is built out of those tokens only — no new colours, no new fonts.
 */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #F8F6F1;
  --surface:   #FFFFFF;
  --primary:   #1C2B1A;
  --accent:    #2D5A29;
  --light:     #7EC87A;
  --text:      #1A1A1A;
  --text-2:    #5C6B5A;
  --border:    #E8E4DC;

  --blue:  #3B7DD8;
  --amber:  #E0A138;
  --red:    #D65745;

  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 1px 3px rgba(28,43,26,0.06), 0 1px 2px rgba(28,43,26,0.04);
  --shadow-md: 0 8px 24px rgba(28,43,26,0.08), 0 2px 6px rgba(28,43,26,0.04);
  --shadow-lg: 0 24px 60px rgba(28,43,26,0.14), 0 8px 20px rgba(28,43,26,0.06);
  --radius: 16px;
  --maxw: 1200px;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.08; letter-spacing: -0.02em; color: var(--primary); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--light); color: var(--primary); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
section { position: relative; }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

/* ── BUTTONS ─────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 24px;
  border-radius: 10px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s var(--ease), color 0.18s var(--ease);
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 4px 14px rgba(45,90,41,0.28); }
.btn-primary:hover { background: #24491F; transform: translateY(-2px); box-shadow: 0 8px 22px rgba(45,90,41,0.34); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--border); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn-lg { padding: 16px 30px; font-size: 16px; }

/* ── NAV ─────────────────────────────────── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: 72px;
  display: flex;
  align-items: center;
  background: transparent;
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
#nav.scrolled {
  background: rgba(248,246,241,0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--border);
}
#nav .wrap { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 700; font-size: 22px; color: var(--primary); letter-spacing: -0.02em; }
.brand .mark {
  width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(150deg, var(--accent), var(--primary));
  display: grid; place-items: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.15);
}
.brand .mark svg { width: 18px; height: 18px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a.link { font-size: 15px; font-weight: 500; color: var(--text-2); transition: color 0.18s; }
.nav-links a.link:hover { color: var(--primary); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.hamburger span { width: 24px; height: 2px; background: var(--primary); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.3s; }
body.menu-open .hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .hamburger span:nth-child(2) { opacity: 0; }
body.menu-open .hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

#mobile-menu {
  position: fixed;
  top: 72px; left: 0; right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  z-index: 999;
  padding: 20px 32px 28px;
  display: none;
  flex-direction: column;
  gap: 6px;
}
body.menu-open #mobile-menu { display: flex; animation: slideDown 0.3s var(--ease); }
#mobile-menu a.link { padding: 12px 4px; font-size: 17px; font-weight: 500; color: var(--primary); border-bottom: 1px solid var(--border); }
#mobile-menu .mobile-cta { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
#mobile-menu .btn { width: 100%; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

/* ── FOOTER ─────────────────────────────────── */
footer { background: #14200F; color: rgba(248,246,241,0.7); padding: 64px 0 40px; margin-top: 96px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand .brand { color: #F8F6F1; margin-bottom: 14px; }
.footer-brand .brand .mark { background: linear-gradient(150deg, var(--light), var(--accent)); }
.footer-brand p { font-size: 14px; max-width: 260px; margin-bottom: 16px; }
.footer-brand .copy { font-size: 12.5px; color: rgba(248,246,241,0.45); }
.footer-col h4 { font-family: var(--sans); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(248,246,241,0.5); margin-bottom: 16px; }
.footer-col a { display: block; font-size: 14.5px; color: rgba(248,246,241,0.78); padding: 6px 0; transition: color 0.18s; }
.footer-col a:hover { color: var(--light); }
.footer-bottom { border-top: 1px solid rgba(248,246,241,0.1); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 13px; }
.footer-bottom .fb-links { display: flex; gap: 22px; }
.footer-bottom a:hover { color: var(--light); }

/* ══════════════════════════════════════════════════════════════════════════
   MARKETPLACE COMPONENTS — new, built from the tokens above and nothing else.
   ══════════════════════════════════════════════════════════════════════════ */

/* Every page here starts below the fixed 72px nav, unlike the homepage, whose
   hero deliberately runs underneath it. */
.mp-page { padding-top: 72px; min-height: 60vh; }

.mp-head { padding: 56px 0 32px; }
.mp-head h1 { font-size: clamp(34px, 5vw, 52px); margin-bottom: 14px; }
.mp-head .mp-lede { font-size: 18px; color: var(--text-2); max-width: 640px; }

/* ── Filters ─────────────────────────────────── */
.mp-filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding-bottom: 28px; }
.mp-filters label { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); margin-right: 2px; }
.mp-filters select {
  font-family: var(--sans); font-size: 15px; color: var(--primary);
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: 10px; padding: 11px 14px; cursor: pointer;
  transition: border-color 0.18s var(--ease);
}
.mp-filters select:hover, .mp-filters select:focus { border-color: var(--accent); outline: none; }
.mp-count { margin-left: auto; font-size: 14px; color: var(--text-2); }

/* ── Directory grid ─────────────────────────────────── */
.mp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 20px; }

.mp-card {
  display: block; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), border-color 0.18s var(--ease);
}
.mp-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #D8D2C6; }
.mp-card-head { display: flex; gap: 14px; align-items: flex-start; }
.mp-card-id { min-width: 0; }
.mp-card-id h3 { font-size: 19px; margin-bottom: 3px; overflow-wrap: anywhere; }
.mp-meta { font-size: 14px; color: var(--text-2); }

.mp-logo, .mp-hero-logo {
  width: 54px; height: 54px; flex-shrink: 0;
  border-radius: 12px; border: 1px solid var(--border);
  background: #fff; object-fit: contain; padding: 5px;
}
.mp-hero-logo { width: 76px; height: 76px; border-radius: 14px; }
.mp-mono {
  display: grid; place-items: center; padding: 0;
  font-family: var(--serif); font-weight: 700; font-size: 21px;
  color: var(--accent); background: #F1EFE8;
}
.mp-hero-logo.mp-mono { font-size: 30px; }

.mp-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.mp-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 600; color: var(--accent);
  background: rgba(126,200,122,0.16); border: 1px solid rgba(45,90,41,0.18);
  padding: 3px 9px; border-radius: 999px;
}
.mp-mc { font-family: var(--mono); font-size: 12px; color: var(--text-2); }
.mp-auth { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; text-transform: capitalize; }
.mp-auth-active { background: rgba(126,200,122,0.16); color: var(--accent); }
.mp-auth-inactive { background: rgba(214,87,69,0.12); color: var(--red); }
.mp-auth-pending { background: rgba(224,161,56,0.14); color: #99691D; }

.mp-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.mp-tag {
  font-size: 12.5px; font-weight: 500; color: var(--text-2);
  background: var(--bg); border: 1px solid var(--border);
  padding: 4px 10px; border-radius: 999px;
}
.mp-tag-more { color: var(--accent); }

.mp-card-stats { display: flex; gap: 26px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }
.mp-stat-v { display: block; font-family: var(--serif); font-size: 23px; font-weight: 600; color: var(--accent); line-height: 1.1; }
.mp-stat-l { display: block; font-size: 12px; color: var(--text-2); margin-top: 2px; }
.mp-corridors { margin-top: 14px; font-family: var(--mono); font-size: 11.5px; color: var(--text-2); line-height: 1.7; overflow-wrap: anywhere; }
.mp-corridors span { font-family: var(--sans); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; margin-right: 4px; }

/* ── Empty + loading ─────────────────────────────────── */
.mp-empty, .mp-loading {
  background: var(--surface); border: 1px dashed var(--border);
  border-radius: var(--radius); padding: 64px 32px; text-align: center;
}
.mp-empty h3 { font-size: 24px; margin-bottom: 10px; }
.mp-empty p { color: var(--text-2); max-width: 460px; margin: 0 auto 24px; }
.mp-loading { color: var(--text-2); border-style: solid; }

/* ── Broker profile ─────────────────────────────────── */
.mp-hero { background: var(--surface); border-bottom: 1px solid var(--border); padding: 48px 0 40px; }
.mp-hero-in { display: flex; gap: 22px; align-items: flex-start; flex-wrap: wrap; }
.mp-hero-id { flex: 1; min-width: 240px; }
.mp-hero-id h1 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 6px; overflow-wrap: anywhere; }
.mp-hero-meta { font-size: 16px; color: var(--text-2); }
.mp-hero-cta { display: flex; flex-direction: column; gap: 10px; }

.mp-body { padding-top: 40px; }
.mp-sec { margin-bottom: 44px; }
.mp-sec h2 { font-size: 24px; margin-bottom: 8px; }
.mp-sec-sub { font-size: 15px; color: var(--text-2); max-width: 620px; margin-bottom: 16px; }
.mp-about { font-size: 16.5px; line-height: 1.75; color: var(--text); max-width: 720px; white-space: pre-line; }

.mp-glance { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 44px; }
.mp-glance-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.mp-glance-v { display: block; font-family: var(--serif); font-size: 36px; font-weight: 600; color: var(--accent); line-height: 1; }
.mp-glance-l { display: block; font-size: 14px; font-weight: 600; color: var(--primary); margin-top: 8px; }
.mp-glance-s { display: block; font-size: 12.5px; color: var(--text-2); margin-top: 2px; }

.mp-map { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; max-width: 720px; }
.mp-map-svg { width: 100%; height: auto; display: block; }

.mp-endorse { display: flex; flex-wrap: wrap; gap: 9px; }
.mp-endorse-tag {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 14px; color: var(--primary);
  background: var(--surface); border: 1px solid var(--border);
  padding: 7px 14px; border-radius: 999px;
}
.mp-endorse-tag b { font-family: var(--mono); font-size: 12.5px; color: var(--accent); }

.mp-board { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; }
.mp-board-in { display: flex; gap: 28px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.mp-board-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.mp-shipper-note { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border); font-size: 14.5px; color: var(--text-2); }
.mp-shipper-note a { color: var(--accent); font-weight: 600; }
.mp-shipper-note[hidden] { display: none; }

/* ── The toggle ─────────────────────────────────
   A segmented control, not a tab strip. Tabs imply you are moving between
   pages; this swaps the result set underneath while the hero and carousel above
   it stay exactly where they are, and the control should say so. */
.mp-toggle {
  display: inline-flex; gap: 4px; margin-bottom: 26px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; padding: 4px;
}
.mp-toggle-opt {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 22px; border-radius: 999px;
  font-size: 15px; font-weight: 600; color: var(--text-2);
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
}
.mp-toggle-opt:hover { color: var(--primary); }
.mp-toggle-opt.is-active { background: var(--accent); color: #fff; }
.mp-toggle-n {
  font-family: var(--mono); font-size: 11.5px; font-weight: 600;
  background: var(--bg); color: var(--text-2);
  padding: 1px 7px; border-radius: 999px;
}
.mp-toggle-opt.is-active .mp-toggle-n { background: rgba(255,255,255,0.18); color: #fff; }

/* The region the toggle swaps. Reserving a minimum height stops the page
   collapsing and re-expanding between two result sets of different lengths —
   the footer would otherwise jump up to meet you mid-switch. */
#mp-swap { min-height: 60vh; }

/* ── Featured carousel ─────────────────────────────────── */
.mp-featured { padding: 8px 0 40px; }
.mp-featured-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.mp-featured-head h2 { font-size: clamp(22px, 3vw, 30px); }
.mp-featured-nav { display: flex; gap: 8px; }
.mp-rail-btn {
  width: 38px; height: 38px; border-radius: 50%; cursor: pointer;
  background: var(--surface); border: 1.5px solid var(--border); color: var(--primary);
  font-size: 20px; line-height: 1; display: grid; place-items: center;
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease);
}
.mp-rail-btn:hover { border-color: var(--accent); color: var(--accent); }

.mp-rail { display: flex; gap: 18px; }
/* A rail scrolls; a handful centre; ONE is given the stage instead of being
   stranded at the left edge of an empty track. */
.mp-rail.is-rail { overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: none; }
.mp-rail.is-rail::-webkit-scrollbar { display: none; }
.mp-rail.is-rail .mp-feat-card { flex: 0 0 clamp(300px, 33%, 380px); scroll-snap-align: start; }
.mp-rail.is-few { justify-content: center; flex-wrap: wrap; }
.mp-rail.is-few .mp-feat-card { flex: 1 1 320px; max-width: 420px; }
.mp-rail.is-single { justify-content: center; }
.mp-rail.is-single .mp-feat-card { flex: 0 1 640px; }

.mp-feat-card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), border-color 0.18s var(--ease);
}
.mp-feat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #D8D2C6; }
.mp-feat-head { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.mp-feat-head h3 { font-size: 21px; overflow-wrap: anywhere; }
.mp-feat-logo { width: 56px; height: 56px; flex-shrink: 0; border-radius: 12px; border: 1px solid var(--border); background: #fff; object-fit: contain; padding: 5px; }
.mp-feat-logo.mp-mono { display: grid; place-items: center; padding: 0; font-family: var(--serif); font-weight: 700; font-size: 22px; color: var(--accent); background: #F1EFE8; }
.mp-feat-desc { font-size: 14.5px; color: var(--text-2); line-height: 1.65; margin-bottom: 4px; }
.mp-feat-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: auto; padding-top: 16px; font-size: 13px; color: var(--text-2); }
.mp-feat-foot b { font-family: var(--serif); font-size: 17px; color: var(--accent); font-weight: 600; }

/* ── Category blocks ─────────────────────────────────── */
.mp-cats { padding: 8px 0 44px; }
.mp-cats h2 { font-size: clamp(22px, 3vw, 30px); margin-bottom: 20px; }
.mp-cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(184px, 1fr)); gap: 12px; }
.mp-cat {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 16px;
  transition: transform 0.18s var(--ease), border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.mp-cat:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: var(--shadow-sm); }
.mp-cat-ic { width: 34px; height: 34px; flex-shrink: 0; display: grid; place-items: center; border-radius: 10px; background: rgba(126,200,122,0.15); color: var(--accent); }
.mp-cat-ic svg { width: 20px; height: 20px; }
.mp-cat-l { font-size: 14.5px; font-weight: 600; color: var(--primary); line-height: 1.3; }
.mp-cat-n { margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--accent); }
/* Categories with nobody in them yet stay browsable but stop competing for
   attention with the ones that have brokers. */
.mp-cat.is-empty { opacity: 0.6; }
.mp-cat.is-empty .mp-cat-ic { background: var(--bg); color: var(--text-2); }

/* ── Broker media: card banner, hero banner, gallery ─────────────────────────
   Every rule here is conditional on the image existing — the markup omits the
   whole element when there is no banner or no gallery, so a listing without
   photos is not a listing with empty frames in it. */
.mp-card-banner { margin: -24px -24px 16px; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; }
.mp-card-banner img { width: 100%; aspect-ratio: 3 / 1; object-fit: cover; display: block; }
.mp-card.has-banner:hover .mp-card-banner img { transform: scale(1.02); }
.mp-card-banner img { transition: transform 0.35s var(--ease); }
/* The featured card carries the identical banner element; only the pull-out
   distance changes, because that card is padded 26px rather than 24px. */
.mp-feat-card .mp-card-banner { margin: -26px -26px 16px; }
.mp-feat-card.has-banner:hover .mp-card-banner img { transform: scale(1.02); }

/* Profile hero banner. Full-bleed above the identity block. */
.mp-banner { width: 100%; background: #EDEAE3; }
.mp-banner img { width: 100%; max-height: 340px; aspect-ratio: 3 / 1; object-fit: cover; display: block; }
/* With a banner above it the hero needs less top padding — the picture is
   already doing the work of announcing the page. */
.mp-hero.has-banner { padding-top: 26px; }

.mp-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.mp-shot { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.mp-shot img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.mp-shot figcaption { font-size: 13px; color: var(--text-2); padding: 10px 12px; }

/* ── Carrier extras ─────────────────────────────────── */
.mp-facts { list-style: none; margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.mp-facts li { position: relative; font-size: 13px; color: var(--text-2); padding-left: 14px; }
.mp-facts li::before { content: ''; position: absolute; left: 3px; top: 8px; width: 4px; height: 4px; border-radius: 50%; background: var(--light); }
.mp-endorse-sm { margin-top: 14px; }
.mp-endorse-sm .mp-endorse-tag { font-size: 12.5px; padding: 4px 10px; }
/* No text-transform here. These values are whole phrases ("On file with FMCSA",
   "1 year"), and `capitalize` title-cases every word of them. The one value that
   genuinely needs casing is the lowercase authority enum, which is capitalised
   at the point it is read instead. */
.mp-glance-v.is-text { font-size: 21px; }
.mp-note { margin-top: 14px; font-size: 13.5px; color: var(--text-2); background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--amber); border-radius: 10px; padding: 12px 14px; max-width: 720px; }
.mp-fineprint { font-size: 12.5px; color: var(--text-2); max-width: 720px; margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--border); line-height: 1.7; }

.mp-broker-links { display: flex; flex-direction: column; gap: 10px; max-width: 560px; }
.mp-broker-link {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--bg); border: 1px solid var(--border); border-radius: 12px;
  padding: 16px 18px; font-weight: 600; color: var(--primary);
  transition: border-color 0.18s var(--ease), transform 0.18s var(--ease);
}
.mp-broker-link:hover { border-color: var(--accent); transform: translateX(2px); }
.mp-broker-go { font-size: 13px; font-weight: 600; color: var(--accent); white-space: nowrap; }

/* ── 404 ─────────────────────────────────── */
.mp-404 { text-align: center; padding: 96px 0 64px; }
.mp-404 h1 { font-size: clamp(30px, 5vw, 46px); margin-bottom: 14px; }
.mp-404 p { color: var(--text-2); max-width: 520px; margin: 0 auto 28px; }

.mp-back { display: inline-block; font-size: 14px; color: var(--text-2); margin-bottom: 22px; }
.mp-back:hover { color: var(--accent); }

@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-cta .btn-outline { display: none; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .mp-grid { grid-template-columns: 1fr; }
  .mp-hero-cta { width: 100%; }
  .mp-hero-cta .btn { width: 100%; }
  .mp-count { margin-left: 0; width: 100%; }
  .mp-board { padding: 24px; }
  .mp-board-cta .btn { width: 100%; }
  .mp-cat-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
  .mp-cat { padding: 13px; gap: 10px; }
  .mp-toggle { display: flex; width: 100%; }
  .mp-toggle-opt { flex: 1; justify-content: center; padding: 10px 12px; font-size: 14.5px; }
  .mp-featured-nav { display: none; }
  .mp-rail.is-rail .mp-feat-card { flex: 0 0 86%; }
  .mp-feat-card { padding: 20px; }
  .mp-broker-link { padding: 14px; }
  .mp-card-banner { margin: -24px -24px 14px; }
  .mp-feat-card .mp-card-banner { margin: -20px -20px 14px; }
  .mp-banner img { max-height: 200px; }
  .mp-gallery { grid-template-columns: 1fr 1fr; gap: 10px; }
}
