.tool-intro { padding-block: 8px 16px; }
.tool-intro nav,.tool-byline { color: var(--muted); font-size: 13px; }
.tool-intro h1 { font-size: clamp(36px,5vw,58px); margin-block: 5px; }
.tool-intro > p:last-child { max-width: 70ch; font-size: 17px; line-height: 1.55; margin-block: 8px 0; }
.tool-byline { margin: 0; }
.tool-work { border-block: 2px solid var(--ink); padding-block: 18px 24px; }
.tool-work h2 { font-size: 26px; }
.tool-market-heading { display: flex; gap: 20px; align-items: baseline; justify-content: space-between; }
.tool-market-heading > span,.tool-attribution,.tool-status,.tool-chart figcaption { color: var(--muted); font-size: 13px; }
.tool-quote { display: flex; align-items: baseline; gap: 24px; margin-block: 10px; }
.tool-quote strong { font: 500 clamp(30px,4vw,46px)/1.15 var(--serif); font-variant-numeric: tabular-nums; }
.tool-quote p { font-size: 13px; color: var(--muted); margin: 0; }
.tool-toolbar { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; }
.tool-work label { display: block; font-size: 13px; font-weight: 700; }
.tool-work select,.tool-work input { display: block; width: 100%; min-width: 0; min-height: 44px; margin-top: 5px; padding: 8px 12px; border: 1px solid #748791; border-radius: 0; color: var(--ink); background: var(--white); }
.tool-work input::placeholder { color: var(--muted); opacity: 1; }
.tool-work button { min-height: 44px; padding: 9px 18px; border: 1px solid var(--blue); background: var(--blue); color: var(--white); font-size: 14px; font-weight: 700; }
.tool-work button:hover { background: #123ca3; }
.tool-work button:disabled { opacity: .65; cursor: wait; }
.tool-status { margin-block: 10px 4px; }
.tool-attribution { margin-block: 4px 10px; }
.tool-chart { margin: 0; }
.tool-chart svg { display: block; width: 100%; height: auto; background: var(--white); border: 1px solid var(--line); }
.tool-chart svg text { fill: var(--muted); font-family: var(--sans); font-size: 16px; }
.tool-chart .history-line { fill: none; stroke: var(--blue); stroke-width: 3; vector-effect: non-scaling-stroke; }
.tool-chart .history-point { fill: var(--blue); }
.tool-chart .history-axis { stroke: var(--line); stroke-width: 1; }
.tool-chart figcaption { margin-block: 8px 12px; }
.tool-data > summary,.tool-explanation summary { min-height: 44px; cursor: pointer; padding-block: 9px; font-size: 15px; font-weight: 700; }
.tool-table-scroll { overflow-x: auto; max-height: 330px; }
.tool-data table { width: 100%; border-collapse: collapse; text-align: left; font-size: 14px; font-variant-numeric: tabular-nums; }
.tool-data caption { text-align: left; font-size: 13px; padding-block: 8px; color: var(--muted); }
.tool-data td,.tool-data th { border-bottom: 1px solid var(--line); padding: 7px 10px 7px 0; }
.tool-data td:last-child,.tool-data th:last-child { text-align: right; }
.tool-explanation { display: grid; grid-template-columns: 1fr 2fr; gap: 36px; padding-block: 28px; }
.tool-explanation h2 { font-size: 28px; }
.tool-explanation p { max-width: 70ch; font-size: 16px; line-height: 1.65; }
.tool-explanation p:first-child { margin-top: 0; }
.tool-links { display: flex; flex-wrap: wrap; gap: 0 24px; width: min(1240px,calc(100% - 72px)); margin: 0 auto 32px; border-top: 1px solid var(--line); padding-top: 10px; }
.tool-links a { min-height: 44px; display: inline-flex; align-items: center; font-size: 14px; }
.tool-links a[aria-current] { font-weight: 700; color: var(--blue); text-decoration-thickness: 2px; }
.tool-finder { display: grid; grid-template-columns: 1fr 1.2fr; gap: 36px; }
#tool-search-form { display: grid; grid-template-columns: 1fr; gap: 10px; }
.tool-profile { border-left: 1px solid var(--line); padding-left: 36px; min-width: 0; }
.tool-profile h2 { overflow-wrap: anywhere; }
.tool-profile p { max-width: 68ch; overflow-wrap: anywhere; }
#tool-profile-status { font-size: 14px; color: var(--muted); }
#tool-profile-content p { font-size: 15px; }
#tool-profile-content ul { padding-left: 20px; font-size: 14px; }
#tool-profile-content li { margin-bottom: 8px; overflow-wrap: anywhere; }
.tool-match { border-top: 1px solid var(--line); padding-block: 12px; }
.tool-match h3 { font-family: var(--sans); font-size: 16px; margin-block: 0 3px; overflow-wrap: anywhere; }
.tool-match p { color: var(--muted); font-size: 12px; margin-block: 0 8px; overflow-wrap: anywhere; }
.tool-match button { background: var(--white); color: var(--blue); }
.tool-match button:hover { background: var(--pale); }
@media (max-width:700px) {
  .tool-intro { padding-block: 5px 12px; }
  .tool-intro > p:last-child { font-size: 15px; }
  .tool-market-heading { gap: 8px; flex-wrap: wrap; }
  .tool-market-heading h2 { margin: 0; }
  .tool-market-heading > span { font-size: 12px; }
  .tool-quote { display: block; margin-block: 8px; }
  .tool-quote p { margin-top: 5px; }
  .tool-work { padding-block: 14px 18px; }
  .tool-toolbar { gap: 8px; }
  .tool-toolbar label { flex: 1; }
  .tool-toolbar button { flex: 1; padding-inline: 10px; }
  .tool-chart svg { min-height: 160px; }
  .tool-chart svg text { font-size: 18px; }
  .tool-explanation,.tool-finder { display: block; }
  .tool-explanation { padding-block: 20px; }
  .tool-explanation h2 { font-size: 26px; margin-bottom: 12px; }
  .tool-profile { border-left: 0; border-top: 1px solid var(--line); padding: 18px 0 0; margin-top: 20px; }
  .tool-links { width: calc(100% - 32px); gap: 0 18px; }
}
