/* Approved compact homepage. Shared catalog, dialogs and cabinet keep their styles. */
.compact-home[data-view=home] .utility{display:none}
.compact-home #home-hero.hero-directory{display:block;min-height:0;background:none;border:0;border-radius:0;padding:12px 0 18px;margin:0}
.compact-home #home-hero h1{font-size:clamp(28px,3vw,40px);font-weight:550;letter-spacing:-1.2px;line-height:1.15;margin:0 0 8px}
.compact-home #home-hero p{font-size:16px;color:var(--moss);margin:0}
.compact-home #search{gap:8px;padding:8px;background:var(--sheet);border-radius:18px;flex-wrap:nowrap}
.compact-home #search .search-field{min-width:0;border:0;padding:0 10px}
.compact-home #search .city{min-width:0;border:0;background:none;padding:0 8px;flex:0 1 210px}
.compact-home #search .city input{width:100%;min-width:0;border:0;background:none}
.compact-home #search>.dark{background:var(--lime);color:var(--ink);border:0}
.home-search-modes{display:flex;align-items:center;gap:3px;background:#edf2e6;border-radius:12px;padding:3px}
.home-search-modes button{border:0;background:none;font-size:14px;padding:9px 12px}
.home-search-modes [aria-pressed=true]{background:var(--lime)}
.home-quick-actions{display:flex;flex-wrap:wrap;gap:18px;align-items:center;margin-top:8px}
.home-quick-actions>a,.home-quick-actions>button{font-size:14px;min-height:44px;display:inline-flex;align-items:center;padding:0;border:0;background:none;text-decoration:none}
.compact-home:not([data-view=home]) .home-quick-actions{display:none}
.compact-home .search-area{margin-bottom:20px}
.compact-home #catalog-area.home-rail>.section-head{margin:12px 0 16px}
.compact-home #catalog-area.home-rail .eyebrow{display:none}
.compact-home #catalog-area.home-rail h2{font-size:24px}
.compact-home #catalog-area.home-rail #grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-flow:row;grid-auto-columns:auto;gap:20px;overflow:visible;scroll-snap-type:none;padding:0}
.compact-home #catalog-area.home-rail .card{padding:0;background:none;border:0;border-radius:0}
.compact-home #catalog-area.home-rail .card-photo{height:215px;aspect-ratio:auto;background:#fff;border-radius:16px}
.compact-home #catalog-area.home-rail .card-photo img{object-fit:contain}
.compact-home #catalog-area.home-rail .card h3{min-height:44px;margin:10px 0 4px}
.compact-home #catalog-area.home-rail .card h3 button{font-size:16px}
.compact-home #catalog-area.home-rail .card .price{font-size:23px}
.compact-home #catalog-area.home-rail .card .meta{font-size:13px;margin:5px 0}
.compact-home #services-home.services-home{background:none;border:0;padding:0;margin:34px 0}
.compact-home #services-home h2{font-size:24px}
.compact-home #services-home .service-chips{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;overflow:visible;padding:8px 0}
.compact-home #services-home .service-chip{width:auto;min-width:0;padding:0 0 12px;background:var(--sheet);border-radius:14px;text-align:left}
.compact-home #services-home .service-chip-photo{width:100%;height:auto;aspect-ratio:4/3;margin:0 0 10px;border-radius:14px 14px 0 0}
.compact-home #services-home .service-chip>span:last-child{display:block;padding:0 12px;font-size:14px;white-space:normal}
.compact-home .guide{margin-top:30px}
.compact-home .art-home{padding:24px;margin:0 0 18px;gap:24px;grid-template-columns:minmax(0,1fr) minmax(220px,.6fr)}
.compact-home .art-home h2{font-size:25px;margin:8px 0}
.compact-home .art-home p{font-size:15px;margin:8px 0}
.compact-home .art-home-actions{display:flex;flex-wrap:wrap;gap:8px}
.compact-home .art-home-actions :is(a,button){flex:1 1 140px;min-height:44px;padding:10px 14px;font-size:14px}
.compact-home .guide-grid{gap:16px}
.compact-home .guide-grid article{padding:24px;min-height:0;background:#edf1e6;color:var(--ink)}
.compact-home .guide-grid p{color:var(--moss);font-size:14px}
.compact-home .guide-grid h3{font-size:18px}
.compact-home .step-number{width:40px;height:40px;font-size:16px}
.compact-home #home-extra .home-auctions-rail{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-flow:row;overflow:visible;gap:20px}
.compact-home #home-extra .card-photo{height:160px;aspect-ratio:auto}
.compact-home #home-extra .card-photo img{object-fit:contain}
.compact-home #home-extra .home-rail-controls{display:none}
.compact-home #home-extra .home-auctions-rail:has(>.card:only-child){grid-template-columns:1fr}
.compact-home #home-extra .card:only-child{display:grid;grid-template-columns:180px minmax(0,1fr);column-gap:22px;padding:18px}
.compact-home #home-extra .card:only-child>*{grid-column:2}
.compact-home #home-extra .card:only-child .card-photo{grid-column:1;grid-row:1/span 7}
.compact-home #home-extra .card:only-child .favorite{grid-column:auto;right:12px}
@media(max-width:1000px) and (min-width:801px){.compact-home #search{flex-wrap:wrap}.home-search-modes{flex-basis:100%}.compact-home #catalog-area.home-rail #grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:800px){
.compact-home #home-hero.hero-directory{padding:10px 0 16px}.compact-home #home-hero h1{font-size:30px}.compact-home #home-hero p{font-size:14px}
.compact-home #search{flex-wrap:wrap}.home-search-modes{width:100%}.home-search-modes button{flex:1}
.compact-home #search .search-field{flex:1 0 100%}.compact-home #search .city{flex:1 1 0}.compact-home #search>.dark{width:auto;flex:0 0 auto}
.compact-home #catalog-area.home-rail #grid{grid-template-columns:1fr;gap:26px}.compact-home #catalog-area.home-rail .card-photo{height:245px}.compact-home #catalog-area.home-rail .card h3{min-height:0}
.compact-home #services-home .service-chips{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.compact-home .art-home{grid-template-columns:1fr;padding:22px;gap:12px}.compact-home .art-home-actions :is(a,button){flex-basis:130px}
.compact-home #home-extra .home-auctions-rail{grid-template-columns:1fr}.compact-home #home-extra .card:only-child{grid-template-columns:90px minmax(0,1fr);column-gap:12px}.compact-home #home-extra .card:only-child .card-photo{height:110px}
.compact-home .home-quick-actions{gap:14px}.compact-home .home-quick-actions>a,.compact-home .home-quick-actions>button{font-size:13px}
}
@media(prefers-reduced-motion:reduce){.compact-home .service-chip-photo{transition:none;transform:none!important}}

.compact-home #catalog-area.home-rail .catalog-heading-actions{flex-direction:row;align-items:center;gap:16px}
.compact-home #catalog-area.home-rail>.section-head{align-items:center}
.compact-home #catalog-area.home-rail #count{font-size:12px}
.compact-home #services-home .service-chips{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:800px){
.compact-home .header nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;overflow:visible;padding:4px}
.compact-home .header nav .section-link{min-width:0;padding:9px 4px;font-size:12px;text-align:center;justify-content:center}
.compact-home #catalog-area.home-rail .catalog-heading-actions{gap:8px;flex-wrap:wrap;justify-content:flex-end;max-width:130px}
.compact-home #catalog-area.home-rail #count{display:none}
.compact-home #catalog-area.home-rail>.section-head{gap:8px}
.compact-home #catalog-area.home-rail h2{font-size:21px}
.compact-home #services-home .service-chips{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* Artwork participates in layout: no absolute overlay or reserved blank band. */
.compact-home .art-home{display:grid;grid-template-columns:minmax(0,1fr) minmax(200px,.55fr);grid-template-areas:"copy illustration" "copy actions";align-items:center;gap:14px 28px;padding:28px;background:#f4f0e6;overflow:hidden;min-width:0}
.compact-home .art-home::before{content:none}
.compact-home .art-home[aria-labelledby=children-home-title]{background:#f5f1e5}
.compact-home .art-home-copy{grid-area:copy;min-width:0;overflow-wrap:anywhere}
.compact-home .art-home-illustration{grid-area:illustration;display:block;justify-self:center;max-width:100%;width:280px;height:160px;object-fit:contain;pointer-events:none}
.compact-home .art-home-actions{grid-area:actions;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));min-width:0;width:100%;padding:0;margin:0;gap:8px;align-self:end}
.compact-home .art-home-actions :is(a,button){min-width:0;min-height:48px;height:auto;display:flex;align-items:center;justify-content:center;text-align:center;background:var(--selection-fill);padding:10px 12px;font-size:14px;overflow-wrap:anywhere}
@media(max-width:800px){
 .compact-home .art-home{grid-template-columns:minmax(0,1fr);grid-template-areas:"illustration" "copy" "actions";padding:20px;gap:14px}
 .compact-home .art-home-illustration{width:240px;height:140px}
 .compact-home .art-home-copy .eyebrow{display:block;white-space:normal}
 .compact-home .art-home h2{font-size:24px;line-height:1.2;letter-spacing:-.6px}
 .compact-home .art-home-actions{margin-top:4px}
}

/* City selection is visible and usable on touch, mouse and keyboard. */
.compact-home #search .city{position:relative;background:#edf1e7;border-radius:12px;gap:4px}
.compact-home #search .city>span{display:none}
.compact-home #search .city input{min-height:48px;padding:8px;flex:1}
.city-toggle{flex:0 0 44px;width:44px;padding:0;border:0;background:none;font-size:24px}
.city-options{position:absolute;z-index:30;top:calc(100% + 8px);left:0;right:0;min-width:230px;max-height:280px;overflow-y:auto;overscroll-behavior:contain;background:#fff;border-radius:16px;box-shadow:0 12px 35px #20352924;padding:6px}
.city-options [role=option]{min-height:44px;padding:11px 12px;border-radius:10px;cursor:pointer;font-size:14px}
.city-options [role=option]:hover,.city-options [aria-selected=true]{background:#e5efcf}
.city-options p{padding:8px;font-size:13px;color:var(--moss)}
/* A quiet photographic card, with the image and price carrying the hierarchy. */
.compact-home #catalog-area.home-rail .card{background:#fff;border-radius:20px;padding:10px 10px 16px;box-shadow:0 6px 22px #23352b08}
.compact-home #catalog-area.home-rail .card-photo{border-radius:14px;height:auto;max-height:360px;aspect-ratio:4/3;background:#f0f1ec}
.compact-home #catalog-area.home-rail .card-photo img{object-fit:contain}
.compact-home #catalog-area.home-rail .card :is(h3,.price,.meta,.type-pill){margin-left:6px;margin-right:6px}
.compact-home #catalog-area.home-rail .card h3{font-weight:500;min-height:0;margin-top:12px;line-height:1.35}
.compact-home #catalog-area.home-rail .card .price{font-size:24px;letter-spacing:-.6px;margin-top:6px}
.compact-home #catalog-area.home-rail .card .meta{font-size:13px;line-height:1.45;color:#6b746c}
.compact-home #catalog-area.home-rail .card .favorite{top:20px;right:20px;background:transparent;border:0;box-shadow:none}
.compact-home .card-photo-arrow{border:0;box-shadow:0 2px 10px #20352912}
@media(max-width:800px){.compact-home #catalog-area.home-rail #grid{gap:20px}.compact-home #catalog-area.home-rail .card-photo{height:auto;aspect-ratio:4/3}.city-options{min-width:0;width:max(100%,230px);max-width:calc(100vw - 64px)}}

/* Compact specialist directions with one clear catalog entry. */
.compact-home #services-home.services-home{margin:26px 0}
.compact-home #services-home .service-chips{gap:12px;padding:4px 0}
.compact-home #services-home .service-chip-photo{margin-bottom:8px}
.compact-home #services-home .service-chip{padding-bottom:10px}
.compact-home #services-home .services-home-cta{margin-top:12px;gap:12px;flex-wrap:wrap}
.compact-home #services-home .services-home-head{margin-bottom:12px}
.search-mode-label{font-size:12px;color:var(--moss);padding:0 6px;white-space:nowrap}
@media(max-width:550px){.compact-home #services-home .services-home-links{gap:12px}.search-mode-label{font-size:12px}}

.compact-home #services-home{scroll-margin-top:150px}
/* Touch cards keep native photo swiping without arrows covering thumbnails. */
@media(max-width:800px){
 .compact-home .card-photo-arrow{display:none}
 .compact-home .card-photo-count{white-space:nowrap;width:max-content;max-width:calc(100% - 8px);font-size:11px;line-height:1.2;padding:3px 6px;bottom:6px}
}

/* Approved entry-first homepage. Catalog cards are rendered only inside catalogs. */
body[data-view=home] #catalog-area{display:none}
body:not([data-view=home]) .home-destinations{display:none}
.compact-home .header .brand{font-size:44px;white-space:nowrap}
.compact-home #home-hero h1{font-size:32px;line-height:1.2;font-weight:550;letter-spacing:-.8px}
.home-destinations{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:24px 0 12px}
.home-destination{display:grid;grid-template-rows:130px 1fr;align-content:start;align-items:start;justify-items:center;gap:6px;min-height:224px;min-width:0;background:var(--selection-fill);border:0;border-radius:22px;padding:14px 18px 20px;text-align:left;text-decoration:none;color:var(--selection-text);overflow:hidden;transition:transform .2s ease,box-shadow .2s ease}
.home-destination img{display:block;position:static;width:100%;max-width:190px;height:130px;object-fit:contain;opacity:1;pointer-events:none}
.home-destination-copy{display:block;width:100%;min-width:0}
.home-destination strong{display:block;font-size:24px;line-height:1.25;font-weight:600;letter-spacing:-.6px;overflow-wrap:anywhere}
.home-destination small{display:block;font-size:13px;line-height:1.45;margin-top:6px;color:var(--moss)}
@media(hover:hover) and (pointer:fine){.home-destination:hover{background:var(--selection-fill);transform:translateY(-4px);box-shadow:0 10px 24px #29452e0d}}
@media(prefers-reduced-motion:reduce){.home-destination{transition:none}.home-destination:hover{transform:none}}
.compact-home #grid:not(.mine-list){display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:28px 18px}
.compact-home #grid:not(.mine-list) .card{min-width:0;border:0;border-radius:0;background:transparent;padding:0;box-shadow:none;overflow:visible}
.compact-home #grid:not(.mine-list) .card-photo{width:100%;height:auto;aspect-ratio:1/1;border-radius:14px;background:#e8ece6;overflow:hidden}
.compact-home #grid:not(.mine-list) .card-photo img{object-fit:contain}
.compact-home #grid:not(.mine-list) .card h3{font-size:17px;line-height:1.35;font-weight:500;min-height:0;margin:10px 0 6px;overflow-wrap:anywhere}
.compact-home #grid:not(.mine-list) .card .price{font-size:23px;line-height:1.25;margin:6px 0;letter-spacing:-.5px}
.compact-home #grid:not(.mine-list) .card .meta{font-size:13px;line-height:1.4;margin:5px 0;overflow-wrap:anywhere}
.compact-home #grid:not(.mine-list) .card .favorite{top:8px;right:8px;width:44px;height:44px;background:transparent;border:0;box-shadow:none}
.compact-home #grid:not(.mine-list) .card .type-pill{margin:8px 0 0;padding:3px 7px;font-size:10px;width:max-content;max-width:100%}
.compact-home .services-results{grid-template-columns:repeat(3,minmax(0,1fr));gap:24px 16px}
.compact-home .service-card{border:0;border-radius:0;background:transparent;box-shadow:none}
.compact-home .service-card-photo{border-radius:14px;background:#e8ece6}.compact-home .service-card-photo img{object-fit:contain;aspect-ratio:1/1}
.compact-home .service-card-body{padding:12px 0}.compact-home .service-card h3{font-size:18px;overflow-wrap:anywhere}.compact-home .service-card-footer{flex-wrap:wrap}.compact-home .service-card-actions{flex-wrap:wrap}
@media(max-width:800px){
 .compact-home .header .brand{font-size:36px}.compact-home .header .brand-mark{width:40px;height:40px}.compact-home #home-hero h1{font-size:26px}
 .home-destinations{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:18px}
 .home-destination{grid-template-rows:104px 1fr;gap:4px;padding:10px 12px 16px;min-height:195px;border-radius:18px}
 .home-destination img{position:static;width:100%;max-width:146px;height:104px;opacity:1}
 .home-destination strong{font-size:20px;letter-spacing:-.4px}.home-destination small{font-size:12px;max-width:none;margin-top:5px}

 .compact-home #grid:not(.mine-list),.compact-home .services-results{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 12px}
 .compact-home #grid:not(.mine-list) .card h3{font-size:15px}.compact-home #grid:not(.mine-list) .card .price{font-size:20px}.compact-home #grid:not(.mine-list) .card .meta{font-size:12px}
 .compact-home .service-card h3{font-size:16px}.compact-home .service-card-body p{font-size:13px}.compact-home .service-card-actions{display:grid;grid-template-columns:44px 1fr;gap:6px;width:100%}.compact-home .service-card-actions .dark{grid-column:1/-1;font-size:13px}.compact-home .service-card-actions button{min-width:0;padding:8px;font-size:12px}
}
@media(max-width:340px){.compact-home #grid:not(.mine-list),.compact-home .services-results,.home-destinations{grid-template-columns:1fr}}

@media(forced-colors:none){body.compact-home .home-search-modes button[aria-pressed=true],body.compact-home #search>.dark,body.compact-home .home-destination-services{background:var(--selection-fill);color:var(--selection-text);border-color:transparent;box-shadow:none}}

.compact-home .building-home{background:#eaf0e3}.compact-home .building-home::before{display:none}.compact-home .building-home .art-home-actions{padding-top:0}#collection-nav{margin:24px 0}#collection-nav h2{font-size:26px}#collection-nav .tabs{display:flex;gap:8px;flex-wrap:wrap}

#home-current-city{display:block;min-height:44px;font-size:13px;font-weight:500;color:var(--moss);margin-bottom:6px}#home-current-city:after{content:" ⌄"}

/* Owner preview: quiet support emphasis, matching the light selected fill. */
.site-footer .footer-support{background:var(--selection-fill);border:0;box-shadow:none;color:var(--selection-text);font-weight:600}
.site-footer .footer-support:hover{filter:brightness(.98)}
.compact-home .art-home-actions button{border:0;border-radius:14px;font:inherit;font-weight:700;color:var(--ink);cursor:pointer}

/* Full original previews, a quiet background instead of coloured side panels. */
.compact-home #grid:not(.mine-list) .card-photo,.compact-home .service-card-photo{background:transparent}
.compact-home .service-card-photo{aspect-ratio:4/3;overflow:hidden}
.compact-home .service-card-photo img{aspect-ratio:auto;height:100%;max-height:none;object-fit:contain}

.compact-home #grid:not(.mine-list) .card-photo{aspect-ratio:1/1}

/* One quiet outline around the complete search, without individual dark focus frames. */
body.compact-home #search{border:1px solid #c8d2c1;box-shadow:none}
body.compact-home #search:focus-within{border-color:#94a68a;box-shadow:none}
@media(forced-colors:active){body.compact-home #search{border-color:CanvasText}}

/* One newest auction on phones; the desktop rail keeps multiple listings. */
@media(max-width:550px){
  #home-extra .home-auctions-rail > :not(:first-child),
  #home-extra .home-auction-controls{display:none!important}
  #home-extra .home-auctions-rail{display:grid;grid-template-columns:minmax(0,1fr);overflow:visible}
}

/* Free listings share text rows, so complete long titles cannot stagger the details. */
.compact-home #grid.free-list .card-delivery{display:block;-webkit-line-clamp:unset;overflow:visible}
.compact-home #grid.free-list .card h3 button{display:flex;align-items:flex-start;justify-content:flex-start;width:100%;min-height:44px;line-height:inherit;text-align:left}
@supports(grid-template-rows:subgrid){
 .compact-home #grid.free-list{row-gap:0}
 .compact-home #grid.free-list>.card{display:grid;grid-template-rows:subgrid;grid-row:span 9;row-gap:0;align-items:start;margin-bottom:28px}
 .compact-home #grid.free-list>.card>.card-photo{grid-row:1}
 .compact-home #grid.free-list>.card>.type-pill{grid-row:2}
 .compact-home #grid.free-list>.card>h3{grid-row:3}
 .compact-home #grid.free-list>.card>.price{grid-row:4}
 .compact-home #grid.free-list>.card>.card-materials{grid-row:5}
 .compact-home #grid.free-list>.card>.card-delivery{grid-row:6}
 .compact-home #grid.free-list>.card>.card-location{grid-row:7}
 .compact-home #grid.free-list>.card>.card-seller{grid-row:8}
 .compact-home #grid.free-list>.card>.card-status{grid-row:9}
}

/* Owner-approved catalogue preview: porcelain surroundings and individual white cards. */
body.compact-home,body.seo-page,body.services-page{--paper:#f3f4ef;background:#f3f4ef}
.compact-home #grid:not(.mine-list)>.card{background:#fff;border-radius:20px;padding:10px 10px 16px;box-shadow:0 4px 18px #253b2c06;border:0;min-width:0}
.compact-home #grid:not(.mine-list) .card-photo{background:#fafaf7;border-radius:13px}
.compact-home #grid:not(.mine-list) .card h3{font-weight:500;line-height:1.4}
.compact-home #grid:not(.mine-list) .card .price{color:#2e503f;font-weight:650}
.compact-home #grid:not(.mine-list) .card .type-pill{margin-top:10px}
.compact-home #grid:not(.mine-list) .card :is(h3,button,.price,.meta){text-decoration:none}
.compact-home .services-results .service-card{background:#fff;border-radius:20px;border:0;box-shadow:0 4px 18px #253b2c06;overflow:hidden}
@media(max-width:800px){.compact-home #grid:not(.mine-list)>.card{padding:8px 8px 15px;border-radius:18px}.compact-home #grid:not(.mine-list) .card h3{font-size:14px}.compact-home #grid:not(.mine-list) .card .price{font-size:21px}.compact-home #grid:not(.mine-list) .card .meta{font-size:12px}}
/* Programmatic focus on a result region must not recolour/underline all its contents. */
@media(forced-colors:none){
 body :is(button,a,summary,[tabindex]):focus-visible{text-decoration:none!important}
 body [tabindex="-1"]:not(input):not(textarea):not(select):not(button):not(a):focus-visible{background-color:transparent!important;color:inherit;box-shadow:none;outline:none;text-decoration:none!important}
}

/* Keep the installation invitation in other sections, but not on home. */
.compact-home:not([data-view]) #app-install,
.compact-home[data-view=home] #app-install{display:none}

/* Real homepage previews use the catalogue cards without a horizontal carousel. */
body:not([data-view=home]) #home-discovery{display:none}
.home-discovery{margin:22px 0 28px}
.home-discovery>h2{font-size:24px;line-height:1.25;margin:0 0 14px;letter-spacing:-.5px}
.home-discovery-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
.home-discovery-columns>section{min-width:0}
.home-discovery-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0 0 10px}
.home-discovery-heading h3{font-size:17px;margin:0;font-weight:550}
.home-discovery-heading a{font-size:13px;min-height:44px;display:inline-flex;align-items:center;white-space:nowrap;color:var(--pine);text-underline-offset:3px}
.home-discovery .home-products-list,.home-discovery .home-services-track{display:grid;grid-template-columns:minmax(0,1fr);grid-auto-flow:row;grid-auto-columns:auto;gap:10px;overflow:visible;padding:0;scroll-snap-type:none}
.home-discovery .home-services-heading{display:none}
.home-discovery .card,.home-discovery .home-service-card,.home-discovery .home-services-track.is-single .home-service-card{display:grid;grid-template-columns:110px minmax(0,1fr);grid-template-rows:auto auto 1fr;gap:0 14px;min-width:0;min-height:130px;padding:10px;background:#fff;border:0;border-radius:16px;box-shadow:none;transform:none;align-items:start}
.home-discovery .card-photo,.home-discovery .home-service-photo,.home-discovery .home-services-track.is-single .home-service-photo{grid-column:1;grid-row:1 / span 3;width:110px;height:110px;min-height:0;max-height:none;aspect-ratio:1;padding:0;border-radius:10px;overflow:hidden;background:#fafafa}
.home-discovery .card-photo img,.home-discovery .home-service-photo img{width:100%;height:100%;object-fit:contain}
@media(min-width:801px){
 #home-discovery .home-service-photo .listing-preview.is-category-cover:not(.is-photo-error)>.listing-cover-note{display:none}
}
.home-discovery .card>h3{grid-column:2;grid-row:1;margin:3px 0 6px;font-size:16px;line-height:1.35;font-weight:550}
.home-discovery .card>h3 button,.home-discovery .home-service-body h3 button{display:block;min-height:44px;line-height:1.35;text-align:left}
.home-discovery .card>.price{grid-column:2;grid-row:2;font-size:19px;line-height:1.3;color:#315d3c;margin:0 0 5px}
.home-discovery .card>.card-location{grid-column:2;grid-row:3;font-size:12px;line-height:1.4;margin:0}
.home-discovery .card>:is(.favorite,.type-pill,.card-materials,.card-delivery,.card-seller,.card-status,.listing-likes),.home-discovery .card-photo-arrow,.home-discovery .home-service-author{display:none}
.home-discovery .home-service-body,.home-discovery .home-services-track.is-single .home-service-body{grid-column:2;grid-row:1 / span 3;min-width:0;padding:3px 0 0}
.home-discovery .home-service-body h3{font-size:16px;line-height:1.35;font-weight:550;margin:0 0 6px;overflow-wrap:anywhere}
.home-discovery .home-service-price{font-size:19px;line-height:1.3;color:#315d3c;margin:0 0 5px}
.home-discovery .home-service-body p{font-size:12px;line-height:1.4;overflow-wrap:anywhere;margin:0}
.home-discovery .state{padding:20px 16px;margin:0;border:1px solid var(--line);border-radius:16px;text-align:left}
.home-discovery .state p{font-size:14px;line-height:1.5;margin:0 0 12px;max-width:none}
.home-discovery .state[role=status]{font-size:14px;min-height:130px}
.home-discovery .state.error{background:#fff8f4}
@media(max-width:800px){
 .compact-home .header{padding:8px 0 6px;gap:4px 12px}
 .compact-home .header .brand{font-size:32px;letter-spacing:-1.4px}
 .compact-home .header .brand-mark{width:36px;height:36px;margin-right:7px}
 .compact-home .header-actions{gap:2px}
 .compact-home .header-actions>button[data-view=messages],.compact-home .header-actions>[data-mine-link]{display:none}
 .compact-home .header nav{padding:0;border-top:0;gap:2px}
 .compact-home .header nav .section-link{min-height:44px;padding:9px 3px;font-size:12px}
 .compact-home #home-hero.hero-directory{padding:8px 0 12px}
 .compact-home #home-hero h1{font-size:25px;margin-bottom:5px}
 .compact-home #home-hero p{font-size:13px}
 .compact-home #home-current-city{min-height:44px;margin-bottom:0}
 .home-discovery-columns{gap:14px}
 .home-discovery .card,.home-discovery .home-service-card,.home-discovery .home-services-track.is-single .home-service-card{grid-template-columns:86px minmax(0,1fr);gap:0 10px;min-height:112px;padding:8px}
 .home-discovery .card-photo,.home-discovery .home-service-photo,.home-discovery .home-services-track.is-single .home-service-photo{width:86px;height:96px}
}
@media(max-width:550px){
 .home-discovery{margin:16px 0 22px}
 .home-discovery>h2{font-size:22px;margin-bottom:8px}
 .home-discovery-columns{grid-template-columns:minmax(0,1fr);gap:16px}
 .home-discovery-heading{margin-bottom:6px}
 .home-discovery-heading h3{font-size:16px}
 .home-discovery-heading a{font-size:12px}
 .home-discovery .card,.home-discovery .home-service-card,.home-discovery .home-services-track.is-single .home-service-card{grid-template-columns:104px minmax(0,1fr);min-height:124px}
 .home-discovery .card-photo,.home-discovery .home-service-photo,.home-discovery .home-services-track.is-single .home-service-photo{width:104px;height:108px}
 .home-discovery .home-products-list>.card:nth-child(n+2),.home-discovery .home-services-track>.home-service-card:nth-child(n+2){display:none}
}

/* Approved homepage order and unified search; listing cards stay unchanged. */
body:not([data-view="home"]) #home-collections{display:none}
body.compact-home #search{display:flex;align-items:center;gap:9px;background:#fff;border:0;border-radius:19px;padding:10px;box-shadow:0 8px 30px #293a2514;margin:14px 0 22px;min-width:0}
body.compact-home #search .home-search-modes{display:flex;flex-shrink:0;background:#f2f4ed;border-radius:12px;padding:4px;gap:3px;margin:0;width:auto}
body.compact-home #search .home-search-modes button{border:0;border-radius:9px;font-size:14px;min-width:78px;min-height:44px;padding:10px 14px;background:transparent;color:var(--ink)}
body.compact-home #search .home-search-modes button[aria-pressed="true"]{background:var(--lime);font-weight:650}
body.compact-home #search .search-field{display:flex;align-items:center;gap:10px;flex:1;min-width:0;padding:0 8px 0 14px;border:0;box-shadow:none}
body.compact-home #search .search-field input{border:0;box-shadow:none;min-height:48px;min-width:0;width:100%;padding:10px 0;font-size:15px}
body.compact-home #search .city{display:flex;flex-direction:column;align-items:stretch;justify-content:center;flex:0 1 195px;min-width:0;border:0;border-left:1px solid #e8ece1;padding:0 14px;background:transparent;gap:0}
body.compact-home #search .city>span{display:block;font-size:10px;color:#78816e}
body.compact-home #search .city>input{border:0;box-shadow:none;background:transparent;min-height:36px;padding:3px 30px 3px 0;width:100%;min-width:0;font-size:14px}
body.compact-home #search>.dark{padding:13px 21px;background:var(--lime);color:var(--ink);border:0;border-radius:12px;font-weight:650;min-height:52px;flex-shrink:0}
body.compact-home #search :is(input,button):focus-visible{outline:0;box-shadow:inset 0 0 0 3px #bfd39b}
@media(max-width:800px){
 body.compact-home #search{display:grid;grid-template-columns:minmax(0,1fr) 104px;gap:9px;padding:10px;border-radius:17px}
 body.compact-home #search .home-search-modes{grid-column:1/-1;width:auto}
 body.compact-home #search .home-search-modes button{flex:1}
 body.compact-home #search .search-field{grid-column:1/-1;padding:0 7px;gap:9px}
 body.compact-home #search .search-field input{font-size:16px}
 body.compact-home #search .city{border:0;background:#f1f4e9;border-radius:11px;padding:6px 10px;min-width:0;width:auto}
 body.compact-home #search .city>input{font-size:16px}
 body.compact-home #search>.dark{min-height:52px;padding:12px 13px;font-size:14px;width:auto}
}

body.compact-home #search .city{position:relative;padding-right:44px}
body.compact-home #search .city-toggle{position:absolute;right:0;top:50%;transform:translateY(-50%);height:44px;min-height:44px}

/* Match the existing upper navigation buttons, per owner feedback. */
body.compact-home #search .home-search-modes button[aria-pressed="true"],body.compact-home #search>.dark{background:linear-gradient(135deg,#fffff7 0%,#edf8bc 100%);color:#214b39}

@media(max-width:800px){body.compact-home .header nav .section-link{font-size:14px;min-height:48px;padding:11px 3px}}
@media(max-width:360px){body.compact-home .header nav .section-link{font-size:13px}}
