/* Public Multiples. Ported look of intel /open/valuation into the main-site type.
   This file only loads on /multiples — masthead overrides here are page-scoped. */

/* Compact interior masthead so tabs + scatter clear a ~800px laptop fold. */
.masthead.wide .in{padding:24px var(--gutter) 18px}
.masthead.wide .eyebrow{margin:0}
.masthead.wide h1{
  margin:8px 0 0;
  font-size:clamp(22px,2.4vw,28px);
  line-height:1.15;
  max-width:28ch; /* prefer one line on laptop widths */
}
.masthead.wide .lede{
  margin:8px 0 0;
  font-size:15px;
  line-height:1.45;
  max-width:58ch;
}

.mp{padding:4px 0 56px}
.mp-lede{font-size:var(--fs-lede);color:var(--muted);max-width:64ch;margin:22px 0 0;line-height:1.7}

/* Sector tabs span the row above both cards so chart + lead share one top edge. */
.mp-tabs{display:flex;flex-wrap:wrap;gap:6px;margin:14px 0 14px}
.mp-tab{font-family:var(--body);font-size:12.5px;font-weight:600;letter-spacing:.04em;background:transparent;border:1px solid var(--hair);color:var(--muted);padding:6px 12px;border-radius:2px;cursor:pointer}
.mp-tab:hover{color:var(--navy);border-color:var(--gold)}
.mp-tab.on{background:var(--navy);border-color:var(--navy);color:#F3F6F9}

/* Chart | lead: equal columns, matched height, one light scheme (paper + gold rule). */
.mp-split{display:grid;gap:28px;align-items:stretch}
.mp-chart-col,.mp-lead{min-width:0}
@media(min-width:900px){
  .mp-split{grid-template-columns:1fr 1fr;column-gap:clamp(28px,4vw,48px);row-gap:16px}
  .mp-chart-col{display:flex;flex-direction:column}
  .mp-chart-col .mp-card{flex:1}
}

/* Shared paper card chrome for chart + lead — same edge so matched heights read. */
.mp-card,.mp-lead{
  background:var(--paper);
  border:1px solid var(--hair);
  border-top:2px solid var(--gold);
  border-radius:3px;
  box-sizing:border-box;
  box-shadow:0 1px 2px rgba(11,33,53,.04),0 8px 22px rgba(11,33,53,.05);
}
.mp-card{padding:14px 18px 12px}
.mp-card-head h2{font-family:var(--heading);font-size:18px;font-weight:400;color:var(--navy);margin:0 0 4px;letter-spacing:-.005em}
.mp-asof{margin:0;font-size:12.5px;color:var(--faint)}
.mp-legend{display:flex;flex-wrap:wrap;gap:10px 16px;list-style:none;margin:8px 0 2px;padding:0;font-size:12.5px;color:var(--muted)}
.mp-legend i{display:inline-block;width:9px;height:9px;border-radius:50%;margin-right:6px;vertical-align:middle}
.mp-plot{margin:2px 0 6px;max-width:100%}
.mp-plot svg{width:100%;height:auto;display:block;background:#fff}
.mp-plot .tick{font-family:var(--body);font-size:11px;fill:#667382}
.mp-plot .axis{font-family:var(--body);font-size:12px;fill:#2A3542}
.mp-names{margin:6px 0 0;font-size:13.5px;color:var(--ink);line-height:1.5}
.mp-note{margin:6px 0 0;font-size:12.5px;color:var(--faint);line-height:1.5}

/* Lead form: same paper card as the chart; flex so it fills the column height. */
.mp-lead{
  color:var(--ink);
  padding:28px 26px 26px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  position:relative;
}
.mp-lead-eyebrow{
  margin:0;
  font-family:var(--body);
  font-size:11px;
  letter-spacing:.18em;
  text-transform:uppercase;
  font-weight:600;
  color:var(--gold-deep);
}
.mp-lead h2{
  font-family:var(--heading);
  font-size:clamp(18px,2vw,22px);
  font-weight:400;
  color:var(--navy);
  margin:10px 0 0;
  letter-spacing:-.005em;
  line-height:1.25;
  max-width:22ch;
}
.mp-lead-p{
  margin:10px 0 0;
  font-size:13.5px;
  line-height:1.55;
  color:var(--muted);
  max-width:36ch;
}
.mp-lead-form{display:flex;flex-direction:column;gap:10px;margin-top:22px}
.mp-lead-field{display:flex;flex-direction:column;gap:5px;min-width:0}
.mp-lead-field span{
  font-size:11px;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:var(--gold-deep);
  font-weight:600;
}
.mp-lead-form input[type=text],
.mp-lead-form input[type=email]{
  width:100%;
  background:var(--paper);
  border:1px solid var(--hair);
  border-radius:3px;
  color:var(--ink);
  font-family:var(--body);
  font-size:15px;
  padding:11px 13px;
  line-height:1.5;
}
.mp-lead-form input::placeholder{color:var(--faint)}
.mp-lead-form input:focus{
  outline:none;
  border-color:var(--gold);
  box-shadow:0 0 0 3px rgba(176,139,79,.22);
}
.mp-lead-form .btn{align-self:start;cursor:pointer;margin-top:2px}
.mp-lead-form .btn:disabled{opacity:.6;cursor:default}
.mp-lead-note{margin:2px 0 0;font-size:12.5px;color:var(--faint);line-height:1.5}
.mp-lead-status{margin:0;font-size:13.5px;color:var(--muted);min-height:1.2em;line-height:1.5}
.mp-lead-status.ok{color:#2F7A55}
.mp-lead-status.err{color:#A33B3B}
.mp-lead .hp{
  position:absolute;left:-9999px;width:1px;height:1px;opacity:0;
  overflow:hidden;clip:rect(0,0,0,0);border:0;padding:0;margin:0;pointer-events:none;
}

.mp-method,.mp-caveats{margin-top:48px}
.mp-method h2,.mp-caveats h2{font-family:var(--heading);font-size:var(--fs-section);font-weight:400;color:var(--navy);margin:0 0 16px}
.mp-method p,.mp-caveats p{color:var(--muted);font-size:15.5px;line-height:1.7;max-width:68ch;margin:0 0 14px}
.mp-caveats h3{font-family:var(--heading);font-size:18px;font-weight:400;color:var(--navy);margin:22px 0 8px}

/* Short / laptop viewports: squeeze masthead + chart further so axes+dots clear the fold. */
@media(max-height:850px){
  .masthead.wide .in{padding:18px var(--gutter) 14px}
  .masthead.wide h1{margin-top:6px;font-size:clamp(20px,2.2vw,24px)}
  .masthead.wide .lede{margin-top:6px;font-size:14px;line-height:1.4}
  .mp-tabs{margin:10px 0 10px}
  .mp-card{padding:12px 16px 10px}
  .mp-lead{padding:18px 18px 16px}
  .mp-lead h2{font-size:18px}
  .mp-lead-p{font-size:13px;line-height:1.45}
}

@media(max-width:600px){
  .mp-card{padding:16px 14px}
  .mp-tabs{margin-top:16px}
  .mp-plot{max-width:100%}
  .masthead.wide .in{padding:40px var(--gutter) 28px}
  .masthead.wide h1{font-size:clamp(22px,6vw,28px);max-width:18ch}
  .mp-lead{padding:20px 16px 18px}
  .mp-lead-form{margin-top:18px}
}
