/* Email header analyzer. Builds on pw.css, the shared free-tool layout. */
.eh .pw-card { display: block; }
.eh-box { padding: 1.25rem; }
.pw .eh-input { display: block; width: 100%; min-height: 200px; padding: .75rem .875rem; border: 2px solid var(--n); border-radius: 4px; color: var(--ink); font: 400 .875rem/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; resize: vertical; box-sizing: border-box; }
.pw .eh-input:focus { outline: 3px solid var(--m); outline-offset: 1px; }
.eh-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: .75rem; }
.eh-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem; border: 1px solid var(--n); border-radius: 4px; background: #fff; color: var(--n); font: 600 .9375rem/1 "DM Sans", system-ui, sans-serif; cursor: pointer; }
.eh-btn:hover { background: var(--off); }
.eh-btn:focus-visible, .eh-file:focus-within { outline: 3px solid var(--m); outline-offset: 2px; }
.eh-btn[hidden] { display: none; }
.eh-btn--go { background: var(--n); color: #fff; }
.eh-btn--go:hover { background: #162c86; }
.eh-file { position: relative; }
.eh-file input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.eh-try { color: var(--mut); font-size: .9375rem; }
.eh-msg { margin: .75rem 0 0; padding: .75rem 1rem; border-left: 4px solid #8a5a00; background: #fff6e0; font-size: .9375rem; }
.eh-msg[hidden] { display: none; }
.eh-results { padding: 1.25rem; border-top: 1px solid var(--ln); background: var(--off); border-radius: 0 0 6px 6px; scroll-margin-top: 1rem; }
.eh-results[hidden] { display: none; }
.eh-verdict { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: .875rem; padding: 1.125rem 1.25rem; border: 1px solid var(--ln); border-left-width: 6px; border-radius: 4px; background: #fff; }
.eh-verdict svg { width: 34px; height: 34px; }
.eh-bad { --c: #b3261e; --t: #fdeeed; } .eh-warn { --c: #8a5a00; --t: #fff6e0; } .eh-good { --c: #0a7559; --t: #e8fbf5; } .eh-unknown { --c: #4b5573; --t: #eef1f8; }
.eh-verdict { border-left-color: var(--c); background: var(--t); }
.eh-verdict svg { color: var(--c); }
.pw .eh-v-t { margin: 0; color: var(--n); font: 700 clamp(1.5rem, 1.3rem + 1vw, 2rem)/1.15 "Source Serif 4", Georgia, serif; }
.pw .eh-v-b { margin: .25rem 0 0; max-width: 70ch; }
.pw .eh-v-who { margin: .5rem 0 0; font-size: .9375rem; overflow-wrap: anywhere; }
.eh-block { margin-top: 1.5rem; }
.pw .eh-block h3 { margin: 0 0 .75rem; font-size: 1.25rem; }
.eh-tiles { display: grid; gap: .625rem; }
.eh-tile { padding: .875rem 1rem; border: 1px solid var(--ln); border-top: 4px solid var(--c); border-radius: 4px; background: #fff; }
.eh-tile-h { display: flex; align-items: center; gap: .5rem; }
.eh-tile-h svg { flex: none; width: 22px; height: 22px; color: var(--c); }
.eh-tile-h strong { color: var(--n); font-size: 1.0625rem; }
.eh-res { margin-left: auto; color: var(--c); font-weight: 700; font-size: .9375rem; }
.pw .eh-q { margin: .375rem 0 0; color: var(--mut); font-size: .875rem; line-height: 1.4; }
.pw .eh-tile-n { margin: .375rem 0 0; font-size: .875rem; line-height: 1.4; overflow-wrap: anywhere; }
.pw .eh-find { display: grid; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.pw .eh-find li { display: grid; gap: .375rem; margin: 0; padding: .875rem 1rem; border: 1px solid var(--ln); border-left: 4px solid var(--c); border-radius: 4px; background: #fff; }
.eh-l-high { --c: #b3261e; } .eh-l-med { --c: #8a5a00; } .eh-l-info { --c: #4b5573; }
.eh-tag { justify-self: start; padding: .0625rem .4375rem; border-radius: 3px; background: var(--c); color: #fff; font-size: .75rem; font-weight: 700; white-space: nowrap; }
.eh-find strong { display: block; color: var(--n); overflow-wrap: anywhere; }
.pw .eh-find p { margin: .125rem 0 0; font-size: .9375rem; line-height: 1.45; overflow-wrap: anywhere; }
.eh-two { display: grid; gap: 0 2rem; }
.eh-dl { margin: 0; padding: .25rem 1rem; border: 1px solid var(--ln); border-radius: 4px; background: #fff; font-size: .9375rem; }
.eh-dl > div { display: grid; gap: .125rem; padding: .5rem 0; border-bottom: 1px solid var(--ln); }
.eh-dl > div:last-child { border-bottom: 0; }
.eh-dl dt { color: var(--n); font-weight: 700; font-size: .875rem; }
.eh-dl dd { margin: 0; overflow-wrap: anywhere; }
.pw .eh-route { margin: 0; padding: 0; list-style: none; counter-reset: h; }
.pw .eh-route li { position: relative; margin: 0; padding: 0 0 1rem 2.25rem; counter-increment: h; }
.eh-route li::before { content: counter(h); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 1.625rem; height: 1.625rem; border-radius: 50%; background: var(--n); color: #fff; font-size: .8125rem; font-weight: 700; }
.eh-route li:not(:last-child)::after { content: ""; position: absolute; left: .75rem; top: 1.75rem; bottom: .125rem; width: 2px; background: var(--ln); }
.eh-host { display: block; color: var(--n); font-size: .9375rem; overflow-wrap: anywhere; }
.eh-meta { display: block; color: var(--mut); font-size: .8125rem; line-height: 1.4; overflow-wrap: anywhere; }
.eh-delay { display: inline-block; margin-top: .25rem; padding: 0 .375rem; border-radius: 3px; background: #eef1f8; color: var(--n); font-size: .75rem; font-weight: 700; }
.eh-all { margin-top: 1.5rem; }
.eh-all summary { display: flex; align-items: center; min-height: 44px; color: var(--n); font-weight: 600; cursor: pointer; }
.eh-all summary:focus-visible { outline: 3px solid var(--m); outline-offset: 2px; }
.eh-dl--all { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .8125rem; }
.eh-how { display: grid; gap: 1rem; margin-top: 1rem; }
.eh-how > div { padding: 1.125rem; border: 1px solid var(--ln); border-top: 4px solid var(--m); border-radius: 4px; }
.pw .eh-how h3 { margin: 0 0 .375rem; font-size: 1.25rem; }
.eh-how p { margin: 0; font-size: .9375rem; }
.eh-table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.g .eh-table { min-width: 0; }
.eh-table caption { padding: 0 0 .625rem; color: var(--mut); font-size: .875rem; text-align: left; }
.eh-table th, .eh-table td { padding: .75rem; border-bottom: 1px solid var(--ln); text-align: left; vertical-align: top; }
.eh-table thead th { background: var(--n); color: #fff; font-size: .875rem; }
.eh-table tbody th { color: var(--n); }
@media (max-width: 639.98px) {
  .eh-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .eh-table, .eh-table tbody, .eh-table tr, .eh-table td, .eh-table tbody th, .eh-table caption { display: block; width: 100%; box-sizing: border-box; }
  .eh-table tr { padding: .75rem 0; border-top: 1px solid var(--ln); }
  .eh-table td, .eh-table tbody th { padding: .1875rem 0; border: 0; }
  .eh-table td[data-l]::before { content: attr(data-l) ": "; color: var(--n); font-weight: 700; }
}
@media (min-width: 640px) { .eh-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } .eh-how { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pw .eh-find li { grid-template-columns: 6.5rem minmax(0, 1fr); gap: .75rem; } .eh-dl > div { grid-template-columns: 7rem minmax(0, 1fr); gap: .75rem; } }
@media (min-width: 960px) { .eh-box, .eh-results { padding: 2rem; } .eh-two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .eh-how { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pw.eh .pw-hero h1 { max-width: 22ch; }
.eh-results p, .eh-results dd, .eh-results strong, .eh-results span { overflow-wrap: anywhere; }
.pw .eh-rh { margin: 0 0 .875rem; font-size: 1.5rem; }
.eh-tag { align-self: start; }
