/* Reading-first shell. No fixed, footer, detail or reserved advertising. */
html:has(body[data-reading-shell]){height:100%;scroll-behavior:auto}
body[data-reading-shell]{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) auto;block-size:100vh;block-size:var(--reading-height,100dvh);min-block-size:0;min-inline-size:0;margin:0;overflow:hidden}
body[data-reading-shell]>header{position:relative;min-block-size:0;min-inline-size:0;padding:.4rem .65rem;z-index:8}
body[data-reading-shell]>header .header-inner{width:100%;min-height:0;display:flex;align-items:center;justify-content:space-between;gap:.5rem;padding:0}
body[data-reading-shell]>header .brand{min-width:0;font-size:1rem;white-space:normal;overflow-wrap:anywhere;flex:1 1 auto}
body[data-reading-shell]>header .brand-sub,body[data-reading-shell]>header .brand-descriptor{display:none}
body[data-reading-shell]>header .brand>img{width:88px;height:auto;max-width:100%;object-fit:contain}
body[data-reading-shell]>main{width:100%;max-width:none;margin:0;min-height:0;min-width:0;overflow:auto;overscroll-behavior-y:contain;scrollbar-gutter:stable;scroll-padding-block:.5rem;padding:0}
body[data-reading-shell="property"]>main{overflow:hidden}
body[data-reading-shell="property"] #property-scroll{height:100%;min-height:0;min-width:0;overflow:auto;overscroll-behavior-y:contain;padding:.6rem .7rem;scrollbar-gutter:stable;scroll-padding-block:.5rem}
body[data-reading-shell]>footer{position:relative;display:block;z-index:7;width:100%;height:auto;min-height:0;padding:.15rem .6rem max(.15rem,env(safe-area-inset-bottom));margin:0}
body[data-reading-shell] :is(button,select,input,summary){font-size:1rem;min-block-size:44px;line-height:1.35;max-width:100%;min-inline-size:0}
body[data-reading-shell] :is(button,summary){overflow-wrap:anywhere;white-space:normal}
body[data-reading-shell] a{overflow-wrap:anywhere}
body[data-reading-shell] :is(button,a,select,input,summary):focus-visible{outline:3px solid #a47822;outline-offset:2px}
body[data-reading-shell] :is(#art-scroll,#property-scroll):focus-visible{outline:3px solid #a47822;outline-offset:-3px}
.reading-menu{min-inline-size:0;flex:0 1 auto}
.reading-menu>summary{display:flex;align-items:center;justify-content:center;gap:.35rem;min-height:44px;padding:.5rem .7rem;border:1px solid #7b947e;border-radius:.5rem;background:#e6eee2;color:#173e36;font-weight:750;cursor:pointer;list-style:none;max-width:12rem}
.reading-menu>summary::-webkit-details-marker{display:none}
.reading-menu>summary::after{content:'⌄';flex:none}
.reading-menu[open]>summary::after{content:'⌃'}
.reading-menu .reading-panel{position:fixed;inset:.5rem;inset-block-end:max(.5rem,env(safe-area-inset-bottom));z-index:40;overflow:auto;overscroll-behavior:contain;margin:0 auto;padding:1rem;max-width:58rem;background:#fffef9;color:#183c35;border:2px solid #47694e;border-radius:.75rem;box-shadow:0 14px 50px #142b364d;scroll-padding-block:1rem}
.reading-menu:not([open])>.reading-panel{display:none}
.reading-panel-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:.6rem;flex-wrap:wrap;margin-bottom:1rem}
.reading-panel-heading h2{font-size:1.1rem;line-height:1.4;margin:.25rem 0;overflow-wrap:anywhere}
.reading-panel-heading button{flex-shrink:0;background:#173e36;color:#fff;border:1px solid #173e36;border-radius:.5rem;padding:.45rem .75rem}
.reading-panel :is(input,select){width:100%;padding:.6rem;font-size:1rem;line-height:1.4}
.reading-panel :is(.search-field,.select-field,label){min-width:0;max-width:100%}
.reading-panel label{display:block;font-size:1rem;line-height:1.5;margin-bottom:.3rem;overflow-wrap:anywhere}
.reading-panel nav{display:flex;gap:.65rem;flex-wrap:wrap;margin-bottom:.8rem}
.reading-panel nav a{display:inline-flex;align-items:center;min-height:44px;padding:.4rem}
.reading-panel .viewport-intro,.reading-panel .section-heading{display:block;width:100%;padding:0;margin:.7rem 0}
.reading-panel .viewport-intro h1{font-size:1.2rem;line-height:1.5}
.reading-panel .section-heading :is(h2,.snapshot-badge){font-size:1rem;white-space:normal}
.reading-panel .search-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;margin-top:1rem}
.reading-panel .filter-row,.reading-panel .shortlist-controls{display:flex;align-items:flex-start;flex-wrap:wrap;gap:.6rem;margin-top:1rem}
.reading-panel .category-filters{display:flex;flex-wrap:wrap;gap:.5rem}
.reading-panel .filter-button{font-size:1rem}
.reading-panel .toolbar{display:block;max-height:none;padding:0;overflow:visible;background:transparent}
.reading-panel #filters,.reading-panel #advanced{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;min-width:0;max-height:none;overflow:visible}
.reading-panel #filters>*,.reading-panel #filters>label:nth-of-type(n){grid-row:auto;grid-column:auto;align-self:auto}
.reading-panel #filters .search-label,.reading-panel #advanced{grid-column:1/-1}
.reading-panel #filters .quiet{height:auto;min-height:44px;width:auto;max-width:100%;justify-self:start;white-space:normal;grid-row:auto;grid-column:auto}
.reading-panel .section-shortcuts{display:flex;flex-wrap:wrap;gap:.5rem;margin-bottom:.7rem}
.reading-panel :is(.currency-label,.sort-label){display:block;margin:1rem 0;max-width:none}
.reading-panel .currency-label>span,.reading-panel .sort-label>.sr-only{display:block;position:static;width:auto;height:auto;overflow:visible;clip:auto;white-space:normal}
.reading-panel :is(.currency-label select,.sort-label select){width:100%;max-width:none;font-size:1rem}
.reading-panel .unknown-filter input{width:44px;min-height:44px;vertical-align:middle}
.reading-panel .footer-content{display:block;height:auto;padding:0;font-size:1rem}
.reading-panel .footer-content nav{display:flex;flex-wrap:wrap;white-space:normal;overflow:visible;height:auto;gap:.5rem}
.reading-panel .footer-content nav :is(a,button){font-size:1rem;min-height:44px;white-space:normal;padding:.45rem .6rem}
body[data-reading-shell] [hidden]{display:none!important}
body[data-reading-shell] #reading-selection{font-size:.875rem;line-height:1.5;margin:.35rem 0 .7rem;padding:.5rem;background:#edf1e6;overflow-wrap:anywhere}
body[data-reading-shell="art"] .collection-section{padding:.7rem 0 1rem}
body[data-reading-shell="art"] .collection-section>.wrap{width:calc(100% - 1.4rem);max-width:1200px}
body[data-reading-shell="art"] .results-line{margin:0 0 .6rem;font-size:.875rem;line-height:1.5}
body[data-reading-shell="art"] .collection-note{display:none}
body[data-reading-shell="art"] .art-grid{margin:0}
body[data-reading-shell="art"] .viewport-footer .wrap{width:100%}
body[data-reading-shell="art"] .viewport-footer nav{display:flex;align-items:center;justify-content:center;gap:.5rem;flex-wrap:wrap;font-size:.875rem;line-height:1.4}
body[data-reading-shell="art"] .viewport-footer nav a{display:inline-flex;align-items:center;min-height:44px;padding:.25rem .45rem}
body[data-reading-shell="art"] .viewport-footer nav>span{display:none}
body[data-reading-shell="property"] .list-heading{min-height:0;display:block;margin:0 0 .65rem;padding:0}
body[data-reading-shell="property"] .list-heading h1{font-size:1.1rem;line-height:1.4;margin:0}
body[data-reading-shell="property"] .list-heading #result-count{font-size:.875rem;line-height:1.5}
body[data-reading-shell="property"] .list-heading .search-mode-link{display:none}
body[data-reading-shell="property"] #compare-bar{padding:.2rem 0 .8rem;font-size:1rem}
body[data-reading-shell]>dialog[open]{position:fixed;inset:.5rem;margin:auto;max-width:min(60rem,calc(100vw - 1rem));max-height:calc(100dvh - 1rem);height:auto;min-height:0;overflow:auto;overscroll-behavior:contain}
body[data-reading-shell="property"]>dialog[open]{display:flex;flex-direction:column}
body[data-reading-shell]>dialog::backdrop{background:#10251f88}
body[data-reading-shell]>dialog :is(.dialog-head,.modal-header){position:sticky;top:0;z-index:4;flex-shrink:0;min-height:44px;gap:.5rem;background:#f6f8f3}
body[data-reading-shell]>dialog :is(#close-dialog,.close-button){min-width:44px;min-height:44px;flex:none}
body[data-reading-shell="property"]>dialog .modal-scroll{min-height:0;overflow:auto}
@media(max-width:640px){.reading-panel .search-row,.reading-panel #filters,.reading-panel #advanced{grid-template-columns:minmax(0,1fr)}.reading-panel #filters>*{grid-column:1!important}.reading-panel{padding:.75rem}body[data-reading-shell]>header .brand>img{width:74px}body[data-reading-shell="property"] #list{grid-template-columns:minmax(0,1fr)}body[data-reading-shell="art"] .art-grid{grid-template-columns:minmax(0,1fr)}}
@media print{body[data-reading-shell]{display:block;height:auto;overflow:visible}body[data-reading-shell]>main,body[data-reading-shell="property"] #property-scroll{height:auto;overflow:visible}body[data-reading-shell]>header,body[data-reading-shell]>footer{display:none}}

.reading-selected-value{display:block;font-size:.875rem;line-height:1.5;overflow-wrap:anywhere;margin-top:.25rem;color:#425b4b}

body[data-reading-shell]>header,body[data-reading-shell]>header .header-inner{flex-wrap:wrap}
body[data-reading-shell]>header .brand{flex-basis:5.5rem}
body[data-reading-shell] .reading-menu{max-width:100%}
/* Override legacy ID-based mobile sizes and fixed-height Art inputs. */
body[data-reading-shell] .reading-panel :is(input,select),body[data-reading-shell] .reading-panel #filters :is(input,select){height:auto;block-size:auto;min-height:44px;min-block-size:44px;font-size:1rem;line-height:1.4;padding:.6rem;width:100%}
body[data-reading-shell] .reading-panel #filters label{font-size:1rem;line-height:1.5}
body[data-reading-shell="art"] .reading-panel #search{padding-inline:44px 48px}
body[data-reading-shell="art"] .reading-panel .input-wrap>span{top:50%;transform:translateY(-50%)}
body[data-reading-shell="art"] .reading-panel .input-wrap button{top:50%;transform:translateY(-50%);height:44px;min-height:44px;width:44px}
body[data-reading-shell="property"] .reading-panel #filters #unknown-price{width:44px;min-width:44px}
body[data-reading-shell="property"] #collection-menu .toolbar:has(#advanced:not([hidden])){max-height:none;height:auto;overflow:visible}
body[data-reading-shell]>dialog::backdrop{inset:0;bottom:0}

/* Smooth actual-height chrome. Stable natural boxes prevent measurement loops. */
html:has(body[data-reading-shell]){overflow:hidden}
body[data-reading-shell]>:is(header,footer){transition:margin .18s ease-out,transform .18s ease-out,opacity .18s ease-out,visibility 0s}
body[data-reading-shell].reading-chrome-hidden>:is(header,footer){pointer-events:none;visibility:hidden;opacity:0;transition:margin .18s ease-out,transform .18s ease-out,opacity .18s ease-out,visibility 0s .18s}
body[data-reading-shell].reading-chrome-hidden>header{margin-bottom:calc(-1 * var(--reading-header-space));transform:translateY(-100%)}
body[data-reading-shell].reading-chrome-hidden>footer{margin-top:calc(-1 * var(--reading-footer-space));transform:translateY(100%)}
body[data-reading-shell].reading-chrome-immediate>:is(header,footer){transition:none}
body[data-reading-shell] :is(#art-scroll,#property-scroll){overflow-anchor:none}
body[data-reading-shell]>footer .reading-footer-nav{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,4.25rem),1fr));align-items:stretch;gap:4px;width:100%;max-width:1200px;margin-inline:auto}
body[data-reading-shell]>footer .reading-footer-nav>:is(a,button),body[data-reading-shell]>footer .reading-footer-nav>.reading-info>summary{display:flex;align-items:center;justify-content:center;min-height:44px;min-width:0;max-width:none;margin:0;padding:6px 2px;border:0;border-radius:4px;background:transparent;color:inherit;font-size:.875rem;line-height:1.4;text-align:center;text-decoration:none;white-space:normal;overflow-wrap:anywhere}
body[data-reading-shell]>footer .reading-footer-nav>.reading-info{width:100%;max-width:none}
body[data-reading-shell]>footer .reading-footer-nav>[aria-pressed="true"]{background:#e6eee2;color:#173e36;font-weight:700}
body[data-reading-shell]>footer .reading-footer-nav>button:disabled{opacity:.5;cursor:default}
@media(prefers-reduced-motion:reduce){body[data-reading-shell]>:is(header,footer){transition:none!important}}
@media print{html:has(body[data-reading-shell]){height:auto;overflow:visible}body[data-reading-shell]{height:auto;overflow:visible}}
