/* EXSIM lead tools: the project picker on developers/exsim.html and the "More from EXSIM" block on EXSIM project pages.
   Builds on directory.css (dir-card, dir-chip, dir-grid, dir-field). */
.xp-hero-cta { margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 12px; }
.xp-hero-cta .btn.ghost-dark { color: var(--ink); }

.xp { background: var(--paper); padding: 56px 0 24px; scroll-margin-top: 72px; }
.xp-head { max-width: 760px; margin: 0 0 26px; }
.xp-head h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(28px, 3.6vw, 40px); line-height: 1.12; margin: 0 0 12px; color: var(--ink); }
.xp-head p { margin: 0; font-size: 16px; line-height: 1.7; color: rgba(20,18,15,0.7); }
.xp .dir-tools { border-radius: var(--g2-md, 18px); border: 1px solid var(--paper-line); padding: 20px 22px 16px; }
.xp-filters { display: grid; grid-template-columns: 1.2fr 1.1fr 1.7fr auto; gap: 14px; align-items: end; }
.xp-check { display: flex; align-items: center; gap: 9px; height: 44px; font-size: 13.5px; color: var(--ink); cursor: pointer; }
.xp-check input { width: 18px; height: 18px; accent-color: var(--brass-deep); }
.xp-tools-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; margin-top: 14px; }
.xp-tools-row .dir-count { margin: 0; }
.xp-link { background: none; border: 0; padding: 0; font: inherit; font-size: 13px; font-weight: 600; color: var(--brass-deep); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.xp-group[hidden] { display: none; }
.xp-region { font-family: var(--font-display); font-weight: 400; font-size: 26px; margin: 40px 0 18px; color: var(--ink); }
.xp-card { position: relative; display: flex; flex-direction: column; }
.xp-card .dir-card-link { flex: 1; }
.xp-card.is-picked { border-color: var(--brass); box-shadow: 0 0 0 2px var(--brass); }
.xp-pick {
  position: absolute; right: 10px; top: 10px; z-index: 2; display: flex; align-items: center; gap: 8px;
  padding: 7px 11px 7px 9px; background: rgba(255,255,255,0.95); border: 1px solid var(--paper-line);
  font-size: 11px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink); cursor: pointer;
  border-radius: var(--g2-xs, 8px);
}
.xp-pick input { width: 18px; height: 18px; accent-color: var(--brass-deep); margin: 0; }
.xp-status {
  position: absolute; left: 12px; bottom: 12px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase;
  padding: 5px 9px; background: var(--white); color: var(--ink); border-radius: var(--g2-xs, 8px);
}
.xp-status.is-open { background: var(--brass-bright); }
.xp-status.is-pre { background: var(--ink); color: var(--brass-bright); }
.xp-actions { padding: 0 18px 18px; }
.xp-actions .btn { width: 100%; justify-content: center; }
.xp-empty { text-align: center; margin: 32px auto 0; max-width: 520px; padding: 36px 20px; border: 1px dashed var(--paper-line); background: var(--paper-deep); border-radius: var(--g2-md, 18px); }
.xp-empty[hidden] { display: none; }
.xp-help { margin: 44px 0 0; padding: 28px 30px; background: var(--ink); color: var(--paper); border-radius: var(--g2-lg, 26px); display: flex; flex-wrap: wrap; gap: 18px 32px; align-items: center; justify-content: space-between; }
.xp-help h3 { font-family: var(--font-display); font-weight: 400; font-size: 24px; margin: 0 0 6px; color: var(--paper); }
.xp-help p { margin: 0; max-width: 560px; color: rgba(247,243,236,0.74); line-height: 1.65; font-size: 15px; }

.xp-bar {
  position: fixed; left: 50%; bottom: 18px; z-index: 60; transform: translate(-50%, 140%); transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex; align-items: center; gap: 14px; padding: 12px 14px 12px 22px; background: var(--ink); color: var(--paper);
  border: 1px solid rgba(247,243,236,0.16); border-radius: 18px; box-shadow: 0 24px 60px rgba(0,0,0,0.4);
}
.xp-bar.is-on { transform: translate(-50%, 0); }
.xp-bar-count { font-size: 14px; font-weight: 600; white-space: nowrap; }
.xp-bar-count b { font-family: var(--font-display); font-weight: 400; font-size: 22px; color: var(--brass-bright); }
.xp-bar .xp-link { color: rgba(247,243,236,0.7); }
body.xp-bar-on .float-cta, body.xp-bar-on .float-cta-wechat { display: none; }

/* "More from EXSIM" on EXSIM project pages */
.xm { background: var(--paper-deep); padding: 64px 0 70px; border-top: 1px solid var(--paper-line); }
.xm-head { max-width: 700px; margin: 0 0 28px; }
.xm-head h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(26px, 3.2vw, 36px); line-height: 1.15; margin: 0 0 10px; color: var(--ink); }
.xm-head p { margin: 0; color: rgba(20,18,15,0.68); line-height: 1.7; font-size: 15.5px; }
.xm .dir-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.xm-cta { margin: 30px 0 0; display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 980px) {
  .xp-filters { grid-template-columns: 1fr 1fr; }
  .xp-filters .xp-check { grid-column: 1 / -1; height: auto; }
}
@media (max-width: 640px) {
  .xp { padding-top: 40px; }
  .xp .dir-tools { padding: 16px 14px 12px; }
  .xp-filters { grid-template-columns: 1fr 1fr; }
  .xp-filters .xp-check, .xp-filters .dir-reset { grid-column: 1 / -1; }
  .xp .dir-chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
  .xp .dir-chip { flex: 0 0 auto; }
  .xp-bar { left: 12px; right: 12px; bottom: 12px; transform: translateY(150%); padding: 10px 10px 10px 16px; }
  .xp-bar.is-on { transform: none; }
  .xp-bar .btn { padding: 12px 14px; }
  .xp-help { padding: 22px 20px; }
  .xp-hero-cta .btn { flex: 1 1 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .xp-bar { transition: none; } }

/* Homepage "EXSIM projects" link list and the all-projects line on EXSIM project pages (crawl paths + quick navigation) */
.xl { background: var(--paper); }
.xl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px 36px; margin: 6px 0 30px; }
.xl-grid h3 { font-family: var(--font-display); font-weight: 400; font-size: 21px; margin: 0 0 12px; color: var(--ink); }
.xl-grid ul { list-style: none; margin: 0; padding: 0; }
.xl-grid li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--paper-line); font-size: 14px; }
.xl-grid li a { color: var(--ink); text-decoration: underline; text-decoration-color: rgba(125,95,49,0.35); text-underline-offset: 3px; }
.xl-grid li a:hover { color: var(--brass-deep); }
.xl-grid li span { color: rgba(20,18,15,0.55); white-space: nowrap; font-size: 12.5px; }
.xm-all { margin: 26px 0 0; font-size: 13.5px; line-height: 1.9; color: rgba(20,18,15,0.62); }
.xm-all a { color: var(--ink); text-decoration: underline; text-decoration-color: rgba(125,95,49,0.35); text-underline-offset: 3px; margin-right: 4px; }
.xm-all a:hover { color: var(--brass-deep); }
@media (max-width: 640px) { .xl-grid li { flex-wrap: wrap; } }
