/* Rigarex Refined UI — public marketplace design pass
   Intent: less SaaS/AI-template styling; more industrial catalog discipline.
   This file is intentionally loaded after site.css + theme.php so it can be
   removed independently without disturbing application logic. */

:root{
  --paper:#eef0ec;
  --card:#ffffff;
  --line:#c9cfca;
  --muted:#626c67;
  --shadow:0 2px 8px rgba(16,21,20,.055);
  --r:6px;
}

body{background:var(--paper);}
.shell{width:min(var(--shell),calc(100% - 56px));}

/* Geometry: reserve pills/circles for true status indicators only. */
.mark{border-radius:6px;}
.mark:before,.mark:after{border-radius:2px;}
.btn{border-radius:4px;padding:10px 15px;transition:background-color .14s,border-color .14s,color .14s;}
.btn:hover{transform:none;}
.btn.ghost{background:transparent;border-color:#bfc6c0;}
.btn.ghost:hover{background:#f8f9f6;border-color:#9fa8a1;}
.btn.dark:hover{background:#202826;}
.btn.acid:hover{background:#b9f22c;}
.btn.square{border-radius:4px;}

/* Header: quieter and more structural. */
.topbar{background:rgba(238,240,236,.97);backdrop-filter:blur(8px);border-bottom:1px solid #cbd1cc;}
.nav{height:68px;gap:22px;}
.brand{letter-spacing:-.035em;}
.navlinks{gap:21px;}
.navlinks a{font-weight:760;}
.navright{gap:7px;}
.navright .btn.ghost{border-color:transparent;padding-left:10px;padding-right:10px;}
.navright .btn.ghost:hover{border-color:#c5cbc6;}

/* Hero: one confident message, simple search, data instead of a promo card. */
.hero{padding:62px 0 24px;}
.heroGrid{display:block;max-width:1160px;}
.eyebrow{font-size:10px;letter-spacing:.14em;color:#707a75;}
.hero h1{font-size:clamp(43px,5.4vw,76px);line-height:.98;letter-spacing:-.047em;margin:14px 0 18px;max-width:1040px;font-weight:900;}
.hero h1 span,.hero h1 .heroSecondLine{display:block;color:#747d79;margin-top:3px;}
.heroCopy{max-width:760px;font-size:17px;line-height:1.55;color:#4e5954;margin:0;}
.searchbar{max-width:930px;margin-top:26px;background:#fff;border:1px solid #aeb7b0;border-radius:5px;padding:0;box-shadow:none;display:grid;grid-template-columns:1fr auto;gap:0;overflow:hidden;}
.searchbar .field{padding:12px 16px;border-right:1px solid #d9ded9;}
.searchbar .field label{font-size:9px;letter-spacing:.1em;color:#77827c;margin-bottom:3px;}
.searchbar .field input{font-size:15px;font-weight:650;}
.searchbar .go{border-radius:0;background:var(--ink);min-width:112px;padding:0 23px;font-size:13px;letter-spacing:.01em;}
.searchbar .go:hover{background:#252e2b;}
.trustline{margin-top:15px;gap:9px;font-size:11.5px;color:#68736d;font-weight:650;}
.trustline b{color:#304d39;}

.marketplaceFacts{margin-top:30px;background:transparent;color:var(--ink);border-radius:0;padding:0;border-top:1px solid #c9cfca;border-bottom:1px solid #c9cfca;min-height:0;overflow:visible;display:flex;align-items:stretch;}
.marketplaceFacts:before{display:none;}
.marketplaceFacts .live{min-width:210px;padding:15px 22px 15px 0;color:#69736e;font-size:11px;font-weight:800;}
.marketplaceFacts .live i{width:7px;height:7px;box-shadow:none;}
.marketplaceFacts .stats{margin:0;padding:0;background:transparent;border:0;border-radius:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));flex:1;}
.marketplaceFacts .stat{display:flex;flex-direction:column;justify-content:center;gap:3px;padding:12px 17px;border:0;border-left:1px solid #c9cfca;}
.marketplaceFacts .stat span{font-size:10px;text-transform:uppercase;letter-spacing:.07em;color:#747e79;}
.marketplaceFacts .stat strong{font-size:14px;color:#1a211f;font-weight:850;}

/* Sections: fewer nested labels; headings act as structure. */
.section{padding:35px 0;}
.simpleSectionTitle{align-items:center;border-bottom:1px solid #cbd1cc;padding-bottom:10px;margin-bottom:15px;}
.simpleSectionTitle h2{font-size:28px;line-height:1.1;letter-spacing:-.035em;margin:0;font-weight:850;}
.sectionLink{font-size:12px;font-weight:800;text-decoration:none;color:#3c4742;padding-bottom:1px;border-bottom:1px solid transparent;}
.sectionLink:hover{border-color:#3c4742;}
.homeSponsoredSection{background:transparent;border-top:0;border-bottom:0;padding-top:29px!important;}

/* Homepage tabs: actual tabs, not pills. */
.inventoryToolbar{gap:22px;margin:0 0 15px;border-bottom:1px solid #cbd1cc;overflow:auto;}
.inventoryToolbar .chip{border:0;border-bottom:2px solid transparent;border-radius:0;background:transparent;padding:9px 0 8px;color:#5b6660;font-size:12px;}
.inventoryToolbar .chip.active,.inventoryToolbar .chip:hover{background:transparent;color:var(--ink);border-color:var(--ink);}

/* General chips elsewhere remain compact controls rather than capsules. */
.chip{border-radius:3px;}

/* Catalog cards: square, aligned, restrained. */
.machineCard{background:#fff;border:1px solid #cfd5d0;border-radius:4px;box-shadow:none;transition:border-color .14s,box-shadow .14s;}
.machineCard:hover{transform:none;border-color:#9ea8a1;box-shadow:0 2px 8px rgba(16,21,20,.06);}
.cardBody{padding:13px 14px 14px;}
.machineCard h3{font-size:16px;line-height:1.28;letter-spacing:-.018em;margin:5px 0 11px;}
.meta{font-size:9px;letter-spacing:.07em;color:#6d7772;}
.price{font-size:21px;letter-spacing:-.03em;}
.location{font-size:11px;}
.tag{border-radius:2px;background:rgba(255,255,255,.95);backdrop-filter:none;padding:5px 7px;font-size:8px;}
.sellerLogo{border-radius:3px;}
.empty{border-radius:4px;}

/* Featured tiles/cards follow the same catalog geometry. */
.industryTile,.compactHighlight,.compactIndustryTile{border-radius:4px;box-shadow:none;}
.industryTile:hover{transform:none;box-shadow:0 2px 8px rgba(16,21,20,.05);border-color:#aab2ac;}
.industryTileMark,.compactIndustryTile .industryTileMark{border-radius:3px;}
.highlightLabel{border-radius:2px;}

/* Browse + listing surfaces: still polished, no bubble-card language. */
.filters{border-radius:5px;box-shadow:none;}
.filterGroup input,.filterGroup select{border-radius:4px;background:#fff;}
.pagination button{border-radius:3px;}
.searchFallbackNote{border-radius:4px;}
.galleryMain{border-radius:6px;}
.galleryThumb{border-radius:3px;}
.galleryExpand,.galleryCount{border-radius:3px;}
.listingSide{border-radius:6px;}
.fact{border-radius:4px;}
.detailCard{border-radius:6px;}
.dealerBigLogo{border-radius:4px;}
.notice{border-radius:4px;}
.compareMachineHead img,.compareNoPhoto{border-radius:4px;}

/* Service/technician public surfaces. */
.serviceSearch input,.serviceSearch select{border-radius:4px;}
.technicianCard{border-radius:5px;}
.techAvatar{border-radius:5px;}
.techAvatar.large{border-radius:7px;}
.insuranceDetails>div,.serviceSteps strong,.publicEquipmentGrid article,.availabilityGate,.publicAvailabilityDay,.publicCalendarDay,.publicServiceHistory article{border-radius:4px;}
.publicSlot{border-radius:3px;}

/* CTA: a strong industrial strip, not a decorative SaaS feature panel. */
.refinedMarketCta{border-radius:4px;padding:29px 31px;display:block;border:1px solid #27302d;}
.refinedMarketCta:after{display:none;}
.refinedMarketCta h2{font-size:clamp(30px,3.4vw,45px);line-height:1.03;letter-spacing:-.04em;margin:0 0 10px;max-width:820px;}
.refinedMarketCta p{font-size:15px;line-height:1.55;max-width:740px;margin:0;color:#b9c1bd;}
.ctaActions{display:flex;align-items:center;gap:17px;margin-top:20px;flex-wrap:wrap;}
.ctaTextLink{background:transparent;color:#fff;padding:8px 0;border:0;border-radius:0;}
.ctaTextLink:hover{color:var(--acid);background:transparent;}

.footer{margin-top:40px;padding-top:42px;}
.footerGrid{gap:30px;}
.compareTray{border-radius:5px;}
.toast{border-radius:4px;}
.formGrid input,.formGrid textarea,.formGrid select{border-radius:4px;}

@media(max-width:900px){
  .marketplaceFacts{display:block;}
  .marketplaceFacts .live{padding:12px 0;border-bottom:1px solid #c9cfca;}
  .marketplaceFacts .stats{grid-template-columns:1fr 1fr;}
  .marketplaceFacts .stat:nth-child(odd){border-left:0;}
  .marketplaceFacts .stat{border-left:1px solid #c9cfca;border-bottom:1px solid #d6dbd7;}
}

@media(max-width:780px){
  .shell{width:min(100% - 24px,var(--shell));}
  .nav{height:64px;}
  .hero{padding:42px 0 18px;}
  .hero h1{font-size:clamp(38px,11vw,58px);line-height:1.0;letter-spacing:-.042em;}
  .heroCopy{font-size:16px;}
  .searchbar{margin-top:21px;}
  .searchbar .field{padding:10px 12px;}
  .searchbar .go{min-width:90px;padding:0 16px;}
  .trustline{flex-wrap:wrap;line-height:1.5;}
  .simpleSectionTitle h2{font-size:25px;}
  .section{padding:28px 0;}
  .inventoryToolbar{gap:18px;}
  .machineCard h3{font-size:17px;}
  .galleryMain{border-radius:5px;}
  .listingSide,.detailCard{border-radius:5px;}
  .refinedMarketCta{padding:24px 21px;}
}

@media(max-width:520px){
  .shell{width:min(100% - 18px,var(--shell));}
  .hero{padding-top:34px;}
  .searchbar{grid-template-columns:1fr;overflow:visible;background:transparent;border:0;}
  .searchbar .field{background:#fff;border:1px solid #aeb7b0;border-radius:4px;}
  .searchbar .go{min-height:46px;margin-top:7px;border-radius:4px;width:100%;}
  .marketplaceFacts .stats{grid-template-columns:1fr 1fr;}
  .marketplaceFacts .stat{padding:10px 8px;}
  .marketplaceFacts .stat strong{font-size:13px;}
  .simpleSectionTitle{align-items:flex-end;gap:12px;}
  .simpleSectionTitle h2{font-size:23px;}
  .sectionLink{font-size:11px;text-align:right;}
  .refinedMarketCta h2{font-size:30px;}
}


/* Persistent marketplace search: stays available after leaving the homepage. */
.marketSearchStrip{background:#f7f8f5;border-bottom:1px solid #cbd1cc;}
.marketSearchForm{min-height:58px;display:grid;grid-template-columns:auto minmax(220px,760px) auto;align-items:center;justify-content:start;gap:12px;}
.marketSearchForm>label{font-size:10px;font-weight:850;letter-spacing:.08em;text-transform:uppercase;color:#69736e;white-space:nowrap;}
.marketSearchField{background:#fff;border:1px solid #b9c1bb;border-radius:4px;min-width:0;}
.marketSearchField:focus-within{border-color:#707b74;box-shadow:0 0 0 2px rgba(16,21,20,.055);}
.marketSearchField input{width:100%;height:38px;padding:0 12px;border:0;outline:0;background:transparent;color:var(--ink);font:650 13px/1.2 Inter,system-ui,sans-serif;}
.marketSearchField input::placeholder{color:#8a938e;font-weight:550;}
.marketSearchForm .btn{height:40px;padding:0 18px;}
.browseMarketplacePage>.pageHead{padding-top:34px;}

@media(max-width:780px){
  .marketSearchForm{grid-template-columns:1fr auto;gap:8px;min-height:60px;}
  .marketSearchForm>label{display:none;}
  .marketSearchField input{height:40px;}
}

@media(max-width:520px){
  .marketSearchForm{grid-template-columns:1fr;gap:7px;padding:9px 0 10px;}
  .marketSearchForm .btn{width:100%;}
}


/* v1.3 — homepage promoted gallery + narrower search */
.heroCommerceGrid{display:grid;grid-template-columns:minmax(0,1.42fr) minmax(340px,.92fr);gap:46px;align-items:stretch;max-width:none;}
.heroCommerceGrid .heroMain{min-width:0;padding:7px 0 4px;}
.heroCommerceGrid .heroMain h1{max-width:760px;font-size:clamp(42px,4.8vw,70px);}
.heroCommerceGrid .heroCopy{max-width:650px;}
.heroSearchbar{max-width:620px;}
.heroMarketFacts{margin-top:28px;min-height:48px;border-top:1px solid #c9cfca;border-bottom:1px solid #c9cfca;display:flex;align-items:center;gap:0;color:#66716b;font-size:11px;font-weight:700;}
.heroMarketFacts>span{min-height:48px;padding:0 18px;display:flex;align-items:center;border-left:1px solid #c9cfca;}
.heroMarketFacts>span:first-child{border-left:0;padding-left:0;padding-right:22px;}
.heroMarketFacts b{color:var(--ink);font-size:13px;margin-right:5px;}
.heroMarketLive i{width:7px;height:7px;border-radius:50%;background:#5b8d62;display:inline-block;margin-right:8px;}
.heroPromoPanel{background:#fff;border:1px solid #c5ccc6;border-radius:5px;min-width:0;overflow:hidden;align-self:stretch;display:flex;flex-direction:column;box-shadow:0 2px 10px rgba(16,21,20,.05);}
.heroPromoTop{min-height:43px;padding:0 14px;border-bottom:1px solid #d4d9d5;display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:10px;font-weight:900;letter-spacing:.09em;text-transform:uppercase;color:#606b65;}
.heroPromoTop a{color:#303a35;text-transform:none;letter-spacing:0;font-size:11px;font-weight:800;text-decoration:none;}
.heroPromoTop a:hover{text-decoration:underline;}
.heroPromoViewport{position:relative;flex:1;min-height:330px;background:#e4e8e3;}
.heroPromoLoading{position:absolute;inset:0;display:grid;place-items:center;color:#717b76;font-size:12px;font-weight:750;background:#eef0ec;}
.heroPromoSlide{position:absolute;inset:0;opacity:0;visibility:hidden;transition:opacity .24s ease;display:flex;flex-direction:column;}
.heroPromoSlide.active{opacity:1;visibility:visible;}
.heroPromoLink{color:inherit;text-decoration:none;display:flex;flex-direction:column;height:100%;}
.heroPromoPhoto{position:relative;flex:1 1 auto;min-height:210px;overflow:hidden;background:linear-gradient(135deg,#dfe4df,#cfd6d0);}
.heroPromoPhoto img{width:100%;height:100%;object-fit:cover;display:block;}
.heroPromoPhoto.fallback:after{content:'RIGAREX';position:absolute;inset:0;display:grid;place-items:center;font-size:28px;font-weight:950;letter-spacing:-.04em;color:#77817c;}
.heroPromoBadge{position:absolute;top:11px;left:11px;background:rgba(16,21,20,.92);color:#fff;border-radius:2px;padding:5px 7px;font-size:8px;font-weight:900;letter-spacing:.08em;text-transform:uppercase;}
.heroPromoBody{padding:14px 15px 15px;background:#fff;border-top:1px solid #d6dbd7;}
.heroPromoMeta{font-size:9px;letter-spacing:.08em;text-transform:uppercase;color:#717b76;font-weight:850;margin-bottom:5px;}
.heroPromoTitle{display:block;font-size:17px;line-height:1.22;letter-spacing:-.02em;color:#171e1b;margin-bottom:9px;}
.heroPromoBottom{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;}
.heroPromoPrice{font-size:21px;line-height:1;font-weight:900;letter-spacing:-.035em;color:#121817;}
.heroPromoLocation{font-size:10px;color:#68736d;text-align:right;max-width:48%;}
.heroPromoControls{min-height:43px;padding:0 11px 0 14px;border-top:1px solid #d4d9d5;background:#f7f8f5;display:flex;align-items:center;justify-content:space-between;}
.heroPromoControls[hidden]{display:none;}
.heroPromoDots{display:flex;gap:6px;align-items:center;}
.heroPromoDot{width:18px;height:2px;padding:0;border:0;border-radius:0;background:#c0c7c1;cursor:pointer;}
.heroPromoDot.active{background:#202825;}
.heroPromoArrows{display:flex;gap:5px;}
.heroPromoArrow{width:31px;height:29px;border:1px solid #c0c7c1;background:#fff;border-radius:3px;color:#242c29;font-size:15px;line-height:1;cursor:pointer;}
.heroPromoArrow:hover{border-color:#8f9992;background:#f0f2ef;}
.heroGalleryEmpty{grid-template-columns:minmax(0,1fr);}
.heroGalleryEmpty .heroPromoPanel{display:none;}
.heroGalleryEmpty .heroMain{max-width:880px;}
.marketSearchForm{grid-template-columns:auto minmax(220px,560px) auto;max-width:790px;}
.marketSearchField input{font-size:12.5px;}
@media(max-width:980px){.heroCommerceGrid{grid-template-columns:minmax(0,1fr) minmax(310px,.78fr);gap:28px;}.heroCommerceGrid .heroMain h1{font-size:clamp(40px,6vw,62px);}.heroPromoViewport{min-height:300px;}}
@media(max-width:820px){.heroCommerceGrid{grid-template-columns:1fr;gap:24px;}.heroPromoPanel{max-width:650px;width:100%;}.heroPromoViewport{min-height:360px;}.heroMarketFacts{flex-wrap:wrap;}.heroMarketFacts>span{border-left:0;border-right:1px solid #c9cfca;min-height:38px;padding:0 12px;}.heroMarketFacts>span:first-child{padding-left:0;}}
@media(max-width:520px){.heroCommerceGrid{gap:20px;}.heroCommerceGrid .heroMain h1{font-size:clamp(37px,11vw,54px);}.heroPromoViewport{min-height:310px;}.heroPromoPhoto{min-height:190px;}.heroPromoTitle{font-size:16px;}.heroPromoPrice{font-size:19px;}.heroMarketFacts{padding:5px 0;}.heroMarketFacts>span{width:50%;border-right:0;padding:5px 8px;min-height:30px;}.heroMarketFacts>span:first-child{width:100%;}}

/* v1.4 — lock rotating hero word to its own line so short words do not collapse hero height */
.hero h1 .heroDynamicWord{
  display:block!important;
  color:var(--ink)!important;
  white-space:nowrap;
  min-height:1em;
}


/* v1.5 — punctuation stays attached to the rotating hero word */
.hero h1 .heroDynamicWord::after{content:".";}
