/* ECA Core - self-contained styles for the directory + verify (concept-03 tokens). */
.eca-directory,.eca-verify{--eca-ink:#2E3036;--eca-charcoal:#4C4E56;--eca-paper:#FBF4EC;--eca-pale:#E8EFF8;--eca-peach:#FF9F6E;--eca-nile:#9EB0D0;--eca-line:rgba(46,48,54,.14);font-family:'Space Grotesk',system-ui,sans-serif;color:var(--eca-ink);max-width:1120px;margin-inline:auto}
.eca-dir-filters{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:14px}
.eca-dir-filters input,.eca-dir-filters select{font:inherit;padding:10px 13px;border:1px solid var(--eca-line);border-radius:10px;background:#fff;color:var(--eca-ink)}
.eca-dir-filters input[type=search]{flex:1 1 240px;min-width:200px}
.eca-dir-count{font-size:13px;letter-spacing:.04em;text-transform:uppercase;color:#6A6D76;margin:0 0 16px}
/* XI-03: the count line carries the message when an answer fails (directory.js): a sentence, in the danger ink */
.eca-dir-count.is-error{font-size:14px;letter-spacing:0;text-transform:none;font-weight:600;color:#8f382f}
.eca-dir-results{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:14px}
.eca-card{display:flex;gap:14px;align-items:center;padding:16px;border:1px solid var(--eca-line);border-radius:14px;background:#fff;text-decoration:none;color:inherit;transition:border-color .2s,transform .2s}
.eca-card:hover{border-color:var(--eca-nile);transform:translateY(-2px)}
.eca-card-logo{flex:0 0 52px;width:52px;height:52px;border-radius:10px;overflow:hidden;display:grid;place-items:center;background:var(--eca-pale)}
/* XB-10: one cell the size of the tile, so the logo's height:100% has a definite track to resolve against and object-fit
   fits a portrait logo whole (an auto track took the logo's own height, and the tile cut its top and bottom) */
.eca-card-logo{grid-template:100% / 100%}
.eca-card-logo img{width:100%;height:100%;object-fit:contain}
.eca-logo-ph{font-family:'Archivo',sans-serif;font-weight:800;font-size:22px;color:var(--eca-charcoal)}
.eca-card-body{display:flex;flex-direction:column;gap:3px;min-width:0}
.eca-card-body strong{font-size:15px;line-height:1.2}
.eca-card-meta{font-size:12.5px;color:#6A6D76}
.eca-tags{display:block;overflow:hidden;font-size:12px;color:var(--eca-charcoal)}
.eca-more{color:#6A6D76} /* CONTENT-049: "+2 more" reads as a count, not a product */
/* FG2-02: one span per tag; the separator dot sits in each tag's 10px gutter, and the list is pulled 10px left inside a
   clipping box, so the dot that would start a line is hidden: no line starts or ends on a dot. "+2 more" sits inside the
   last tag (nowrap), so the count never drops onto a line of its own. A tag wider than the line wraps instead of being cut. */
.eca-tags__l{display:flex;flex-wrap:wrap;margin-left:-10px}
.eca-tag,.eca-more{position:relative;padding-left:10px}
.eca-more{white-space:nowrap}
.eca-tag::before,.eca-more::before{content:"\00B7";position:absolute;left:3px}
/* FG2-03: a wordmark at least 2.2 times wider than tall gets a wide tile (directory.js and card_html() set the class) */
.eca-card-logo--wide{flex-basis:clamp(52px,30%,104px);width:clamp(52px,30%,104px)}
/* validity line and empty state (design audit 27 Sep 2026): theme-independent fallbacks; the theme restyles both */
.eca-card-valid{display:flex;align-items:center;gap:6px;font-size:12px;color:#6A6D76}
.eca-card-valid svg{width:12px;height:12px;flex:none;fill:currentColor}
.eca-dir-empty{grid-column:1/-1;padding:28px;border:1px dashed var(--eca-line);border-radius:14px;text-align:center;color:#6A6D76}
.eca-dir-reset{margin-top:12px;font:inherit;font-weight:600;padding:10px 20px;border:0;border-radius:999px;background:var(--eca-peach);color:var(--eca-ink);cursor:pointer;text-decoration:none}
/* XC-03: after a typed search, the line on statuses the registry does not list, with its link to Verify */
.eca-dir-empty__x{max-width:60ch;margin:8px auto 0;font-size:14px;line-height:1.55}
.eca-dir-empty__x a{color:inherit;text-decoration:underline;text-underline-offset:2px}
/* interact-12: the Search button the filters need without JavaScript */
.eca-dir-go{font:inherit;font-weight:600;padding:10px 20px;border:0;border-radius:999px;background:var(--eca-peach);color:var(--eca-ink);cursor:pointer}
.eca-dir-pager{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;margin-top:22px}
/* FI-02: the pager is a <nav aria-label="Registry pages">, hidden while there is a single page */
.eca-dir-pager[hidden]{display:none}
/* FI-02: the count line takes focus after a page change (tabindex=-1, not a control): no ring, as on the wizard headings */
.eca-dir-count:focus{outline:none;box-shadow:none}
/* buttons from directory.js; links from the server's first paint (interact-12), styled the same */
.eca-dir-pager button,.eca-dir-pager a{font:inherit;padding:7px 13px;border:1px solid var(--eca-line);background:#fff;border-radius:999px;cursor:pointer;color:inherit;text-decoration:none}
.eca-dir-pager button[aria-current=true],.eca-dir-pager a[aria-current]{background:var(--eca-charcoal);color:#fff;border-color:var(--eca-charcoal)}
.eca-dir-pager button:disabled{opacity:.4;cursor:default}
/* verify */
.eca-verify{background:var(--eca-pale);border-radius:16px;padding:26px}
.eca-verify-form label{display:block;font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:#6A6D76;margin-bottom:8px}
.eca-verify-row{display:flex;gap:8px}
.eca-verify-row input{flex:1;font:inherit;padding:13px 15px;border:1px solid var(--eca-line);border-radius:10px;background:#fff}
.eca-verify-row button{font:inherit;font-weight:600;padding:13px 22px;border:0;border-radius:10px;background:var(--eca-charcoal);color:#fff;cursor:pointer}
.eca-verify-out{margin-top:16px}
.eca-result{border-radius:12px;padding:18px 20px;border:1px solid var(--eca-line);background:#fff}
.eca-result h4{margin:0 0 10px;font-family:'Archivo',sans-serif;font-size:18px}
.eca-result.valid{border-left:4px solid #3f8f6b}
.eca-result.expired{border-left:4px solid #b9782a}
.eca-result.revoked{border-left:4px solid #b5493f}
.eca-result.not_found{border-left:4px solid #6A6D76}
.eca-result.previous,.eca-result.multiple{border-left:4px solid #4C4E56}
.eca-result dl{display:grid;grid-template-columns:auto 1fr;gap:6px 16px;margin:0;font-size:14px}
.eca-result dt{color:#6A6D76}
.eca-result dd{margin:0;font-weight:500}
.eca-state{display:inline-block;font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;padding:3px 10px;border-radius:999px;margin-bottom:10px}
.eca-state.valid{background:#e3f2ea;color:#2f6d51}
.eca-state.expired{background:#f7ecd9;color:#8a5a1c}
.eca-state.revoked{background:#f7e0dd;color:#8f382f}
.eca-state.not_found{background:#eceded;color:#555}
.eca-state.previous,.eca-state.multiple{background:#D6E2F2;color:#4C4E56}

/* a11y: programmatic focus targets (wizard step headings + done panel) should not show a stray ring */
.eca-step:focus,.eca-step__t:focus,.eca-step h2:focus,.eca-step h3:focus,.eca-step legend:focus,#eca-apply-done:focus{outline:none}

/* ECA, 18 November 2026: the card is a div. The name is its one link to the company page, stretched over the whole
   card; the phone and website links sit above that stretch. The focus ring goes round the card, as before. */
.eca-card{position:relative}
.eca-card-link{color:inherit;text-decoration:none}
.eca-card-link::after{content:"";position:absolute;inset:0;border-radius:inherit;z-index:1}
.eca-card-link:focus-visible{outline:none;box-shadow:none}
.eca-card:has(.eca-card-link:focus-visible){outline:2px solid #4C4E56;outline-offset:2px}
.eca-card-contact{display:flex;flex-wrap:wrap;gap:4px 14px;margin-top:4px}
.eca-card-c{position:relative;z-index:2;display:inline-flex;align-items:center;gap:6px;max-width:100%;font-size:12.5px;line-height:1.4;color:#4C4E56;text-decoration:none;overflow-wrap:anywhere}
.eca-card-c:hover{text-decoration:underline}
.eca-card-c svg{width:12px;height:12px;flex:none;fill:currentColor}
