/* Rawhub 0.5.4: shared, scoped presentation for the existing storefront and portals. */
.rh{--rhn-ink:#172c44;--rhn-muted:#52677c;--rhn-line:#dce6ef;--rhn-navy:#152e52;--rhn-blue:#285c96;font-family:system-ui,-apple-system,'Segoe UI',sans-serif;color:var(--rhn-ink);line-height:1.65}
.rh :is(h1,h2,h3,p,li,label,a,button){overflow-wrap:break-word}
.rh :is(h1,h2,h3){text-wrap:balance;letter-spacing:-.035em;line-height:1.2}
.rh main:not(.rhpx) h1{font-size:clamp(28px,4.3vw,50px);max-width:100%;margin-bottom:18px}
.rh main:not(.rhpx) h2{font-size:clamp(21px,2.5vw,29px);margin-bottom:14px}
.rh main:not(.rhpx) p{line-height:1.75}
.rh .rhHeader{border-bottom:1px solid #dce6ef;box-shadow:0 6px 24px #102a4310;background:#fff;gap:20px;position:relative}
.rh .rhHeader nav>a{font-weight:600;min-height:44px;display:inline-flex;align-items:center;justify-content:center;border:1px solid transparent;border-radius:12px}
.rh .rhHeader nav>a[aria-current=page]{border-color:#d5e5f4;background:#edf5fc;color:#1c518b}
.rh :is(.rhHeader .rhIconLink,.rhMenuToggle,.rhMenuClose){min-width:44px;min-height:44px;border-radius:14px}
.rh :is(.authCard,.tdPanel,.tdPolicyCard,.rhB2CForm,.rhDispatchPanel,.rhSignupPanel,.rhOnboardingSection,.rhMSBuyPanel,.rhMSCartSummary,.rhsa-card){border:1px solid var(--rhn-line);border-radius:24px;box-shadow:0 12px 34px #142d4710;background:#fff}
.rh :is(.authCard,.tdPanel,.rhB2CForm,.rhDispatchPanel,.rhSignupPanel){padding:clamp(22px,3vw,38px)}
.rh :is(.tdBody,.authPage,.rhB2CPage,.rhSignupPage){max-width:1280px;margin-left:auto;margin-right:auto}
.rh .tdBids{padding-top:38px;padding-bottom:42px;min-height:320px}
.rh .tdBids>small{font-size:11px;letter-spacing:.16em;font-weight:700;color:#37678b}
.rh .tdBids>.tdGrid>p:only-child{grid-column:1/-1;padding:26px 28px;background:linear-gradient(120deg,#f5f9fe,#fff);border:1px solid var(--rhn-line);border-radius:20px;color:var(--rhn-muted);margin-top:20px;max-width:100%}
.rh :is(.authCard,.tdPanel,.rhB2CForm,.rhSignupPanel,.rhsa-card) label{font-size:13px;font-weight:600;line-height:1.5;color:#344f69;min-width:0}
.rh :is(input,select,textarea):not([type=hidden]):not([type=checkbox]):not([type=radio]):not([type=submit]){border:1px solid #ccdbe7;border-radius:13px;box-shadow:inset 0 1px 3px #18334b04;min-width:0;max-width:100%;min-height:50px;background:#fcfdff;color:#1d344e;padding:12px 14px;line-height:1.4}
.rh :is(input,textarea)::placeholder{color:#677c8e;opacity:1}
.rh :is(input,select,textarea):focus{border-color:#3978b3;box-shadow:0 0 0 3px #2f7bc61a;outline:0}
.rh :is(input[type=checkbox],input[type=radio]){accent-color:#23578f;flex-shrink:0;width:19px;height:19px}
.rh :is(.btn,.rhB2CButton,.rhsa-primary,.authCard button[type=submit],.rhSignupPanel button[type=submit]){min-height:48px;line-height:1.4;border-radius:14px;font-weight:650;padding:13px 20px;display:inline-flex;align-items:center;justify-content:center;gap:8px;white-space:normal}
.rh :is(.rhB2CButton,.rhsa-primary,.authCard .goldbtn){background:linear-gradient(120deg,#173558,#2b659e);color:white!important;border:1px solid #285a88;box-shadow:0 5px 14px #163c6222}
.rh :is(.tdTabs,.tdCheckoutProgress){gap:8px;flex-wrap:wrap}
.rh .tdTabs a{border-radius:12px;min-height:44px;padding:10px 16px}
.rh :is(.rhBlogCard,.tdCard,.rhB2CCard,.tdSupplierCard){border-radius:22px;border:1px solid #dfe8ef;box-shadow:0 7px 22px #14314c0b;overflow:hidden}
.rh :is(.rhBlogCard,.rhArticleContent,.rhBlogContent,.tdPolicyContent) img{max-width:100%;height:auto}
.rh :is(.rhArticleContent,.rhBlogContent,.tdPolicyContent){line-height:1.8;overflow-wrap:anywhere}
.rh :is(.rhArticleContent,.rhBlogContent,.tdPolicyContent) table{display:block;max-width:100%;overflow-x:auto}
.rh .rhFooter{margin-top:36px;font-size:13px;line-height:1.7}
.rh .rhFooter :is(a,p){overflow-wrap:anywhere}
.rh .rhMobileDrawer{background:linear-gradient(180deg,#f1f6fc,#fff 42%);padding:20px;overflow-y:auto;max-height:calc(100dvh - 70px);overscroll-behavior:contain}
.rh .rhMobileDrawer>div:first-child{padding:18px 16px;margin-bottom:14px;border-radius:19px;background:linear-gradient(120deg,#142b48,#29597d);color:#fff;box-shadow:0 8px 22px #102e4d20}
.rh .rhMobileDrawer>div:first-child b{color:#fff;font-size:19px;letter-spacing:-.3px}
.rh .rhMobileDrawer .rhMenuClose{color:#fff;border:1px solid #ffffff40;background:#ffffff15}
.rh .rhMobileDrawer nav{display:grid;gap:7px;padding-bottom:16px}
.rh .rhMobileDrawer nav>a{display:flex;align-items:center;gap:13px;min-height:58px;padding:10px 13px;border:1px solid #e0e8f1;background:#fff;border-radius:15px;color:#243e58;font-size:14px;font-weight:600;box-shadow:0 2px 8px #18394f04}
.rh .rhMobileDrawer nav>a[aria-current=page]{background:#e9f2fd;border-color:#a9c6e4;color:#184e88}
.rhn-menu-icon{width:36px;height:36px;border-radius:11px;flex-shrink:0;display:grid;place-items:center;background:linear-gradient(145deg,#17334e,#32678d);box-shadow:inset 0 1px 0 #ffffff24}
.rhn-menu-icon img{display:block;width:21px;height:21px}
.rh :is(a,button,input,select,textarea,summary):focus-visible{outline:3px solid #4384bd;outline-offset:3px}
/* App discovery stays available without sitting over form controls or mobile navigation. */
html body.rhn-has-install{padding-bottom:0}
body.rhn-has-install #rhn-install-bar{position:relative;left:auto;bottom:auto;transform:none;margin:26px auto 90px;max-width:430px;width:calc(100% - 32px);z-index:1;box-shadow:0 8px 22px #10233e12}
@media(min-width:801px){body.rhn-has-install #rhn-install-bar{margin-bottom:30px}.rh .authCard{max-width:560px}.rh .rhMobileDrawer{max-width:440px}}
@media(max-width:800px){.rh main:not(.rhpx) h1{font-size:30px;line-height:1.18;letter-spacing:-.8px}.rh main:not(.rhpx) h2{font-size:22px}.rh .tdBody{padding:24px 18px 34px}.rh .tdBids>.tdGrid>p:only-child{padding:20px}.rh .rhMobileDrawer{padding:14px;max-height:calc(100dvh - 68px)}.rh :is(input,select,textarea):not([type=checkbox]):not([type=radio]){font-size:16px}.rh :is(.rhSignupFieldPair,.rhB2CTwo){grid-template-columns:minmax(0,1fr)}.rh :is(.authCard,.tdPanel,.rhB2CForm,.rhSignupPanel){border-radius:20px;padding:22px 18px}.rh .rhB2CSteps{grid-template-columns:1fr 1fr;gap:10px}.rh .rhB2CSteps span{font-size:12px;line-height:1.5}.rh .rhMobileNav{border:1px solid #d9e5ef;box-shadow:0 -4px 20px #14324c0b}.rh .rhMobileNav a{min-height:56px;padding:9px 5px}.rh .rhSupplierStrip{margin-top:26px}.rh .rhFooterEnd{padding-bottom:80px}}
@media(prefers-reduced-motion:no-preference){.rh :is(.btn,.rhB2CButton,.rhBlogCard,.tdCard,.rhMobileDrawer nav>a){transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}.rh :is(.rhBlogCard,.tdCard):hover{transform:translateY(-3px);box-shadow:0 12px 26px #17365018}.rh :is(.btn,.rhB2CButton):active{transform:scale(.985)}.rh .rhMobileDrawer nav>a:hover{transform:translateX(3px);border-color:#a7c3dc}}
@media(prefers-reduced-motion:reduce){.rh *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* Retain the existing illustration, with a dark reading area behind its headline. */
.rh main.authPage:has(.authBrand):before{background-image:linear-gradient(0deg,#142e4a 0%,#142e4ac9 24%,#142e4a00 72%),url('../../rawhub-b2b-commerce-os/assets/trade-people.svg');background-color:#edf7fd;background-size:cover,contain;background-position:center,center 10px;background-repeat:no-repeat;color:#fff;text-shadow:0 2px 8px #071c2e70;line-height:1.3;padding:24px;font-size:28px;border-radius:24px}
@media(max-width:800px){.rh main.authPage:has(.authBrand):before{height:200px;min-height:0;box-sizing:border-box;padding:20px;font-size:23px}.rh .authPage .authCard h1{font-size:30px}.rh .authCard>p{font-size:14px;color:#526a7e}.rh .authLinks a,.rh .signupChoices a{min-height:44px;display:flex;align-items:center;justify-content:center;text-align:center;padding:10px}}

/* Match the legacy control selector specificity so the shared dimensions win. */
.rh main :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="range"]):not([type="color"]):not([type="submit"]),select,textarea){min-height:50px;font-size:15px;border:1px solid #ccdae6;border-radius:13px;padding:12px 14px;background:#fcfdff;color:#1d344e;line-height:1.4}
.rh main :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="range"]):not([type="color"]):not([type="submit"]),select,textarea):focus{border-color:#3978b3;box-shadow:0 0 0 3px #2f7bc61a;outline:0}
@media(max-width:800px){.rh main :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="range"]):not([type="color"]):not([type="submit"]),select,textarea){font-size:16px}}

/* Final finishing pass: comfortable actions and resilient long content. */
.rh .rhpx-filters{align-items:end;gap:12px}
.rh .rhpx-filters label{min-width:0}
.rh .rhpx-filters :is(button,a){min-height:48px;display:inline-flex;align-items:center;justify-content:center}
.rh .rhpx-search label{min-width:0;overflow:hidden}
.rh .rhpx-search input{min-width:0;text-overflow:ellipsis}
.rh :is(.tdBasket,.tdCheckout) :is(.btn,button[type=submit]){min-height:48px;border-radius:14px}
.rh :is(.tdBasket,.tdCheckout) :is(h1,h2,p,label){overflow-wrap:anywhere}
.rh :is(.tdPanel,.rhB2CCard,.tdSupplierCard){min-width:0}
.rh main input[type=file]{width:100%;font-size:13px;overflow:hidden}
.rh main input[type=file]::file-selector-button{border:0;border-radius:8px;padding:9px 12px;margin-right:10px;background:#eaf1fa;color:#244e76;font:inherit;font-weight:600}
@media(max-width:480px){.rh .rhpx-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.rh .rhpx-filters select{width:100%;max-width:100%}.rh .rhpx-filters :is(button,a){width:100%}.rh .rhpx-search{gap:8px}.rh .rhpx-search>button{padding-left:14px;padding-right:14px;flex-shrink:0}}
