/* Compact search: two field rows plus a full-width search footer on mobile, one row on larger screens. */
#n2-preview{--n2-blue:#3d5666;--n2-ink:#172126;--n2-muted:#586a75;--n2-line:#d7e0e5;--n2-tint:#eef3f5}
#n2-preview [hidden],#n2-preview .n2-main [hidden]{display:none!important}
#n2-preview .n2-main{padding:0!important;background:white!important;color:var(--n2-ink)!important}
#n2-preview .n2-heading{margin:0 0 24px!important;padding:0!important;border:0!important;background:none!important;position:static!important;text-align:left}
#n2-preview .n2-heading h1{font-size:32px!important;line-height:1.2!important;letter-spacing:-.035em!important;margin:0 0 8px!important;font-weight:650!important}
#n2-preview .n2-heading p{font-size:15px!important;line-height:1.6!important;color:var(--n2-muted)!important;margin:0!important}
#n2-preview .n2-search-area{padding:32px 0 0;background:white;position:relative;z-index:4}
#n2-preview #n2-form{display:block!important;position:relative!important;width:100%!important;max-width:none!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:none!important;overflow:visible!important;height:auto!important;text-align:left}
#n2-preview .n2-fields{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr) 52px;align-items:center;border:1px solid #b8c9d3;border-radius:10px;background:white;position:relative}
#n2-preview .n2-fields:focus-within{border-color:var(--n2-blue);box-shadow:0 0 0 3px #3d566612}
#n2-preview .n2-field{min-width:0;position:relative}
#n2-preview .n2-field>label{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important}
#n2-preview .n2-input{min-height:48px;display:flex;align-items:center;gap:10px;padding:0 14px;color:var(--n2-muted)}
#n2-preview #n2-form input{flex:1!important;min-width:0!important;width:100%!important;height:2.75em!important;min-height:44px!important;border:0!important;border-radius:0!important;padding:0!important;margin:0!important;background:transparent!important;color:var(--n2-ink)!important;font-family:inherit!important;font-size:16px!important;line-height:1.5!important;outline:0!important;box-shadow:none!important;text-overflow:ellipsis}
#n2-preview #n2-form input::placeholder{color:#687c89!important;opacity:1!important}
#n2-preview .n2-main svg{display:block;width:19px;height:19px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.65}
#n2-preview :where(.n2-main button),#n2-preview :where(.n2-main select){font-family:inherit!important;font-size:14px!important;font-weight:500;line-height:1.4!important;color:var(--n2-ink)!important;background:#fff!important;box-shadow:none!important;width:auto!important;text-transform:none!important;letter-spacing:normal!important;min-width:0;cursor:pointer}
#n2-preview .n2-main button span,#n2-preview .n2-main button strong{color:inherit!important}
#n2-preview .n2-main :is(button,select,summary,a):focus-visible{outline:3px solid var(--n2-blue)!important;outline-offset:3px}
#n2-preview .n2-location{border-left:1px solid var(--n2-line)}
#n2-preview #n2-radius:disabled{color:#687c89!important;cursor:default;opacity:1}
#n2-preview .n2-submit{display:flex!important;align-items:center;justify-content:center;width:44px!important;height:44px!important;min-height:44px!important;padding:0!important;border:0!important;border-radius:7px!important;margin:0!important;justify-self:center;background:var(--n2-blue)!important;color:#fff!important}
#n2-preview .n2-submit:hover{background:#2d4554!important}
#n2-preview .n2-submit-label{display:none}
#n2-preview .n2-place-actions{display:flex;flex-direction:column;gap:2px}
#n2-preview .n2-gps,#n2-preview .n2-clear{display:flex;align-items:center;gap:8px;min-height:44px!important;padding:8px 10px!important;border:0!important;border-radius:7px!important;margin:0!important;color:var(--n2-blue)!important;text-align:left;white-space:normal}
#n2-preview .n2-gps:hover,#n2-preview .n2-clear:hover{background:var(--n2-tint)!important}
#n2-preview .n2-clear svg{width:16px;height:16px}
#n2-preview #n2-form-message{margin:10px 0 0!important;font-size:13px!important;line-height:1.5!important;color:var(--n2-blue)!important}
#n2-preview #n2-form-message[data-kind=error]{font-weight:600!important;color:#963e35!important}
#n2-preview #n2-place-panel{position:absolute;top:calc(100% + 8px);left:0;right:0;min-width:0;box-sizing:border-box;border:1px solid var(--n2-line);box-shadow:0 8px 24px #17212614;padding:8px;background:#fff;border-radius:10px;z-index:25;text-align:left;max-height:min(440px,55svh);overflow-y:auto;overscroll-behavior:contain}
#n2-preview .n2-selected-place{display:flex;align-items:center;gap:10px;padding:10px 10px 12px;margin-bottom:4px;border-bottom:1px solid var(--n2-line);color:var(--n2-blue)}
#n2-preview .n2-selected-place>span{min-width:0}
#n2-preview .n2-selected-place small{display:block;font-size:12px;line-height:1.5;color:var(--n2-muted)}
#n2-preview .n2-selected-place strong{display:block;font-size:15px;line-height:1.5;font-weight:600;color:var(--n2-ink);overflow-wrap:anywhere}
#n2-preview .n2-suggestion-label{margin:4px 10px!important;font-size:12px!important;font-weight:500!important;color:var(--n2-muted)!important}
#n2-preview #n2-place-list{max-height:240px;overflow-y:auto}
#n2-preview .n2-option{display:flex;align-items:center;gap:11px;padding:10px;border-radius:7px;min-height:58px;cursor:pointer}
#n2-preview .n2-option>span{flex:1;min-width:0;overflow-wrap:anywhere}
#n2-preview .n2-option strong{display:block;font-size:15px;line-height:1.4;font-weight:600;color:var(--n2-ink)}
#n2-preview .n2-option small{display:block;font-size:12px;line-height:1.5;color:var(--n2-muted);margin-top:2px}
#n2-preview .n2-option>svg{color:#647b89}
#n2-preview .n2-option>svg:last-child{width:15px}
#n2-preview .n2-option:hover,#n2-preview .n2-option[aria-selected=true]{background:var(--n2-tint)}
#n2-preview .n2-no-place{font-size:13px!important;color:var(--n2-muted);padding:10px;line-height:1.5}
#n2-preview .n2-attribution{margin:10px 8px 4px;padding-top:8px;font-size:12px;line-height:1.6;color:var(--n2-muted)}
#n2-preview .n2-attribution a{color:var(--n2-muted);text-decoration:underline;text-underline-offset:3px}
#n2-preview .n2-filters{padding:12px 0 0;text-align:left}
#n2-preview .n2-filters>summary{display:flex;align-items:center;gap:8px;width:fit-content;min-height:44px;padding:8px 14px;border:1px solid var(--n2-line);border-radius:24px;cursor:pointer;font-size:14px;list-style:none;box-sizing:border-box}
#n2-preview summary::-webkit-details-marker{display:none}
#n2-preview .n2-filters[open]>summary{background:var(--n2-tint)}
#n2-preview .n2-filter-options{display:flex;align-items:end;flex-wrap:wrap;gap:16px;padding-top:16px}
#n2-preview .n2-filter-options label{display:grid!important;gap:6px;flex:1;min-width:180px!important;font-size:13px!important;line-height:1.5!important;margin:0!important;color:var(--n2-muted)!important}
#n2-preview .n2-filter-options select{height:44px!important;width:100%!important;max-width:100%!important;border:1px solid var(--n2-line)!important;border-radius:8px!important;margin:0!important;padding:0 12px!important}
#n2-preview .n2-reset{min-height:44px!important}
#n2-preview #n2-distance-info{position:relative;color:var(--n2-muted);font-size:13px;flex:0 0 auto}
#n2-preview #n2-distance-info summary{display:flex;gap:6px;align-items:center;justify-content:end;cursor:pointer;list-style:none;min-height:44px}
#n2-preview #n2-distance-info svg{width:16px;height:16px}
#n2-preview #n2-distance-info #n2-result-context{position:absolute;right:0;top:100%;z-index:5;width:min(300px,calc(100vw - 48px));box-sizing:border-box;background:white;border:1px solid var(--n2-line);border-radius:10px;box-shadow:0 6px 18px #17212614;padding:14px;margin:0!important;font-size:13px!important;line-height:1.6!important;text-align:left}
#n2-preview .n2-result-sources{margin:24px 0 0}
#n2-preview .n2-unlocated{font-size:13px;line-height:1.6;color:var(--n2-muted);padding:16px 0;margin:0}
#n2-preview #n2-without-origin{border:0!important;text-decoration:underline;padding:8px!important;min-height:44px!important}
#n2-preview .n2-possible{padding-top:16px}
#n2-preview .n2-possible h3{font-size:17px!important}
#n2-preview .n2-possible>p{font-size:13px!important;line-height:1.6}
#n2-preview.sheshi-home #n2-form{margin-top:28px!important}
#n2-preview .n2-results{padding:23px 0 56px}
#n2-preview #n2-results-status{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;min-height:clamp(280px,44svh,440px);padding:40px 20px;box-sizing:border-box;text-align:center}
#n2-preview #n2-loading-text{max-width:34em;margin:0!important;font-size:16px!important;line-height:1.6!important;color:var(--n2-muted)!important}
#n2-preview .n2-spinner{display:block;width:36px;height:36px;box-sizing:border-box;border:3px solid var(--n2-line);border-top-color:var(--n2-blue);border-radius:50%;animation:n2-spin .8s linear infinite}
#n2-preview #n2-retry{min-height:44px;padding:10px 18px;border:1px solid var(--n2-line)!important;border-radius:8px!important;color:var(--n2-blue)!important}
@keyframes n2-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){#n2-preview .n2-spinner{animation:none}}
#n2-preview #n2-applied{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-bottom:0}
#n2-preview #n2-applied:not(:empty){margin-bottom:20px}
#n2-preview .n2-filter-chip{display:flex;align-items:center;gap:9px;border:1px solid var(--n2-line)!important;border-radius:30px!important;padding:7px 11px!important;min-height:34px!important;background:var(--n2-tint)!important;font-size:12px!important;margin:0!important}
#n2-preview .n2-filter-chip svg{width:13px;height:13px}
#n2-preview .n2-reset{border:0!important;padding:6px!important;color:var(--n2-blue)!important;font-size:12px!important;margin:0!important}
#n2-preview .n2-results-toolbar{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:14px;padding-bottom:12px}
#n2-preview #n2-count{font-size:18px!important;font-weight:650!important;line-height:1.4!important;margin:0!important}
#n2-preview #n2-sort{font-size:12px;color:var(--n2-muted);text-align:right}
#n2-preview #n2-result-context{font-size:11px!important;color:var(--n2-muted)!important;line-height:1.5!important;margin:0 0 12px!important}
#n2-preview #n2-result-context:empty{display:none}
#n2-preview #n2-results-list:not(:empty){border-top:1px solid var(--n2-line)}
/* Rows grow with their content: the legacy ui-0251 card clamp (height/overflow) would cut the lower padding away. */
#n2-preview .n2-result{margin:0!important;padding:19px 0!important;height:auto!important;min-height:106px!important;overflow:visible!important;grid-template-columns:44px minmax(0,1fr) 24px!important;gap:17px!important;border-radius:0!important;background:white!important;box-shadow:none!important}
#n2-preview .n2-result .sheshi-result-title-row{display:flex!important;align-items:baseline!important;justify-content:flex-start!important;flex-wrap:wrap!important;gap:6px 14px!important}
#n2-preview .n2-result h2{font-size:18px!important;line-height:1.35!important;margin:0!important;font-weight:650!important;letter-spacing:-.02em}
#n2-preview .n2-distance{color:var(--n2-blue)!important;font-size:13px;font-weight:600;white-space:nowrap}
#n2-preview .n2-result .sheshi-result-facts{display:flex!important;align-items:center;flex-wrap:wrap;gap:5px 8px!important;font-size:12px!important;line-height:1.45!important;margin:7px 0 5px!important;color:var(--n2-muted)!important}
#n2-preview .n2-result .sheshi-result-description{font-size:13px!important;line-height:1.5!important;color:#455a67!important;margin:0!important}
#n2-preview .n2-result .sheshi-category-icon{display:flex!important}
#n2-preview .n2-suggest{display:flex;justify-content:space-between;flex-wrap:wrap;gap:16px;margin-top:30px;padding-top:24px;border-top:1px solid var(--n2-line);font-size:13px;color:var(--n2-muted)}
#n2-preview .n2-suggest a{color:var(--n2-blue);font-weight:600}
#n2-preview #n2-more{display:block;border:1px solid var(--n2-line)!important;border-radius:8px!important;margin:24px auto 0!important;padding:13px 22px!important;min-height:46px!important}
#n2-preview .n2-empty{padding:34px 0;text-align:center}
#n2-preview .n2-empty h3{font-size:21px;margin:0 0 9px}
#n2-preview .n2-empty p{font-size:14px;color:var(--n2-muted)}
/* Rows also render on the homepage, outside the legacy search/archive scopes. */
#n2-preview .n2-result{position:relative!important;display:grid!important;align-items:center;border:0!important;border-bottom:1px solid var(--n2-line)!important;transform:none!important}
#n2-preview .n2-result .sheshi-result-card-hitarea{position:absolute!important;inset:0;z-index:1}
#n2-preview .n2-result .sheshi-result-card-hitarea:focus-visible{outline:3px solid var(--n2-blue);outline-offset:-3px}
#n2-preview .n2-result .sheshi-category-icon{grid-column:1;grid-row:1}
#n2-preview .n2-result .sheshi-result-body{min-width:0!important;grid-column:2;grid-row:1}
#n2-preview .n2-result .sheshi-result-row-arrow{grid-column:3;grid-row:1;justify-self:end;align-self:center}
#n2-preview .n2-result .sheshi-result-facts span+span::before{display:none!important;content:none!important}
@media(max-width:767px){
 #n2-preview .n2-result .sheshi-result-body{grid-column:1!important;grid-row:1!important}
 #n2-preview .n2-result .sheshi-result-row-arrow{grid-column:2!important;grid-row:1!important}
}
#n2-preview .n2-result .sheshi-result-title-row h2{order:0!important}
#n2-preview .n2-result .sheshi-result-title-row .n2-distance{order:1!important}
#n2-preview .n2-demo-tag{font-size:9px;color:#667985;font-weight:400;padding-left:2px}

/* Distance: a stable secondary column, independent of the profile title length. */
#n2-preview .n2-result .sheshi-result-title-row{
 display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;
 column-gap:24px!important;align-items:baseline!important
}
#n2-preview .n2-result .sheshi-result-title-row h2{min-width:0!important;overflow-wrap:anywhere}
#n2-preview .n2-result .n2-distance{
 justify-self:end;min-width:64px;text-align:right;font-size:14px!important;
 font-weight:500!important;font-variant-numeric:tabular-nums;color:#586a75!important
}
#n2-preview .n2-distance-unit{font-weight:400;color:inherit}
@media(max-width:767px){
 #n2-preview .n2-result .sheshi-result-title-row{column-gap:16px!important}
 #n2-preview .n2-result .n2-distance{min-width:53px;font-size:13px!important}
}
@media(min-width:1024px){#n2-preview .n2-fields{max-width:760px}}
@media(max-width:767px){
 #n2-preview .n2-heading{margin-bottom:20px!important}
 #n2-preview .n2-heading h1{font-size:27px!important}
 #n2-preview .n2-heading p{font-size:14px!important}
 #n2-preview .n2-search-area{padding-top:24px}
 #n2-preview .n2-results{padding-top:20px}
 #n2-preview .n2-result{grid-template-columns:minmax(0,1fr) 18px!important;gap:9px!important;padding:17px 0!important;min-height:98px!important;height:auto!important}
 #n2-preview .n2-result .sheshi-category-icon{display:none!important}
 #n2-preview .n2-result h2{font-size:16px!important}
 #n2-preview .n2-result .sheshi-result-facts{font-size:12px!important;gap:4px 6px!important}
 #n2-preview .n2-result .sheshi-result-description{font-size:13px!important;white-space:normal!important;display:-webkit-box!important;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden!important}
 #n2-preview .n2-filter-options{gap:12px}
 #n2-preview .n2-filter-options label{flex-basis:100%}
 #n2-preview #n2-place-list{max-height:195px}
}
@media(max-width:767px){
 /* Mobile: term and place as equal icon rows, a full-width search footer flush with the frame. */
 #n2-preview .n2-fields{grid-template-columns:minmax(0,1fr)}
 #n2-preview .n2-query{grid-column:1;grid-row:1;border-bottom:1px solid var(--n2-line)}
 #n2-preview .n2-location{grid-column:1;grid-row:2;border-left:0}
 #n2-preview .n2-submit{grid-column:1;grid-row:3;justify-self:stretch;gap:8px;width:100%!important;height:46px!important;min-height:46px!important;border-radius:0 0 9px 9px!important;font-size:15px!important;font-weight:600!important}
 #n2-preview .n2-main .n2-submit svg{width:17px;height:17px}
 #n2-preview .n2-submit-label{display:inline}
 #n2-preview .n2-input{min-height:44px;padding:0 12px;gap:8px}
 #n2-preview .n2-option{padding:8px;gap:0}
 #n2-preview .n2-option>svg{display:none}
 #n2-preview .n2-location{position:static}
 #n2-preview #n2-place-panel{left:0;right:0;width:auto;padding:8px}
 #n2-preview .n2-suggestion-label{margin:4px 8px!important}
 #n2-preview #n2-place-panel .n2-attribution{margin:8px 8px 2px;font-size:11px;overflow-wrap:anywhere}
}
@media(max-width:600px){
 #n2-preview .n2-large-text .n2-input{padding:0 6px}
 #n2-preview .n2-large-text .n2-result .sheshi-result-title-row{grid-template-columns:minmax(0,1fr)!important;row-gap:4px!important}
 #n2-preview .n2-large-text .n2-result .n2-distance{justify-self:start;text-align:left}
 #n2-preview .n2-large-text .n2-result h2{hyphens:auto}
}

/* Geolocation stays visible in the place menu until it resolves. */
#n2-preview .n2-gps:disabled{opacity:1;cursor:progress}
#n2-preview .n2-gps-spinner{display:block;flex:0 0 16px;width:16px;height:16px;border:2px solid var(--n2-line);border-top-color:var(--n2-blue);border-radius:50%;animation:n2-spin .8s linear infinite}
#n2-preview #n2-gps-feedback{margin:8px 10px;font-size:13px;line-height:1.5;color:var(--n2-muted);overflow-wrap:anywhere}
#n2-preview #n2-gps-feedback[data-kind=error]{color:#963e35}
@media(prefers-reduced-motion:reduce){#n2-preview .n2-gps-spinner{animation:none}}
#n2-preview .n2-gps-cancel{border:0;padding:8px 10px;min-height:44px;color:var(--n2-blue)!important;text-decoration:underline}
