/* Shared project navigation, above the contextual breadcrumb. */
.cardata-site-header{display:flex;align-items:center;justify-content:flex-start;gap:30px;min-height:57px;border-bottom:1px solid #e2e8e1;margin:0 0 7px}
.cardata-site-logo{color:#2c4736;font:600 17px/1.1 Georgia,serif;letter-spacing:.09em;text-decoration:none;white-space:nowrap}
.cardata-site-products{display:flex;align-items:center;gap:clamp(12px,2vw,22px);flex-wrap:wrap}
.cardata-site-products a,.cardata-site-products span{font:600 11px/1.3 -apple-system,BlinkMacSystemFont,"Helvetica Neue",Arial,sans-serif;letter-spacing:.07em;text-decoration:none;white-space:nowrap}
.cardata-site-products a{color:#355d43;border-bottom:2px solid #355d43;padding:8px 0 6px}
.cardata-site-products span{color:#a9b4ab;cursor:default}
@media(max-width:650px){.cardata-site-header{min-height:50px;gap:9px}.cardata-site-logo{font-size:14px}.cardata-site-products{gap:9px}.cardata-site-products a,.cardata-site-products span{font-size:9px;letter-spacing:.02em}}
/* Search page uses a wider existing wrapper, without recreating the old masthead. */
.cardata-index-navigation,.cardata-index-preferences{max-width:1100px;width:calc(100% - 40px);margin:0 auto}
.cardata-index-preferences{display:flex;justify-content:flex-end;padding:6px 0}
@media(max-width:650px){.cardata-index-navigation,.cardata-index-preferences{width:calc(100% - 22px)}}

/* Display controls stay anchored to the upper-right of the primary header. */
.cardata-site-header>.cardata-display-preferences{margin-left:auto}
/* Universal autocomplete between primary navigation and contextual breadcrumbs. */
.cardata-quicksearch{position:relative;z-index:30;margin:10px 0 7px}
.cardata-quicksearch-field{height:38px;display:flex;align-items:center;gap:9px;border:1px solid #e0e7df;border-radius:9px;background:#fff;padding:0 12px;color:#809286}
.cardata-quicksearch-field:focus-within{border-color:#96aa9b;box-shadow:0 0 0 2px #edf2ed}
.cardata-quicksearch input{flex:1;min-width:0;border:0;outline:0;background:transparent;font:13px -apple-system,BlinkMacSystemFont,"Helvetica Neue",Arial,sans-serif;color:#2c4736}
.cardata-quicksearch button{border:0;background:transparent;color:#77897c;cursor:pointer;font-size:17px}
.cardata-search-results{position:absolute;left:0;right:0;top:calc(100% + 5px);background:#fff;border:1px solid #dce6dc;border-radius:11px;box-shadow:0 15px 35px #263e3020;max-height:min(65vh,490px);overflow:auto;padding:5px}
.cardata-search-results[hidden]{display:none}
.cardata-search-result{display:grid;grid-template-columns:86px 1fr;gap:0 10px;padding:9px 10px;text-decoration:none;color:#2c4635;border-radius:7px}
.cardata-search-result:hover{background:#f3f7f2}
.cardata-search-result small{grid-row:span 2;font-size:10px;color:#829486;padding-top:3px}
.cardata-search-result strong{font-size:12px;font-weight:600}
.cardata-search-result span{font-size:11px;color:#7d8d80}
.cardata-search-result.unavailable{opacity:.62}
.cardata-search-empty{padding:12px;font-size:12px;color:#87988a}
@media(max-width:650px){.cardata-quicksearch{margin:8px 0 5px}.cardata-quicksearch-field{height:36px}.cardata-search-result{grid-template-columns:70px 1fr;gap:0 7px;padding:10px 7px}}

/* Search results: category kept, vehicle thumbnail beside its identification. */
.cardata-search-result.has-thumb{grid-template-columns:72px 69px minmax(0,1fr);align-items:center;gap:0 10px}
.cardata-search-result.has-thumb .cardata-search-thumb{grid-column:1;grid-row:1 / span 2;display:flex;align-items:center;justify-content:center;width:72px;height:48px}
.cardata-search-result.has-thumb .cardata-search-thumb img{width:100%;height:100%;object-fit:contain}
.cardata-search-result.has-thumb small{grid-column:2;grid-row:1 / span 2}
.cardata-search-result.has-thumb strong{grid-column:3;grid-row:1}
.cardata-search-result.has-thumb>span:last-child{grid-column:3;grid-row:2}
@media(max-width:650px){
 .cardata-search-result.has-thumb{grid-template-columns:60px 52px minmax(0,1fr);gap:0 6px}
 .cardata-search-result.has-thumb .cardata-search-thumb{width:60px;height:40px}
}

/* Home and interior pages share exactly the same horizontal container. */
.cardata-index-navigation{width:min(100% - 40px,918px);max-width:918px;margin:0 auto}
@media(max-width:850px){.cardata-index-navigation{width:min(100% - 26px,918px)}}
@media(max-width:650px){.cardata-index-navigation{width:calc(100% - 22px)}}

/* Match the reserved vertical scrollbar gutter used by inner CARDATA pages. */
html:has(.cardata-index-navigation){scrollbar-gutter:stable}

/* Reversible contrast trial: search result metadata only. */
.cardata-search-result span{color:#718277}
/* Mobile: navigation can shrink without pushing language/unit preferences off-screen. */
@media(max-width:650px){
 .cardata-site-header{gap:7px;min-width:0}
 .cardata-site-products{flex:1 1 auto;min-width:0;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}
 .cardata-site-products::-webkit-scrollbar{display:none}
 .cardata-site-header>.cardata-display-preferences{flex:0 0 auto;min-width:0}
}

/* Shared account access; no authentication is simulated in the public UI. */
.cardata-account-actions{display:flex;align-items:center;gap:11px;margin-left:auto;white-space:nowrap}
.cardata-account-actions a{font:600 11px/1.3 -apple-system,BlinkMacSystemFont,"Helvetica Neue",Arial,sans-serif;color:#355d43;text-decoration:none}
.cardata-account-actions a:hover{text-decoration:underline}
.cardata-site-header>.cardata-account-actions+.cardata-display-preferences{margin-left:0}
@media(max-width:850px){.cardata-site-header{flex-wrap:wrap}.cardata-account-actions{margin-left:auto;gap:8px}.cardata-site-header>.cardata-account-actions+.cardata-display-preferences{margin-left:0}}
@media(max-width:650px){.cardata-account-actions{order:3;width:100%;justify-content:flex-end;padding-bottom:7px}.cardata-site-header>.cardata-display-preferences{margin-left:auto}}
/* Account actions: right aligned, directly before language and display controls. */
.cardata-site-header>.cardata-account-actions{margin-left:auto;display:flex;align-items:center;gap:8px;flex:0 0 auto;white-space:nowrap}
.cardata-site-header>.cardata-account-actions a{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:7px 13px;border:1px solid transparent;border-radius:7px;font:600 12px/1.2 -apple-system,BlinkMacSystemFont,"Helvetica Neue",Arial,sans-serif;text-decoration:none;color:#365b41;transition:background .15s,border-color .15s}
.cardata-site-header>.cardata-account-actions a:hover{background:#edf3ed;text-decoration:none}
.cardata-site-header>.cardata-account-actions a[href*="action=register"]{background:#365b41;color:#fff;border-color:#365b41}
.cardata-site-header>.cardata-account-actions a[href*="action=register"]:hover{background:#294a33}
.cardata-site-header>.cardata-account-actions+.cardata-display-preferences{margin-left:0;flex:0 0 auto}
@media(max-width:650px){.cardata-site-header>.cardata-account-actions{order:initial;width:auto;padding-bottom:0;gap:3px;margin-left:auto}.cardata-site-header>.cardata-account-actions a{padding:6px 8px;min-height:31px;font-size:10px}.cardata-site-header>.cardata-account-actions+.cardata-display-preferences{margin-left:0}}
/* CARVALUE: a full-size navigation hit target on listing pages and all shared headers. */
.cardata-site-products>a[href="/carvalue.php"]{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:10px 8px 8px;position:relative;z-index:2;cursor:pointer;pointer-events:auto;touch-action:manipulation}
.cardata-site-products>a[href="/carvalue.php"]:focus-visible{outline:2px solid #365b41;outline-offset:3px;border-radius:4px}
@media(max-width:650px){.cardata-site-products>a[href="/carvalue.php"]{min-height:38px;padding:9px 5px}}
.cardata-account-actions .cardata-logout-form{margin:0;display:inline-flex}.cardata-account-actions .cardata-logout-form button{border:0;background:transparent;color:#365b41;font:600 12px/1.2 -apple-system,BlinkMacSystemFont,Arial,sans-serif;padding:8px 12px;cursor:pointer;border-radius:7px}.cardata-account-actions .cardata-logout-form button:hover{background:#edf3ed}
