/* NOREVA 1.0.1 — complements the installed 1.0.0 theme without rewriting its files. */
/* The native ps_searchbar has standalone i.search and i.clear, not a submit button. */
body.noreva-site .nv-search #search_widget{position:relative;width:100%;min-width:0;max-width:100%;margin:0;padding:0;overflow:visible;float:none}
body.noreva-site .nv-search #search_widget form{display:block;position:relative;width:100%;margin:0;padding:0;line-height:1.4}
body.noreva-site .nv-search #search_widget form input[name="s"]{display:block;box-sizing:border-box;width:100%;height:48px;min-height:48px;margin:0;padding:12px 86px 12px 21px;border:1px solid transparent;border-radius:26px;background:#f6f5f3;color:#392c1d;font:400 14px/22px NorevaAssistant,Arial,sans-serif;outline-offset:2px}
body.noreva-site .nv-search #search_widget form input[name="s"]::placeholder{color:#75695e;opacity:1}
body.noreva-site .nv-search #search_widget form input[name="s"]:focus{border-color:#b9aa9b;outline:2px solid #806a59;outline-offset:2px}
body.noreva-site .nv-search #search_widget form input[type="hidden"]{display:none}
body.noreva-site .nv-search #search_widget form>i.search,
body.noreva-site .nv-search #search_widget form>i.clear{position:absolute;top:50%;bottom:auto;left:auto;transform:translateY(-50%);box-sizing:border-box;display:flex;align-items:center;justify-content:center;width:36px;height:36px;margin:0;padding:0;line-height:1;font-size:21px;color:#392c1d;border-radius:50%;cursor:pointer;z-index:1}
body.noreva-site .nv-search #search_widget form>i.search{right:7px}
body.noreva-site .nv-search #search_widget form>i.clear{right:45px;font-size:18px;display:none!important}
body.noreva-site .nv-search #search_widget form[data-nv-has-value="true"]>i.clear{display:flex!important}
body.noreva-site .nv-search #search_widget form>i.search:hover,
body.noreva-site .nv-search #search_widget form>i.clear:hover{background:#eae3dc}
body.noreva-site .nv-search #search_widget form>i:focus-visible{outline:2px solid #806a59;outline-offset:1px}
/* Also supports native template variants that use a real submit button. */
body.noreva-site .nv-search #search_widget form button[type="submit"]{position:absolute;inset:0 2px 0 auto;width:44px;height:48px;padding:0;display:flex;align-items:center;justify-content:center;border:0;border-radius:26px;background:transparent;color:#392c1d;cursor:pointer}
body.noreva-site .nv-search #search_widget form button[type="submit"] i{position:static;margin:0;padding:0;transform:none;line-height:1}
body.noreva-site .searchbar-autocomplete{min-height:0;max-height:440px;max-height:min(60vh,440px);overflow:auto;box-sizing:border-box;border:1px solid #e7ded5;border-radius:8px;background:#fff;box-shadow:0 12px 28px #392c1d14;z-index:1100}
body.noreva-site .searchbar-autocomplete li a{display:flex;align-items:center;gap:12px;padding:12px 15px;color:#392c1d}
body.noreva-site .searchbar-autocomplete li a:hover{background:#f8f5f1}
body.noreva-site .searchbar-autocomplete .autocomplete-thumbnail{width:48px;height:58px;object-fit:contain;margin:0}
/* Explicit tracks prevent the portrait images from setting the mosaic's height. */
body.noreva-site .nv-hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:minmax(0,1fr);gap:18px;height:540px;min-height:0;align-items:stretch}
body.noreva-site .nv-hero-main{display:flex;flex-direction:column;min-width:0;min-height:0;height:100%;overflow:hidden}
body.noreva-site .nv-hero-copy{flex:0 0 auto}
body.noreva-site .nv-hero-photo{position:relative;display:block;flex:1 1 0;min-width:0;min-height:0;height:auto;max-height:none;overflow:hidden}
body.noreva-site .nv-hero-photo img{position:absolute;inset:0;display:block;width:100%;height:100%;max-height:none;object-fit:cover;object-position:50% 55%}
body.noreva-site .nv-hero-side{display:grid;grid-template-rows:minmax(0,.9fr) minmax(0,1.1fr);gap:18px;min-width:0;min-height:0;height:100%}
body.noreva-site .nv-hero-small{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:minmax(0,1fr);gap:18px;min-height:0}
body.noreva-site .nv-feature{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);min-width:0;min-height:0;height:100%;overflow:hidden}
body.noreva-site .nv-feature-wide{grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:minmax(0,1fr);min-height:0}
body.noreva-site .nv-feature-copy{min-width:0;min-height:0;padding:21px 20px}
body.noreva-site .nv-feature-media{position:relative;display:block;min-width:0;min-height:0;height:100%;overflow:hidden}
body.noreva-site .nv-feature .nv-feature-media img{position:absolute;inset:0;display:block;width:100%;height:100%;min-height:0;max-height:none;object-fit:cover;object-position:50% 48%}
body.noreva-site .nv-feature-wide .nv-feature-media img{object-position:50% 52%}
body.noreva-site .nv-pill{width:auto;max-width:100%;white-space:normal}
body.noreva-site .nv-masthead{padding-top:19px;padding-bottom:19px}
@media(max-width:991px){
 body.noreva-site .nv-hero{height:auto;grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto;gap:16px}
 body.noreva-site .nv-hero-main{height:auto}
 body.noreva-site .nv-hero-photo{flex:0 0 270px;height:270px;min-height:270px;max-height:270px}
 body.noreva-site .nv-hero-side{height:auto;grid-template-rows:230px auto;gap:16px}
 body.noreva-site .nv-hero-small{grid-template-rows:auto;gap:16px}
 body.noreva-site .nv-hero-small .nv-feature{grid-template-rows:1fr 230px;height:auto}
 body.noreva-site .nv-feature-wide{min-height:0}
}
@media(max-width:767px){
 body.noreva-site .nv-masthead{padding-top:16px;padding-bottom:16px}
 body.noreva-site .nv-search #search_widget form input[name="s"]{height:46px;min-height:46px;font-size:16px;padding-top:11px;padding-bottom:11px}
 body.noreva-site .nv-search #search_widget form button[type="submit"]{height:46px}
 body.noreva-site .nv-hero{gap:14px}
 body.noreva-site .nv-hero-photo{flex-basis:230px;height:230px;min-height:230px;max-height:230px}
 body.noreva-site .nv-hero-side{grid-template-rows:205px auto;gap:14px}
 body.noreva-site .nv-hero-small{gap:14px}
 body.noreva-site .nv-hero-small .nv-feature{grid-template-rows:1fr 190px}
 body.noreva-site .nv-feature-copy{padding:20px 18px}
 body.noreva-site .nv-feature h2{font-size:21px;line-height:1.2}
 body.noreva-site .nv-pill{font-size:10px;padding:9px 12px;gap:8px}
}
@media(max-width:380px){
 body.noreva-site .nv-feature-copy{padding:17px 13px}
 body.noreva-site .nv-feature h2{font-size:19px}
 body.noreva-site .nv-hero-small .nv-feature{grid-template-rows:1fr 170px}
}
