/* Top of the single-MEP Overview (mep-landing.js): masthead, five numbers, policy focus, latest
   activity. House tokens with fallbacks; small pieces of the landing illustration as decoration. */
.ml { --ml-ink: var(--ma-ink, #15211c); --ml-muted: var(--ma-ink-muted, #5d6c65); --ml-line: rgba(83, 103, 94, .16);
  --ml-line2: rgba(83, 103, 94, .28); --ml-soft: var(--ma-surface-soft, #f2f6f4); --ml-act: var(--ma-action, #276ef1);
  --ml-civic: var(--ma-civic, #16846f); --ml-s: #276ef1; --ml-m: #16846f;
  display: grid; gap: 14px; margin: 4px 0 18px; color: var(--ml-ink); font-size: 14px; }
.ml:empty { display: none; }
.ml-card { background: #fff; border: 1px solid var(--ml-line); border-radius: 14px;
  box-shadow: 0 1px 2px rgba(21, 33, 28, .05), 0 8px 21px rgba(21, 33, 28, .05); }
.ml-small { font-size: 12px; color: var(--ml-muted); }

/* Pieces of landing-background.svg (1536×1024), as in policy-atlas.css (.pa-art) */
.ml-art { display: block; flex: none; background: url("landing-background.svg") no-repeat; pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 70%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 70%, transparent 100%); }
.ml-art--core { aspect-ratio: 720 / 560; background-size: 213.33% auto; background-position: 68.63% 53.88%; }
.ml-art--lens { aspect-ratio: 150 / 152; background-size: 1024% auto; background-position: 32.61% 55.96%; height: 52px; margin: -12px 0 -10px -4px; }
.ml-art--trajectory { aspect-ratio: 220 / 172; background-size: 698.18% auto; background-position: 45.97% 77.70%; height: 52px; margin: -12px 0 -10px -4px; }

/* Masthead */
.ml-mast { position: relative; overflow: hidden; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 22px; padding: 22px 24px 18px; }
.ml-mast::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--ml-group, #64748b); }
.ml-mast > .ml-art--core { position: absolute; right: -70px; bottom: -175px; width: 470px; opacity: .3;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 45%, #000 35%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 45%, #000 35%, transparent 100%); }
.ml-mast > :not(.ml-art) { position: relative; }
.ml-photo { width: 96px; height: 120px; border-radius: 12px; overflow: hidden; background: var(--ml-soft);
  box-shadow: 0 0 0 1px var(--ml-line2), 0 6px 16px rgba(21, 33, 28, .12); }
.ml-photo .pm-avatar { width: 100% !important; height: 100% !important; border-radius: 0 !important; font-size: 30px !important; box-shadow: none !important; }
.ml-photo .pm-avatar img { object-position: 50% 18%; }
.ml-name { margin: 2px 0 6px; font-size: 24px; font-weight: 650; letter-spacing: -.01em; line-height: 1.2; }
.ml-id { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--ml-muted); }
.ml-pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: color-mix(in srgb, var(--ml-group, #64748b) 11%, #fff); color: color-mix(in srgb, var(--ml-group, #64748b) 80%, #000); }
.ml-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--ml-group, #64748b); }
.ml-sum { margin: 12px 0 0; max-width: 760px; line-height: 1.5; color: #2c3a34; }
.ml-sum b { font-weight: 600; color: var(--ml-ink); }
.ml-roles { margin-top: 14px; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 7px 10px; align-items: baseline; }
.ml-rl { font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--ml-muted); }
.ml-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ml-chip { display: inline-flex; gap: 6px; align-items: baseline; padding: 3px 9px; border: 1px solid var(--ml-line2); border-radius: 7px; font-size: 12.5px; background: #fff; }
.ml-chip b { font-weight: 650; letter-spacing: .02em; }
.ml-chip span { color: var(--ml-muted); }
.ml-chip em { font-style: normal; font-size: 10.5px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; color: var(--ml-civic); }
.ml-chip.is-lead { border-color: rgba(22, 132, 111, .45); background: rgba(22, 132, 111, .07); }
.ml-chip.is-sub { border-style: dashed; }
.ml-src { margin-top: 12px; }
.ml-acts { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.ml-btnrow { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.ml-btn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 11px; border: 1px solid var(--ml-line2); border-radius: 8px;
  background: #fff; font: inherit; font-size: 13px; color: var(--ml-ink); text-decoration: none; cursor: pointer; white-space: nowrap; }
.ml-btn svg { width: 16px; height: 16px; display: block; }
.ml-btn:hover { border-color: var(--ml-act); color: var(--ma-action-strong, #1859cc); }
.ml-btn:focus-visible { outline: 2px solid var(--ml-act); outline-offset: 2px; }
.ml-btn.is-primary { background: var(--ml-act); border-color: var(--ml-act); color: #fff; }
.ml-btn.is-primary:hover { background: var(--ma-action-strong, #1859cc); color: #fff; }
.ml-btn.ml-ic { width: 32px; padding: 0; justify-content: center; }
.ml-btn.is-done { border-color: var(--ml-civic); color: var(--ml-civic); }
.ml-offices { position: relative; }
.ml-offices > summary { list-style: none; }
.ml-offices > summary::-webkit-details-marker { display: none; }
.ml-offices-pop { position: absolute; right: 0; top: 38px; z-index: 5; display: grid; gap: 12px; width: 280px; padding: 12px 14px;
  background: #fff; border: 1px solid var(--ml-line2); border-radius: 10px; box-shadow: 0 12px 28px rgba(21, 33, 28, .14); font-size: 13px; }
.ml-offices-pop h4 { margin: 0 0 3px; font-size: 12px; }
.ml-offices-pop address { font-style: normal; color: var(--ml-muted); margin-top: 3px; line-height: 1.4; }
.ml-offices-pop a { color: var(--ml-act); }

/* Five numbers */
.ml-kpis { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.ml-kh { position: absolute; right: 14px; top: 8px; display: flex; gap: 6px; align-items: center; font-size: 11.5px; color: var(--ml-muted); }
.ml-kh u, .ml-kb u { display: inline-block; width: 2px; height: 10px; background: var(--ml-ink); }
.ml-kpi { padding: 14px 18px; border-right: 1px solid var(--ml-line); min-width: 0; }
.ml-kpi:last-child { border-right: 0; }
.ml-kv { font-size: 24px; font-weight: 650; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.ml-kl { font-size: 12px; color: var(--ml-muted); margin-top: 2px; }
.ml-kb { height: 4px; border-radius: 2px; background: var(--ml-soft); margin-top: 9px; position: relative; }
.ml-kb i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 2px; background: #9fb4ab; }
.ml-kb u { position: absolute; top: -3px; left: 50%; }
.ml-kn { font-size: 11.5px; color: var(--ml-muted); margin-top: 5px; }

/* Policy focus and latest activity */
.ml-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.ml-sec { padding: 18px 22px; }
.ml-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 4px; }
.ml-hl { display: flex; align-items: center; gap: 10px; }
.ml-h h3 { margin: 0; font-size: 16px; }
.ml-cap { color: var(--ml-muted); font-size: 12.5px; margin: 0 0 12px; }
.ml-lg { display: flex; gap: 14px; font-size: 12px; color: var(--ml-muted); }
.ml-lg span { display: inline-flex; align-items: center; gap: 5px; }
.ml-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; flex: none; }
.ml-dot.is-s { background: var(--ml-s); }
.ml-dot.is-m { background: var(--ml-m); }
.ml-table { width: 100%; border-collapse: collapse; }
.ml-table th { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--ml-muted); text-align: left; padding: 0 6px 8px; }
.ml-table th.is-n { text-align: center; width: 118px; }
.ml-table td { padding: 7px 6px; border-top: 1px solid var(--ml-line); vertical-align: middle; }
.ml-cell { display: flex; align-items: center; gap: 8px; justify-content: center; }
.ml-sq { width: 64px; height: 16px; border-radius: 4px; background: var(--ml-soft); position: relative; overflow: hidden; }
.ml-sq i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; }
.ml-cell.is-s i { background: var(--ml-s); }
.ml-cell.is-m i { background: var(--ml-m); }
.ml-num { width: 24px; text-align: right; font-variant-numeric: tabular-nums; font-size: 13px; }
.ml-cm { display: inline-block; font-size: 10.5px; font-weight: 650; letter-spacing: .03em; padding: 1px 5px; border-radius: 4px;
  background: rgba(22, 132, 111, .1); color: var(--ml-civic); margin-left: 6px; vertical-align: 1px; }
.ml-cm.is-sub { background: none; box-shadow: inset 0 0 0 1px rgba(22, 132, 111, .35); }
.ml-more { margin-top: 4px; }
.ml-more > summary { cursor: pointer; font-size: 12.5px; color: var(--ml-act); padding: 6px 0; }
.ml-foot { font-size: 11.5px; color: var(--ml-muted); margin-top: 10px; }
.ml-sub { margin: 16px 0 8px; font-size: 13px; font-weight: 600; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.ml-sub span { font-weight: 400; font-size: 12px; color: var(--ml-muted); }
.ml-orgs { display: flex; flex-wrap: wrap; gap: 6px; }
.ml-org { display: inline-flex; gap: 7px; align-items: center; max-width: 100%; padding: 4px 4px 4px 10px; border-radius: 7px; background: var(--ml-soft); font-size: 12.5px; }
.ml-org > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 280px; }
.ml-org b { font-weight: 600; font-size: 11.5px; background: #fff; border-radius: 5px; padding: 1px 6px; color: var(--ml-civic); }
.ml-link { border: 0; background: none; padding: 0; font: inherit; font-size: 13px; color: var(--ml-act); cursor: pointer; }
.ml-link:hover { text-decoration: underline; }
.ml-tl { list-style: none; margin: 0; padding: 0; }
.ml-tl li { display: grid; grid-template-columns: 56px 12px minmax(0, 1fr); gap: 8px; padding: 8px 0; border-top: 1px solid var(--ml-line); }
.ml-tl li:first-child { border-top: 0; }
.ml-tl .ml-dot { margin-top: 5px; }
.ml-d { font-size: 12px; color: var(--ml-muted); font-variant-numeric: tabular-nums; padding-top: 1px; }
.ml-t1 { font-size: 13.5px; line-height: 1.35; }
.ml-t1 a { color: inherit; text-decoration: none; }
.ml-t1 a:hover { color: var(--ml-act); text-decoration: underline; }
.ml-t2 { font-size: 12px; color: var(--ml-muted); margin-top: 1px; }
.ml-skel { display: inline-block; height: 22px; border-radius: 7px; background: linear-gradient(90deg, var(--ml-soft), #e6ece9, var(--ml-soft)); background-size: 200% 100%;
  animation: ml-skel 1.4s ease-in-out infinite; }
@keyframes ml-skel { from { background-position: 100% 0; } to { background-position: -100% 0; } }

@media (max-width: 1100px) {
  .ml-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ml-kpi:nth-child(4) { border-right: 1px solid var(--ml-line); }
  .ml-kpi { border-bottom: 1px solid var(--ml-line); }
  .ml-grid { grid-template-columns: minmax(0, 1fr); }
  .ml-mast { grid-template-columns: auto minmax(0, 1fr); }
  .ml-acts { grid-column: 1 / -1; align-items: flex-start; }
  .ml-btnrow { justify-content: flex-start; }
  .ml-offices-pop { left: 0; right: auto; }
}
@media (max-width: 640px) {
  .ml-mast { grid-template-columns: minmax(0, 1fr); padding: 18px 16px; gap: 14px; }
  .ml-photo { width: 72px; height: 90px; }
  .ml-mast > .ml-art--core { display: none; }
  .ml-roles { grid-template-columns: minmax(0, 1fr); }
  .ml-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ml-kpi { border-right: 0 !important; }
  .ml-kh { display: none; }
  .ml-sec { padding: 16px; }
  .ml-table th.is-n { width: auto; }
  .ml-sq { width: 40px; }
}
@media (prefers-reduced-motion: reduce) { .ml-skel { animation: none; } }

/* The page theme (theme-lock.css) styles every h3 and table of the workspace with !important;
   the landing keeps its own type and a plain table. */
#pmLanding .ml-name { margin: 0 0 8px !important; font-size: 24px !important; font-weight: 650 !important; letter-spacing: -.01em !important; line-height: 1.2 !important; }
#pmLanding .ml-h h3 { margin: 0 !important; font-size: 16px !important; font-weight: 650 !important; line-height: 1.3 !important; }
#pmLanding .ml-table { border: 0 !important; border-radius: 0 !important; background: none !important; box-shadow: none !important; overflow: visible !important; }
#pmLanding .ml-table th { background: none !important; font-size: 11px !important; font-weight: 600 !important; padding: 0 6px 8px !important; border: 0 !important; }
#pmLanding .ml-table td { font-size: 13.5px !important; padding: 7px 6px !important; border: 0 !important; border-top: 1px solid var(--ml-line) !important; background: none !important; }
#pmLanding .ml-t1 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
