/* The workspace (what you see after logging in): the profile chip at the top right, the
   "how we find buyers" steps, the five modules and the blog cards. Colours come from styles.css. */

/* ---------- Page frame ---------- */
.dash { width: 100%; max-width: 1040px; }
.dash-head { margin: 8px 0 28px; }
.dash-head h1 {
  margin: 0 0 6px;
  font-size: clamp(26px, 4vw, 34px);
  letter-spacing: -0.3px;
}
.dash-section { margin-bottom: 36px; }
.dash-section h2 {
  margin: 0 0 6px;
  font-size: clamp(20px, 2.6vw, 24px);
  letter-spacing: -0.2px;
}
.dash-intro {
  max-width: 720px;
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.5;
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.section-head h2 { margin: 0; }
.more { font-weight: 600; color: var(--brand-orange-dark); }

/* ---------- Profile chip (top right) and its panel ---------- */
.me { position: relative; margin-left: auto; }
.me-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 260px;
  min-height: 48px;
  padding: 4px 12px 4px 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--text);
  font: inherit;
  cursor: pointer;
}
.me-chip:hover { border-color: var(--brand-orange); }
.me-chip:focus-visible { outline: 3px solid var(--brand-orange-dark); outline-offset: 2px; }
.me-avatar {                 /* the circle with your initials */
  flex: none;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-teal);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.me-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  line-height: 1.2;
  text-align: left;
}
.me-text strong {
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}
.me-text small { font-size: 12px; color: var(--muted); }
.me-chip svg { flex: none; width: 16px; height: 16px; color: var(--muted); }
.me-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 10;
  width: min(320px, calc(100vw - 32px));
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-hover);
}
.me-company { margin: 0; font-weight: 700; }
.me-details {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 12px;
  margin: 0;
  font-size: 14px;
}
.me-details dt { color: var(--muted); }
.me-details dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.me-panel .btn { align-self: stretch; justify-content: center; }
.me-panel .link-btn { align-self: flex-start; }

/* ---------- Steps: how we find buyers / suppliers / work ---------- */
.steps-grid {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.step {
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.step-num {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: var(--export-soft);
  color: var(--brand-orange-dark);
  font-size: 14px;
  font-weight: 700;
}
.step h3 { margin: 0 0 6px; font-size: 16px; }
.step p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.match-row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}
.empty {                     /* where matches will appear */
  padding: 22px;
  border: 2px dashed var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.6);
}
.empty strong { display: block; margin-bottom: 4px; font-size: 16px; }
.empty p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.cta { gap: 10px; }
.cta h3 { margin: 0; font-size: 16px; line-height: 1.4; }

/* ---------- The five modules ---------- */
.module-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
}
.module-card {
  padding: 8px 8px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.module-card img { display: block; width: 100%; height: auto; border-radius: 10px; }
.module-card h3 { margin: 12px 6px 4px; font-size: 15px; }
.module-card p { margin: 0 6px; color: var(--muted); font-size: 13.5px; line-height: 1.45; }

/* ---------- Blog cards ---------- */
.post-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.post-card a {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  color: inherit;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.post-card a:hover,
.post-card a:focus-visible { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.post-card a:focus-visible { outline: 3px solid var(--brand-orange-dark); outline-offset: 2px; }
.post-card img { display: block; width: 100%; height: auto; }
.post-card div { display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 14px 16px 16px; }
.post-card h3 { margin: 0; font-size: 16px; line-height: 1.3; }
.post-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.post-card small { margin-top: auto; padding-top: 4px; color: var(--brand-orange-dark); font-size: 12px; font-weight: 600; }

/* ---------- Small screens ---------- */
@media (max-width: 760px) {
  .match-row { grid-template-columns: minmax(0, 1fr); }
  .me-text, .me-chip svg { display: none; }   /* phones: just the circle with initials */
  .me-chip { padding: 4px; }
}

/* Buyer leads approved for an exporter */
.lead-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.lead-card { background: #fff; border: 1px solid var(--line, #e6e6e6); border-radius: 14px; padding: 16px 18px; }
.lead-kind { margin: 0 0 4px; font-size: 12px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: var(--brand-orange-dark); }
.lead-card h3 { margin: 0 0 4px; font-size: 17px; }
.lead-facts { margin: 0 0 8px; color: var(--muted); font-size: 14px; }
.lead-reasons, .lead-missing { margin: 6px 0; padding-left: 20px; font-size: 14px; line-height: 1.5; }
.lead-missing { color: #7a5200; }
.lead-sample { margin: 6px 0; font-size: 13.5px; color: var(--muted); }
.lead-source { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; }
